/* --- Variables --- */
:root {
    /* Dark Theme Variables (Default) */
    --page-bg: #0C1E32; /* Slightly lighter base background for the page */
    --dark-navy: #0A192F; /* This will now be the background for common content sections */
    --light-navy: #112240; /* Background for cards (e.g., skill cards, about me cards) */
    --light-slate: #CCD6F6; /* Brighter white/light gray text */
    --slate: #8892B0; /* Standard gray text */
    --green-accent: #64FFDA; /* Primary accent color (e.g., hover states) */
    --gradient-start: #8A2BE2; /* Start color for purple-pink gradients */
    --gradient-end: #ff2197;   /* End color for purple-pink gradients */
    --purple-text: #9f3ff8; /* Specific purple for "My Journey" title */
    --blue-text: #00BFFF; /* DeepSkyBlue for "Current Status" title */

    /* Skill Icon Background Colors (matched to new screenshot) */
    --skill-blue-bg: #2196F3; /* Programming Languages - Blue */
    --skill-green-bg: #4CAF50; /* Frameworks & Libraries - Green */
    --skill-orange-bg: #FF9800; /* AI & ML - Orange */
    --skill-red-pink-bg: #c31d11; /* Soft Skills - Red/Pink */

    /* Darker color for footer background */
    --darker-footer-bg: #081525; /* A slightly darker navy/black for the footer */
}

/* Light Theme Variables */
[data-theme="light"] {
    --page-bg: #F8FAFC; /* Light gray background */
    --dark-navy: #FFFFFF; /* White background for sections */
    --light-navy: #F1F5F9; /* Light gray for cards */
    --light-slate: #1E293B; /* Dark text for readability */
    --slate: #475569; /* Medium gray text */
    --green-accent: #059669; /* Darker green for better contrast */
    --gradient-start: #7C3AED; /* Adjusted purple for light theme */
    --gradient-end: #E11D48; /* Adjusted pink for light theme */
    --purple-text: #7C3AED; /* Purple for "My Journey" title */
    --blue-text: #0284C7; /* Blue for "Current Status" title */

    /* Skill Icon Background Colors for light theme */
    --skill-blue-bg: #3B82F6; /* Programming Languages - Blue */
    --skill-green-bg: #10B981; /* Frameworks & Libraries - Green */
    --skill-orange-bg: #F59E0B; /* AI & ML - Orange */
    --skill-red-pink-bg: #EF4444; /* Soft Skills - Red */

    /* Light footer background */
    --darker-footer-bg: #E2E8F0; /* Light gray for footer */
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--page-bg); /* Use the new lighter base background */
    color: var(--light-slate);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from radial gradients */
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* --- Radial Gradient Background Effect (fixed to body) --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark theme gradients */
    background: radial-gradient(circle at top left, rgba(155, 60, 243, 0.666) 0%, transparent 40%),
                radial-gradient(circle at bottom right, rgba(246, 36, 148, 0.879) 0%, transparent 40%);
    z-index: -1; /* Puts it behind content */
    pointer-events: none; /* Allows clicks to pass through */
    transition: background 0.3s ease;
}

/* Light theme background gradients */
[data-theme="light"] body::before {
    background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.1) 0%, transparent 40%),
                radial-gradient(circle at bottom right, rgba(225, 29, 72, 0.1) 0%, transparent 40%);
}


/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-navy);
}

::-webkit-scrollbar-thumb {
    background: var(--light-navy);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate);
}

/* --- Header / Navbar --- */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(10, 25, 47, 0.9); /* Dark navy with transparency */
    backdrop-filter: blur(8px); /* Frosted glass effect */
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Light theme header */
[data-theme="light"] .header {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px; /* Final reduced header height */
}

/* Logo styling */
.logo {
    font-size: 1.1rem; /* Base font size for logo */
    font-weight: 800; /* Increased logo boldness as requested */
}
.logo a {
    color: inherit; /* Inherit color, then apply gradient to span */
}
.gradient-text-logo {
    background-image: linear-gradient(to right, #76ffdf, #9a3bf3, #fe3fa5); /* Gradient colors from screenshot */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
    transition: all 0.3s ease; /* Smooth transition for hover */
}
.logo a:hover .gradient-text-logo {
    transform: translateY(-2px); /* Slight hover effect */
}


.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px; /* Add space between nav items and theme toggle */
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--green-accent);
    border-radius: 50px;
    width: 50px;
    height: 28px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--green-accent);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

[data-theme="light"] .theme-toggle::before {
    transform: translateX(20px);
}

.theme-toggle .theme-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--light-slate);
    transition: opacity 0.3s ease;
}

.theme-toggle .sun-icon {
    right: 6px;
    opacity: 0;
}

.theme-toggle .moon-icon {
    left: 6px;
    opacity: 1;
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
}

[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-link {
    font-size: 0.95rem; /* Reduced font size for nav links as requested */
    font-weight: 500;
    color: var(--light-slate); /* Default color for nav links */
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Active Nav Link Styling */
.nav-link.active {
    color: var(--green-accent); /* Highlight active link with green */
    font-weight: 600; /* Make it a bit bolder when active */
}

.nav-link:hover {
    color: var(--green-accent);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 2rem;
    cursor: pointer;
    color: var(--light-slate);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--dark-navy), var(--light-navy));
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out, background 0.3s ease;
}

/* Light theme mobile menu */
[data-theme="light"] .mobile-nav-menu {
    background: linear-gradient(to bottom, var(--dark-navy), var(--light-navy));
}

.mobile-nav-menu.active {
    transform: translateX(0); /* Slide in */
}

.mobile-nav-menu .close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--light-slate);
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin-bottom: 25px;
}

.mobile-nav-link {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--light-slate);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--green-accent);
}


/* --- Common Section Styles (Applied to About, Skills, Projects, Contact) --- */
.common-section {
    background-color: var(--dark-navy); /* Distinct darker background for sections */
    padding: 120px 0 80px; /* Increased padding for visual separation */
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Stack title and content vertically */
    align-items: center; /* Center content horizontally */
    justify-content: center;
    transition: background-color 0.3s ease;
}

.section-title {
    font-size: 2.5rem; /* Slightly reduced font size for section titles */
    font-weight: 700;
    color: var(--light-slate);
    margin-bottom: 60px; /* Increased margin below title for spacing */
    display: inline-block;
    padding-bottom: 15px; /* Space for the custom underline */
    border-bottom: none; /* Remove default border */
    position: relative; /* For the ::after pseudo-element */
    text-align: center; /* For small screens */
    width: 100%; /* For small screens */
}
/* Custom gradient underline for ALL section titles */
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px; /* Width of the underline */
    height: 4px; /* Thickness of the underline */
    background-image: linear-gradient(to right, #64FFDA, #8A2BE2, #FF1493); /* Gradient colors */
    border-radius: 2px;
}


/* --- Hero Section --- */
.hero-section {
    background-color: transparent; /* Changed to transparent to reveal global background */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 80px; /* Account for header */
    position: relative;
    text-align: left; /* Default text alignment */
}

.hero-content {
    display: flex;
    flex-direction: row; /* Text on left, image on right */
    align-items: center; /* Vertically align items in the middle */
    justify-content: space-between; /* Space out text and image */
    gap: 80px; /* Space between the text and image columns */
    max-width: 1200px; /* Constrain content width */
    width: 100%;
}

.hero-text {
    flex: 1; /* Allow text to grow */
    max-width: 650px; /* Limit width of text column */
}

/* Adjusted font-size for Ayushi Kumari to fit on one line */
.hero-text h2 {
    font-size: 3.5rem; /* Slightly smaller to fit on one line */
    font-weight: 700;
    margin-bottom: 15px;
    white-space: nowrap; /* Keep it on one line if possible */
}

/* For the new list of roles - FONT SIZE REDUCED */
.hero-roles {
    font-size: 1.5rem; /* REDUCED FONT SIZE */
    font-weight: 500;
    color: var(--green-accent); /* Make these green */
    min-height: 3.5rem; /* Ensure consistent height for typing multiple lines */
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--slate);
    max-width: 600px;
    margin-bottom: 35px;
}

.gradient-text {
    background-image: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
}

/* Typing Effect for roles */
.typing-text {
    display: inline-block;
    overflow: hidden; /* Ensures the text is hidden until typed */
    white-space: nowrap;
}

.cursor {
    display: inline-block;
    animation: blink 0.75s step-end infinite;
    border-right: 4px solid rgba(255, 255, 255, 0.75); /* Blinking cursor */
}

@keyframes blink {
    from, to { border-right-color: transparent; }
    50% { border-right-color: rgba(255, 255, 255, 0.75); }
}

.hero-buttons {
    display: flex;
    flex-direction: row; /* Buttons side-by-side */
    gap: 20px;
    margin-bottom: 0; /* No margin below buttons for this layout */
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px; /* Ensure buttons have consistent width */
}

.btn i {
    margin-left: 10px;
}

.btn-primary {
    background-image: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--green-accent);
    color: var(--dark-navy);
    transform: translateY(-3px);
}

.hero-image {
    width: 350px; /* Larger image on right */
    height: 350px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /* Custom border gradient effect */
    padding: 4px; /* Padding for the gradient border */
    background-image: linear-gradient(var(--dark-navy), var(--dark-navy)),
                      linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    background-origin: border-box;
    background-clip: content-box, border-box;
    mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
}

/* Scroll to explore arrow styling */
.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.1rem;
    color: var(--slate);
    animation: bounce 1s infinite alternate;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 900; /* Ensure it's above other content but below header */
}

.scroll-down-arrow i {
    font-size: 1.8rem;
    margin-top: 10px;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}


/* --- About Section --- */
.about-section .container {
    display: flex;
    flex-direction: column; /* Stack title and grid */
    align-items: center; /* Center title horizontally */
}

.about-content-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr; /* Adjusted right column width slightly */
    gap: 30px;
    margin-top: 30px;
    width: 100%;
    max-width: 1000px; /* Maintain overall max-width */
}

.about-card {
    background-color: var(--light-navy);
    padding: 25px; /* Reduced padding for overall smaller feel */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: left; /* Ensure left alignment inside cards */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Light theme shadow adjustment */
[data-theme="light"] .about-card {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.about-card .card-title {
    font-size: 1.6rem; /* Slightly reduced font size */
    font-weight: 600;
    margin-bottom: 20px; /* Reduced margin */
    color: var(--light-slate); /* Default to light slate */
    transition: color 0.3s ease;
}

/* Specific colors for card titles from screenshot */
.card-title.purple-text {
    color: var(--purple-text); /* My Journey title */
}
.card-title.blue-text {
    color: var(--blue-text); /* Current Status title */
}


.about-card.journey-card p {
    font-size: 1rem; /* Slightly reduced font size */
    color: var(--slate);
    margin-bottom: 10px; /* Reduced margin */
    line-height: 1.7;
    transition: color 0.3s ease;
}

.about-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Reduced space between status and languages cards */
}

.status-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem; /* Slightly reduced font size */
    color: var(--light-slate);
    transition: color 0.3s ease;
}

/* Icon for Current Status with Gradient Background */
.status-icon {
    font-size: 1.6rem; /* Slightly reduced icon size */
    color: white; /* Icon color should be white on gradient background */
    background-image: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    padding: 10px; /* Reduced padding */
    border-radius: 8px; /* Slightly rounded corners for the icon container */
    display: flex; /* To center the icon inside its background */
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent it from shrinking */
}

/* Languages Card - Same as other cards */
.about-card.languages-card {
    background-color: var(--light-navy); /* Same background as other cards */
    padding: 25px; /* Keep padding consistent with other cards */
    color: var(--light-slate); /* Ensure text is readable */
}

.languages-card .card-title {
    color: var(--light-slate); /* Title color consistent with other cards */
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem; /* Slightly reduced font size */
    color: var(--light-slate);
    margin-bottom: 10px; /* Reduced space between language entries */
    transition: color 0.3s ease;
}
.language-item:last-child {
    margin-bottom: 0;
}

.language-tag {
    background-color: var(--dark-navy); /* Use dark background for tags like skill tags */
    color: var(--light-slate); /* Light text for tags */
    padding: 5px 12px; /* Reduced padding */
    border-radius: 18px; /* Adjusted border-radius */
    font-size: 0.8rem; /* Slightly reduced font size */
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light theme language tag override */
[data-theme="light"] .language-tag {
    background-color: var(--light-navy);
    color: var(--slate);
}


/* --- Skills Section --- */
.skills-section .container {
    background: var(--light-navy); /* dark theme */
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(60,60,120,0.08);
    padding: 2.5rem 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    transition: background 0.4s;
}

[data-theme="light"] .skills-section .container {
    background: #f8f9fa; /* light theme */
    box-shadow: 0 4px 24px rgba(60,60,120,0.06);
}

.skills-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--light-slate);
    letter-spacing: 1px;
}

[data-theme="light"] .skills-section .section-title {
    color: #222;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skills-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: var(--light-navy);
    border-radius: 14px;
    padding: 1.7rem 1.2rem 1.2rem 1.2rem;
    box-shadow: 0 2px 12px rgba(60,60,120,0.08);
    transition: background 0.4s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

[data-theme="light"] .skill-category {
    background: #fff;
    box-shadow: 0 2px 12px rgba(60,60,120,0.06);
}

.skill-category h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--light-slate);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="light"] .skill-category h3 {
    color: #333;
}

.skill-desc {
    font-size: 0.98rem;
    color: #bfc8e2;
    margin-bottom: 1rem;
    font-weight: 400;
}

[data-theme="light"] .skill-desc {
    color: #666;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(108,99,255,0.08);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: #bfc8e2;
    font-weight: 500;
    box-shadow: 0 1px 6px rgba(60,60,120,0.07);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    position: relative;
}

.skill-item i {
    font-size: 1.3rem;
    color: #6c63ff;
    transition: color 0.2s;
}

.skill-item:hover {
    background: linear-gradient(90deg, #6c63ff 60%, #48c6ef 100%);
    color: #fff;
    transform: scale(1.07);
}

.skill-item:hover i {
    color: #fff;
}

[data-theme="light"] .skill-item {
    background: #f3f3f7;
    color: #444;
}

[data-theme="light"] .skill-item i {
    color: #6c63ff;
}

@media (max-width: 900px) {
    .skills-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 50px auto 0;
}

.project-card {
    background-color: var(--light-navy);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Light theme project card */
[data-theme="light"] .project-card {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .project-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* UPDATED: Styles for the video container */
.project-video-wrapper {
    width: 100%;
    height: 200px;
    background-color: #334; /* Darker gray fallback */
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden; /* Ensures video corners are rounded */
}

.project-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the video fill the frame without stretching */
}

.project-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--light-slate);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.project-card p {
    font-size: 1rem;
    color: var(--slate);
    line-height: 1.7;
    flex-grow: 1; /* This makes the description take available space and pushes links to the bottom */
    transition: color 0.3s ease;
}

/* NEW: Styles for project links */
.project-links {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end; /* Aligns the icon to the right */
}

.project-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--dark-navy);
    color: var(--slate);
    border-radius: 8px;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.project-link-icon:hover {
    transform: translateY(-3px);
    color: var(--dark-navy);
    background-color: var(--green-accent);
}

/* --- Contact Section --- */
.contact-intro {
    font-size: 1.15rem;
    color: var(--slate);
    margin-bottom: 50px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    transition: color 0.3s ease;
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.contact-form {
    background-color: var(--light-navy);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Light theme form */
[data-theme="light"] .contact-form {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

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

.form-group label {
    display: block;
    color: var(--green-accent);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--dark-navy);
    border-radius: 8px;
    background-color: var(--navy);
    color: var(--light-slate);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Light theme form inputs */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background-color: var(--white);
    border-color: var(--light-gray);
    color: var(--dark-navy);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-accent);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

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

.submit-btn {
    background: linear-gradient(135deg, var(--green-accent), #45d1a1);
    color: #0a192f; /* Dark navy that provides good contrast */
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 255, 218, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Form Messages */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.form-message.success {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--green-accent);
    border: 1px solid var(--green-accent);
}

.form-message.error {
    background-color: rgba(255, 100, 100, 0.1);
    color: #ff6464;
    border: 1px solid #ff6464;
}

/* Light theme form messages */
[data-theme="light"] .form-message.success {
    background-color: rgba(100, 255, 218, 0.1);
}

[data-theme="light"] .form-message.error {
    background-color: rgba(255, 100, 100, 0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-divider {
    text-align: center;
    margin: 50px 0 40px 0;
    position: relative;
}

.section-divider span {
    background-color: var(--navy);
    color: var(--slate);
    padding: 0 20px;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Light theme divider */
[data-theme="light"] .section-divider span {
    background-color: var(--white);
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--light-navy);
    z-index: 0;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 50px;
}

.contact-link-card {
    background-color: var(--light-navy);
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--green-accent);
    font-size: 1.1rem;
    font-weight: 500;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    width: 180px; /* Fixed width for consistency */
}

/* Light theme contact card */
[data-theme="light"] .contact-link-card {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.contact-link-card i {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.contact-link-card span {
    color: var(--light-slate);
}

.contact-link-card:hover {
    transform: translateY(-5px);
    background-color: var(--dark-navy);
    color: var(--green-accent);
}
.contact-link-card:hover span {
    color: var(--green-accent);
}

/* --- Footer --- */
.footer {
    background-color: var(--darker-footer-bg); /* Use the darker variable */
    backdrop-filter: blur(8px); /* Keep backdrop filter for consistency */
    border-top: 1px solid var(--light-navy); /* Main border for top section */
    padding: 40px 20px;
    font-size: 0.95rem;
    color: var(--slate);
    text-align: center;
    padding-bottom: 80px; /* Add extra padding to clear the fixed bottom bar */
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Light theme footer border */
[data-theme="light"] .footer {
    border-top: 1px solid #E2E8F0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.footer-top-text {
    max-width: 800px;
    margin-bottom: 20px; /* Space between top text and the separating line */
}

.footer-top-text p {
    margin-bottom: 10px;
    color: var(--light-slate);
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.heart-emoji, .robot-emoji, .coffee-emoji {
    font-size: 1.1rem;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between; /* Pushes items to ends */
    align-items: center; /* Vertically centers them within the row */
    width: 100%;
    padding-top: 25px; /* Space from the separating line */
    border-top: 1px solid var(--light-navy); /* The separating line for footer bottom */
    margin-top: 25px; /* Space between middle text and the line */
    transition: border-color 0.3s ease;
}

/* Light theme footer bottom border */
[data-theme="light"] .footer-bottom-row {
    border-top: 1px solid #E2E8F0;
}

.footer-bottom-row p {
    color: var(--light-slate);
    margin-bottom: 0; /* Remove default paragraph margin */
    transition: color 0.3s ease;
}

.github-link {
    display: flex;
    align-items: center;
    color: var(--light-slate);
    transition: color 0.3s ease;
}

.github-link i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.github-link:hover {
    color: var(--green-accent);
}


/* --- Fixed Bottom Social Links (globally visible) --- */
.fixed-bottom-social-links {
    position: fixed; /* Changed to fixed */
    bottom: 30px; /* Position at the bottom of the viewport */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 25px; /* Space between icons */
    background-color: var(--light-navy); /* Dark background for the bar */
    border-radius: 999px; /* Pill shape */
    padding: 15px 35px; /* Adjust padding for pill shape */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 900; /* Ensure it's above other content but below header */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Light theme fixed social links */
[data-theme="light"] .fixed-bottom-social-links {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.fixed-bottom-social-links a {
    font-size: 1.8rem; /* Slightly larger icons as in screenshot */
    color: var(--light-slate); /* White/light gray icons */
    transition: color 0.3s ease, transform 0.3s ease;
}

.fixed-bottom-social-links a:hover {
    color: var(--green-accent); /* Hover effect */
    transform: translateY(-3px);
}


/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .skills-grid {
        max-width: 100%; /* Allow grid to take full container width */
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none; /* Hide desktop nav */
    }
    .menu-toggle {
        display: block; /* Show mobile toggle */
    }
    /* Hero section adjustments for tablets */
    .hero-text h2 {
        font-size: 3rem; /* Further reduce for tablets */
    }
    .hero-roles {
        font-size: 1.6rem;
    }
    .hero-buttons {
        flex-direction: column; /* Stack buttons on smaller screens */
        align-items: center;
    }
    .hero-image {
        width: 280px;
        height: 280px;
    }
    .scroll-down-arrow {
        bottom: 15px; /* Adjust position */
    }

    .common-section {
        padding: 90px 0 50px;
    }
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    /* About section for tablets */
    .about-content-grid {
        grid-template-columns: 1fr; /* Stack columns on tablets */
    }
    .about-right-column {
        flex-direction: row; /* Make status and languages side-by-side */
        flex-wrap: wrap; /* Allow wrapping if content is too wide */
        justify-content: center;
        gap: 20px; /* Adjust gap when side-by-side */
    }
    .status-card, .languages-card {
        flex: 1 1 45%; /* Allow cards to grow but roughly 2 per row */
        max-width: 380px; /* Constrain max width for better appearance */
        padding: 20px; /* Adjusted padding for tablet */
    }

    /* Skills section for tablets - switch to 2 columns */
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 2 columns on tablets */
        max-width: 700px; /* Adjust max width for 2-column layout */
    }
    .skill-card {
        height: 200px; /* Slightly reduced height on tablets */
        padding: 20px; /* Reduced padding */
    }
    .skill-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    .skill-icon {
        font-size: 2rem;
    }
    .skill-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .navbar-content {
        height: 65px; /* Keep header height consistent on mobile */
    }
    
    /* Show menu toggle and theme toggle side by side on mobile */
    .nav-menu {
        gap: 15px;
    }
    
    .menu-toggle {
        display: block; /* Show hamburger menu on mobile */
    }
    
    .nav-links {
        display: none; /* Hide desktop nav on mobile */
    }
    
    /* Make theme toggle slightly smaller on mobile */
    .theme-toggle {
        width: 45px;
        height: 25px;
    }
    
    .theme-toggle::before {
        width: 17px;
        height: 17px;
    }
    
    [data-theme="light"] .theme-toggle::before {
        transform: translateX(18px);
    }
    
    /* Logo remains small on mobile as per requirement */
    .hero-text h2 {
        font-size: 2.5rem; /* Further reduce for mobile */
        white-space: normal; /* Allow Ayushi Kumari to wrap on very small screens */
    }
    .hero-roles {
        font-size: 1.4rem;
        min-height: 3rem; /* Adjusted for smaller font */
    }
    .hero-description {
        font-size: 1rem;
    }
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    .hero-image {
        width: 200px;
        height: 200px;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    /* About section for mobile */
    .about-right-column {
        flex-direction: column; /* Stack status and languages again on smaller mobiles */
    }
    .status-card, .languages-card {
        width: 100%; /* Take full width when stacked */
        margin: 0; /* Remove side margin */
    }
    /* Skills section for mobile - single column */
    .skills-grid {
        grid-template-columns: 1fr; /* Single column layout on mobiles */
        max-width: 380px; /* Constrain width */
    }
    .skill-card {
        height: auto; /* Allow height to auto-adjust for content */
        min-height: 180px; /* Keep a minimum height */
    }
    .skill-card h3 {
        font-size: 1.3rem; /* Slightly larger on mobile single column */
        white-space: normal; /* Allow skill titles to wrap on small mobile */
    }
    .project-card h3 {
        font-size: 1.6rem;
    }
    .project-card p {
        font-size: 0.9rem;
    }
    .footer-bottom-row {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items when stacked */
        gap: 10px; /* Space between stacked items */
        padding-top: 20px;
        margin-top: 20px;
    }
    .fixed-bottom-social-links {
        padding: 10px 15px; /* Even smaller padding on small mobile */
        gap: 10px; /* Smaller gap */
        font-size: 1.4rem; /* Smaller icons */
    }
    /* Re-enable scroll arrow for smaller mobile as bottom bar might get too small */
    .scroll-down-arrow {
        display: flex; /* Show scroll arrow on small screens */
    }
    
    /* Contact form responsive */
    .contact-form {
        padding: 30px 20px;
    }
    
    .contact-form-container {
        margin: 0 auto 40px auto;
    }
    
    .submit-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .logo {
        font-size: 1.0rem;
    }
    .mobile-nav-link {
        font-size: 2rem;
    }
    .close-btn {
        font-size: 2rem;
    }
    .hero-text h2 {
        font-size: 2.2rem;
    }
    .hero-roles {
        font-size: 1.1rem;
        min-height: 2.2rem;
    }
    .hero-buttons {
        width: 100%;
    }
    .btn {
        width: 90%;
    }
    .hero-image {
        width: 180px;
        height: 180px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .skills-grid, .projects-grid, .contact-links {
        grid-template-columns: 1fr;
    }
    .skill-card, .project-card, .contact-link-card, .about-card {
        max-width: 320px;
        margin: 0 auto;
        width: 100%;
    }
    .contact-link-card {
        padding: 20px;
    }
    
    /* Contact form for very small screens */
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .section-divider {
        margin: 40px 0 30px 0;
    }
    
    .footer-content {
        gap: 15px;
    }
}

/* Fade-in animation for hero section */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out forwards;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bounce animation for scroll arrow */
.bounce {
    animation: bounceArrow 1.5s infinite;
}
@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}

/* Social icon hover effects */
.fixed-bottom-social-links .social-icon {
    transition: transform 0.2s, color 0.2s;
    color: #555;
    margin: 0 8px;
    font-size: 1.7rem;
}
.fixed-bottom-social-links .social-icon:hover {
    color: #6c63ff;
    transform: scale(1.2) rotate(-8deg);
}

/* Theme transition */
body, .header, .footer, .common-section {
    transition: background 0.5s, color 0.5s;
}

/* Optional: theme-toggle button animation */
.theme-toggle {
    transition: background 0.3s, box-shadow 0.3s;
}
.theme-toggle:active {
    box-shadow: 0 0 8px #6c63ff44;
}