/* --- 1. VARIABLES & THEME SETUP --- */
:root {
    /* Dark Mode (Default) */
    --bg-primary: #0a192f;       
    --bg-secondary: #112240;     
    --text-primary: #ccd6f6;     
    --text-highlight: #64ffda;   
    --nav-bg: rgba(10, 25, 47, 0.85);
    --shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    --transition: all 0.3s ease-in-out;
    
    /* Gradient Background Variables */
    --gradient-start: #0a192f;
    --gradient-end: #172a45;
}

[data-theme="light"] {
    /* Light Mode Overrides */
    --bg-primary: #ffffff;
    --bg-secondary: #f0f4f8;
    --text-primary: #333333;
    --text-highlight: #0056b3;   
    --nav-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    
    --gradient-start: #ffffff;
    --gradient-end: #e6f0ff;
}

/* --- 2. GLOBAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- 3. HEADER STYLING --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

/* --- LAYOUT FIX: Override container for About & Education to stack Vertically --- */
.about-section .container,
.education-section .container {
    flex-direction: column; /* Forces 3 rows: Title, Text, Grid */
    justify-content: center;
    gap: 30px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-highlight);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo .dot {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
    color: var(--text-highlight);
    text-shadow: 0 0 8px rgba(100, 255, 218, 0.4);
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--text-highlight);
    transition: width 0.3s ease;
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.theme-btn:hover {
    color: var(--text-highlight);
    transform: rotate(15deg);
}

.mobile-theme-li {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-highlight);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- 4. HERO SECTION --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 80px; /* Account for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    overflow: hidden;
}

.hero-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

/* Left Side: Image */
.hero-image-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--text-highlight);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
    z-index: 2;
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.5);
}

/* Decorative circle behind image */
.img-border {
    position: absolute;
    width: 370px;
    height: 370px;
    border-radius: 50%;
    border: 2px dashed var(--text-primary);
    animation: spin 20s linear infinite;
    z-index: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Right Side: Content */
.hero-content {
    flex: 1.2;
}

.greeting {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-highlight);
    margin-bottom: 10px;
    display: block;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-role {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-role .typing-text {
    color: var(--text-highlight);
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
    color: var(--text-primary);
    opacity: 0.9;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid var(--text-highlight);
    border-radius: 50%;
    color: var(--text-highlight);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Brand Colors on Hover */
.social-icon:hover {
    color: #fff;
    transform: translateY(-5px);
    border-color: transparent;
}

.social-icon.linkedin:hover { background: #0077b5; }
.social-icon.github:hover { background: #333; }
.social-icon.instagram:hover { background: #e4405f; }
.social-icon.facebook:hover { background: #1877f2; }
.social-icon.whatsapp:hover { background: #25d366; }

/* Main Button */
.btn-main {
    display: inline-block;
    padding: 12px 30px;
    background: var(--text-highlight);
    color: var(--bg-primary);
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

/* --- 5. RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .desktop-only {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        right: 0;
        height: calc(100vh - 80px);
        width: 60%;
        background-color: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        z-index: 999;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .mobile-theme-li {
        display: block;
        margin-top: 20px;
    }

    .toggle .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .toggle .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Mobile Hero Adjustments */
    .hero-container {
        flex-direction: column; /* Stack items */
        text-align: center;
        gap: 30px;
        padding-bottom: 50px;
        margin-top: 25px;
    }

    .hero-image-wrapper {
        order: 1; 
    }

    .hero-content {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-img {
        width: 250px;
        height: 250px;
    }

    .img-border {
        width: 270px;
        height: 270px;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-role {
        font-size: 1.5rem;
    }
}

/* --- PHASE 3: ABOUT & SKILLS STYLING --- */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.highlight {
    color: var(--text-highlight);
}

.about-content {
    max-width: 800px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: justify;
}

/* Skills Grid */
.skills-wrapper {
    text-align: center;
    width: 100%; /* Ensure it takes full width in the new column layout */
}

.sub-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
}

.skill-card {
    background-color: var(--bg-secondary);
    padding: 25px 15px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--text-highlight);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--text-highlight);
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-card span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* --- PHASE 3: EDUCATION SECTION STYLING --- */
.education-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.education-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.edu-card {
    background-color: var(--bg-primary);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    gap: 25px;
    align-items: flex-start; /* Aligns text to top */
    border-left: 4px solid var(--text-highlight);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    width: 100%;
}

.edu-card:hover {
    transform: translateX(10px);
}

.edu-icon {
    font-size: 2rem;
    color: var(--text-highlight);
    background: rgba(100, 255, 218, 0.1);
    padding: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
}

.edu-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.edu-year {
    display: inline-block;
    align-self: flex-start; /* Keeps the year tag left aligned */
    background: var(--text-highlight);
    color: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.edu-degree {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-primary);
    line-height: 1.3;
}

.edu-institute {
    font-size: 1rem;
    color: var(--text-primary);
    opacity: 0.9;
    font-weight: 400;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .edu-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .edu-icon {
        margin-bottom: 15px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    }
}

/* --- PHASE 4: PROJECTS SECTION STYLING --- */
.projects-section {
    padding: 100px 0;
    background-color: var(--bg-primary); /* Matches Home/About bg */
}

/* Force the container to stack items vertically (Title -> Grid -> Button) */
.projects-section .container {
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    transition: transform 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--text-highlight);
}

/* Image Area */
.project-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: grayscale(20%); /* Subtle tech vibe */
}

.project-card:hover .project-img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Hover Overlay for Image */
.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .img-overlay {
    opacity: 1;
}

.overlay-link {
    color: var(--text-highlight);
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid var(--text-highlight);
    padding: 10px 20px;
    border-radius: 5px;
}

.overlay-link:hover {
    background: rgba(100, 255, 218, 0.1);
}

/* Content Area */
.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.project-desc {
    font-size: 1rem;
    color: var(--text-primary);
    opacity: 0.8;
    line-height: 1.6;
    min-height: 80px; /* Keeps cards even height */
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-highlight);
}

.project-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.btn-small {
    color: var(--bg-primary);
    background-color: var(--text-highlight);
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.btn-small:hover {
    opacity: 0.8;
}

.github-link {
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: color 0.3s;
}

.github-link:hover {
    color: var(--text-highlight);
}

/* View More Button Area */
.view-more-container {
    text-align: center;
    margin-top: 20px;
}

.btn-outline {
    color: var(--text-highlight);
    background: transparent;
    border: 2px solid var(--text-highlight);
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(100, 255, 218, 0.1);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        max-width: 400px;
    }
    
    .project-img-wrapper {
        height: 180px;
    }
    .github-link {
    font-size: 0.8rem;
   
}
}

/* --- PHASE 5: CONTACT SECTION --- */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    position: relative;
}

.contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

/* Left Side: Contact Info */
.contact-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--text-primary);
}

.contact-sub-title {
    font-size: 2rem;
    color: var(--text-highlight);
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 400px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--text-highlight);
    width: 45px;
    height: 45px;
    border: 1px solid var(--text-highlight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(100, 255, 218, 0.05);
}

.contact-item:hover i {
    background: var(--text-highlight);
    color: var(--bg-primary);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.contact-item span {
    font-weight: 500;
}

.contact-socials {
    justify-content: flex-start; /* Align socials to left */
}

/* Right Side: Form */
.contact-right {
    flex: 1;
    background-color: var(--bg-primary);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    border: 1px solid rgba(100, 255, 218, 0.1);
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Floating Label Inputs */
.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-secondary);
    border: 1px solid rgba(204, 214, 246, 0.2);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group textarea {
    resize: vertical;
}

.input-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-primary);
    opacity: 0.7;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Input Focus Effects */
.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--text-highlight);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    background-color: var(--bg-primary);
    padding: 0 5px;
    font-size: 0.85rem;
    color: var(--text-highlight);
    opacity: 1;
}

/* Buttons */
.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-submit {
    flex: 2;
    background: var(--text-highlight);
    color: var(--bg-primary);
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.3s, transform 0.2s;
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-reset {
    flex: 1;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reset:hover {
    background: rgba(255,255,255,0.1);
    color: #ff6b6b;
    border-color: #ff6b6b;
}

/* --- OVERLAY & MODAL --- */
.hidden {
    display: none !important;
}

/* Loading Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.9);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(100, 255, 218, 0.3);
    border-top: 4px solid var(--text-highlight);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    color: var(--text-highlight);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2001;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: 1px solid var(--text-highlight);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
    animation: slideUp 0.3s ease;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.modal-icon.success { color: var(--text-highlight); }
.modal-icon.error { color: #ff6b6b; }

#modalTitle {
    color: var(--text-primary);
    margin-bottom: 10px;
}

#modalMessage {
    color: var(--text-primary);
    margin-bottom: 20px;
    opacity: 0.8;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); } to { transform: translateY(0); } }

/* Mobile */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }
    
    /* On mobile, maybe center the text? */
    .contact-left {
        align-items: center;
        text-align: center;
    }
    
    .contact-socials {
        justify-content: center;
    }
}


/* --- PHASE 6: FOOTER STYLING --- */
.footer {
    background-color: var(--footer-bg); /* Uses variable now */
    padding-top: 60px;
    color: var(--text-primary);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    transition: background-color 0.3s ease;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-top, .footer-links, .footer-socials {
    flex: 1;
    min-width: 200px;
}

/* Logo & Desc */
.footer-logo {
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.7;
    max-width: 300px;
}

/* Headings */
.footer-heading {
    font-size: 1.1rem;
    color: var(--text-highlight);
    margin-bottom: 20px;
    font-weight: 600;
}

/* Links */
.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    text-decoration: none;
    color: var(--text-primary);
    opacity: 0.8;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links ul li a:hover {
    color: var(--text-highlight);
    padding-left: 5px;
}

/* Footer Bottom (Copyright) */
.footer-bottom {
    background-color: var(--footer-bottom-bg); /* Uses variable now */
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

/* Back to Top Button */
.back-to-top {
    position: absolute;
    right: 30px;
    bottom: 20px; /* Aligns with footer bottom padding */
    background: var(--bg-secondary);
    color: var(--text-highlight);
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--text-highlight);
}

.back-to-top:hover {
    background: var(--text-highlight);
    color: var(--bg-primary);
    transform: translateY(-5px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-desc {
        margin: 0 auto; /* Center description */
    }

    .social-icons {
        justify-content: center;
    }

    .back-to-top {
        position: static; /* Stack normally on mobile */
        margin-top: 15px;
        margin-left: 10px;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
}

/* --- PHASE 4.5: ACHIEVEMENTS SECTION --- */
.achievements-section {
    padding: 100px 0;
    background-color: var(--bg-secondary); /* Alternating background */
}

.achievements-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Forced 2 columns */
    gap: 40px;
}

.achievement-card {
    background-color: var(--bg-primary); /* Contrast against section bg */
    border: 1px solid rgba(100, 255, 218, 0.1); /* Subtle border */
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    position: relative;
}

/* Hover Effects */
.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(2, 12, 27, 0.9);
    border-color: var(--text-highlight); /* Neon border on hover */
}

/* Image Box */
.achievement-img-box {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.achievement-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(30%); /* Tech vibe */
}

.achievement-card:hover .achievement-img-box img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Overlay Gradient on Image (Optional aesthetic touch) */
.achievement-img-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    opacity: 0.8;
}

/* Content Styling */
.achievement-content {
    padding: 30px;
    flex-grow: 1;
    position: relative;
}

.achievement-icon {
    position: absolute;
    top: -25px;
    right: 20px;
    background: var(--text-highlight);
    color: var(--bg-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.4);
    z-index: 2;
}

.achievement-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.achievement-card:hover .achievement-content h3 {
    color: var(--text-highlight);
}

.achievement-content p {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
    opacity: 0.8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr; 
    }
    .achievement-img-box {
        height: 200px;
    }
}



















/* Page Header Section */
.page-header {
    width: 100%;
    background-color: var(--bg-dark-2); /* Uses your secondary dark color */
    border-bottom: 1px solid var(--border-dark); /* Adds a subtle border separator */
    padding: 2rem 0; /* Vertical spacing */
    margin-bottom: 2rem; /* Space between this banner and the content below */
    display: flex;
    align-items: center;
    justify-content: center;
    
    margin-top: 90px;
}

.page-header-container {
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary); /* Your primary text color */
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

/* Optional: Adds a small decorative line under the text */
.page-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-green), var(--accent-blue));
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem 0;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
}