/* ============================================
   CYBER SECURITY PORTFOLIO - DARK THEME
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Professional Deep Cyber */
    --bg-primary: #0a0e17;
    /* Deep Steel Blue */
    --bg-secondary: #111625;
    /* Lighter Steel */
    --bg-card: rgba(20, 25, 40, 0.7);

    /* Accents - Cleaner & Sharper */
    --neon-cyan: #00F0FF;
    /* Electric Blue vs Standard Cyan */
    --neon-purple: #7B61FF;
    /* Soft Royal Purple */
    --flutter-blue: #29B6F6;
    /* Flutter standard */
    --cyber-yellow: #FFD600;

    --text-primary: #f0f4f8;
    --text-secondary: #b0b8c4;
    --text-muted: #64748b;

    --border-color: rgba(148, 163, 184, 0.15);

    /* Typography */
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Effects - Reduced Glow for Professional Look */
    --glow-cyan: 0 0 15px rgba(0, 240, 255, 0.3);
    --glow-purple: 0 0 15px rgba(123, 97, 255, 0.3);
    --glass-shimmer: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

body {
    font-family: var(--font-mono);
    /* Force Monospace for Hacker Feel */
    background-color: #000000;
    /* Pitch Black */
    /* Animated Cyber Grid (Darker) */
    background-image:
        linear-gradient(rgba(0, 255, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* CRT Scanline Overlay */
/* Textured Scanline for Title Only */
/* Textured Scanline for Title Only */
.hero-title {
    position: relative;
    display: inline-block;
    /* Wrap content */
}

/* overlay on H1 instead of text span to avoid conflict */
.hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0.8;
    mix-blend-mode: overlay;
}

/* Matrix Matrix Rain Canvas */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    /* Behind everything */
    opacity: 0.2;
    /* Subtle background */
}


@keyframes grid-scroll {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 40px 40px, 40px 40px, 0 0;
    }
}



/* ============================================
   INTRO SCREEN (DUALITY THEME)
   ============================================ */
.terminal-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s ease-in-out;
    background: #111;
    /* Fallback */
    overflow: hidden;
}

/* Background Split */
.duality-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 0;
}

.side {
    flex: 1;
    height: 100%;
    position: relative;
    transition: all 0.5s ease;
}

.side.destruction {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    /* Diagonal cut logic handled by parent or clip-path? 
       Simplest visual is just side-by-side or a skewed overlay.
       Let's use a skewed divider in the middle nicely. */
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    width: 55%;
    /* Slight overlap */
    position: absolute;
    left: 0;
}

.side.construction {
    background: #f8f9fa;
    width: 100%;
    z-index: -1;
}

/* Content */
.gatekeeper-content {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* Typography */
.identity-wrapper {
    margin-bottom: 4rem;
}

.mega-name {
    font-family: 'Poppins', sans-serif;
    /* Clean geometric sans */
    font-size: 6rem;
    font-weight: 800;
    color: #fff;
    /* Text mix blend mode to invert colors on the light side? Hard to control.
       Let's stick to White with a robust shadow or outline. */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: 5px;
    margin: 0;
    text-transform: uppercase;
}

.duality-question {
    font-family: 'Playfair Display', serif;
    /* Elegant serif */
    font-style: italic;
    font-size: 1.8rem;
    color: #888;
    /* To ensure visibility on both sides: */
    background: rgba(0, 0, 0, 0.7);
    display: inline-block;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    margin-top: 1rem;
    border: 1px solid #444;
}

/* Cards */
.gate-selection {
    display: flex;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.mode-card {
    background: rgba(255, 255, 255, 0.05);
    /* Glass */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    width: 280px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: center;
}

/* HACKER (Destructive) */
.hacker-mode {
    border-color: #333;
    background: rgba(0, 0, 0, 0.6);
}

.hacker-mode:hover {
    transform: translateY(-10px);
    border-color: #ff3333;
    /* Red Destructive */
    box-shadow: 0 20px 50px rgba(255, 51, 51, 0.2);
}

.hacker-mode h3 {
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    margin: 1rem 0;
}

.hacker-mode p {
    color: #888;
}

.hacker-mode .mode-icon {
    font-size: 3rem;
}


/* DEV (Constructive) */
.dev-mode {
    background: rgba(255, 255, 255, 0.8);
    border-color: #ddd;
}

.dev-mode:hover {
    transform: translateY(-10px);
    border-color: #007bff;
    /* Blue Constructive */
    box-shadow: 0 20px 50px rgba(0, 123, 255, 0.2);
}

.dev-mode h3 {
    color: #222;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    margin: 1rem 0;
}

.dev-mode p {
    color: #555;
}

.dev-mode .mode-icon {
    font-size: 3rem;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mega-name {
        font-size: 3.5rem;
        letter-spacing: 2px;
    }

    .side.destruction {
        width: 100%;
        height: 50%;
        clip-path: none;
        top: 0;
        left: 0;
    }

    .side.construction {
        width: 100%;
        height: 50%;
        top: 50%;
    }

    .duality-bg {
        flex-direction: column;
    }

    .gate-selection {
        gap: 2rem;
    }

    .duality-question {
        font-size: 1.2rem;
    }
}

.terminal-intro.hidden {
    opacity: 0;
    visibility: hidden;
}

.terminal-content {
    max-width: 800px;
    padding: var(--spacing-md);
    font-family: var(--font-mono);
}

.terminal-line {
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.terminal-line:nth-child(1) {
    animation-delay: 0.5s;
}

.terminal-line:nth-child(2) {
    animation-delay: 1.5s;
}

.terminal-line:nth-child(3) {
    animation-delay: 2.5s;
}

.terminal-line:nth-child(4) {
    animation-delay: 3.5s;
}

.terminal-prompt {
    color: var(--neon-green);
    margin-right: var(--spacing-xs);
}

.terminal-text {
    color: var(--text-primary);
}

.cursor-blink {
    color: var(--neon-green);
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Cyberpunk HUD Button */
.enter-btn {
    position: relative;
    margin-top: var(--spacing-md);
    padding: 1rem 2.5rem;
    background: rgba(0, 240, 255, 0.05);
    /* Subtle glass tint */
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    /* Sci-fi Angled Corners */
    clip-path: polygon(20px 0, 100% 0,
            100% calc(100% - 20px),
            calc(100% - 20px) 100%,
            0 100%,
            0 20px);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
    text-decoration: none;
    /* Ensure links look like buttons */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hover State: "Power Up" */
.enter-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.4),
        inset 0 0 20px rgba(0, 240, 255, 0.3);
    color: #fff;
    text-shadow: 0 0 8px var(--neon-cyan);
    transform: translateY(-2px);
    border-color: #fff;
}

/* Animated Scanline Overlay on Button */
.enter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: skewX(-25deg);
    transition: none;
    /* Controlled by animation on hover */
}

.enter-btn:hover::before {
    animation: btn-scan 1s linear infinite;
}

@keyframes btn-scan {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.main-content.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: var(--spacing-sm) 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.nav-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--neon-cyan);
}

.nav-link:hover::after {
    width: 100%;
}

/* Replacing legacy green/blue variables with new theme */
.terminal-loader {
    border: 3px solid var(--neon-cyan);
    border-top: 3px solid transparent;
}

.loader-text {
    color: var(--neon-cyan);
}

.enter-btn {
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
}

.enter-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--glow-cyan);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 65, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 3px;
}

/* Hero Section Updates */
.hero-subtitle {
    font-size: 1.5rem;
    color: var(--flutter-blue);
    margin-bottom: 2rem;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.hero-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: var(--glow-green);
    animation: pulse 2s infinite;
}

.social-link {
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.social-link:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--glow-cyan);
}

.scroll-indicator {
    color: var(--text-muted);
}

.scroll-indicator span {
    border-bottom: 2px solid var(--neon-cyan);
    border-right: 2px solid var(--neon-cyan);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* ============================================
   TYPOGRAPHY & EFFECTS
   ============================================ */
/* "Middle Slice" Glitch Effect (Bursty & Non-Looping) */
.glitch-text {
    position: relative;
    color: transparent;
    /* Hide original text */
    font-weight: 800;
    display: inline-block;
    letter-spacing: 2px;
    overflow: visible;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--text-primary);
    background: transparent;
    overflow: hidden;
}

/* Top Half */
.glitch-text::before {
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    animation: glitch-burst-top 3s 2 forwards;
    /* Runs 2 times then stops */
    text-shadow: -2px 0 var(--neon-purple);
}

/* Bottom Half */
.glitch-text::after {
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    animation: glitch-burst-bottom 3s 2 forwards;
    /* Runs 2 times then stops */
    text-shadow: 2px 0 var(--neon-cyan);
}

/* Bursty Glitch Animation */
@keyframes glitch-burst-top {
    0% {
        transform: translate(0, 0);
    }

    /* First Burst */
    10% {
        transform: translate(-3px, 0) skew(-5deg);
    }

    15% {
        transform: translate(3px, 0) skew(5deg);
    }

    20% {
        transform: translate(0, 0);
    }

    /* Pause */
    40% {
        transform: translate(0, 0);
    }

    /* Second Burst (Violent) */
    42% {
        transform: translate(10px, 0) skew(10deg);
    }

    45% {
        transform: translate(-5px, 0) skew(-5deg);
    }

    48% {
        transform: translate(0, 0);
    }

    /* Third Burst (Minor) */
    80% {
        transform: translate(2px, 0);
    }

    82% {
        transform: translate(-2px, 0);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes glitch-burst-bottom {
    0% {
        transform: translate(0, 0);
    }

    /* First Burst - Opposite direction */
    10% {
        transform: translate(3px, 0) skew(5deg);
    }

    15% {
        transform: translate(-3px, 0) skew(-5deg);
    }

    20% {
        transform: translate(0, 0);
    }

    /* Pause */
    40% {
        transform: translate(0, 0);
    }

    /* Second Burst */
    42% {
        transform: translate(-10px, 0) skew(-10deg);
    }

    45% {
        transform: translate(5px, 0) skew(5deg);
    }

    48% {
        transform: translate(0, 0);
    }

    /* Third Burst */
    80% {
        transform: translate(-2px, 0);
    }

    82% {
        transform: translate(2px, 0);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Section Number without glitch */
.section-number {
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    font-size: 1.5rem;
    margin-right: 1rem;
    opacity: 0.8;
}

/* Cyber Text Subtitle */
.cyber-text {
    color: var(--flutter-blue);
    text-shadow: 0 0 10px rgba(66, 165, 245, 0.5);
    font-family: var(--font-mono);
    letter-spacing: 2px;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: var(--spacing-xl) var(--spacing-md);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-number {
    color: var(--neon-green);
    font-size: 0.6em;
    opacity: 0.5;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-content {
    display: flex;
    justify-content: center;
}

/* Identity Card Styles */
.identity-card {
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    position: relative;
    backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.identity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    opacity: 0.5;
}

.identity-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.15);
}

.card-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    z-index: -1;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    opacity: 0.5;
    animation: scan 4s linear infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Card Header */
.id-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.id-photo-container {
    position: relative;
    width: 100px;
    height: 100px;
    border: 2px solid var(--neon-blue);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 217, 255, 0.05);
}

.id-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.photo-scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0, 217, 255, 0.2), transparent);
    animation: scan-photo 2s linear infinite;
}

@keyframes scan-photo {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.id-title h3 {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.id-number {
    font-family: var(--font-mono);
    color: var(--neon-green);
    font-size: 0.9rem;
    opacity: 0.8;
}

.id-logo {
    margin-left: auto;
    font-size: 2.5rem;
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(0, 153, 255, 0.5));
}

/* Data Grid */
.data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.data-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.data-label {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.data-value {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: bold;
}

.status-active {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

.clearance-level {
    color: #ff3333;
    text-shadow: 0 0 5px rgba(255, 51, 51, 0.5);
}

/* Bio Section */
.bio-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 3px solid var(--flutter-blue);
    margin-bottom: 1.5rem;
}

.bio-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bio-label {
    font-family: var(--font-mono);
    color: var(--flutter-blue);
    font-size: 0.9rem;
    font-weight: bold;
}

.bio-line {
    flex-grow: 1;
    height: 1px;
    background: rgba(66, 165, 245, 0.3);
}

.bio-text {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.verified-badge {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

@media (max-width: 600px) {
    .data-grid {
        grid-template-columns: 1fr;
    }

    .id-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .id-logo {
        margin-left: 0;
        display: none;
    }
}

/* ============================================
   TECH CLUSTER (SKILLS)
   ============================================ */
.tech-cluster {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

.tech-node {
    background: rgba(15, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.tech-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-node:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 229, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.tech-node:hover::before {
    opacity: 1;
}

.node-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-node:hover .node-icon {
    transform: scale(1.1) rotate(5deg);
}

.node-content h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

/* Circular Progress */
.progress-ring-container {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.ring-progress {
    fill: none;
    stroke: var(--neon-cyan);
    stroke-width: 4;
    stroke-dasharray: 163;
    /* 2 * PI * r (26) */
    stroke-dashoffset: 163;
    transition: stroke-dashoffset 1.5s ease;
    stroke-linecap: round;
}

/* Set progress via CSS */
.flutter-node .ring-progress {
    stroke-dashoffset: calc(163 - (163 * 0.95));
    stroke: var(--flutter-blue);
}

.security-node .ring-progress {
    stroke-dashoffset: calc(163 - (163 * 0.80));
    stroke: var(--neon-purple);
}

.firebase-node .ring-progress {
    stroke-dashoffset: calc(163 - (163 * 0.85));
    stroke: var(--cyber-yellow);
}

.hacking-node .ring-progress {
    stroke-dashoffset: calc(163 - (163 * 0.70));
    stroke: #ff3333;
}

.linux-node .ring-progress {
    stroke-dashoffset: calc(163 - (163 * 0.75));
}

.net-node .ring-progress {
    stroke-dashoffset: calc(163 - (163 * 0.65));
}

.percent {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ============================================
   HOLOGRAPHIC PROJECTS
   ============================================ */
.holo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.holo-card {
    position: relative;
    background: rgba(10, 10, 20, 0.4);
    border-radius: 12px;
    height: 100%;
    transition: all 0.4s ease;
}

.holo-content {
    position: relative;
    z-index: 2;
    background: rgba(5, 5, 10, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.holo-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-cyan), transparent, var(--neon-purple));
    border-radius: 14px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.holo-card:hover .holo-border {
    opacity: 0.5;
}

.holo-card:hover .holo-content {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.holo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.threat-idx {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    padding: 2px 6px;
    border-radius: 4px;
}

.holo-icon {
    font-size: 2rem;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.holo-card:hover .holo-icon {
    filter: grayscale(0) drop-shadow(0 0 5px var(--neon-purple));
}

.holo-title {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.holo-body p {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.holo-tech {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.holo-tech span {
    font-size: 0.75rem;
    color: var(--flutter-blue);
    background: rgba(66, 165, 245, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.holo-btn {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.holo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--neon-cyan);
    transition: width 0.3s ease;
    z-index: -1;
}

.holo-btn:hover {
    color: #000;
}

.holo-btn:hover::before {
    width: 100%;
}

/* ============================================
   CERTIFICATIONS (OS BADGES)
   ============================================ */

.cert-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.digital-badge {
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px;
    /* Inner spacing for border effect */
    width: 200px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.badge-inner {
    background: rgba(5, 5, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.digital-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.box-hp {
    border-color: var(--neon-cyan);
}

.box-ec {
    border-color: var(--neon-purple);
}

.box-cs {
    border-color: var(--cyber-yellow);
}

.digital-badge:hover.box-hp {
    box-shadow: 0 0 15px var(--glow-cyan);
}

.digital-badge:hover.box-ec {
    box-shadow: 0 0 15px var(--glow-purple);
}

.digital-badge:hover.box-cs {
    box-shadow: 0 0 15px rgba(255, 214, 0, 0.3);
}

.badge-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.digital-badge h3 {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.digital-badge p {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.7rem;
    opacity: 0.7;
}

/* ============================================
   CONTACT (HUD INTERFACE)
   ============================================ */

.hud-interface {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(10, 20, 30, 0.6);
    border: 1px solid var(--neon-cyan);
    border-top-width: 4px;
    padding: 2rem;
    position: relative;
    backdrop-filter: blur(5px);
}

.hud-interface::before,
.hud-interface::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-cyan);
    transition: all 0.3s ease;
}

.hud-interface::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.hud-interface::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.hud-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 229, 255, 0.3);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
}

.hud-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.hud-label {
    color: var(--text-muted);
}

.hud-value {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hud-value:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 5px var(--neon-purple);
}

.hud-footer {
    margin-top: 2rem;
    text-align: center;
}

.init-btn {
    background: var(--neon-cyan);
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    font-family: var(--font-mono);
    font-weight: bold;
    cursor: pointer;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: all 0.3s ease;
}

.init-btn:hover {
    background: #fff;
    box-shadow: 0 0 15px var(--neon-cyan);
    letter-spacing: 2px;
}

/* ============================================
   FOOTER
   ============================================ */
.cyber-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-muted);
    letter-spacing: 5px;
    opacity: 0.5;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--text-muted);
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.copyright {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* GLOBAL OVERFLOW FIX */
*,
*::before,
*::after {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        flex-direction: column;
        background: rgba(5, 5, 16, 0.95);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.3s ease;
        padding-top: 4rem;
        border-bottom: 1px solid var(--border-color);
        backdrop-filter: blur(15px);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
        z-index: 101;
    }

    .section-title {
        font-size: 1.8rem;
    }

    body {
        width: 100%;
        overflow-x: hidden;
    }

    /* Ensure containers don't overflow */
    .container {
        width: 100%;
        padding: 0 10px;
        /* Consistent small padding */
        overflow: hidden;
        /* Cut off if absolute necessity */
    }

    /* Skills: 2 Columns on Mobile - ULTRA COMPACT */
    .tech-cluster {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        /* Prevent flex blowout */
        gap: 8px;
        /* Fixed pixel gap */
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .tech-node {
        padding: 8px;
        width: 100%;
        min-width: 0;
        /* Crucial for grid */
        background: rgba(10, 20, 30, 0.8);
        border: 1px solid var(--neon-cyan);
        border-radius: 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .node-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .node-icon {
        background: transparent;
        border: none;
        box-shadow: none;
        margin: 0;
    }

    .node-icon svg,
    .node-icon .icon {
        width: 30px;
        /* Smaller Icons */
        height: 30px;
        font-size: 1.5rem;
    }

    /* Hide complex ring, show simple text */
    .progress-ring {
        display: none;
    }

    .percent {
        position: static;
        font-size: 0.9rem;
        color: var(--neon-cyan);
        font-weight: bold;
        background: rgba(0, 240, 255, 0.1);
        padding: 2px 8px;
        border-radius: 4px;
        margin-top: 0.2rem;
    }

    /* Projects: 2 Columns on Mobile - ULTRA COMPACT */
    .holo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        /* Prevent flex blowout */
        gap: 8px;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .holo-card {
        width: 100%;
        min-width: 0;
    }

    .holo-content {
        padding: 8px;
        width: 100%;
    }

    /* Force images/icons to shrink */
    img,
    svg,
    .icon,
    .node-icon svg {
        max-width: 100%;
        flex-shrink: 1;
    }

    /* Tiny font adjustments */
    .tech-node h3,
    .holo-title {
        font-size: 11px;
        margin-top: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* Hide everything except Icon and Title */
    .holo-header {
        flex-direction: column;
        margin-bottom: 0.5rem;
        border: none;
        padding: 0;
    }

    .threat-idx,
    .holo-body,
    .holo-tech,
    .holo-btn {
        display: none !important;
        /* Hide extra info as requested */
    }

    .holo-icon {
        font-size: 1.5rem;
        /* Smaller Icon */
        margin-bottom: 0.3rem;
    }

    /* Hero Buttons */
    .hero-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px !important;
        width: 100%;
        padding: 0;
    }

    .enter-btn {
        padding: 0 1rem;
    }

    /* About Section - IMPROVED MOBILE LAYOUT */
    .identity-card {
        padding: 1rem;
    }

    .id-header {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    }

    .id-photo-container {
        width: 80px;
        /* Slightly smaller photo for mobile */
        height: 80px;
        margin: 0 auto;
    }

    .id-title h3 {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }

    .id-number {
        font-size: 0.8rem;
    }

    .id-logo {
        display: none;
    }

    /* Compact Data Grid - 2 Cols on mobile is better */
    .data-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem 1rem;
        margin-bottom: 1rem;
    }

    .data-item {
        gap: 0.2rem;
    }

    .data-label {
        font-size: 0.7rem;
    }

    .data-value {
        font-size: 0.85rem;
    }

    /* Compact Bio */
    .bio-section {
        padding: 0.8rem;
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .hud-interface {
        padding: 1rem;
    }

    .hud-row {
        flex-direction: column;
        gap: 0.2rem;
    }


    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .terminal-content {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

/* Hamburger Animations */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -6px);
}

/* ============================================
   SMOOTH SCROLLING & UTILS
   ============================================ */
html {
    scroll-behavior: smooth;
}

.hidden {
    display: none !important;
}


/* ============================================
   DUAL MODE ENTRY BUTTONS
   ============================================ */
.intro-buttons {
    animation: fadeIn 2s ease forwards;
    opacity: 0;
    animation-delay: 4s;
    /* After terminal text finishes */
}

/* Hacker Button (keeps existing style, just slight mod) */
#btn-hacker {
    margin-top: 0;
    width: 200px;
}

/* Developer Button (Clean Style) */
.dev-mode-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-family: sans-serif;
    /* Clean font distinction */
    letter-spacing: 1px;
    box-shadow: none;
    clip-path: none;
    /* No angled corners for dev button */
    border-radius: 4px;
    width: 200px;
    padding: 0 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dev-mode-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   DEVELOPER VIEW (Neat & Clean Theme)
   ============================================ */
#developer-view {
    background-color: #f8f9fa;
    /* Light background */
    color: #333;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    position: relative;
    z-index: 10;
    overflow-x: hidden;
    text-align: left;
    /* Reset text alignment */
}

#developer-view * {
    box-sizing: border-box;
}

/* Dev Navigation */
.dev-nav {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dev-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    /* Removed global flex to prevent section layout issues */
}

/* Specific Flex Containers */
.dev-nav .dev-container,
.dev-hero .dev-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dev-logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #007bff;
    /* Flutter Blueish */
}

.dev-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.dev-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.dev-menu a:hover {
    color: #007bff;
}

/* Dev Hero */
.dev-hero {
    padding: 5rem 0;
    background: #fff;
}

.dev-hero .dev-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.dev-hero-content {
    flex: 1;
}

.dev-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.dev-hero .subtitle {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.dev-hero .description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.dev-actions {
    display: flex;
    gap: 1rem;
}

.dev-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.dev-btn.primary {
    background: #007bff;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.dev-btn.primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.dev-btn.secondary {
    background: #e9ecef;
    color: #333;
}

.dev-btn.secondary:hover {
    background: #dee2e6;
}

.dev-hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.dev-profile-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.dev-profile-pic:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: #007bff;
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.3);
}

/* Dev Sections */
.dev-section {
    padding: 4rem 0;
}

.dev-section.bg-light {
    background: #dfe6ed;
}

.dev-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #222;
    position: relative;
    display: block;
    /* Standard block */
    width: 100%;
    /* Full width */
    /* Removed translate hack */
}

.dev-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #007bff;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Dev Projects Grid */
.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dev-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.dev-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dev-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dev-icon {
    font-size: 2rem;
}

.dev-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #222;
}

.dev-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.dev-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dev-tags span {
    background: #f0f7ff;
    color: #007bff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Dev Skills Pills */
.dev-skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.skill-pill {
    background: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    color: #444;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.skill-pill:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   DEVELOPER VIEW INTERACTIVITY
   ============================================ */

/* Entrance Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dev-hero-content,
.dev-hero-image {
    animation: fadeUp 1s ease-out forwards;
}

.dev-hero-image {
    animation-delay: 0.2s;
}

/* Typing Cursor */
.cursor {
    display: inline-block;
    width: 3px;
    background-color: #007bff;
    animation: blink 1s infinite;
    margin-left: 5px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Nav Link Hover - Sliding Underline */
.dev-menu a {
    position: relative;
    padding-bottom: 5px;
}

.dev-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.dev-menu a:hover::after {
    width: 100%;
}

/* Card Interactive Hover */
.dev-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.dev-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15);
    border-color: #007bff;
}

/* Icon Pulse on Hover */
.dev-card:hover .dev-icon {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Skill Pill Hover - Pop Effect */
.skill-pill {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: default;
}

.skill-pill:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

/* Social Icons Hover */
.social-link-dev {
    transition: transform 0.3s, filter 0.3s;
    filter: grayscale(100%);
    opacity: 0.7;
}

.social-link-dev:hover {
    transform: translateY(-3px) rotate(5deg);
    filter: grayscale(0%);
    opacity: 1;
}

/* Button Hover - Glow and Lift */
.dev-btn {
    position: relative;
    overflow: hidden;
}

.dev-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.dev-btn:hover::after {
    left: 100%;
}

/* Dev Contact Section */
.dev-contact-wrapper {
    display: flex;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.dev-contact-info {
    flex: 1;
}

.dev-contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #222;
}

.dev-contact-info p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-item-dev {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #007bff;
}

.contact-item-dev h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #888;
}

.contact-item-dev p {
    margin: 0;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

/* Dev Form */
.dev-contact-form {
    flex: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Responsive Dev Contact */
@media (max-width: 768px) {
    .dev-contact-wrapper {
        flex-direction: column;
        padding: 1.5rem;
        gap: 2rem;
    }
}

/* ============================================
   HANDSHAKE MODAL STYLES
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Transparent background to see hacker view behind */
    background: transparent;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    /* Let clicks pass through outside the window */
}

.modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    position: relative;
    width: auto;
    max-width: none;
    pointer-events: auto;
    /* Re-enable clicks on the window */
}

.close-btn {
    display: none;
    /* Hide default close button, use window controls */
}

/* Mobile View Styles */
.mobile-only {
    display: none;
    text-align: center;
    background: #0a0a0a;
    border: 1px solid var(--neon-cyan);
    padding: 2rem;
    border-radius: 8px;
    pointer-events: auto;
}

.contact-card-mobile {
    margin-top: 1rem;
    border: 1px solid var(--neon-cyan);
    padding: 1.5rem;
    border-radius: 8px;
}

.contact-row {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.contact-socials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-icon {
    display: block;
    padding: 0.8rem;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    transition: all 0.3s;
}

.social-icon:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* Desktop View Styles */
.desktop-only {
    display: none;
    width: 800px;
    height: 500px;
}

.terminal-window {
    width: 100%;
    height: 100%;
    background: #0c0c0c;
    /* Deep black */
    border: 1px solid #444;
    /* Standard Grey Border */
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    /* Better monospace stack */
    overflow: hidden;
    /* Initial position if not dragged */
    position: relative;
}

.terminal-header-bar {
    background: #2d2d2d;
    /* Dark grey header */
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #1a1a1a;
    cursor: grab;
    /* Drag Cursor */
    user-select: none;
}

.terminal-header-bar:active {
    cursor: grabbing;
}

.term-buttons {
    display: flex;
    gap: 8px;
    /* Spaced out mac-style buttons */
    margin-right: 15px;
}

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.term-btn.red {
    background: #ff5f56;
    border: 1px solid #e0443e;
}

.term-btn.yellow {
    background: #ffbd2e;
    border: 1px solid #dea123;
}

.term-btn.green {
    background: #27c93f;
    border: 1px solid #1aab29;
}

.term-title {
    color: #999;
    font-size: 0.85rem;
    font-weight: bold;
    flex: 1;
    text-align: center;
    margin-right: 50px;
    /* Balance the buttons */
}

.terminal-body-content {
    padding: 1.5rem;
    background-color: rgba(10, 10, 10, 0.95);
    color: #00ff00;
    flex: 1;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.4;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.4);
    /* CRT Glow */
}

/* Custom Scrollbar */
.terminal-body-content::-webkit-scrollbar {
    width: 8px;
}

.terminal-body-content::-webkit-scrollbar-track {
    background: #0c0c0c;
}

.terminal-body-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

/* Sniffing Animation */
#packet-dump {
    height: 320px;
    overflow: hidden;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-family: 'Consolas', monospace;
}

.scan-progress-bar {
    width: 100%;
    height: 4px;
    /* Thinner, techy bar */
    background: #1a1a1a;
    margin-top: 15px;
}

.scan-fill {
    height: 100%;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    width: 0%;
    transition: width 0.1s linear;
}

/* Form Styles - Terminal Theme */
.hacker-form {
    margin-top: 1rem;
}

.input-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    border-bottom: none;
    /* Removed border */
}

/* KALI PROMPT STYLING */
.input-line .prompt {
    margin-right: 10px;
    white-space: nowrap;
    text-shadow: none;
}

/* Kali defaults: (root💀kali)-[~] */
.kali-user {
    color: #de3a3a;
    font-weight: bold;
}

/* Red */
.kali-host {
    color: #de3a3a;
    font-weight: bold;
}

.kali-path {
    color: #3465a4;
    font-weight: bold;
}

/* Blue */
.kali-symbol {
    color: #fff;
}

.input-line input,
.input-line textarea {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1rem;
    caret-color: var(--neon-cyan);
    /* Blinking block cursor color */
}

.hack-submit-btn {
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    padding: 0.5rem 1rem;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1.5rem;
    width: auto;
    transition: all 0.3s;
}

.hack-submit-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

.success {
    color: #00ff00;
    font-weight: bold;
}

@media (min-width: 769px) {
    .desktop-only {
        display: block;
    }
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}

.dev-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Dev View */
@media (max-width: 768px) {
    .dev-hero .dev-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .dev-actions {
        justify-content: center;
    }

    .dev-profile-pic {
        width: 200px;
        height: 200px;
    }

    .dev-hero h1 {
        font-size: 2rem;
    }

    .dev-menu {
        display: none;
        /* Simple hide for mobile MVP, or add hamburger later */
    }
}

/* ============================================
   DISPERSION TRANSITION EFFECT
   ============================================ */
#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    display: none;
    /* Hidden by default */
    grid-template-columns: repeat(10, 1fr);
    /* 10x10 Grid */
    grid-template-rows: repeat(10, 1fr);
}

.transition-shard {
    width: 100%;
    height: 100%;
    background-color: #000;
    /* Default color, JS will override */
    transform-origin: center;
}

.transition-shard.animating {
    animation: disperse 2.0s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes disperse {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0) rotate(var(--rot));
        opacity: 0;
    }
}