:root {
    /* Color Palette - Premium Beige & Brown Aesthetic */
    --bg-main: #fbf8f1;
    --bg-alt: #f1ebd8;
    --text-main: #3d312a;
    --text-muted: #5e4c41;
    --primary-color: #8b5a2b;   /* Saddle Brown */
    --secondary-color: #bfa182; /* Warm Taupe */
    --accent-color: #cd7f32;    /* Bronze */
    
    /* Glassmorphism Variables for Bright/Warm Theme */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(139, 90, 43, 0.15); /* primary-color with opacity */
    --glass-shadow: 0 8px 32px 0 rgba(70, 50, 30, 0.05); /* very soft shadow */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    overflow-x: hidden;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.section-padding {
    padding: 100px 0;
}

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

.bg-alt {
    background-color: var(--bg-alt);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(139, 90, 43, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 90, 43, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 90, 43, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Nav */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(251, 248, 241, 0.85); /* Matches bg-main with opacity */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 10px rgba(70, 50, 30, 0.05); /* Slight shadow to lift it */
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(191, 161, 130, 0.4) 0%, rgba(251, 248, 241, 0) 70%); /* using secondary color */
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(139, 90, 43, 0.2) 0%, rgba(251, 248, 241, 0) 70%); /* using primary color */
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.05); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.greeting {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 8px;
    line-height: 1.1;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 90, 43, 0.2);
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: absolute;
    box-shadow: 0 10px 30px rgba(70, 50, 30, 0.1);
    z-index: 2;
    animation: float 6s infinite ease-in-out alternate;
}

.hero-card {
    top: 20%;
    left: 0;
}

.secondary-card {
    top: auto;
    left: auto;
    bottom: 20%;
    right: 0;
    animation-delay: -3s;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.1), rgba(191, 161, 130, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.card-text h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.card-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.abstract-sphere {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    position: relative;
    z-index: 1;
    box-shadow: inset -20px -20px 40px rgba(0,0,0,0.1), 0 0 40px rgba(139, 90, 43, 0.2);
}

/* Sections Global */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

/* About & Education */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.subsection-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.education-timeline {
    position: relative;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: 7px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(139, 90, 43, 0.3);
}

.timeline-content {
    padding: 20px;
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(139, 90, 43, 0.1);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.institution {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.marks {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category {
    padding: 30px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.header-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.tag:hover {
    background: rgba(139, 90, 43, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.alt-tag:hover {
    background: rgba(205, 127, 50, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Leadership / Experience */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.leadership-card {
    padding: 24px;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.card-head h4 {
    font-size: 1.1rem;
    color: var(--text-main);
}

.date-badge {
    font-size: 0.8rem;
    color: var(--primary-color);
    background: rgba(139, 90, 43, 0.1);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.organization {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.leadership-card .description {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-year {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(139, 90, 43, 0.1); /* faded primary color */
    line-height: 1;
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.project-links a:hover {
    color: var(--primary-color);
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.project-subtitle {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Contact */
.contact-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-info-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    min-width: 200px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(139, 90, 43, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    transition: var(--transition-smooth);
}

.contact-item:hover .icon-box {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.contact-item h4 {
    margin-bottom: 8px;
}

.contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 15px rgba(139, 90, 43, 0.1);
}

.submit-btn {
    width: 100%;
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(241, 235, 216, 0.6); /* very subtle beige */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--primary-color);
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Responsive constraints */
@media (max-width: 992px) {
    .hero-container, .about-content {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        order: 2;
        margin-top: 40px;
        margin-bottom: 0;
        height: auto;
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-card, .secondary-card {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        max-width: 320px;
        animation: none; /* remove floating animation for stable stacking if needed, or keep it */
    }
    
    .abstract-sphere {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 0;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .contact-form-container {
        padding: 24px;
    }
}
