/* ==========================================================================
   Design System & Global Variables
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-dark-1: hsl(222, 47%, 7%);
    --bg-dark-2: hsl(224, 64%, 4%);
    --color-text: hsl(210, 40%, 96%);
    --color-text-muted: hsl(215, 20%, 65%);
    
    /* Brand Accents */
    --accent-teal: hsl(174, 90%, 41%);
    --accent-teal-glow: hsla(174, 90%, 41%, 0.35);
    --accent-cyan: hsl(190, 95%, 45%);
    --accent-cyan-glow: hsla(190, 95%, 45%, 0.35);
    --accent-gold: hsl(38, 92%, 50%);
    --accent-gold-glow: hsla(38, 92%, 50%, 0.35);
    
    /* UI Accent Helpers */
    --accent-red: hsl(354, 70%, 54%);
    --accent-yellow: hsl(45, 100%, 51%);
    --accent-green: hsl(142, 70%, 45%);
    
    /* Surfaces & Borders (Glassmorphism) */
    --surface-glass: hsla(220, 30%, 10%, 0.55);
    --surface-glass-hover: hsla(220, 30%, 15%, 0.75);
    --border-glass: hsla(220, 20%, 30%, 0.2);
    --border-glass-glow: hsla(174, 90%, 41%, 0.25);
    
    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    /* Transitions & Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   Global Reset & Base Rules
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark-2);
    color: var(--color-text);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    background: radial-gradient(circle at 50% 0%, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.highlight {
    color: var(--accent-teal);
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-cyan {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan-glow);
}

.highlight-teal {
    color: var(--accent-teal);
    text-shadow: 0 0 10px var(--accent-teal-glow);
}

.font-gold {
    color: var(--accent-gold) !important;
}

/* ==========================================================================
   Background Grid & Matrix Effects
   ========================================================================== */
.space-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, hsla(220, 20%, 30%, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, hsla(220, 20%, 30%, 0.04) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 100%);
}

/* ==========================================================================
   Navigation Bar (Header)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: hsla(222, 47%, 7%, 0.65);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 0.5rem 0;
    background-color: hsla(222, 47%, 5%, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}

.nav-compass {
    color: var(--accent-teal);
    animation: rotateCompass 20s linear infinite;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent-teal), var(--accent-cyan));
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text);
}

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

.btn-secondary-nav {
    background-color: var(--surface-glass);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
}

.btn-secondary-nav:hover {
    border-color: var(--accent-teal);
    box-shadow: 0 0 15px var(--accent-teal-glow);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Hero / Introduction Banner
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 10rem 2rem 6rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-teal-glow) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-cyan-glow) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    z-index: 10;
}

.badge-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--surface-glass);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-teal);
    animation: pulseGlow 2s infinite;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

.hero-headline {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero-subheadline {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

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

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

.btn-primary, .btn-secondary {
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-cyan) 100%);
    color: hsl(224, 64%, 4%);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 242, 254, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--accent-teal);
    background-color: var(--surface-glass-hover);
    box-shadow: 0 0 15px var(--accent-teal-glow);
    transform: translateY(-2px);
}

/* Interactive Radar HUD Graphic */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hud-circle-container {
    width: 320px;
    height: 320px;
    position: relative;
    border-radius: 50%;
    background-color: hsla(220, 30%, 5%, 0.4);
    border: 1px solid var(--border-glass);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hud-circle {
    position: absolute;
    border: 1px dashed var(--border-glass);
    border-radius: 50%;
}

.ring-outer {
    width: 90%;
    height: 90%;
    animation: rotationReverse 40s linear infinite;
}

.ring-middle {
    width: 65%;
    height: 65%;
    border-style: solid;
    border-color: hsla(174, 90%, 41%, 0.15);
    animation: rotationForward 30s linear infinite;
}

.ring-inner {
    width: 40%;
    height: 40%;
    animation: rotationReverse 20s linear infinite;
}

.hud-radar-sweep {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 0;
    left: 0;
    transform-origin: 100% 100%;
    background: conic-gradient(from 0deg, transparent 50%, var(--accent-teal-glow) 100%);
    border-radius: 100% 0 0 0;
    animation: radarSweep 4s linear infinite;
    pointer-events: none;
}

.hud-compass-rose {
    position: absolute;
    width: 100%;
    height: 100%;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.compass-pointer {
    position: absolute;
}

.compass-pointer.north { top: 5px; left: 50%; transform: translateX(-50%); color: var(--accent-teal); font-weight: 600; }
.compass-pointer.east { right: 8px; top: 50%; transform: translateY(-50%); }
.compass-pointer.south { bottom: 5px; left: 50%; transform: translateX(-50%); }
.compass-pointer.west { left: 8px; top: 50%; transform: translateY(-50%); }

.hud-telemetry {
    position: absolute;
    bottom: -30px;
    background-color: var(--surface-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Section Settings & Reveal Framework
   ========================================================================== */
section {
    padding: 6rem 2rem;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-top: -2rem;
    margin-bottom: 3rem;
    max-width: 700px;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   About Me Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-card-glow {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-cyan) 100%);
    filter: blur(25px);
    opacity: 0.25;
    z-index: 1;
}

.profile-image-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background-color: var(--surface-glass);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.profile-img:hover {
    transform: scale(1.05);
}

.profile-svg-placeholder {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--accent-teal);
    padding: 2rem;
    text-align: center;
    background: radial-gradient(circle at center, hsla(174, 90%, 41%, 0.1) 0%, transparent 70%);
}

.placeholder-icon-vector {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    animation: pulseVector 4s ease-in-out infinite;
}

.placeholder-caption {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--color-text-muted);
}

.lead-quote {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--accent-teal);
    padding-left: 1.5rem;
}

.about-body {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.about-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background-color: var(--surface-glass);
    border: 1px solid var(--border-glass);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.meta-item:hover {
    border-color: var(--accent-teal);
    transform: translateY(-2px);
}

.meta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-cyan);
    font-weight: 600;
}

.meta-val {
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 500;
}

/* ==========================================================================
   Core Professional Roles (Timeline)
   ========================================================================== */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-teal) 0%, var(--accent-cyan) 50%, var(--border-glass) 100%);
}

.timeline-card {
    position: relative;
    background-color: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    transition: var(--transition-smooth);
}

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

.timeline-dot {
    position: absolute;
    left: calc(-2rem - 6px);
    top: 2.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bg-dark-2);
    border: 2px solid var(--accent-teal);
    transition: var(--transition-smooth);
    box-shadow: 0 0 0 4px rgba(0, 242, 254, 0.1);
}

.timeline-card:hover {
    transform: translateX(10px);
    border-color: var(--accent-teal);
    box-shadow: 0 10px 35px rgba(0, 242, 254, 0.1);
}

.timeline-card:hover .timeline-dot {
    background-color: var(--accent-teal);
    box-shadow: 0 0 12px var(--accent-teal);
}

.role-active .timeline-dot {
    border-color: var(--accent-cyan);
    background-color: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.role-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: hsla(174, 90%, 41%, 0.1);
    color: var(--accent-teal);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--accent-teal-glow);
}

.role-active .role-logo {
    background-color: hsla(190, 95%, 45%, 0.1);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan-glow);
}

.role-info {
    display: flex;
    flex-direction: column;
}

.role-timeline-badge {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.role-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.company-name {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.role-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
}

.detail-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.detail-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   Subdomain Focus Matrix (🎯 Primary Focus Areas)
   ========================================================================== */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.matrix-card {
    position: relative;
    background-color: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.matrix-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, var(--accent-teal-glow) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.matrix-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-teal);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.12);
}

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

.matrix-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: hsla(220, 20%, 20%, 0.3);
    color: var(--accent-teal);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-glass);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.matrix-card:hover .matrix-icon {
    color: var(--color-text);
    background-color: var(--accent-teal);
    border-color: var(--accent-teal);
    box-shadow: 0 0 20px var(--accent-teal-glow);
}

.matrix-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.matrix-tagline {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

.matrix-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.matrix-list li {
    position: relative;
    padding-left: 1.25rem;
}

.matrix-list li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
}

.matrix-link-indicator {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: var(--transition-fast);
}

.matrix-link-indicator .arrow {
    transition: var(--transition-fast);
}

.matrix-card:hover .matrix-link-indicator {
    color: var(--accent-cyan);
}

.matrix-card:hover .matrix-link-indicator .arrow {
    transform: translateX(4px);
}

/* Interactive highlight matrix-focus triggers */
.matrix-card.focused-highlight {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 25px var(--accent-cyan-glow);
    background-color: var(--surface-glass-hover);
}

/* ==========================================================================
   Technical & Maritime Expertise Section
   ========================================================================== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.expertise-card {
    background-color: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.expertise-card:hover {
    border-color: var(--accent-teal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.exp-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1.25rem;
}

.exp-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: hsla(174, 90%, 41%, 0.1);
    color: var(--accent-teal);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--accent-teal-glow);
}

.exp-card-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

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

.exp-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.exp-item-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.exp-item p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Key Innovations & Projects Section
   ========================================================================== */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-item {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 4rem;
    align-items: center;
    background-color: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 3rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.project-item:hover {
    border-color: var(--accent-teal);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.project-item.project-highlighted {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px var(--accent-cyan-glow);
}

.project-img-side {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    aspect-ratio: 1.4;
    background-color: hsla(220, 20%, 5%, 0.5);
}

.project-img-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-item:hover .project-img {
    transform: scale(1.03);
}

.project-placeholder-svg {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--accent-teal);
    padding: 1.5rem;
    background: radial-gradient(circle at center, hsla(174, 90%, 41%, 0.08) 0%, transparent 80%);
}

.project-category {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.project-name {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

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

.pill-badge {
    background-color: hsla(220, 20%, 25%, 0.4);
    border: 1px solid var(--border-glass);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-family: var(--font-mono);
}

.project-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    background-color: hsla(190, 95%, 45%, 0.05);
    border: 1px solid hsla(190, 95%, 45%, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

/* Highlighted project styling transition overlay */
.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-teal), var(--accent-cyan));
    opacity: 0;
    transition: var(--transition-smooth);
}

.project-item.project-highlighted::before {
    opacity: 1;
}

/* ==========================================================================
   Contact Terminal Console & Footer
   ========================================================================== */
.footer-section {
    padding-top: 6rem;
    padding-bottom: 3rem;
    border-top: 1px solid var(--border-glass);
    background-color: hsla(224, 64%, 3%, 0.9);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.contact-lead-text {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.contact-detail-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--color-text);
}

.c-item svg {
    color: var(--accent-teal);
    flex-shrink: 0;
}

/* Terminal Console Box */
.contact-form-block {
    background-color: hsl(220, 35%, 5%);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background-color: hsl(220, 25%, 10%);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.t-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.t-red { background-color: var(--accent-red); }
.t-yellow { background-color: var(--accent-yellow); }
.t-green { background-color: var(--accent-green); }

.t-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-left: 0.5rem;
}

.terminal-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-family: var(--font-mono);
}

.form-line {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.prompt {
    color: var(--accent-green);
}

.cmd-input {
    color: var(--accent-cyan);
}

.terminal-input, .terminal-textarea {
    background: none;
    border: none;
    outline: none;
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-bottom: 1px dashed var(--border-glass);
    padding: 0.5rem 0;
    width: 100%;
    transition: var(--transition-fast);
}

.terminal-input:focus, .terminal-textarea:focus {
    border-bottom-color: var(--accent-teal);
}

.terminal-textarea {
    resize: none;
    height: 80px;
}

.terminal-submit-btn {
    align-self: flex-start;
    background: none;
    border: 1px solid var(--accent-teal);
    color: var(--accent-teal);
    padding: 0.5rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 1rem;
    transition: var(--transition-fast);
}

.terminal-submit-btn:hover {
    background-color: var(--accent-teal-glow);
    box-shadow: 0 0 15px var(--accent-teal-glow);
    color: var(--color-text);
}

/* Footer Bottom details */
.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-headline {
        font-size: 3.5rem;
    }
    .hero-container {
        gap: 2rem;
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .matrix-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    .project-img-side {
        aspect-ratio: 1.6;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 1.5rem;
    }
    
    .hero-section {
        padding-top: 8rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-headline {
        font-size: 2.8rem;
    }
    
    .hero-summary {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hud-circle-container {
        width: 260px;
        height: 260px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-dark-1);
        flex-direction: column;
        align-items: center;
        padding: 3rem 0;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-glass);
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .matrix-grid, .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .role-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-meta-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Menu Toggle active bar animations */
.mobile-toggle.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */
@keyframes radarSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotationForward {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotationReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes rotateCompass {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 8px var(--accent-teal); }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 16px var(--accent-teal); }
}

@keyframes pulseVector {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; color: var(--accent-cyan); }
}
