/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Cold Tech / Cyber */
    --color-primary: #00d4ff;
    --color-secondary: #0099ff;
    --color-accent: #00ffcc;
    --color-dark: #0a0e27;
    --color-darker: #050816;
    --color-light: #ffffff;
    --color-text-muted: #a0aec0;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

body {
    font-family: var(--font-primary);
    background: var(--color-darker);
    color: var(--color-light);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   NAVIGATION HEADER
   ======================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 8, 22, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s var(--transition-smooth);
}

.main-header.scrolled {
    background: rgba(5, 8, 22, 0.95);
    box-shadow: 0 5px 30px rgba(0, 212, 255, 0.2);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* ========================================
   LOGO / BRAND
   ======================================== */

.navbar-brand {
    flex: 0 0 auto;
    min-width: 180px;
    flex-shrink: 0;
}

.logo-link {
    text-decoration: none;
    display: block;
    position: relative;
    transition: all 0.3s var(--transition-smooth);
}

.logo-image {
    height: 45px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: all 0.3s var(--transition-smooth);
}

.logo-link:hover .logo-image {
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(0, 212, 255, 0.8));
    transform: translateY(-2px);
}

/* Responsive Logo Sizes */
@media (max-width: 1024px) {
    .logo-image {
        height: 40px;
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 30px;
    }
}

/* ========================================
   NAVIGATION MENU
   ======================================== */

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    border-radius: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 0.3s var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.05);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link.active {
    color: var(--color-light);
    background: rgba(0, 212, 255, 0.1);
}

/* ========================================
   EXPERIENCE BADGE (28 YEARS)
   ======================================== */

.experience-badge {
    position: relative;
    flex-shrink: 0;
}

.badge-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg,
            rgba(0, 212, 255, 0.15),
            rgba(0, 153, 255, 0.1));
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
    transition: all 0.4s var(--transition-smooth);
}

.badge-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
}

.badge-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
    color: var(--color-light);
}

.badge-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle,
            rgba(0, 212, 255, 0.4) 0%,
            transparent 70%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: badgePulse 3s ease-in-out infinite;
    z-index: 1;
}

.experience-badge:hover .badge-content {
    transform: translateY(-3px);
    box-shadow:
        0 0 40px rgba(0, 212, 255, 0.6),
        inset 0 0 30px rgba(0, 212, 255, 0.2);
    border-color: var(--color-accent);
}

.experience-badge:hover .badge-glow {
    opacity: 1;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ========================================
   MOBILE MENU TOGGLE
   ======================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.toggle-line {
    width: 25px;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.3s var(--transition-smooth);
    border-radius: 2px;
}

.menu-toggle.active .toggle-line:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.menu-toggle.active .toggle-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .toggle-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* ========================================
   MOBILE MENU OVERLAY
   ======================================== */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition-smooth);
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   RESPONSIVE NAVIGATION
   ======================================== */

@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-menu {
        gap: 0.3rem;
    }

    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .badge-number {
        font-size: 1.6rem;
    }

    .badge-text {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    /* Optimize experience badge for mobile - make it more compact */
    .experience-badge {
        order: -1;
        /* Move to start for better layout */
    }

    .badge-content {
        padding: 0.5rem 0.8rem;
        gap: 0.4rem;
    }

    .badge-number {
        font-size: 1.3rem;
    }

    .badge-text {
        font-size: 0.55rem;
        line-height: 1.2;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(5, 8, 22, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 1.5rem 2rem;
        gap: 0.3rem;
        transition: right 0.4s var(--transition-smooth);
        border-left: 2px solid rgba(0, 212, 255, 0.3);
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.7);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 12px;
        width: 100%;
        text-align: left;
        background: rgba(0, 212, 255, 0.03);
        border: 1px solid rgba(0, 212, 255, 0.1);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(0, 212, 255, 0.15);
        border-color: rgba(0, 212, 255, 0.3);
        transform: translateX(5px);
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }

    .navbar-brand {
        min-width: 120px;
        flex: 0 0 auto;
    }

    /* Further optimize badge for small screens */
    .badge-content {
        padding: 0.4rem 0.6rem;
        gap: 0.3rem;
    }

    .badge-number {
        font-size: 1.1rem;
    }

    .badge-text {
        font-size: 0.5rem;
    }

    .nav-menu {
        width: 80%;
        max-width: 280px;
        padding: 4.5rem 1.2rem 2rem;
    }

    .nav-link {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }

    .menu-toggle {
        padding: 0.3rem;
    }

    .toggle-line {
        width: 22px;
    }
}

/* ========================================
   HERO SECTION - CORE STRUCTURE
   ======================================== */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--color-darker);
}

/* ========================================
   BACKGROUND LAYER - PARALLAX IMAGE
   ======================================== */

.hero-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('../images/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transition: transform 0.1s var(--transition-smooth);
    z-index: 1;
}

/* ========================================
   INTERACTIVE LIGHT OVERLAY
   ======================================== */

.hero-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
    z-index: 2;
    background: radial-gradient(circle 600px at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(0, 212, 255, 0.15) 0%,
            rgba(0, 153, 255, 0.08) 25%,
            rgba(0, 255, 204, 0.04) 50%,
            transparent 70%);
}

.hero-section:hover .hero-light {
    opacity: 1;
}

/* ========================================
   CINEMATIC VIGNETTE
   ======================================== */

.hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    background:
        radial-gradient(ellipse at center,
            transparent 0%,
            transparent 40%,
            rgba(5, 8, 22, 0.4) 70%,
            rgba(5, 8, 22, 0.8) 100%);
}

/* ========================================
   CONTENT LAYER
   ======================================== */

.hero-content {
    position: relative;
    z-index: 4;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--spacing-md);
    padding-bottom: var(--spacing-xl);
}

.hero-text-wrapper {
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1.2s var(--transition-smooth) backwards;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
    color: #000000;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9);
    paint-order: stroke fill;
    text-shadow:
        /* White stroke layers for crisp outline */
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        2px 2px 0 #fff,
        -3px 0 0 #fff,
        3px 0 0 #fff,
        0 -3px 0 #fff,
        0 3px 0 #fff,
        /* Diagonal corners for smooth outline */
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        2px 2px 0 #fff,
        /* Subtle blue glow behind */
        0 4px 20px rgba(0, 212, 255, 0.3),
        /* Depth shadow */
        0 6px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s var(--transition-smooth) backwards 0.2s;
}

/* ========================================
   STARS RATING
   ======================================== */

.hero-stars {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 1s var(--transition-smooth) backwards 0.4s;
}

.star {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #FFD700;
    text-shadow:
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.5),
        0 2px 5px rgba(0, 0, 0, 0.3);
    animation: starSparkle 2s ease-in-out infinite;
    display: inline-block;
}

.star:nth-child(1) {
    animation-delay: 0s;
}

.star:nth-child(2) {
    animation-delay: 0.2s;
}

.star:nth-child(3) {
    animation-delay: 0.4s;
}

.star:nth-child(4) {
    animation-delay: 0.6s;
}

.star:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes starSparkle {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.2);
        filter: brightness(1.5);
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--color-light);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s var(--transition-smooth) backwards 0.6s;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
    animation: fadeInUp 1s var(--transition-smooth) backwards 0.6s;
}

/* ========================================
   CTA BUTTONS
   ======================================== */

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s var(--transition-smooth) backwards 0.8s;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
}

/* Ripple Effect */
.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* Glow Effect */
.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
    left: 100%;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-darker);
    box-shadow:
        0 10px 30px rgba(0, 212, 255, 0.4),
        0 0 0 0 rgba(0, 212, 255, 0.5);
    animation: pulseGlow 2s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 20px 50px rgba(0, 212, 255, 0.6),
        0 0 30px rgba(0, 212, 255, 0.8),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: none;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
}

/* Secondary Button */
.btn-secondary {
    background: rgba(10, 14, 39, 0.5);
    color: var(--color-light);
    border: 2px solid var(--color-primary);
    box-shadow:
        0 5px 20px rgba(0, 212, 255, 0.2),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--color-accent);
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 20px 50px rgba(0, 255, 204, 0.4),
        0 0 30px rgba(0, 255, 204, 0.6),
        inset 0 0 30px rgba(0, 255, 204, 0.2);
    color: var(--color-accent);
}

.btn-secondary:active {
    transform: translateY(-2px) scale(1.02);
}

/* Pulse Glow Animation */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow:
            0 10px 30px rgba(0, 212, 255, 0.4),
            0 0 0 0 rgba(0, 212, 255, 0.5);
    }

    50% {
        box-shadow:
            0 10px 30px rgba(0, 212, 255, 0.4),
            0 0 20px 10px rgba(0, 212, 255, 0);
    }
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-sm);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    animation: fadeIn 1s ease backwards 1.5s, bounce 2s ease-in-out infinite 2s;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom,
            transparent,
            var(--color-primary),
            transparent);
    position: relative;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: scrollDot 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scrollDot {

    0%,
    100% {
        top: 0;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .hero-content {
        padding: var(--spacing-sm);
        padding-bottom: var(--spacing-lg);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .scroll-indicator {
        bottom: var(--spacing-xs);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-bg {
        transform: none !important;
    }
}
