/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
}

/* CSS Variables - Default (will be overridden by seasons.css) */
:root {
    --color-bg-primary: #ffffff;
    --color-text-primary: #333333;
    --color-accent: #007bff;
    --color-accent-hover: #0056b3;
    --color-card-bg: #f8f9fa;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-border: #e9ecef;
}

/* Seasonal Background */
#seasonal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#particle-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Hidden leaf image for autumn animation */
#leaf {
    display: none;
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-card-bg);
    opacity: 0.95;
    backdrop-filter: blur(10px);
    z-index: 1001;
    border-bottom: 1px solid var(--color-border);
    height: 60px;
    padding: 0;
    margin: 0;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 15px;
    right: 20px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1002;
}

.hamburger-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: 100%;
}

.nav-menu a {
    color: var(--color-text-primary);
    text-decoration: none;
    margin: 0;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    height: 100%;
    min-height: 60px;
    box-sizing: border-box;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--color-accent);
    color: white;
}

/* Main Content */
#content {
    padding-top: 80px; /* Account for fixed nav */
    position: relative;
    z-index: 10;
    background: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    color: var(--color-text-primary);
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn.primary {
    background-color: var(--color-accent);
    color: white;
}

.btn.primary:hover {
    background-color: var(--color-accent-hover);
}

.btn.secondary {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn.secondary:hover {
    background-color: var(--color-accent);
    color: white;
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
}

section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-text-primary);
}

/* Personal Info */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--color-card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--color-shadow);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 10;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

/* Experience */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-accent);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin: 0 0 2rem 0;
    padding: 2rem;
    background-color: var(--color-card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--color-shadow);
    z-index: 10;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.company {
    font-weight: bold;
    color: var(--color-accent);
}

.company a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.company a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.period {
    font-size: 0.9rem;
    color: var(--color-text-primary);
    opacity: 0.7;
    margin-bottom: 1rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--color-card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--color-shadow);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 10;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background-color: var(--color-card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    opacity: 0.7;
    font-size: 0.9rem;
    border: 1px dashed var(--color-border);
}

.project-card h3 {
    padding: 1.5rem 1.5rem 1rem;
    font-size: 1.3rem;
    color: var(--color-text-primary);
    text-align: center;
}

.project-card p {
    padding: 0 1.5rem;
    color: var(--color-text-primary);
    opacity: 0.8;
    text-align: center;
}

.tech-stack {
    padding: 1rem 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.tag {
    background-color: var(--color-accent);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.project-links {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Interests */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.interest-item {
    background-color: var(--color-card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--color-shadow);
    position: relative;
    z-index: 10;
}

.interest-item h3 {
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.interest-item ul {
    list-style: none;
}

.interest-item li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.interest-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* About */
#about .container {
    max-width: 1200px;
}

.story-card {
    background-color: var(--color-card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--color-shadow);
    position: relative;
    z-index: 10;
}

.story-card p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-card p:last-child {
    margin-bottom: 0;
}

/* Contact */
#contact {
    min-height: 400px; /* Increased height */
    display: flex;
    align-items: center;
    padding-bottom: 25rem;
}

#contact .container {
    width: 100%;
}

.contact-card {
    background-color: var(--color-card-bg);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--color-shadow);
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.social-links {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem; /* Added spacing */
}

.social-links a {
    display: inline-block;
    margin: 0;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-accent-hover);
}

.social-btn {
    padding: 1rem 2rem !important; /* Increased padding */
    border: 2px solid var(--color-accent) !important;
    border-radius: 8px !important;
    background-color: transparent !important;
    transition: all 0.3s ease !important;
    min-width: 150px; /* Increased width */
    text-align: center;
    font-size: 1.1rem; /* Slightly larger font */
}

.social-btn:hover {
    background-color: var(--color-accent) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--color-shadow);
}

/* Fixed Seasonal Wheel Button */
.seasonal-wheel-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 100px;
    height: 100px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seasonal-wheel-btn:hover {
    transform: scale(1.08);
}

.seasonal-wheel-btn:active {
    transform: scale(1.02);
}

.wheel-icon {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.seasons-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.seasonal-wheel-btn:hover .seasons-icon {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) brightness(1.05);
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .seasonal-wheel-btn {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }

    .seasons-icon {
        width: 100%;
        height: 100%;
    }
}

/* Footer */
footer {
    background-color: var(--color-card-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.back-to-top {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.back-to-top:hover {
    color: var(--color-accent-hover);
}