/* -------------------------------------------------------------
   DESIGN SYSTEM VARIABLES & THEME SETUP
   Premium Dark Cybernetic Theme
------------------------------------------------------------- */
:root {
    --bg-primary: #040814;      /* Deep space slate-black */
    --bg-secondary: #090e1c;    /* Slightly lighter space slate card backing */
    --bg-card: rgba(9, 14, 28, 0.55); /* Glassmorphic cool card fill */
    
    --accent: #00f0ff;          /* Electric Cyan */
    --accent-glow: rgba(0, 240, 255, 0.35);
    
    --secondary-accent: #3b82f6; /* Cyber Blue */
    --secondary-glow: rgba(59, 130, 246, 0.25);
    
    --text-primary: #f3f4f6;    /* Soft pure white */
    --text-muted: #9ca3af;      /* Secondary cool grey description */
    --text-dark: #4b5563;       /* Deeper borders/muted icons */
    
    --border-color: rgba(0, 240, 255, 0.08);
    --border-hover: rgba(0, 240, 255, 0.3);
    
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s ease;
}

/* -------------------------------------------------------------
   CORE LAYOUT & RESET
------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

/* Canvas background overlay - Matrix Digital Rain */
#bg-canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15; /* Subtle overlay */
}

/* Base custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* -------------------------------------------------------------
   HEADER NAVIGATION (Top-Left, Top-Right Empty)
------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-normal);
    padding: 1.5rem 2rem;
}

/* Scrolled style added dynamically */
.main-header.scrolled {
    padding: 1rem 2rem;
    background: rgba(4, 8, 20, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(0, 240, 255, 0.04);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Links left, empty right */
    align-items: center;
    width: 100%;
}

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

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    position: relative;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.8rem;
    right: 0.8rem;
    height: 2px;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    border-radius: 2px;
    animation: scale-in 0.3s forwards;
}

/* Right-side empty node */
.nav-right-empty {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--secondary-accent));
    box-shadow: 0 0 8px var(--accent-glow);
    z-index: 101;
    width: 0;
    transition: width 0.08s ease-out;
}

/* -------------------------------------------------------------
   GLOBAL COMPONENTS (Cards, Grids, Layouts)
------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.section {
    padding: 7rem 0 5rem 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

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

.section-tag {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.25rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Premium Card with Glowing Borders */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(16, 185, 129, 0.03);
}

/* Dynamic Radial Glow on Cards */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(16, 185, 129, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover .card-glow {
    opacity: 1;
}

/* Typography styles */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, var(--accent) 70%, var(--secondary-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.font-mono {
    font-family: var(--font-mono);
}

.text-accent { color: var(--accent); }
.text-green { color: #10b981; }
.text-white { color: #ffffff; }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }

/* Buttons */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary-accent) 100%);
    color: #040814; 
    font-weight: 600;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 15px var(--accent-glow);
    /* Static hover state with no scale or translation animation */
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-glow {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(59, 130, 246, 0.08));
    color: var(--text-primary);
    border: 1px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.15);
}

.btn-glow:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(59, 130, 246, 0.15));
    box-shadow: 0 6px 22px rgba(0, 240, 255, 0.25);
    transform: translateY(-2px);
}

/* Pulsing indicators */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse 1.8s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 4px var(--accent-glow); }
    100% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 10px var(--accent); }
}

/* -------------------------------------------------------------
   1. HERO / INTRO SECTION
------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 6rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.05);
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.015) 1px, transparent 1px),
        radial-gradient(circle at 75% 35%, rgba(0, 240, 255, 0.08), transparent 45%),
        radial-gradient(circle at 25% 65%, rgba(59, 130, 246, 0.06), transparent 40%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-right {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 4rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2.2rem;
    max-width: 100%;
}

/* Domain tags list */
.domain-badges {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.domain-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    user-select: none;
    transition: all var(--transition-fast);
}

.domain-tag:hover {
    transform: translateY(-2px);
}

/* Orbiting Badges layout revolving around the circular image card */
.orbiting-badges {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.orbit-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.orbit-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Individual badge color themes */
.orbit-badge.cyber-sec {
    background: rgba(4, 8, 20, 0.75);
    border: 1px solid var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.orbit-badge.ai {
    background: rgba(4, 8, 20, 0.75);
    border: 1px solid var(--secondary-accent);
    color: #60a5fa;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.orbit-badge.full-stack {
    background: rgba(4, 8, 20, 0.75);
    border: 1px solid #a78bfa;
    color: #c084fc;
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.15);
}

/* Reveal and orbit displacement on hover */
.hero-image-card:hover .orbit-badge {
    opacity: 1;
    pointer-events: auto;
}

.hero-image-card:hover .orbit-badge.cyber-sec {
    transform: translate(-230px, -70px) scale(1);
}

.hero-image-card:hover .orbit-badge.ai {
    transform: translate(60px, -170px) scale(1);
}

.hero-image-card:hover .orbit-badge.full-stack {
    transform: translate(30px, 120px) scale(1);
}

/* Gentle weightless floating animations on hover */
.hero-image-card:hover .orbit-badge.cyber-sec .orbit-inner {
    animation: orbit-bob 3s ease-in-out infinite alternate;
}

.hero-image-card:hover .orbit-badge.ai .orbit-inner {
    animation: orbit-bob 3.2s ease-in-out infinite alternate -0.8s;
}

.hero-image-card:hover .orbit-badge.full-stack .orbit-inner {
    animation: orbit-bob 3.4s ease-in-out infinite alternate -1.6s;
}

@keyframes orbit-bob {
    0% { transform: translateY(-4px); }
    100% { transform: translateY(4px); }
}

.hero-cta-prompt {
    margin-bottom: 1.5rem;
}

.prompt-question {
    color: var(--accent);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: var(--accent-glow) 0px 0px 8px;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* Custom Showcase Image Card with Hover Swap (Circular design, no box frame) */
.hero-image-card {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    max-width: 340px; 
    aspect-ratio: 1 / 1;
    overflow: visible;
    position: relative;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    box-shadow: 0 0 25px var(--accent-glow);
}

.hero-showcase-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.default-img {
    opacity: 1;
    z-index: 2;
}

.hover-img {
    opacity: 0;
    z-index: 1;
}

.hero-image-card:hover .default-img {
    opacity: 0;
}

.hero-image-card:hover .hover-img {
    opacity: 1;
    transform: scale(1.02);
}

.scroll-down-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.7;
    pointer-events: none;
}

.scroll-down-hint span {
    font-family: var(--font-mono);
}

.bouncing {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}

/* -------------------------------------------------------------
   2. ABOUT SECTION
------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-bullets {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.bullet-item i {
    font-size: 1.2rem;
    margin-top: 0.25rem;
}

.about-meta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.meta-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-rows {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.85rem;
    flex-grow: 1;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
    padding-bottom: 0.4rem;
}

.meta-row .label {
    color: var(--text-muted);
}

.terminal-box {
    background: rgba(3, 7, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.terminal-head {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.terminal-head .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-head .dot.red { background: #ef4444; }
.terminal-head .dot.yellow { background: #f59e0b; }
.terminal-head .dot.green { background: #10b981; }

.terminal-head .title {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.terminal-body {
    padding: 0.8rem;
    font-size: 0.75rem;
}

.terminal-body p {
    margin-bottom: 0.3rem;
}

/* -------------------------------------------------------------
   3. PROJECTS SECTION
------------------------------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.project-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.project-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.project-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.project-link-btn {
    font-size: 0.85rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform var(--transition-fast);
}

.project-card:hover .project-link-btn {
    transform: translateX(4px);
}

/* -------------------------------------------------------------
   4. SKILLS SECTION
------------------------------------------------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.skill-bar-wrapper {
    height: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--secondary-accent));
    box-shadow: 0 0 6px var(--accent-glow);
    border-radius: 10px;
}

/* -------------------------------------------------------------
   5. EXPERIENCE / LEADERSHIP SECTION
------------------------------------------------------------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 20px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--secondary-accent), transparent);
    opacity: 0.35;
}

.timeline-item {
    position: relative;
    padding-left: 55px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 14px;
    top: 2rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent);
    box-shadow: 0 0 10px var(--accent);
    z-index: 5;
    transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.3);
    background: var(--accent);
}

.timeline-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
    color: var(--accent);
}

.timeline-meta .location {
    color: var(--text-muted);
}

.role-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.role-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
   6. ACHIEVEMENTS SECTION
------------------------------------------------------------- */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.achievement-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.achievement-icon-wrapper {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.12);
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.achievement-icon {
    font-size: 1.3rem;
    color: var(--accent);
}

.achievement-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.achievement-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.achievement-tag {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* -------------------------------------------------------------
   FOOTER
------------------------------------------------------------- */
.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(8px);
    padding: 2rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.1rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--accent);
}

/* -------------------------------------------------------------
   INTERACTIVE SPECS MODAL (Dynamic Details Popout)
------------------------------------------------------------- */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.project-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 5, 12, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    width: 100%;
    max-width: 650px;
    z-index: 5;
    background: #060b16;
    border: 1px solid var(--accent);
    padding: 2.5rem;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.15);
    animation: modal-zoom 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modal-zoom {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast);
}

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

.modal-body h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-body .meta-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.modal-body .spec-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: var(--accent);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.modal-body p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.modal-section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.3rem;
}

.modal-list {
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.modal-list li {
    margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN ADAPTATIONS
------------------------------------------------------------- */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 1rem;
    }
    .main-header.scrolled {
        padding: 0.8rem 1rem;
    }
    
    .nav-brand-group {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        width: 100%;
    }
    
    .nav-links {
        gap: 0.6rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
    
    .nav-link.active::after {
        left: 0.5rem;
        right: 0.5rem;
    }
    
    .section {
        padding: 5rem 0 3rem 0;
    }
    
    .hero-image-card {
        max-width: 260px;
        margin-bottom: 2rem;
    }
    
    .hero-image-card:hover .orbit-badge.cyber-sec {
        transform: translate(-140px, -60px) scale(0.9);
    }
    
    .hero-image-card:hover .orbit-badge.ai {
        transform: translate(10px, -130px) scale(0.9);
    }
    
    .hero-image-card:hover .orbit-badge.full-stack {
        transform: translate(10px, 100px) scale(0.9);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-line {
        left: 10px;
    }
    .timeline-item {
        padding-left: 35px;
    }
    .timeline-marker {
        left: 4px;
    }
}

/* Keyframe animations */
@keyframes scale-in {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up-anim 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

@keyframes fade-in-up-anim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------
   SYSTEM SPEC BIO & SOCIAL LINKS STYLING
------------------------------------------------------------- */
.bio-spec-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.bio-spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border-bottom: 1px dashed rgba(0, 240, 255, 0.06);
    padding-bottom: 1rem;
}

.bio-spec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bio-label {
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bio-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.82rem;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background: rgba(0, 240, 255, 0.06);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
}
