/* --- Enhanced CSS Variables --- */
:root {
    --primary-color: #0A192F;
    --secondary-color: #64FFDA;
    --accent-color: #F76C6C;
    --navy-light: #112240;
    --slate: #8892B0;
    --light-slate: #A8B2D1;
    --lightest-slate: #CCD6F6;
    --white: #E6F1FF;
    --bg-dark: #020C1B;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-elevation-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-elevation-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --shadow-elevation-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --shadow-glow: 0 0 20px rgba(100, 255, 218, 0.3);
    --transition-all: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    --font-mono: 'Space Mono', monospace;
    --font-sans: 'Inter', sans-serif;
}

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

::selection {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--slate);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- Animated Background --- */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.glow-orb:nth-child(1) {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(100, 255, 218, 0.8) 0%, transparent 70%);
    top: -300px;
    left: -300px;
    animation-duration: 25s;
    animation-delay: 0s;
}

.glow-orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at center, rgba(247, 108, 108, 0.6) 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
    animation-duration: 30s;
    animation-delay: -5s;
    animation-direction: reverse;
}

.glow-orb:nth-child(3) {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, rgba(100, 255, 218, 0.5) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 35s;
    animation-delay: -10s;
}

.glow-orb:nth-child(4) {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle at center, rgba(168, 178, 209, 0.5) 0%, transparent 70%);
    top: 20%;
    right: 10%;
    animation-duration: 28s;
    animation-delay: -15s;
    animation-direction: reverse;
}

.glow-orb:nth-child(5) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(100, 255, 218, 0.6) 0%, transparent 70%);
    bottom: 30%;
    left: 20%;
    animation-duration: 32s;
    animation-delay: -20s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    20% {
        transform: translate(50px, -30px) scale(1.1);
    }
    40% {
        transform: translate(-30px, 50px) scale(0.9);
    }
    60% {
        transform: translate(70px, 30px) scale(1.05);
    }
    80% {
        transform: translate(-50px, -50px) scale(0.95);
    }
}

/* Glow mesh effect */
.bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(100, 255, 218, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(247, 108, 108, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(168, 178, 209, 0.1) 0%, transparent 50%);
    filter: blur(100px);
    opacity: 0.6;
    animation: glow-pulse 10s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px; /* Reduced from 50px */
    width: 100%;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-all);
    padding: 20px 0;
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    font-family: var(--font-mono);
    position: relative;
    z-index: 10;
}

.logo:hover {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--lightest-slate);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

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

/* Resume Button */
.resume-btn {
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    padding: 10px 20px;
    color: var(--secondary-color) !important;
    background: transparent;
    transition: var(--transition-all);
}

.resume-btn:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Back Link */
.back-link {
    color: var(--light-slate);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition-all);
}

.back-link:hover {
    color: var(--secondary-color);
}

.inline-link {
    color: var(--secondary-color);
    text-decoration: none;
    position: relative;
}

.inline-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.inline-link:hover::after {
    width: 100%;
}

/* --- Mobile Menu --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--secondary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 0; /* Added top padding to move content away from navbar */
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 1000px;
}

.hero-greeting {
    color: var(--secondary-color);
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease-out;
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    color: var(--lightest-slate);
    line-height: 1.1;
    margin-bottom: 10px;
    animation: fadeInUp 0.5s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    color: var(--slate);
    line-height: 0.9;
    margin-bottom: 30px;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.hero-subtitle .highlight {
    color: var(--secondary-color);
    position: relative;
}

.hero-description {
    max-width: 600px;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 50px;
    color: var(--slate);
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.hero-cta {
    display: flex;
    gap: 25px;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

/* --- Report Specific Styles --- */
.report-header {
    margin-bottom: 40px;
}

.report-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    color: var(--lightest-slate);
    margin-bottom: 15px;
    line-height: 1.2;
}

.report-meta {
    color: var(--secondary-color);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.report-description {
    color: var(--slate);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition-bounce);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300%;
    height: 300%;
}

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

.btn-primary:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition-all);
    margin-top: 15px;
}

.download-btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition-all);
    margin-top: 10px;
}

.pdf-link:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(100, 255, 218, 0.2);
}

/* --- Section Styles --- */
section {
    padding: 80px 0; /* Reduced padding */
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px; /* Reduced from 60px */
    position: relative;
}

.section-number {
    color: var(--secondary-color);
    font-family: var(--font-mono);
    font-size: 1.25rem;
    margin-right: 15px;
}

.section-title {
    color: var(--lightest-slate);
    font-size: clamp(26px, 5vw, 32px);
    font-weight: 700;
    white-space: nowrap;
    margin-right: 25px;
}

.section-header::after {
    content: '';
    display: block;
    height: 1px;
    width: 300px;
    background-color: var(--navy-light);
    position: relative;
    top: 0;
}

/* --- Main Content for Reports --- */
main {
    padding: 100px 0 40px 0;
}

/* --- About Section --- */
#about {
    background: var(--bg-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: start;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-image {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    z-index: -1;
    transition: var(--transition-all);
}

.about-image:hover::before {
    top: 15px;
    left: 15px;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    filter: grayscale(100%);
    transition: var(--transition-all);
}

.about-image:hover img {
    filter: grayscale(0%);
}

.group-image {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-elevation-2);
    background-color: var(--primary-color); /* fallback bg */
}

.group-image img {
    width: 100%;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}

.group-image:hover img {
    transform: scale(1.1);
    filter: brightness(0.5);
}

.group-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95) 20%, transparent 100%);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.group-image:hover .group-image-caption {
    opacity: 1;
    transform: translateY(0);
}

.group-image-caption p {
    color: var(--lightest-slate);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.group-image::before {
    display: none;
}

.group-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.download-poster-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-all);
}

.download-poster-btn:hover {
    background: var(--light-slate);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.download-poster-btn i {
    margin-right: 8px;
}

.group-image:hover .group-image-caption {
    opacity: 1;
    transform: translateY(0);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
    margin-top: 20px;
    list-style: none;
}

.skills-list li {
    position: relative;
    padding-left: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--slate);
}

.skills-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* --- Experience Section --- */
#experience {
    background: var(--bg-dark);
}

.experience-tabs {
    display: flex;
    margin-bottom: 40px;
    border-left: 2px solid var(--navy-light);
}

.education-tabs {
    display: flex;
    margin-bottom: 40px;
    border-left: 2px solid var(--navy-light);
}

.tab-button {
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--slate);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: var(--transition-all);
    white-space: nowrap;
}

.tab-button:hover {
    background: var(--navy-light);
    color: var(--secondary-color);
}

.tab-button.active {
    color: var(--secondary-color);
}

.tab-button.active::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--secondary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

.job-header {
    margin-bottom: 25px;
}

.job-title {
    font-size: 1.4rem;
    color: var(--lightest-slate);
    font-weight: 600;
}

.job-company {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.4rem;
}

.job-date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--light-slate);
    margin-top: 5px;
}

.job-description {
    list-style: none;
    padding: 0;
}

.job-description li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.7;
}

.job-description li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* --- Skills Section for Reports --- */
.skills-section {
    background: var(--navy-light);
    border-radius: 6px;
    padding: 30px;
    margin-bottom: 40px;
    border-left: 3px solid var(--secondary-color);
}

.skills-section h3 {
    color: var(--lightest-slate);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.skill-category {
    background: rgba(100, 255, 218, 0.05);
    padding: 20px;
    border-radius: 4px;
    border-left: 2px solid var(--secondary-color);
}

.skill-category h4 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.skill-list {
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0;
    list-style: none;
}

.skill-list li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 15px;
    list-style: none;
}

.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* --- Projects Section --- */
#projects {
    background: var(--bg-dark);
    padding-bottom: 120px; /* Add more bottom padding to projects section */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; /* Reduced from 30px */
    margin: 0 auto;
}

.project-card {
    background: var(--navy-light);
    padding: 25px; /* Reduced from 30px */
    border-radius: 4px;
    position: relative;
    transition: var(--transition-bounce);
    cursor: pointer;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    height: auto;
    min-height: 320px; /* Set minimum height */
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-3);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.project-card:hover::before {
    transform: translateX(0);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(2, 12, 27, 0.9);
}

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

.project-icon {
    color: var(--secondary-color);
    font-size: 2.5rem;
}

.project-links {
    display: flex;
    gap: 15px;
}

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

.project-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.project-title {
    color: var(--lightest-slate);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.project-description {
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: 25px;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.project-tech-list li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--light-slate);
    background: rgba(100, 255, 218, 0.1);
    padding: 5px 10px;
    border-radius: 3px;
    transition: var(--transition-smooth);
    transform: translateY(0);
}

.project-tech-list li:hover {
    transform: translateY(-2px);
    background: rgba(100, 255, 218, 0.2);
}

/* --- Ammonia Project Specific Styles --- */
.project-subtitle {
    color: var(--secondary-color);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.overview-section {
    background: var(--navy-light);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 50px;
    border-left: 4px solid var(--secondary-color);
}

.overview-section h2 {
    color: var(--lightest-slate);
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.overview-card {
    background: rgba(100, 255, 218, 0.05);
    padding: 25px;
    border-radius: 6px;
    border-left: 3px solid var(--secondary-color);
}

.overview-card h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-family: var(--font-mono);
}

.overview-card p {
    color: var(--slate);
    line-height: 1.6;
}

/* --- Quarters Section --- */
.quarters-section {
    margin: 60px 0;
}

.quarters-section h2 {
    color: var(--lightest-slate);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.quarters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.quarter-card {
    background: var(--navy-light);
    border-radius: 8px;
    padding: 35px;
    transition: var(--transition-all);
    position: relative;
    overflow: hidden;
}

.quarter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

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

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

.quarter-title {
    color: var(--lightest-slate);
    font-size: 1.5rem;
    font-weight: 600;
}

.quarter-code {
    color: var(--secondary-color);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    background: rgba(100, 255, 218, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
}

.quarter-description {
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: 20px;
}

.key-achievements {
    margin-bottom: 25px;
}

.key-achievements h4 {
    color: var(--light-slate);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.achievement-list {
    list-style: none;
    padding: 0;
}

.achievement-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--slate);
    font-size: 0.95rem;
}

.achievement-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* --- Results Section --- */
.results-section {
    margin-bottom: 40px;
}

.results-section h3 {
    color: var(--lightest-slate);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.result-card {
    background: var(--navy-light);
    padding: 20px;
    border-radius: 4px;
    border-top: 2px solid var(--secondary-color);
    text-align: center;
}

.result-value {
    color: var(--secondary-color);
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-mono);
    display: block;
    margin-bottom: 8px;
}

.result-label {
    color: var(--light-slate);
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: 500;
    margin-bottom: 8px;
}

.result-desc {
    color: var(--slate);
    font-size: 0.9rem;
    margin-top: 8px;
    line-height: 1.4;
}

.impact-summary {
    background: rgba(100, 255, 218, 0.05);
    padding: 20px;
    border-radius: 4px;
    border-left: 3px solid var(--secondary-color);
    color: var(--slate);
    line-height: 1.6;
    text-align: center;
    margin-top: 30px;
}

.impact-summary h3 {
    color: var(--lightest-slate);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.impact-summary p {
    color: var(--slate);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* --- PDF Section --- */
.pdf-section {
    margin-top: 40px;
}

.pdf-header {
    margin-bottom: 20px;
}

.pdf-header h3 {
    color: var(--lightest-slate);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.pdf-header p {
    color: var(--slate);
    font-size: 0.95rem;
}

.pdf-container {
    background: var(--navy-light);
    border-radius: 6px;
    padding: 20px;
    border-top: 2px solid var(--secondary-color);
}

.pdf-embed {
    width: 100%;
    height: 700px;
    border: none;
    border-radius: 4px;
    background: #fff;
}

/* --- Contact Section --- */
#contact {
    background: var(--bg-dark);
    text-align: center;
    padding: 50px 0; /* Reduced padding */
    min-height: auto; /* Remove fixed height */
    position: relative;
    margin-top: -60px; /* Reduce gap from previous section */
}

.contact-overline {
    color: var(--secondary-color);
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 10px;
}

.contact-title {
    color: var(--lightest-slate);
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 5%;
    transform: translateX(-50%);
    width: 90%;
    height: 3px;
    background: linear-gradient(to right, 
        transparent,
        var(--secondary-color),
        var(--secondary-color),
        transparent
    );
    filter: blur(1px);
    animation: glow-pulse 2s ease-in-out infinite;
}

.contact-description {
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--slate);
    font-size: 1.125rem;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--slate);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    transition: var(--transition-all);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.contact-method:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-method i {
    font-size: 1.2rem;
}

/* --- Footer --- */
footer {
    padding: 10px;
    text-align: center;
    color: var(--slate);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    margin-top: 60px;
    border-top: 1px solid var(--navy-light);
}

.social-links {
    position: fixed;
    bottom: 0;
    left: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links::after {
    content: '';
    width: 1px;
    height: 90px;
    background: var(--light-slate);
}

.social-links a {
    color: var(--light-slate);
    font-size: 1.3rem;
    transition: var(--transition-bounce);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-0px);
}

.email-link {
    position: fixed;
    bottom: 0;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.email-link::after {
    content: '';
    width: 1px;
    height: 90px;
    background: var(--light-slate);
}

.email-link a {
    color: var(--light-slate);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    text-decoration: none;
    transition: var(--transition-all);
}

.email-link a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* --- DAC Project Page Specific Styles --- */

.overview-section > p {
    color: var(--light-slate);
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.technical-overview {
    padding: 40px 0;
    margin-top: 40px;
}

.technical-overview h2 {
    color: var(--lightest-slate);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
}

.process-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    position: relative;
}

.process-step {
    background: var(--navy-light);
    padding: 30px 25px;
    border-radius: 6px;
    text-align: center;
    border-top: 3px solid var(--secondary-color);
    transition: var(--transition-all);
    box-shadow: var(--shadow-elevation-1);
}

.process-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-elevation-2);
}

.process-step-number {
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-weight: 700;
    margin: 0 auto 25px;
    font-size: 1.3rem;
    box-shadow: var(--shadow-glow);
}

.process-step h3 {
    color: var(--lightest-slate);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.process-step p {
    color: var(--slate);
    font-size: 0.95rem;
}

.achievements-section {
    padding: 50px 0;
    background: var(--navy-light);
    border-radius: 8px;
    margin-top: 60px;
}

.achievements-section h2 {
    color: var(--lightest-slate);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    padding: 0 30px;
}

.achievement-card {
    background: var(--primary-color);
    padding: 35px 30px;
    border-radius: 6px;
    text-align: center;
    transition: var(--transition-all);
    border-bottom: 3px solid var(--secondary-color);
    box-shadow: var(--shadow-elevation-2);
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevation-3);
}

.achievement-icon {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.achievement-title {
    color: var(--lightest-slate);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.achievement-metric {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-mono);
    display: block;
    margin-bottom: 15px;
}

.achievement-description {
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-icon {
    width: 50px;
    height: 50px;
    border: 3px solid var(--navy-light);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Responsive Design --- */
@media (max-width: 1080px) {
    .social-links,
    .email-link {
        display: none;
    }
    
    .glow-orb {
        filter: blur(60px);
        opacity: 0.3;
    }
    
    .glow-orb:nth-child(4),
    .glow-orb:nth-child(5) {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
        min-height: auto;
    }

    .container {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002;
    }

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

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(75vw, 400px);
        height: 100vh;
        background: var(--navy-light);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px -15px rgba(2, 12, 27, 0.7);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 18px 40px;
        width: 100%;
    }

    .section-header::after {
        width: 100px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        order: -1;
        max-width: 250px;
    }

    .experience-tabs {
        flex-direction: column;
        border-left: none;
        border-top: 2px solid var(--navy-light);
        margin-bottom: 30px;
    }

    .tab-button {
        padding: 15px;
        border-bottom: 1px solid var(--navy-light);
    }

    .tab-button:last-child {
        border-bottom: none;
    }

    .tab-button.active::before {
        top: -2px;
        left: 0;
        width: 100%;
        height: 2px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .quarters-grid {
        grid-template-columns: 1fr;
    }

    .overview-grid,
    .skills-grid,
    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .overview-section,
    .skills-section,
    .quarter-card {
        padding: 25px;
    }

    #hero {
        padding: 150px 0 100px 0;
    }

    .hero-title,
    .hero-subtitle {
        font-size: clamp(35px, 8vw, 50px);
    }

    .hero-description {
        font-size: 1rem;
    }

    section {
        padding: 80px 0;
    }

    .section-title {
        font-size: clamp(24px, 5vw, 30px);
    }

    .project-card {
        padding: 20px;
        min-height: 280px;
    }

    #contact {
        padding: 100px 0;
    }

    .contact-title {
        font-size: clamp(35px, 5vw, 50px);
    }

    .pdf-embed {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    header {
        padding: 15px 0;
    }

    header.scrolled {
        padding: 10px 0;
    }

    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-number {
        font-size: 1rem;
    }

    .section-title {
        font-size: clamp(22px, 5vw, 26px);
    }

    .hero-greeting {
        font-size: 0.875rem;
    }

    .hero-title,
    .hero-subtitle {
        font-size: clamp(28px, 8vw, 40px);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 16px 30px;
    }

    .skills-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .project-card {
        padding: 20px;
    }

    .project-header {
        margin-bottom: 20px;
    }

    .project-icon {
        font-size: 2rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .nav-links {
        width: 100%;
    }

    .skill-category,
    .result-card {
        padding: 15px;
    }

    .pdf-container {
        padding: 15px;
    }

    .overview-section,
    .skills-section,
    .quarter-card {
        padding: 20px;
    }

    .project-title {
        font-size: 28px;
    }
}

/* --- Performance Optimizations --- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Optimize for slow connections and mobile */
@media (prefers-reduced-data: reduce), (max-width: 768px) {
    .bg-animation {
        display: none;
    }
}

/* Add GPU acceleration for animations */
.glow-orb {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.hidden-project {
    display: none;
}

.view-more-container {
    text-align: center;
    margin-top: 2rem;
}

.view-more-btn {
    margin: 0 auto;
}

.view-more-btn.hidden {
    display: none;
}