:root {
    --bg-dark: #0a0a0f;
    --bg-darker: #060609;
    --bg-card: #12121e;
    --bg-card-hover: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #8888a0;
    --text-muted: #555570;
    --accent-primary: #00f0ff;
    --accent-secondary: #7000ff;
    --accent-tertiary: #ff006e;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --gradient-glow: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-subtle: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(112, 0, 255, 0.08));
    --border-subtle: rgba(255, 255, 255, 0.06);
    --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

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

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Header === */
.header {
    background-color: rgba(10, 10, 15, 0.85);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background-color: rgba(10, 10, 15, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo */
.logo,
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-frame {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 2.5px;
    background: var(--gradient-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.3), 0 0 28px rgba(112, 0, 255, 0.12);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.logo:hover .logo-frame,
.footer-logo:hover .logo-frame {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), 0 0 40px rgba(112, 0, 255, 0.2);
    transform: scale(1.08);
}

.logo-frame .logo-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-dark);
}

.logo-frame-sm {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: var(--transition-smooth);
}

.logo:hover .logo-text,
.footer-logo:hover .logo-text {
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

/* Nav */
.nav-list {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-glow);
    transition: width 0.3s ease;
}

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

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

.btn-glow {
    padding: 9px 21px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
        var(--gradient-glow) border-box;
    font-size: 0.85rem;
    position: relative;
    transition: all 0.3s ease;
}

.btn-glow-text {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 1;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-glow::after {
    display: none;
}

.btn-glow:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-glow:hover .btn-glow-text {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #0a0a0f;
    color: #0a0a0f;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 240, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(112, 0, 255, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 0, 110, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(20, 20, 40, 1) 0%, var(--bg-dark) 100%);
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 100px;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--bg-dark) 92%);
    z-index: 1;
    pointer-events: none;
}

/* Animated floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

.hero-orb-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.25), transparent 70%);
    top: 5%;
    left: -12%;
    animation: float-orb-1 12s ease-in-out infinite;
}

.hero-orb-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.3), transparent 70%);
    top: 10%;
    right: -15%;
    animation: float-orb-2 15s ease-in-out infinite;
}

.hero-orb-3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.18), transparent 70%);
    bottom: 2%;
    left: 5%;
    animation: float-orb-3 18s ease-in-out infinite;
}

.hero-orb-4 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.2), transparent 70%);
    bottom: 5%;
    right: 5%;
    animation: float-orb-4 14s ease-in-out infinite;
}

.hero-orb-5 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.2), transparent 70%);
    top: 0%;
    right: 35%;
    animation: float-orb-5 20s ease-in-out infinite;
}

.hero-orb-6 {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.22), transparent 70%);
    top: 65%;
    right: 25%;
    animation: float-orb-6 11s ease-in-out infinite;
}

.hero-orb-7 {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(180, 0, 255, 0.15), transparent 70%);
    top: 60%;
    left: 60%;
    animation: float-orb-7 16s ease-in-out infinite;
}

@keyframes float-orb-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(60px, 30px) scale(1.1);
    }

    66% {
        transform: translate(-30px, -20px) scale(0.9);
    }
}

@keyframes float-orb-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-40px, 50px) scale(0.85);
    }

    66% {
        transform: translate(50px, -40px) scale(1.15);
    }
}

@keyframes float-orb-3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(70px, -30px) scale(1.2);
    }
}

@keyframes float-orb-4 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    40% {
        transform: translate(-50px, -40px) scale(1.15);
    }

    70% {
        transform: translate(30px, 20px) scale(0.9);
    }
}

@keyframes float-orb-5 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    30% {
        transform: translate(40px, 60px) scale(1.1);
    }

    60% {
        transform: translate(-60px, 20px) scale(0.85);
    }
}

@keyframes float-orb-6 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-35px, -50px) scale(1.25);
    }
}

@keyframes float-orb-7 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    35% {
        transform: translate(45px, -35px) scale(0.9);
    }

    65% {
        transform: translate(-25px, 45px) scale(1.1);
    }
}

/* Grid overlay */
.hero-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s 0.2s both;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 24px;
    line-height: 1.15;
    animation: fadeInUp 0.8s 0.4s both;
}

.hero-title-line {
    display: block;
}

.highlight-wrap {
    color: transparent;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
}

.typed-cursor {
    animation: blink 1s infinite;
    color: var(--accent-primary);
    font-weight: 200;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s 0.6s both;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s 0.8s both;
}

.btn {
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-glow);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25);
}

.btn-primary:hover {
    filter: brightness(1.15);
    box-shadow: 0 6px 30px rgba(0, 240, 255, 0.45);
    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    z-index: 3;
    animation: fadeInUp 0.8s 1.2s both;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.scroll-mouse {
    width: 22px;
    height: 34px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Stats Section === */
.stats-section {
    padding: 60px 0;
    background: var(--gradient-subtle);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 24px 16px;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border-subtle);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number::after {
    content: '+';
    font-size: 2rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-icon {
    color: var(--text-muted);
    opacity: 0.5;
}

/* === Section Common === */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 20px;
    position: relative;
    display: block;
}

.title-accent {
    position: relative;
    display: inline-block;
}

.title-accent::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-glow);
    border-radius: 2px;
    box-shadow: var(--shadow-glow);
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 60px;
    font-size: 1rem;
}

/* === About === */
.about-intro {
    text-align: center;
    max-width: 700px;
    margin: 40px auto 60px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.9;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 40px 28px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card-icon {
    color: var(--accent-primary);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.about-card:hover .about-card-icon {
    color: var(--accent-secondary);
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--accent-secondary));
}

.about-card h3 {
    font-size: 1rem;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* === Services === */
.services {
    background-color: var(--bg-darker);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.06);
}

.service-icon {
    margin-bottom: 20px;
    color: var(--accent-primary);
    transition: var(--transition-smooth);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.service-card:hover .service-icon {
    background: rgba(112, 0, 255, 0.1);
    border-color: rgba(112, 0, 255, 0.2);
    color: var(--accent-secondary);
    box-shadow: 0 0 16px rgba(112, 0, 255, 0.2);
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

.service-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: 50px;
    font-size: 0.72rem;
    color: var(--accent-primary);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* === Technologies === */
.technologies {
    overflow: hidden;
}

.tech-orbit-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.tech-orbit {
    position: relative;
    width: 500px;
    height: 500px;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid rgba(0, 240, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

.orbit-center-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.05);
    animation: orbit-pulse 3s infinite;
}

@keyframes orbit-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid;
}

.orbit-ring-1 {
    width: 200px;
    height: 200px;
    margin-top: -100px;
    margin-left: -100px;
    border-color: rgba(0, 240, 255, 0.15);
    animation: rotate-orbit 25s linear infinite;
}

.orbit-ring-2 {
    width: 320px;
    height: 320px;
    margin-top: -160px;
    margin-left: -160px;
    border-color: rgba(112, 0, 255, 0.12);
    animation: rotate-orbit 35s linear infinite reverse;
}

.orbit-ring-3 {
    width: 460px;
    height: 460px;
    margin-top: -230px;
    margin-left: -230px;
    border-color: rgba(0, 240, 255, 0.08);
    animation: rotate-orbit 50s linear infinite;
}

@keyframes rotate-orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: 50px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    transform-origin: center;
}

.orbit-ring-1 .orbit-item {
    --radius: 100px;
    transform: rotate(var(--angle)) translateX(var(--radius)) rotate(calc(-1 * var(--angle)));
    animation: counter-rotate 25s linear infinite;
}

.orbit-ring-2 .orbit-item {
    --radius: 160px;
    transform: rotate(var(--angle)) translateX(var(--radius)) rotate(calc(-1 * var(--angle)));
    animation: counter-rotate-reverse 35s linear infinite;
}

.orbit-ring-3 .orbit-item {
    --radius: 230px;
    transform: rotate(var(--angle)) translateX(var(--radius)) rotate(calc(-1 * var(--angle)));
    animation: counter-rotate 50s linear infinite;
}

@keyframes counter-rotate {
    from {
        transform: rotate(var(--angle)) translateX(var(--radius)) rotate(calc(-1 * var(--angle) - 0deg));
    }

    to {
        transform: rotate(calc(var(--angle) - 360deg)) translateX(var(--radius)) rotate(calc(-1 * var(--angle) + 360deg));
    }
}

@keyframes counter-rotate-reverse {
    from {
        transform: rotate(var(--angle)) translateX(var(--radius)) rotate(calc(-1 * var(--angle)));
    }

    to {
        transform: rotate(calc(var(--angle) + 360deg)) translateX(var(--radius)) rotate(calc(-1 * var(--angle) - 360deg));
    }
}

.orbit-item:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
    z-index: 20;
}

/* === Projects === */
.projects {
    background-color: var(--bg-darker);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
    min-height: 260px;
    transition: var(--transition-smooth);
    cursor: default;
}

.project-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.project-card:hover .project-card-bg {
    transform: scale(1.05);
}

.project-content {
    position: relative;
    z-index: 2;
    padding: 36px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 30%, rgba(10, 10, 15, 0.3) 100%);
}

.project-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(112, 0, 255, 0.15);
    border: 1px solid rgba(112, 0, 255, 0.25);
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--accent-secondary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
    width: fit-content;
}

.project-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

.project-tech-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tech-tags span {
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* === FAQ === */
.faq-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg-card);
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(0, 240, 255, 0.12);
}

.faq-item.active {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-chevron {
    transition: transform 0.3s ease;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* === Contact === */
.contact {
    background: var(--bg-darker);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.contact-info-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    outline: none;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-group textarea~label {
    top: 20px;
    transform: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.1);
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    left: 14px;
    font-size: 0.72rem;
    color: var(--accent-primary);
    background: var(--bg-darker);
    padding: 2px 6px;
    border-radius: 2px;
}

.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    transform: none;
}

/* === Footer === */
.footer {
    padding: 60px 0 0;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 16px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4 {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-primary);
    padding-left: 4px;
}

.footer-social h4 {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.15);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-glow);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 28px rgba(0, 240, 255, 0.5);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-orbit {
        width: 400px;
        height: 400px;
    }

    .orbit-ring-3 {
        width: 380px;
        height: 380px;
        margin-top: -190px;
        margin-left: -190px;
    }

    .orbit-ring-3 .orbit-item {
        --radius: 190px;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        padding: 100px 40px 40px;
        gap: 24px;
        text-align: center;
        z-index: 999;
    }

    .nav-list.active {
        display: flex;
        animation: fadeInMenu 0.3s ease forwards;
    }

    @keyframes fadeInMenu {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .tech-orbit-wrapper {
        min-height: 360px;
    }

    .tech-orbit {
        width: 320px;
        height: 320px;
    }

    .orbit-ring-1 {
        width: 160px;
        height: 160px;
        margin-top: -80px;
        margin-left: -80px;
    }

    .orbit-ring-1 .orbit-item {
        --radius: 80px;
    }

    .orbit-ring-2 {
        width: 240px;
        height: 240px;
        margin-top: -120px;
        margin-left: -120px;
    }

    .orbit-ring-2 .orbit-item {
        --radius: 120px;
    }

    .orbit-ring-3 {
        width: 310px;
        height: 310px;
        margin-top: -155px;
        margin-left: -155px;
    }

    .orbit-ring-3 .orbit-item {
        --radius: 155px;
    }

    .orbit-item {
        font-size: 0.6rem;
        padding: 4px 8px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .section {
        padding: 70px 0;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-item {
        padding: 16px 8px;
    }

    .stat-item:nth-child(even)::after {
        display: none;
    }

    .stat-item:nth-child(odd)::after {
        display: block;
        right: -8px;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .orbit-ring-3 {
        display: none;
    }
}