/* =======================================
   1. CSS VARIABLES & RESET
   ======================================= */
:root {
    /* Premium Dark Palette */
    --primary-color: #0F172A; /* Deep Navy */
    --secondary-color: #6366F1; /* Indigo */
    --accent-color: #06B6D4; /* Cyan */
    --success-color: #10B981;
    
    --bg-color: #020617; /* Near Black */
    --bg-alt: #0F172A; /* Deep Navy Alt */
    --card-bg: rgba(30, 41, 59, 0.4); /* Glassmorphism Base */
    --card-border: rgba(255, 255, 255, 0.08);
    
    --text-primary: #F8FAFC; 
    --text-secondary: #CBD5E1; 
    --text-muted: #94A3B8; 
    
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Spacing */
    --section-spacing: 8rem;
    --container-padding: 2rem;
    
    /* Borders & Shadows */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --shadow-premium: 0 0 20px rgba(99, 102, 241, 0.1);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-theme {
    background-color: var(--bg-color);
    color: var(--text-secondary);
}

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    z-index: 2000;
    transition: width 0.1s linear;
}

/* Cursor Glow Overlay */
#cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.1s ease-out;
    transform: translate(-50%, -50%);
    display: none; /* Only show on desktop via JS */
}

@media (min-width: 1024px) {
    #cursor-glow { display: block; }
}

/* Engineering Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 32px 32px;
    z-index: 0;
    pointer-events: none;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed header */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text, .name {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =======================================
   2. UTILITIES & LAYOUT
   ======================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 2;
}

.section {
    padding: var(--section-spacing) 0;
}

.bg-light {
    background-color: var(--bg-alt);
}

.text-accent {
    color: var(--accent-color);
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    margin: 1rem 0 2rem 0;
    border-radius: 2px;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    border: 1px solid var(--card-border);
    transition: all var(--transition-normal);
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: var(--shadow-glow);
    transform: translateY(-8px) scale(1.01);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-size: 1rem;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #4338CA);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-text {
    color: var(--text-muted);
    font-weight: 500;
}

.btn-text:hover {
    color: var(--secondary-color);
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color var(--transition-fast);
}

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

/* Base Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* =======================================
   3. HEADER & NAVIGATION
   ======================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
    padding: 1rem 0;
}

header.scrolled {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.6rem 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    transition: all 0.4s ease;
}

header.scrolled .navbar {
    padding: 0 1.5rem;
}

.nav-links {
    display: flex;
    gap: 3.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: all var(--transition-normal);
    transform: translateX(-50%);
    border-radius: 100px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

/* Add a spotlight effect behind active nav item */
.nav-link.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.btn-contact {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
}
.btn-contact::after { display: none; }
.btn-contact:hover {
    background-color: var(--secondary-color);
    color: white;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* =======================================
   4. HERO SECTION
   ======================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-aura {
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    filter: blur(80px);
    animation: auraPulse 8s ease-in-out infinite alternate;
}

@keyframes auraPulse {
    from { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    to { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-indigo {
    color: var(--secondary-color);
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.greeting {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Tech Badges */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all var(--transition-fast);
}

.badge:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.profile-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    max-width: 400px;
    margin: 0 auto;
    box-shadow: var(--shadow- premium);
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.profile-img-container {
    border-radius: 16px;
    overflow: hidden;
}

.profile-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    filter: grayscale(20%) contrast(110%);
    transition: var(--transition-normal);
}

.profile-card:hover .profile-img {
    filter: grayscale(0%) contrast(100%);
}

/* Decorative Code Snippet */
.code-snippet-decoration {
    position: absolute;
    bottom: -40px;
    right: -20px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    z-index: 3;
    pointer-events: none;
    transform: rotate(2deg);
}

.code-keyword { color: #C678DD; }
.code-class { color: #E5C07B; }
.code-comment { color: #5C6370; font-style: italic; }
.code-func { color: #61AFEF; }
.code-string { color: #98C379; }
.code-type { color: #56B6C2; }

/* =======================================
   5. ABOUT SECTION
   ======================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    line-height: 1.8;
}

.quick-facts h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    font-size: 1.4rem;
}

.fact-list li {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.fact-list i {
    font-size: 1.1rem;
}

/* =======================================
   6. SKILLS SECTION
   ======================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 70%);
    pointer-events: none;
}

.skill-icon {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: transform var(--transition-normal);
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Category Colors */
.skill-backend .skill-icon { background: rgba(99, 102, 241, 0.15); color: var(--secondary-color); }
.skill-backend:hover { border-color: var(--secondary-color); }

.skill-database .skill-icon { background: rgba(6, 182, 212, 0.15); color: var(--accent-color); }
.skill-database:hover { border-color: var(--accent-color); }

.skill-security .skill-icon { background: rgba(16, 185, 129, 0.15); color: var(--success-color); }
.skill-security:hover { border-color: var(--success-color); }

.skill-tools .skill-icon { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.skill-tools:hover { border-color: #F59E0B; }

.skill-engineering .skill-icon { background: rgba(236, 72, 153, 0.15); color: #EC4899; }
.skill-engineering:hover { border-color: #EC4899; }

.skill-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.chip {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.skill-card:hover .chip {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* =======================================
   7. EDUCATION SECTION
   ======================================= */
.timeline-container {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    border-left: 2px solid var(--secondary-color);
    margin-left: 1rem;
    padding: 2.5rem 3rem;
    position: relative;
    background: var(--card-bg);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 40px;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
}

.timeline-date {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.timeline-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-org {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.gpa-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

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

.coursework-list li {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.coursework-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.coursework-list i {
    color: var(--accent-color);
    font-size: 0.85rem;
}

/* =======================================
   8. PROJECTS SECTION
   ======================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

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

.project-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.folder-icon {
    font-size: 2rem;
    color: var(--secondary-color);
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-left: 1.25rem;
    transition: color var(--transition-fast);
}

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

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-challenge {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border-left: 3px solid var(--secondary-color);
}

.challenge-label {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 0.25rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.tech-tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* =======================================
   9. SERVICES SECTION
   ======================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.service-item {
    text-align: left;
    padding: 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    transition: var(--transition-normal);
}

.service-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.service-item h4 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* =======================================
   10. OBJECTIVE SECTION
   ======================================= */
.objective-card {
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.objective-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
    z-index: 1;
}

.objective-card h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.objective-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

/* =======================================
   11. CONTACT SECTION
   ======================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-radius: 16px;
    transition: all var(--transition-fast);
}

.contact-card:hover {
    border-color: var(--secondary-color);
    transform: translateX(10px);
}

.contact-card .icon-wrapper {
    background: rgba(99, 102, 241, 0.1);
    color: var(--secondary-color);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.4rem;
}

.contact-details h4 {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.contact-details a, .contact-details span {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-form-container {
    padding: 3.5rem;
}

.contact-form label {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 1.1rem;
    border-radius: 12px;
    font-size: 1rem;
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-status {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.form-status.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

/* =======================================
   12. FOOTER & BACK TO TOP
   ======================================= */
footer {
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.8));
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 400px;
    margin-bottom: 2.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 99;
    box-shadow: var(--shadow-glow);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: #4338CA;
}



/* =======================================
   13. RESPONSIVE DESIGN (MEDIA QUERIES)
   ======================================= */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-desc {
        margin: 0 auto 2rem;
    }

    .tech-badges,
    .hero-cta {
        justify-content: center;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .coursework-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--card-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        gap: 1.5rem;
    }

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

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section {
        padding: 4rem 0;
    }
    
    .profile-img {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
    }
    
    .objective-card {
        padding: 3rem 1.5rem;
    }
}
