/* --- 1. CORE VARIABLES & RESET --- */
:root {
    --bg: #050505;
    --accent: #00f2ff;
    --purple: #7000ff;
    --text-main: #ffffff;
    --text-dim: #a1a1a1;
    --border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- 2. REUSABLE COMPONENTS --- */
.gradient-text {
    background: linear-gradient(90deg, var(--accent), var(--purple));
    background-clip: text; /* Standard property */
    -webkit-background-clip: text; /* Vendor prefix for Chrome/Safari */
    -webkit-text-fill-color: transparent; /* Required for the clip to show the background */
    display: inline-block;
}

.badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

.standard-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.standard-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

/* --- 3. NAVIGATION --- */
nav {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    padding: 12px 30px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 1000;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
    margin: 0 10px;
}

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

.nav-cta {
    color: var(--accent) !important;
    font-weight: bold;
}

/* --- 4. HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 10%;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 60px;
}

.hero-text { flex: 1.2; }
.hero-name { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; margin: 15px 0; }
.hero-subtitle { font-size: 1.6rem; color: var(--text-dim); margin-bottom: 25px; }

.hero-image-box {
    flex: 0.8;
    position: relative;
}

.profile-img {
    width: 100%;
    max-width: 380px;
    border-radius: 30px;
    border: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.image-glow {
    position: absolute;
    top: -15%;
    left: -15%;
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
}

/* --- 5. EDUCATION TIMELINE --- */
.education-section { padding: 100px 10%; }
.timeline-container { position: relative; max-width: 900px; margin: 40px auto; }
.timeline-line { 
    position: absolute; left: 50%; transform: translateX(-50%);
    width: 2px; height: 100%; background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item { position: relative; width: 50%; margin-bottom: 50px; }
.timeline-item.left { left: 0; padding-right: 40px; text-align: right; }
.timeline-item.right { left: 50%; padding-left: 40px; }

.timeline-dot {
    position: absolute; top: 20px; width: 14px; height: 14px;
    background: var(--accent); border-radius: 50%; box-shadow: 0 0 15px var(--accent);
}
.left .timeline-dot { right: -7px; }
.right .timeline-dot { left: -7px; }

/* --- 6. EXPERIENCE (THE "FIXED" SIZE SECTION) --- */
.experience-container {
    max-width: 800px; /* Prevents the boxes from being too large */
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.exp-card { position: relative; }
.card-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.institution { color: var(--accent); font-weight: 700; }
.date { font-size: 0.8rem; color: var(--text-dim); }

/* --- 7. PROJECTS GRID --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto;
}

/* --- 8. STAGGERED ACHIEVEMENTS --- */
.achievement-staggered-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.right-item { margin-top: 100px; } /* Creates the staggered effect */
.left-item { margin-bottom: 40px; }

.achievement-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.achievement-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.standard-card:hover .achievement-img { transform: scale(1.1); }

/* --- 9. ANIMATIONS & REVEALS --- */
#cursor-glow {
    position: fixed; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
    pointer-events: none; transform: translate(-50%, -50%); z-index: 0;
}

.reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal.left { transform: translateX(-60px); }
.reveal.right { transform: translateX(60px); }
.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- 10. RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-image-box { order: -1; }
    
    .timeline-line { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px !important; text-align: left !important; }
    .timeline-item.right { left: 0; }
    .timeline-dot { left: 13px !important; }
    
    .achievement-staggered-grid { grid-template-columns: 1fr; }
    .right-item { margin-top: 0; }
    
    nav { width: 90%; justify-content: center; }
}

/* --- CTA BUTTONS STYLING --- */
.cta-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-primary, .btn-secondary {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* View LinkedIn Button */
.btn-primary {
    background: var(--accent);
    color: #000;
    border: none;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.5);
    background: #fff; /* Slight color shift on hover */
}

/* Download CV Button */
.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* Fix for mobile: stack buttons if screen is too small */
@media (max-width: 480px) {
    .cta-group {
        flex-direction: column;
        width: 100%;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}
/* --- ALIGNMENT & SIZING FIX --- */

/* 1. Ensure all sections have the exact same horizontal padding */
section, .hero-section {
    padding: 100px 10%; /* 10% is your "alignment line" */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Forces everything inside to the left */
}

/* 2. Massive Left-Aligned Headings */
.section-header {
    text-align: left; /* Alignment fix */
    margin-bottom: 60px;
    width: 100%;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Same scale as your Hero name */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-top: 10px;
}

/* 3. Adjust Containers to align with the Header */
.experience-container, 
.project-grid, 
.achievement-staggered-grid, 
.timeline-container {
    width: 100%;
    max-width: 1200px; /* Increased max-width for a more open look */
    margin-left: 0;    /* Aligns them to the left of the section */
    margin-right: 0;
}

/* --- SPECIFIC ADJUSTMENTS --- */

/* Keep the Education line centered in its container if you prefer, 
   but move the container to the left */
.timeline-container {
    margin-left: 0;
}

/* Ensure project and achievement grids start from the left */
.project-grid, .achievement-staggered-grid {
    justify-items: start;
}

/* Mobile Fix: Ensure padding stays consistent */
@media (max-width: 900px) {
    section {
        padding: 80px 5%;
    }
    .section-header h2 {
        font-size: 2.5rem;
    }
}
/* --- 11. PROJECT CARD ENHANCEMENTS (TOOLS & LINKS) --- */

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

.project-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

/* Technology Tags (The small tool boxes) */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
}

.tool-tag {
    background: rgba(0, 242, 255, 0.08); /* Light glow background */
    border: 1px solid rgba(0, 242, 255, 0.2);
    color: var(--accent);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
}

.tool-tag:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
}

/* Project Action Links */
.project-links {
    display: flex;
    gap: 20px;
    margin-top: auto; /* Pushes links to the bottom of the card */
    padding-top: 15px;
}

.link-icon {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.link-icon:hover {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.4);
}

/* Fix for Project Description */
.project-content p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Ensure Project Images stay consistent */
.project-card .achievement-img-wrapper {
    height: 200px;
    width: 100%;
    margin-bottom: 10px;
}
/* Fix for Achievement Card spacing */
.achievement-staggered-grid .standard-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.achievement-staggered-grid p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 10px;
}

/* Ensure images don't stretch */
.achievement-img-wrapper img {
    object-position: center;
}

/* --- UPDATED ALIGNMENT & SPACING --- */

section, .hero-section {
    padding: 60px 10%; /* Reduced from 100px to 60px */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: auto; /* Changed from 100vh to prevent forced empty space */
}

.section-header {
    text-align: left;
    margin-bottom: 30px; /* Reduced from 60px */
    width: 100%;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem); /* Slightly smaller to fit better */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1;
}

/* --- COMPACT GRIDS --- */

.experience-container, 
.project-grid, 
.achievement-staggered-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0; /* Removed auto margins */
    gap: 20px; /* Consistent tight spacing */
}

/* Remove the 100px staggered offset that creates big gaps */
.right-item { 
    margin-top: 0 !important; 
}

.left-item { 
    margin-bottom: 0 !important; 
}

/* Adjust Achievement Grid for better flow */
.achievement-staggered-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Better than fixed 1fr 1fr */
    align-items: stretch;
}

.standard-card {
    padding: 20px; /* Reduced from 30px */
    height: auto;
}

.exp-card {
    margin-bottom: 15px; /* Tighten gap between cards */
}

footer {
    margin-top: 40px;
    padding-bottom: 40px;
}
/* --- ENHANCED ACHIEVEMENTS SECTION --- */

.achievement-staggered-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Better responsiveness */
    gap: 25px;
    max-width: 1200px;
    margin: 0;
    align-items: stretch; /* Makes all cards in a row equal height */
}

/* Remove the old staggered margins that caused the "odd" gaps */
.right-item, .left-item { 
    margin-top: 0 !important; 
    margin-bottom: 0 !important; 
}

/* Achievement Card Glassmorphism */
.achievement-staggered-grid .standard-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 20px;
    height: 100%; /* Ensures cards fill the grid slot */
}

/* Image Polish */
.achievement-img-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

.achievement-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents stretching */
    filter: grayscale(30%); /* Subtle aesthetic touch */
    transition: 0.5s ease;
}

.standard-card:hover .achievement-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Eye-Catching Hover Effects */
.achievement-staggered-grid .standard-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15), 
                inset 0 0 15px rgba(0, 242, 255, 0.05);
    transform: translateY(-10px);
}

/* Subtle pulse for the Achievement Headers */
.achievement-staggered-grid h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
    transition: 0.3s;
}

.standard-card:hover h3 {
    color: var(--accent);
}

.achievement-staggered-grid p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* --- TRENDY BENTO GRID FOR ACHIEVEMENTS --- */

.achievement-staggered-grid {
    display: grid;
    /* Creates 3 columns that adjust based on screen size */
    grid-template-columns: repeat(3, 1fr); 
    grid-auto-rows: minmax(300px, auto);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Reset the old staggered offsets */
.right-item, .left-item { 
    margin-top: 0 !important; 
    margin-bottom: 0 !important; 
}

/* Make specific cards "Feature" cards (Taking 2 columns) */
/* This creates the trendy "Bento" look */
.achievement-staggered-grid .standard-card:nth-child(1),
.achievement-staggered-grid .standard-card:nth-child(6) {
    grid-column: span 2;
}

/* Achievement Card Polish */
.achievement-staggered-grid .standard-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px;
    height: 100%;
    border-radius: 24px; /* More rounded for a modern look */
}

/* Image container styling */
.achievement-img-wrapper {
    width: 100%;
    height: 180px; 
    border-radius: 16px;
    margin-bottom: 18px;
    overflow: hidden;
}

.achievement-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Hover Animation: Scale image and glow border */
.standard-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
}

.standard-card:hover .achievement-img {
    transform: scale(1.1);
}

/* Responsive: Switch to 1 column on mobile */
@media (max-width: 900px) {
    .achievement-staggered-grid {
        grid-template-columns: 1fr;
    }
    .achievement-staggered-grid .standard-card:nth-child(1),
    .achievement-staggered-grid .standard-card:nth-child(6) {
        grid-column: span 1;
    }
}
/* --- 2-3-2 SYMMETRICAL ACHIEVEMENT GRID --- */

.achievement-staggered-grid {
    display: grid;
    /* Create a 6-column base to allow math for 2 and 3 items per row */
    grid-template-columns: repeat(6, 1fr); 
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Base Card Styling */
.achievement-staggered-grid .standard-card {
    grid-column: span 2; /* Default: 3 cards per row (6 / 2 = 3) */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Row 1: The first 2 cards (3 columns each) */
.achievement-staggered-grid .standard-card:nth-child(1),
.achievement-staggered-grid .standard-card:nth-child(2) {
    grid-column: span 3;
}

/* Row 2: The next 3 cards (already span 2 by default) */

/* Row 3: The final 2 cards (3 columns each) */
.achievement-staggered-grid .standard-card:nth-child(6),
.achievement-staggered-grid .standard-card:nth-child(7) {
    grid-column: span 3;
}

/* Reset any old staggered margins */
.right-item, .left-item { 
    margin-top: 0 !important; 
    margin-bottom: 0 !important; 
}

/* Image Consistency */
.achievement-img-wrapper {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.achievement-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

/* Hover Animation */
.standard-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 242, 255, 0.15);
}

/* Mobile Responsiveness: Stack to 1 column */
@media (max-width: 900px) {
    .achievement-staggered-grid {
        grid-template-columns: 1fr;
    }
    .achievement-staggered-grid .standard-card {
        grid-column: span 1 !important;
    }
}

.achievement-staggered-grid h3 {
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-main);
}

.achievement-staggered-grid p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Add a subtle glow behind the first/last rows to emphasize the 2-3-2 look */
.achievement-staggered-grid .standard-card:nth-child(odd):hover {
    box-shadow: 0 15px 40px rgba(112, 0, 255, 0.15); /* Purple glow for odd cards */
}

/* --- GRADIENT BORDER EFFECT --- */

.achievement-staggered-grid .standard-card {
    position: relative;
    background: var(--bg); /* Solid background to clip against the gradient */
    border: none; /* Remove the old border */
    z-index: 1;
}

/* The Gradient "Frame" */
.achievement-staggered-grid .standard-card::before {
    content: "";
    position: absolute;
    top: -1px; 
    left: -1px; 
    right: -1px; 
    bottom: -1px;
    background: linear-gradient(135deg, var(--accent), var(--purple), transparent);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3; /* Subtle when not hovered */
    transition: opacity 0.4s ease;
}

/* Inner Background to keep content readable */
.achievement-staggered-grid .standard-card::after {
    content: "";
    position: absolute;
    inset: 1px; /* Creates the 1px border look */
    background: var(--bg);
    border-radius: 19px;
    z-index: -1;
}

/* Hover State: Make the border glow intensely */
.achievement-staggered-grid .standard-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, var(--accent), #fff, var(--purple));
}

.achievement-staggered-grid .standard-card:hover {
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.2);
}

/* Correcting the Span Logic for 7 items */
.achievement-staggered-grid .standard-card:nth-child(1),
.achievement-staggered-grid .standard-card:nth-child(2),
.achievement-staggered-grid .standard-card:nth-child(6),
.achievement-staggered-grid .standard-card:nth-child(7) {
    grid-column: span 3;
}

.achievement-staggered-grid .standard-card:nth-child(3),
.achievement-staggered-grid .standard-card:nth-child(4),
.achievement-staggered-grid .standard-card:nth-child(5) {
    grid-column: span 2;
}

.achievement-img-wrapper {
    overflow: hidden;
    border-radius: 12px;
}

.achievement-img {
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.standard-card:hover .achievement-img {
    transform: scale(1.1);
}

/* --- FOOTER STYLING --- */
.footer-section {
    padding: 80px 10% 40px 10%;
    background: linear-gradient(to top, rgba(112, 0, 255, 0.05), transparent);
    border-top: 1px solid var(--border);
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    width: 100%;
}

.footer-tagline {
    color: var(--text-dim);
    margin: 15px 0 40px 0;
    font-size: 1.1rem;
}

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

.social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.social-icon {
    font-weight: 900;
    color: var(--accent);
    font-family: 'Courier New', Courier, monospace;
}

.social-item:hover {
    border-color: var(--accent);
    background: rgba(0, 242, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.1);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.8rem;
    text-align: center;
}

/* Mobile Fix */
@media (max-width: 600px) {
    .social-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- BACK TO TOP STYLING --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
}

/* Make it visible when active */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:not(.show) {
    transform: translateY(20px);
}

/* Neon Glow Effect on Hover */
.back-to-top:hover {
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    transform: translateY(-5px) scale(1.1);
}

.back-to-top .arrow {
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

.back-to-top:hover .arrow {
    animation: bounceUp 0.6s infinite alternate;
}

@keyframes bounceUp {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

/* --- FOOTER LOGO STYLING --- */

.social-item i {
    font-size: 1.2rem;
    color: var(--accent); /* Matches your neon cyan */
    transition: 0.3s ease;
}

.social-item:hover i {
    color: #fff;
    transform: scale(1.2);
    text-shadow: 0 0 10px var(--accent);
}

/* Specific Brand Colors on Hover (Optional) */
.social-item:hover .fa-linkedin-in { color: #0077b5; }
.social-item:hover .fa-github { color: #fafafa; }
.social-item:hover .fa-envelope { color: #ea4335; }

.social-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.social-item:active {
    transform: scale(0.95);
    background: var(--accent);
    color: #000;
}

.social-item:active i {
    color: #000;
}

/* --- 3. NAVIGATION (UPDATED) --- */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    width: fit-content;
    max-width: 95%; /* Prevents hitting the edges of the phone */
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Allows links to wrap to a second line if needed */
    gap: 10px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem; /* Slightly smaller for mobile-first fit */
    font-weight: 600;
    transition: 0.3s;
    padding: 5px 10px;
    white-space: nowrap; /* Prevents a single word like "Education" from breaking */
}

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

.nav-cta {
    color: var(--accent) !important;
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 20px;
    padding: 5px 15px !important;
}

/* --- MOBILE NAVIGATION FIX --- */
@media (max-width: 600px) {
    nav {
        top: 10px;
        padding: 8px 15px;
        border-radius: 20px; /* Square off slightly for more room */
    }

    .nav-links {
        gap: 5px; /* Tighter gaps for small screens */
    }

    .nav-links a {
        font-size: 0.7rem; /* Smaller font so everything fits */
        padding: 4px 8px;
    }
}

/* --- HAMBURGER STYLING --- */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 5px;
    transition: 0.3s;
}

/* Mobile View Adjustments */
@media (max-width: 900px) {
    nav {
        width: 90%;
        border-radius: 20px;
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-toggle {
        display: flex; /* Show hamburger on mobile */
    }

    .nav-links {
        display: none; /* Hide links by default */
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        gap: 15px;
    }

    /* When the menu is "active", show the links */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1rem;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }
}

/* --- HIRE ME PAGE STYLES --- */
.hire-container {
    padding: 120px 10% 60px 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.hire-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
}

.input-group input, 
.input-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-family: inherit;
    transition: 0.3s;
}

.input-group input:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 242, 255, 0.05);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px !important;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

.info-item h4 {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Responsive Fix */
@media (max-width: 900px) {
    .hire-grid {
        grid-template-columns: 1fr;
    }
}

.action-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px !important;
}

.direct-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 30px;
}

.large-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px !important;
    font-size: 1.1rem !important;
    text-decoration: none;
    border-radius: 12px;
}

.info-item.standard-card {
    cursor: pointer;
    transition: 0.3s;
}

.info-item.standard-card:hover {
    background: rgba(0, 242, 255, 0.08);
    border-color: var(--accent);
}
/* --- FIXED HIRE ME LAYOUT --- */
.hire-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 30px;
    margin-top: 50px;
    align-items: start;
}

.action-card {
    grid-row: span 2; /* Makes the "Let's Talk" card taller */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px !important;
    min-height: 400px;
}

/* Fix for the contact info column */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item.standard-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px !important;
    width: 100%; /* Ensures they fill the column */
}

/* Mobile Fix: Stack everything in one column */
@media (max-width: 850px) {
    .hire-grid {
        grid-template-columns: 1fr;
    }
    .action-card {
        grid-row: auto;
    }
}

/* --- HIRE ME SPECIFIC FIXES --- */
.hire-container {
    padding: 120px 10% 60px 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.hire-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns to prevent squashing */
    gap: 30px;
    margin-top: 50px;
    align-items: start;
}

.action-card {
    padding: 40px !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%; /* Match height of the right column */
}

.direct-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 30px;
}

.large-btn {
    padding: 18px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 12px;
}

.info-item.standard-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px !important;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none; /* For the link card */
}

.info-item.standard-card:hover {
    border-color: var(--accent);
    background: rgba(0, 242, 255, 0.05);
}

.back-btn {
    text-decoration: none;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
}

/* Mobile Responsiveness */
@media (max-width: 850px) {
    .hire-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}