:root {
    --primary-hue: 215;
    --primary-400: hsl(var(--primary-hue), 89%, 60%);
    --primary-500: hsl(var(--primary-hue), 89%, 50%);
    --primary-600: hsl(var(--primary-hue), 89%, 40%);

    --accent-hue: 190;
    --accent-400: hsl(var(--accent-hue), 90%, 50%);

    --bg-base: hsl(220, 30%, 6%);
    --bg-surface: hsl(220, 25%, 10%);
    --bg-surface-elevated: hsl(220, 20%, 15%);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);

    --text-100: hsl(0, 0%, 100%);
    --text-200: hsl(220, 20%, 85%);
    --text-300: hsl(220, 15%, 65%);

    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-200);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-100);
    line-height: 1.2;
    font-weight: 700;
}

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

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

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-100) 0%, var(--text-300) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-300);
    font-size: 1.1rem;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-400) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-hue), 89%, 50%, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-hue), 89%, 50%, 0.5);
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    color: var(--text-100);
    border-color: var(--border-glass);
}

.btn-secondary:hover {
    background: var(--bg-glass);
    border-color: var(--text-300);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-100);
    border-color: var(--primary-500);
}

.btn-outline:hover {
    background: rgba(var(--primary-hue), 89%, 50%, 0.1);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    transition: background var(--transition-normal), border-color var(--transition-normal), backdrop-filter var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(11, 14, 21, 0.85);
    /* mapped to var(--bg-base) */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text {
    background: linear-gradient(to right, #fff, var(--text-300));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-200);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--text-100);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width var(--transition-normal);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 30px;
    height: 2px;
    background: var(--text-100);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-glass);
    padding: 100px 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: right var(--transition-normal);
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu a:not(.btn) {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 150%;
    background: radial-gradient(circle at 50% 50%, rgba(var(--primary-hue), 89%, 50%, 0.15) 0%, transparent 60%);
    z-index: -1;
    animation: pulse 10s ease-in-out infinite alternate;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding: 0 1.5rem;
    margin-left: max(1.5rem, calc((100% - 1200px) / 2));
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(var(--primary-hue), 89%, 50%, 0.1);
    color: var(--primary-400);
    border: 1px solid rgba(var(--primary-hue), 89%, 50%, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary-400), var(--accent-400));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 30%;
    background: rgba(var(--primary-hue), 89%, 50%, 0.2);
    z-index: -1;
    transform: skewX(-15deg);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-300);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.mockup-card {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.mockup-body {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0.02) 10px,
            transparent 10px,
            transparent 20px);
}

.slider-body {
    position: absolute;
    top: 40px; /* Below the mockup header */
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
    z-index: 10;
    background: #000;
}

.slider-container {
    width: 100%;
    height: 100%;
}

.slider-track {
    display: flex;
    height: 100%;
    width: 300%; /* 3 images */
    animation: slideAnimation 12s infinite ease-in-out;
}

.slider-track img {
    width: 33.3333%;
    height: 100%;
    object-fit: cover;
}

@keyframes slideAnimation {
    0%, 25% { transform: translateX(0); }
    33%, 58% { transform: translateX(-33.3333%); }
    66%, 91% { transform: translateX(-66.6666%); }
    100% { transform: translateX(0); }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #f1c40f;
    /* Yellow matching the image */
    border-radius: 8px;
    padding: 12px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-image-container {
    background: #fff;
    border: 3px solid rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.service-card:hover .service-image-container img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    text-align: center;
    font-weight: 800;
}

.service-card .btn-service {
    background: #ffffff;
    color: #1a1a1a;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-transform: capitalize;
    transition: all var(--transition-fast);
    align-self: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.service-card .btn-service:hover {
    background: #1a1a1a;
    color: #ffffff;
}

/* About */
.about {
    background: var(--bg-surface-elevated);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-placeholder {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h40v40H0V0zm20 20h20v20H20V20zM0 20h20v20H0V20z" fill="rgba(8, 14, 219, 0.05)" fill-rule="evenodd"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.image-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.overlay-text {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    transform: rotate(-90deg);
    white-space: nowrap;
    position: absolute;
    left: -40px;
    top: 50%;
    z-index: 2;
}

.floating-stats {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-400);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat .label {
    font-size: 0.85rem;
    color: var(--text-200);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-300);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.feature-list li span {
    color: var(--primary-400);
    font-weight: 800;
}

/* Featured Video */
.featured-video {
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
}

.video-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.portfolio-overlay p {
    color: var(--primary-400);
    font-weight: 500;
}

/* CTA Contact */
.cta {
    background: radial-gradient(circle at center, rgba(var(--primary-hue), 89%, 50%, 0.1) 0%, var(--bg-base) 100%);
}

.cta-card {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem;
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    width: 100%;
}

.cta-content {
    flex: 1;
}

.map-container {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 480px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-card p {
    color: var(--text-300);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: 0;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-100);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group select {
    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='white' 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 1.5rem center;
    background-size: 1em;
}

.form-group select option {
    background: var(--bg-surface-elevated);
    color: var(--text-100);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-400);
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-300);
    margin-top: 1rem;
    max-width: 300px;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links a,
.footer-contact p {
    display: block;
    color: var(--text-300);
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-300);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-500);
    color: white;
    transform: translateY(-2px);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Media Queries */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        margin-left: 0;
        margin-bottom: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

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

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

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

    .cta-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .cta-card {
        padding: 2rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}