/* ==========================================================================
   28th CENTURY CYBER UI - THEME VARIABLES
   ========================================================================== */
   :root {
    /* Colors */
    --bg-base: #030305;
    --bg-darker: #010102;
    --bg-glass: rgba(10, 15, 30, 0.4);
    --bg-glass-hover: rgba(15, 25, 50, 0.6);
    
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    
    /* Neon Accents */
    --neon-cyan: #0ff;
    --neon-pink: #f0f;
    --neon-purple: #8b5cf6;
    --neon-blue: #3b82f6;

    /* Gradients */
    --gradient-cyber: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    --gradient-glow: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    
    /* Effects */
    --shadow-cyan: 0 0 10px rgba(0, 255, 255, 0.3), 0 0 20px rgba(0, 255, 255, 0.1);
    --shadow-purple: 0 0 10px rgba(139, 92, 246, 0.4);
    
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-blur: blur(12px);

    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: crosshair; /* Futuristic cursor */
}

.hidden {
    display: none;
}   

/* Cyber Grid Background */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

.ambient-light {
    position: fixed;
    top: -50vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   GLASSMORPHISM COMPONENTS
   ========================================================================== */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: var(--bg-glass-hover);
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: var(--shadow-cyan);
}

.glass-card:hover::before {
    left: 200%;
}

/* ==========================================================================
   TYPOGRAPHY & ACCENTS
   ========================================================================== */
h1, h2, h3, h4, .logo-accent {
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

.neon-text {
    color: var(--text-main);
    text-shadow: var(--shadow-cyan);
    font-weight: 700;
}

.accent-text {
    color: var(--neon-cyan);
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: white;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-base);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-pink);
    clip-path: inset(80% 0 0% 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-cyan);
    clip-path: inset(20% 0 60% 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip-path: inset(10% 0 20% 0); }
    20% { clip-path: inset(30% 0 50% 0); }
    40% { clip-path: inset(70% 0 10% 0); }
    60% { clip-path: inset(5% 0 60% 0); }
    80% { clip-path: inset(50% 0 30% 0); }
    100% { clip-path: inset(80% 0 5% 0); }
}

@keyframes glitch-anim2 {
    0% { clip-path: inset(25% 0 40% 0); }
    20% { clip-path: inset(10% 0 70% 0); }
    40% { clip-path: inset(80% 0 10% 0); }
    60% { clip-path: inset(40% 0 20% 0); }
    80% { clip-path: inset(60% 0 30% 0); }
    100% { clip-path: inset(5% 0 50% 0); }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    padding: 2px; /* For gradient border */
    border-radius: 4px;
    background: var(--gradient-cyber);
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    outline: none;
    z-index: 1;
}

.btn-content {
    display: block;
    padding: 1rem 2.5rem;
    background: var(--bg-darker);
    border-radius: 2px;
    transition: 0.3s ease;
    width: 100%;
    color: var(--text-main);
}

.btn:hover .btn-content {
    background: transparent;
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.8);
}

.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(-20deg);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 200%;
}

.btn-secondary {
    background: var(--text-muted);
}
.btn-secondary:hover .btn-content {
    background: rgba(255,255,255,0.1);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 3, 5, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-brand-logo {
    height: 45px;
    /* Inverting the dark logo to white/light blue and giving it a cyberpunk glow */
    filter: invert(1) drop-shadow(0 0 8px rgba(0, 255, 255, 0.8)) hue-rotate(180deg) brightness(1.5);
    transition: 0.3s;
}

.nav-brand-logo:hover {
    filter: invert(1) drop-shadow(0 0 15px rgba(0, 255, 255, 1)) hue-rotate(180deg) brightness(2);
    transform: scale(1.05);
}

.logo-accent {
    color: var(--neon-cyan);
    text-shadow: var(--shadow-cyan);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--neon-cyan);
    transition: 0.3s ease;
    box-shadow: var(--shadow-cyan);
}

.nav-item:hover::after {
    width: 100%;
}

.nav-btn {
    border: 1px solid var(--neon-cyan);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    box-shadow: inset 0 0 0 transparent, 0 0 10px rgba(0, 255, 255, 0.1);
    transition: 0.3s;
}

.nav-btn:hover {
    box-shadow: inset 0 0 15px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.4);
    background: rgba(0, 255, 255, 0.1);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
}

.lang-btn {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: 0.3s;
}

.lang-btn.active, .lang-btn:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    font-weight: bold;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--neon-cyan);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   SECTIONS & LAYOUTS
   ========================================================================== */
.section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.divider {
    height: 2px;
    width: 100px;
    background: var(--gradient-cyber);
    margin: 0 auto;
    position: relative;
}
.divider::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 45px;
    width: 10px;
    height: 10px;
    background: var(--neon-cyan);
    box-shadow: var(--shadow-cyan);
    transform: rotate(45deg);
}

/* HERO SECTION */
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    /* Ensure content is never obscured by fixed navbar */
    padding-top: 80px;
    box-sizing: border-box;
}

/* ==========================================================================
   MOBILE FULL-SCREEN NAV OVERLAY
   ========================================================================== */
.mobile-nav-overlay {
    display: none; /* shown by JS */
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(3, 3, 5, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    /* Slide-in animation */
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-nav-overlay.open {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: 1px solid rgba(0,255,255,0.3);
    color: var(--neon-cyan);
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}
.mobile-nav-close:hover {
    background: rgba(0,255,255,0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0,255,255,0.3);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0 2rem;
}

.mobile-nav-item {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    padding: 0.8rem 2rem;
    width: 100%;
    transition: color 0.2s ease;
    border-bottom: 1px solid rgba(0,255,255,0.08);
}
.mobile-nav-item:first-child {
    border-top: 1px solid rgba(0,255,255,0.08);
}
.mobile-nav-item:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0,255,255,0.5);
}

.mobile-nav-cta {
    color: var(--neon-cyan);
    margin-top: 0.5rem;
    border: none !important;
}

.mobile-nav-lang {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}


.tagline {
    font-family: monospace;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.sub-hero {
    font-size: 2rem;
    color: var(--text-muted);
    margin: 1rem 0 2rem;
    font-weight: 300;
}

.hero-desc {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.stats-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--neon-cyan);
    text-shadow: var(--shadow-cyan);
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.avatar-container {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(10, 15, 30, 0.8);
    border: 1px solid var(--neon-purple);
    box-shadow: inset 0 0 50px rgba(139, 92, 246, 0.2), 0 0 30px rgba(139, 92, 246, 0.3);
}

.avatar-ring {
    position: absolute;
    width: 340px;
    height: 340px;
    border: 2px solid transparent;
    border-top-color: var(--neon-cyan);
    border-bottom-color: var(--neon-purple);
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

.cyber-avatar {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
}

.avatar-icon {
    font-size: 6rem;
    color: var(--neon-cyan);
    text-shadow: var(--shadow-cyan);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    position: relative;
    cursor: pointer; /* Indicates it's clickable */
}

.service-icon {
    font-size: 3rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    text-shadow: var(--shadow-cyan);
    transition: 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1) translateY(-10px);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.price {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--neon-purple);
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: var(--shadow-purple);
}

/* PORTFOLIO & MARQUEE */
.tech-marquee-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    padding: 2rem 0;
    border-top: 1px solid rgba(0,255,255,0.1);
    border-bottom: 1px solid rgba(0,255,255,0.1);
    white-space: nowrap;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.tech-marquee {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-muted);
}

.tech-marquee span {
    padding: 0 2rem;
    transition: 0.3s;
}

.tech-marquee span:hover {
    color: var(--neon-cyan);
    text-shadow: var(--shadow-cyan);
}

.neon-dot {
    color: var(--neon-purple) !important;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* Items beyond the initial visible count are hidden */
.portfolio-item.portfolio-extra {
    display: none;
}
.portfolio-item.portfolio-extra.visible {
    display: flex;
}

.portfolio-more-wrap {
    text-align: center;
    margin-top: 2.5rem;
}

.portfolio-item {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.portfolio-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(139, 92, 246, 0.8);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-img-stub {
    height: 250px;
    background: linear-gradient(45deg, rgba(0,255,255,0.1), rgba(139,92,246,0.1));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.portfolio-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 1.5rem;
}

.portfolio-info p {
    margin-bottom: 0;
}

.portfolio-info h3 {
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
}

.portfolio-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.portfolio-link {
    color: var(--neon-cyan);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: 0.3s;
}

.portfolio-link:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* CONTACT */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border-left: 3px solid var(--neon-cyan);
}

.neon-icon {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    text-shadow: var(--shadow-cyan);
}

.contact-method h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

/* FORMS */
.cyber-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.cyber-form input,
.cyber-form textarea,
.cyber-form select {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-body);
    transition: 0.3s;
    outline: none;
}

.cyber-form input:focus,
.cyber-form textarea:focus,
.cyber-form select:focus {
    border-color: var(--neon-cyan);
    box-shadow: inset 0 0 10px rgba(0,255,255,0.1), 0 0 10px rgba(0,255,255,0.2);
}

/* Custom dark styling for the <select> dropdown options */
.cyber-form select option {
    background-color: var(--bg-darker);
    color: var(--text-main);
    padding: 10px;
}
.cyber-form select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Custom Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(0,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: 0.3s;
}

.checkbox-group input[type="checkbox"]:checked {
    background: rgba(0,255,255,0.2);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0,255,255,0.5);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--neon-cyan);
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-group label {
    position: relative !important;
    font-size: 0.8rem !important;
    top: 0 !important;
    pointer-events: auto !important;
    cursor: pointer;
    color: var(--text-muted) !important;
    padding: 0 !important;
    background: transparent !important;
    line-height: 1.5;
    text-shadow: none;
}
.checkbox-group label a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: 0.3s;
}
.checkbox-group label a:hover {
    text-decoration: underline;
    text-shadow: 0 0 5px rgba(0,255,255,0.5);
}

/* Floating labels */
.cyber-form label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.cyber-form input:not([type="checkbox"]):focus ~ label,
.cyber-form textarea:focus ~ label,
.cyber-form input:not([type="checkbox"]):not(:placeholder-shown) ~ label,
.cyber-form textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.75rem;
    color: var(--neon-cyan);
    background: var(--bg-base);
    padding: 0 0.4rem;
}

.select-label {
    top: -0.5rem !important;
    left: 0.8rem !important;
    font-size: 0.75rem !important;
    color: var(--neon-cyan) !important;
    background: var(--bg-base) !important;
    padding: 0 0.4rem !important;
}

.btn-block {
    width: 100%;
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-family: monospace;
    min-height: 24px;
}
.status-success { color: #10b981; }
.status-error { color: #ef4444; }

/* FOOTER */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 2rem 0;
    margin-top: 4rem;
    background: rgba(0,0,0,0.5);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.legal-link {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: 0.3s;
}

.legal-link:hover {
    color: var(--neon-cyan);
}

.px-2 {
    margin: 0 0.5rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 30px;
    border-radius: 50px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: max-content;
    max-width: 90vw;
}

.cookie-banner.glass-card:hover {
    transform: translateX(-50%) translateY(-5px);
}

.cookie-banner.show {
    bottom: 30px;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-main);
}
.cookie-settings-link {
    font-size: 0.75rem;
    color: var(--neon-purple);
    text-decoration: underline;
    cursor: pointer;
}

/* Modal */
.cyber-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}
.cyber-modal.show {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    transform: translateY(20px);
    transition: 0.3s;
}
.cyber-modal.show .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: transparent; border: none;
    color: var(--neon-cyan);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}
.modal-close:hover {
    color: var(--neon-pink);
    transform: scale(1.1);
}
.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,255,255,0.1);
}
.cookie-option:last-of-type { border-bottom: none; }
.cookie-option-info h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.cookie-option-info p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* Cyber Switch */
.cyber-switch {
    position: relative;
    width: 50px;
    height: 24px;
}
.cyber-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cyber-switch label {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 24px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(0,255,255,0.3);
}
.cyber-switch label:before {
    position: absolute;
    content: "";
    height: 16px; width: 16px;
    left: 4px; bottom: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: 0.3s;
}
.cyber-switch input:checked + label {
    background: rgba(0,255,255,0.2);
    border-color: var(--neon-cyan);
    box-shadow: inset 0 0 5px var(--neon-cyan);
}
.cyber-switch input:checked + label:before {
    transform: translateX(24px);
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}
.cyber-switch input:disabled + label { pointer-events: none; opacity: 0.5; }

.btn-sm {
    padding: 8px 15px;
    font-size: 0.8rem;
    min-width: unset;
}

/* ANIMATIONS ON SCROLL */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .glitch { font-size: 3rem; }
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .glitch { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    
    /* Portfolio: single column on narrow screens */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-image-wrapper {
        height: 200px;
    }

    /* Services: single column */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Cookie banner: stack vertically */
    .cookie-banner {
        border-radius: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 20px;
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        left: 16px;
        transform: none;
        text-align: center;
    }
    .cookie-banner.glass-card:hover {
        transform: none;
    }
    .cookie-banner.show {
        bottom: 16px;
    }
    .cookie-content {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    .cookie-content p {
        font-size: 0.8rem;
    }
    .cookie-actions {
        display: flex;
        justify-content: center;
    }
    .cookie-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    /* Hide cookie icon on very small screens to save space */
    .cookie-content > .neon-icon {
        display: none;
    }

    /* Contact wrapper */
    .contact-wrapper {
        gap: 2rem;
    }

    /* Section padding */
    .section { padding: 60px 0; }
    .container { padding: 0 1rem; }

    /* Avatar */
    .avatar-container {
        width: 200px;
        height: 200px;
    }
    .avatar-ring {
        width: 230px;
        height: 230px;
    }
    .cyber-avatar {
        width: 185px;
        height: 185px;
    }
}

@media (max-width: 480px) {
    .glitch { font-size: 1.8rem; }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-image-wrapper {
        height: 180px;
    }
    .portfolio-info {
        padding: 1.2rem;
        gap: 1rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .section-header h2 {
        font-size: 1.6rem;
    }
}

/* =========================================
   ACCESSIBILITY (A11y) STYLES
========================================= */

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -150px;
    left: 0;
    background: var(--neon-cyan);
    color: var(--bg-deep);
    padding: 8px 16px;
    z-index: 100000;
    font-weight: bold;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}

/* Better Keyboard Focus */
*:focus-visible {
    outline: 2px dashed var(--neon-cyan) !important;
    outline-offset: 4px;
}

/* A11y Floating Widget */
.a11y-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    transition: 0.3s;
}
.a11y-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
}

.a11y-modal .a11y-content {
    max-width: 400px;
}

.a11y-option-btn {
    width: 100%;
    justify-content: flex-start !important;
    padding: 1rem 1.5rem;
}
.a11y-option-btn i {
    width: 30px;
    text-align: center;
    margin-right: 15px;
}
.a11y-option-btn[aria-pressed="true"] {
    background: var(--neon-cyan);
    color: var(--bg-deep);
    box-shadow: 0 0 15px var(--neon-cyan);
}
.a11y-option-btn[aria-pressed="true"] i {
    color: var(--bg-deep);
}

/* A11y Mode: High Contrast */
body.a11y-high-contrast {
    --bg-base: #000000;
    --bg-deep: #000000;
    --bg-card: #000000;
    --text-main: #FFFFFF;
    --text-muted: #CCCCCC;
    --neon-cyan: #FFFF00; /* Yellow for high contrast */
    --neon-purple: #00FFFF;
    --neon-pink: #FF00FF;
    --accent: #FFFF00;
}
body.a11y-high-contrast .cyber-grid,
body.a11y-high-contrast .ambient-light {
    display: none;
}
body.a11y-high-contrast .glass-card {
    background: #000000;
    border: 2px solid #FFFF00;
    box-shadow: none;
}
body.a11y-high-contrast .btn:before {
    display: none;
}
body.a11y-high-contrast .btn {
    border: 2px solid #FFFF00;
    background: #000000;
    color: #FFFF00;
}
body.a11y-high-contrast .btn:hover {
    background: #FFFF00;
    color: #000;
}

/* A11y Mode: Large Text */
body.a11y-large-text {
    font-size: 110%; /* increases base size */
}
body.a11y-large-text h1 { font-size: 4rem; }
body.a11y-large-text h2 { font-size: 2.5rem; }
body.a11y-large-text p { font-size: 1.1rem; }

/* A11y Mode: No Animations */
body.a11y-no-animations * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}
body.a11y-no-animations .reveal {
    opacity: 1 !important;
    transform: none !important;
}
