/* --- Variables --- */
:root {
    --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: #FF1493;   /* End color for purple-pink gradients */
    --purple-text: #8A2BE2; /* 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: #F44336; /* Soft Skills - Red/Pink */

    /* Darker color for footer background */
    --darker-footer-bg: #081525; /* A slightly darker navy/black for the 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 */
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* Ensure padding always exists, mobile-first */
    padding: 0 15px;
}

/* --- Radial Gradient Background Effect (fixed to body) --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Increased alpha values for more visible gradients */
    background: radial-gradient(circle at top left, rgba(138, 43, 226, 0.4) 0%, transparent 40%),
                radial-gradient(circle at bottom right, rgba(255, 20, 147, 0.4) 0%, transparent 40%);
    z-index: -1; /* Puts it behind content */
    pointer-events: none; /* Allows clicks to pass through */
}

/* --- 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);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px; /* Final reduced header height */
    padding: 0 15px; /* Padding for mobile and desktop */
}

/* 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, #64FFDA, #8A2BE2, #FF1493); /* 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;
}

.nav-links {
    list-style: none;
    display: flex;
    /* Default hidden on mobile, shown on desktop by media query */
    display: none;
}

.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 {
    /* Hidden on desktop, shown by media query */
    display: block; /* Default to block for mobile first */
    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;
}

.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;
    padding: 0;
}

.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;
    display: block; /* Ensures the entire link area is clickable */
    padding: 10px 0; /* Makes touch target larger */
}

.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;
    padding-top: 80px; /* Account for fixed header */
    padding-bottom: 80px; /* Consistent bottom padding */
}

.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; /* Center align on smaller screens */
    width: 100%; /* Take full width on smaller screens */
    padding-left: 15px; /* Ensure horizontal padding for title */
    padding-right: 15px;
}
/* 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: center; /* Default text alignment for mobile */
    padding-left: 15px;
    padding-right: 15px;
}

.hero-content {
    display: flex;
    flex-direction: column; /* Default to column for mobile-first */
    align-items: center; /* Center items for mobile-first */
    justify-content: center; /* Center content */
    gap: 40px; /* Default gap for stacked content */
    max-width: 1200px; /* Constrain content width */
    width: 100%;
}

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

.hero-text h2 {
    font-size: 2.5rem; /* Smaller for mobile-first */
    font-weight: 700;
    margin-bottom: 15px;
    white-space: normal; /* Allow name to wrap by default */
}

.hero-roles {
    font-size: 1.4rem; /* Smaller for mobile-first */
    font-weight: 500;
    color: var(--green-accent); /* Make these green */
    min-height: 2.5rem; /* Ensure consistent height for typing multiple lines */
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1rem; /* Smaller for mobile-first */
    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: column; /* Stack buttons vertically by default */
    gap: 20px;
    margin-bottom: 0;
    width: 100%; /* Ensure it takes full width to center buttons */
    align-items: center; /* Center buttons when stacked */
}

.btn {
    padding: 12px 24px; /* Smaller padding for mobile-first */
    border-radius: 8px;
    font-size: 1rem; /* Smaller font size for mobile-first */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%; /* Take up most of the width on mobile */
    max-width: 280px; /* Prevent buttons from becoming too wide on slightly larger mobiles */
}

.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: 200px; /* Smaller image for mobile-first */
    height: 200px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    order: -1; /* Place image above text by default on mobile */
}

.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: 1fr; /* Default to single column for mobile-first */
    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 */
    width: 100%; /* Take full width within its grid column */
    max-width: 450px; /* Prevent stretching too wide on single column */
    margin: 0 auto; /* Center individual cards */
}

.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 */
}

/* 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;
}

.about-right-column {
    display: flex;
    flex-direction: column; /* Default to stack for mobile-first */
    gap: 20px; /* Reduced space between status and languages cards */
    width: 100%; /* Take full width */
    align-items: center; /* Center items within this column */
}

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

/* 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 with Gradient Background */
.about-card.languages-card {
    background-image: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    padding: 25px; /* Keep padding consistent with other cards */
    color: var(--light-slate); /* Ensure text is readable on gradient background */
    max-width: 450px; /* Ensure these also don't stretch too wide */
}

.languages-card .card-title {
    color: var(--light-slate); /* Title is white on gradient background */
}

.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 */
}
.language-item:last-child {
    margin-bottom: 0;
}

.language-tag {
    background-color: rgba(10, 25, 47, 0.5); /* Darker, slightly transparent background for tags on gradient */
    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;
}


/* --- Skills Section --- */
.skills-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; /* Center the title */
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column for mobile-first */
    gap: 30px;
    max-width: 1000px; /* Max width for the grid */
    margin: 50px auto 0;
    width: 100%; /* Ensure grid takes full width */
}

.skill-card {
    background-color: var(--light-navy);
    padding: 25px; /* Keep padding consistent */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align contents to the left within the card */
    text-align: left; /* Ensure text is left-aligned */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto; /* Auto height for mobile-first flexibility */
    min-height: 180px; /* Minimum height for consistency */
    justify-content: space-between; /* Push tags to bottom */
    width: 100%; /* Take full width within its grid column */
    max-width: 450px; /* Constrain individual card width */
    margin: 0 auto; /* Center individual cards */
}

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

.skill-header {
    display: flex; /* Makes icon and h3 inline */
    align-items: center; /* Vertically centers them */
    margin-bottom: 20px; /* Space below the header */
}

.skill-icon-wrapper {
    width: 50px; /* Size of the icon container */
    height: 50px;
    border-radius: 8px; /* Slightly reduced border-radius */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px; /* Space between icon and title */
    flex-shrink: 0; /* Prevent it from shrinking */
}

.skill-icon {
    font-size: 2.2rem; /* Size of the Font Awesome icon inside */
    color: white; /* ICON COLOR IS WHITE */
}

/* Specific icon background colors (no gradients needed based on last screenshot) */
.skill-blue-gradient { background-color: var(--skill-blue-bg); }
.skill-green-solid { background-color: var(--skill-green-bg); }
.skill-orange-red-gradient { background-color: var(--skill-orange-bg); }
.skill-red-pink-gradient { background-color: var(--skill-red-pink-bg); }

.skill-card h3 {
    font-size: 1.3rem; /* Slightly larger on mobile single column */
    font-weight: 600;
    color: var(--light-slate);
    margin-bottom: 0; /* No margin as it's part of flex container */
    white-space: normal; /* Allow skill titles to wrap by default on mobile */
    overflow: hidden; /* Hide overflow if it still breaks */
    text-overflow: ellipsis; /* Add ellipsis if text is too long */
    flex-grow: 1; /* Allow title to take up remaining space */
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Reduced gap between tags */
    justify-content: flex-start; /* Align tags to the left */
}

.skill-tags span {
    background-color: var(--dark-navy);
    color: var(--slate);
    padding: 6px 14px; /* Reduced padding */
    border-radius: 20px; /* Reduced border-radius */
    font-size: 0.85rem; /* Reduced font size */
    font-weight: 500;
}


/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column for mobile-first */
    gap: 30px;
    max-width: 1000px;
    margin: 50px auto 0;
    width: 100%; /* Ensure grid takes full width */
}

.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;
    width: 100%; /* Take full width within its grid column */
    max-width: 450px; /* Constrain individual card width */
    margin: 0 auto; /* Center individual cards */
}

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

/* UPDATED: Styles for the video container (responsive aspect ratio) */
.project-video-wrapper {
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    background-color: #334;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.project-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card h3 {
    font-size: 1.6rem; /* Smaller for mobile-first */
    font-weight: 600;
    color: var(--light-slate);
    margin-bottom: 15px;
}

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

/* 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);
}

/* Certifications Section */
.cert-intro {
  font-size: 1.1rem;
  color: var(--slate);
  margin-bottom: 40px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cert-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.cert-card {
  background-color: var(--light-navy);
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  text-align: center;
  color: var(--light-slate);
  width: 100%;
  max-width: 280px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-card i {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: var(--gradient-start); /* Default icon color */
  transition: color 0.3s ease;
}

.cert-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--light-slate);
}

.cert-card p {
  font-size: 0.9rem;
  color: var(--slate);
}

.cert-card:hover {
  transform: translateY(-6px);
  background-color: var(--dark-navy);
}

.cert-card:hover h3,
.cert-card:hover p {
  color: var(--green-accent);
}

* Per-certification icon highlights */
.cert-icon.cert-oracle { color: #f80000; }   /* Oracle Red */
.cert-icon.cert-google { color: #4285f4; }   /* Google Blue */
.cert-icon.cert-cn     { color: #ff5722; }   /* Coding Ninjas Orange */
.cert-icon.cert-infosys{ color: #0066cc; }   /* Infosys Blue */
.cert-icon.cert-fcc    { color: #22c55e; }   /* freeCodeCamp Green */


/* --- 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;
    padding-left: 15px;
    padding-right: 15px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 50px;
    width: 100%; /* Allow contact links to use full width */
}

.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;
    width: 100%; /* Take full width on small screens */
    max-width: 250px; /* Keep card from becoming too wide on smaller screens */
    flex-shrink: 0;
}

.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 */
}

.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 */
    padding: 0 15px; /* Ensure padding on text too */
}

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

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

.footer-bottom-row {
    display: flex;
    flex-direction: column; /* Stack vertically by default */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 25px;
    border-top: 1px solid var(--light-navy);
    margin-top: 25px;
    gap: 10px; /* Gap when stacked */
}

.footer-bottom-row p {
    color: var(--light-slate);
    margin-bottom: 0;
}

.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;
    bottom: 15px; /* Adjust slightly higher for smaller screens */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 15px; /* Smaller gap for mobile-first */
    background-color: var(--light-navy);
    border-radius: 999px;
    padding: 10px 20px; /* Smaller padding for mobile-first */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 900;
}

.fixed-bottom-social-links a {
    font-size: 1.5rem; /* Smaller icons for mobile-first */
    color: var(--light-slate);
    transition: color 0.3s ease, transform 0.3s ease;
}

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


/* --- Responsive Design --- */

@media (min-width: 481px) { /* Small phones to larger phones */
    .hero-text h2 {
        font-size: 2.2rem;
    }
    .hero-roles {
        font-size: 1.1rem;
        min-height: 2.2rem;
    }
    .hero-buttons .btn {
        width: 90%;
        max-width: 300px;
    }
    .hero-image {
        width: 180px;
        height: 180px;
    }
    .skill-card, .project-card, .about-card {
        max-width: 380px; /* Allow these cards to grow a bit */
    }
    .contact-link-card {
        max-width: 180px; /* Allow them to align side by side */
    }
    .fixed-bottom-social-links {
        bottom: 20px;
        gap: 20px;
        padding: 12px 25px;
        font-size: 1.6rem;
    }
    .fixed-bottom-social-links a {
        font-size: 1.6rem;
    }
}

@media (min-width: 769px) { /* Tablets and larger */
    .container {
        padding: 0 20px; /* Restore desktop padding */
    }
    .navbar-content {
        padding: 0 20px; /* Restore desktop padding */
    }
    .nav-links {
        display: flex; /* Show desktop nav */
    }
    .menu-toggle {
        display: none; /* Hide mobile toggle */
    }

    .hero-section {
        text-align: left; /* Align text left on larger screens */
    }
    .hero-content {
        flex-direction: row; /* Side-by-side on larger screens */
        justify-content: space-between;
        align-items: center;
        gap: 80px;
    }
    .hero-image {
        order: unset; /* Revert image order */
        width: 280px;
        height: 280px;
        margin-bottom: 0;
    }
    .hero-text h2 {
        font-size: 3.5rem; /* Larger font size */
        white-space: nowrap; /* Keep on one line if possible */
    }
    .hero-roles {
        font-size: 1.8rem;
        min-height: 3.5rem;
    }
    .hero-description {
        font-size: 1.15rem;
    }
    .hero-buttons {
        flex-direction: row; /* Buttons side-by-side */
        width: auto; /* Allow width to shrink to content */
        align-items: flex-start; /* Align buttons to the left */
    }
    .btn {
        padding: 14px 28px;
        font-size: 1.1rem;
        width: auto; /* Let buttons size based on content and padding */
        min-width: 180px; /* Ensure consistent width */
        max-width: none; /* Remove max-width constraint */
    }

    .common-section {
        padding: 120px 0 80px; /* Restore desktop padding */
    }
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 60px;
        padding-left: 0; /* Remove horizontal padding for title on desktop */
        padding-right: 0;
    }

    .about-content-grid {
        grid-template-columns: 2fr 1.2fr; /* Restore desktop 2-column layout */
    }
    .about-right-column {
        flex-direction: column; /* Stack status and languages again on desktop */
        align-items: flex-start; /* Align to start */
    }
    .about-card {
        max-width: none; /* Remove max-width constraint */
        margin: 0; /* Remove centering margin */
    }
    .status-card, .languages-card {
        flex: unset; /* Remove flex sizing */
        max-width: none; /* Remove max-width */
    }


    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); /* Desktop 2-column layout for skills */
    }
    .skill-card {
        height: 220px; /* Fixed height for desktop */
        padding: 25px;
        max-width: none; /* Remove max-width constraint */
        margin: 0; /* Remove centering margin */
    }
    .skill-card h3 {
        font-size: 1.25rem;
        white-space: nowrap; /* Keep on one line */
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Desktop multi-column for projects */
    }
    .project-card {
        padding: 30px;
        max-width: none; /* Remove max-width constraint */
        margin: 0; /* Remove centering margin */
    }
    .project-card h3 {
        font-size: 1.8rem;
    }
    .project-card p {
        font-size: 1rem;
    }

    .contact-links {
        justify-content: center; /* Keep centered */
    }
    .contact-link-card {
        width: 180px; /* Fixed width for consistency */
        max-width: none;
    }

    .footer-bottom-row {
        flex-direction: row; /* Side-by-side on desktop */
        justify-content: space-between;
        gap: 0;
    }

    .fixed-bottom-social-links {
        bottom: 30px;
        gap: 25px;
        padding: 15px 35px;
    }

    .fixed-bottom-social-links a {
        font-size: 1.8rem;
    }
}

@media (min-width: 993px) { /* Larger desktops */
    .hero-image {
        width: 350px;
        height: 350px;
    }
}
