/* Local Font Definitions */
@font-face {
    font-family: 'Cairo';
    src: url('../assets/fonts/Cairo-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../assets/fonts/Cairo-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-black: #050505;
    --luxury-gold: #c5a059;
    --neon-cyan: #00f2ff;
    --neon-purple: #7000ff;
    --text-pure: #ffffff;
    --text-muted: #888888;
    --glass-white: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background-color: var(--primary-black);
    color: var(--text-pure);
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    position: relative;
}

h1,
h2,
h3,
h4,
.brand-text {
    font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
}

/* Background System */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 20% 30%, #101520 0%, #050505 100%);
}

.section-padding {
    padding: 100px 0;
    overflow-x: hidden;
    /* Prevent GSAP animation offset overflow */
}

#nebula-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(60px);
    opacity: 0.4;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.05;
    pointer-events: none;
}

.vignette {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, #000 120%);
    pointer-events: none;
}

/* HUD Navbar */
.hud-nav {
    padding: 1rem 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    background: transparent;
    z-index: 2000;
    width: 100%;
    left: 0;
    right: 0;
}

.hud-nav.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 0.5px solid var(--glass-border);
}

.brand-text {
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 5px;
    background: linear-gradient(90deg, #fff, var(--neon-cyan), #fff);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-text 3s linear infinite;
}

.nav-link {
    color: var(--text-pure) !important;
    font-weight: 500;
    margin: 0 15px;
    opacity: 0.7;
    transition: 0.3s;
}

.nav-link:hover {
    opacity: 1;
    color: var(--neon-cyan) !important;
}

.btn-contact-nav {
    padding: 10px 25px;
    border: 1px solid var(--neon-cyan);
    border-radius: 50px;
    background: rgba(0, 242, 255, 0.05);
    opacity: 1 !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
    /* Contain HUD rings */
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.hero-title {
    font-weight: 800;
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple), var(--neon-cyan));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-text 5s linear infinite;
}

@keyframes shine-text {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

/* Hero 3.0 Visuals */
.logo-glow-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-neon-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.2);
}

.hud-ring,
.hud-ring-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Start centered, animation handles rotation */
    border: 1px dashed rgba(0, 242, 255, 0.3);
    border-radius: 50%;
}

.hud-ring {
    width: 320px;
    height: 320px;
    max-width: 85vw;
    max-height: 85vw;
    animation: rotate-hud 20s linear infinite;
}

.hud-ring-outer {
    width: 380px;
    height: 380px;
    max-width: 90vw;
    max-height: 90vw;
    border-color: rgba(112, 0, 255, 0.2);
    animation: rotate-hud-reverse 30s linear infinite;
}

@keyframes rotate-hud {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-hud-reverse {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

.btn-primary-luxury {
    background: var(--text-pure);
    color: var(--primary-black);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.4s;
}

.btn-primary-luxury:hover {
    background: var(--neon-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.3);
}

.btn-outline-hologram {
    color: var(--text-pure);
    border: 1px solid var(--glass-border);
    padding: 15px 40px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: 0.4s;
}

.btn-outline-hologram:hover {
    border-color: var(--neon-purple);
    background: rgba(112, 0, 255, 0.05);
}

/* Section Header */
.luxury-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--neon-purple);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Glass Luxury Cards */
.glass-luxury {
    background: var(--glass-white);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.glass-luxury:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--neon-cyan);
    transform: translateY(-10px);
}

/* Service Bento Card */
.service-bento-card {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.s-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.purple-glow {
    color: var(--neon-purple);
    box-shadow: 0 10px 40px rgba(112, 0, 255, 0.1);
}

.cyan-glow {
    color: var(--neon-cyan);
    box-shadow: 0 10px 40px rgba(0, 242, 255, 0.1);
}

.gold-glow {
    color: var(--luxury-gold);
    box-shadow: 0 10px 40px rgba(197, 160, 89, 0.1);
}

.tech-tags span {
    font-size: 0.75rem;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    margin-right: 5px;
    color: var(--text-muted);
}

.tech-stack-icons {
    display: flex;
    gap: 15px;
    font-size: 1.8rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.tech-stack-icons i:hover {
    color: var(--neon-cyan);
    opacity: 1;
    transform: scale(1.1);
    transition: 0.3s;
}

/* Vision Card */
.vision-card {
    padding: 60px;
    text-align: center;
}

.vision-icon-box {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* Portfolio 4.0: Luxury Bento Grid */
.portfolio-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 25px;
}

.bento-item {
    position: relative;
    border-radius: 35px;
    overflow: hidden;
}

.bento-lg {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-md {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-sm {
    grid-column: span 1;
    grid-row: span 1;
}

.project-bento-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.btn-bento {
    display: inline-block;
    padding: 8px 20px;
    background: var(--neon-cyan);
    color: var(--primary-black);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
    opacity: 0;
    transform: translateY(10px);
}

.project-bento-card:hover .btn-bento {
    opacity: 1;
    transform: translateY(0);
}

.project-bento-card {
    height: 100%;
    width: 100%;
    position: relative;
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    border-radius: 35px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: 0.8s;
}

.bento-content {
    position: absolute;
    inset: 0;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(0deg, rgba(5, 5, 5, 0.9) 0%, transparent 70%);
    z-index: 2;
}

.p-tag {
    font-size: 0.75rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bento-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.bento-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s;
}

.project-bento-card:hover {
    border-color: var(--neon-cyan);
    background: rgba(255, 255, 255, 0.05);
}

.project-bento-card:hover img {
    opacity: 0.8;
    transform: scale(1.05);
}

.project-bento-card:hover .bento-content p {
    opacity: 1;
    transform: translateY(0);
}

/* Specific size adjustments */
.bento-sm .bento-content h3 {
    font-size: 1.1rem;
}

.bento-sm .bento-content p {
    display: none;
}

/* Mobile Adaptability */
@media (max-width: 991px) {
    .portfolio-bento-grid {
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: auto;
    }

    .bento-lg,
    .bento-md,
    .bento-sm {
        grid-column: span 1;
        grid-row: auto;
    }

    .project-bento-card {
        aspect-ratio: 16/10;
    }

    .bento-content p {
        opacity: 1;
        transform: none;
        display: block;
    }

    .btn-bento {
        opacity: 1;
    }
}

/* Interactive Content Reveal */
.project-bento-card:hover .bento-content {
    background: linear-gradient(0deg, rgba(5, 5, 5, 1) 0%, transparent 100%);
}

/* Luxury Form */
.luxury-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px 20px;
    color: #fff;
    transition: 0.3s;
}

.luxury-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.btn-luxury-submit {
    padding: 15px;
    border-radius: 15px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    color: #fff;
    font-weight: 700;
    border: none;
    transition: 0.4s;
}

.btn-luxury-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.3);
}

/* Footer */
.luxury-footer {
    border-top: 1px solid var(--glass-border);
}

.footer-logo {
    height: 50px;
    opacity: 0.7;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 15px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Scroll Indicator */
.scroll-indictor {
    position: absolute;
    bottom: 50px;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 2px;
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* Contact Components */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: 0.3s;
}

.contact-item:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 242, 255, 0.03);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-top: 5px;
}

.contact-item span {
    display: block;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 80px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-main-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .logo-glow-wrapper {
        width: 220px;
        height: 220px;
    }

    .contact-item {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-main-title {
        font-size: 1.8rem;
    }

    .btn-primary-luxury,
    .btn-outline-hologram {
        padding: 12px 25px;
        width: 100%;
        margin: 5px 0 !important;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}