/* Global Variables & Reset */
:root {
    /* Premium Colors */
    --bg-dark: #050a10;
    /* Ultra dark navy/black */
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);

    --accent-primary: #00f2ea;
    /* Cyan/Electric Blue */
    --accent-secondary: #007bff;
    /* Deep Blue */
    --accent-glow: rgba(0, 242, 234, 0.4);

    --text-main: #ffffff;
    --text-muted: #a0aab8;

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-slow: all 0.6s var(--ease-out-expo);
    --transition-fast: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Rich background with ambient light */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(0, 123, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 242, 234, 0.05), transparent 25%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    /* Responsive font size */
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

.text-gradient {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center {
    text-align: center;
}

/* Buttons (Premium) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-weight: 600;
    border-radius: 50px;
    /* Pill shape */
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    color: #000;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 242, 234, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 242, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 242, 234, 0.05);
}

/* Animation Utilities */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays manually or via JS */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* HEADER */
#header {
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    /* Initial state transparent */
    background: transparent;
}

#header.scrolled {
    background: rgba(5, 10, 16, 0.85);
    /* Glass effect on scroll */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 70px;
    /* Shrink on scroll */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
}

.nav-menu ul {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-main);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* Abstract Background Shapes in Hero */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.hero-subtitle {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 242, 234, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 242, 234, 0.2);
    text-transform: uppercase;
}

.hero-text {
    max-width: 650px;
    font-size: 1.25rem;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* SERVICES CARDS (Glassmorphism) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 50px 30px;
    border-radius: 16px;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    group: hover;
}

/* Glow effect on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 70%);
    opacity: 0;
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-15px);
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 242, 234, 0.4));
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card ul li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card ul li::before {
    content: '•';
    color: var(--accent-primary);
}

/* WHY US */
.why-us-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
}

.feature-item h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Gradient text for checkmark */
.feature-item h4::before {
    content: '✓';
    font-weight: 800;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CONTACT FORM */
.contact-wrapper {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(0, 242, 234, 0.1);
    background: rgba(0, 0, 0, 0.5);
    outline: none;
}

/* FOOTER */
footer {
    background: #020406;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 30px;
}

.footer-links a {
    color: var(--text-muted);
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--accent-primary);
    opacity: 1;
    padding-left: 5px;
}

/* Mobile & Responsive Fixes */
@media (max-width: 900px) {
    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        word-wrap: break-word;
    }

    h2 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Hero */
    .hero {
        text-align: center;
        padding-top: 100px;
        /* More space for fixed header */
        align-items: flex-start;
        /* Align top on mobile */
    }

    .hero::before {
        width: 300px;
        height: 300px;
        /* Smaller blob */
        top: -10%;
        right: -20%;
    }

    .hero-text {
        margin: 20px auto 30px;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    /* Grids */
    .services-grid,
    .why-us-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Contact */
    .contact-wrapper {
        padding: 30px 20px;
    }

    /* Header */
    .header-cta {
        display: none;
    }

    .nav-menu {
        display: none;
        /* In a real app, this would be a burger menu */
    }
}

/* Icon Styling */
.service-icon i,
.feature-item i {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 242, 234, 0.3));
    transition: var(--transition-fast);
}

.service-card:hover .service-icon i {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(0, 242, 234, 0.6));
}

/* Fix overflow issues */
body,
html {
    width: 100%;
    overflow-x: hidden;
}

/* CLIENTS / REFERENCES SECTION */
.clients-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.clients-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    opacity: 0.7;
}

.client-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    filter: grayscale(100%);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-logo:hover {
    filter: grayscale(0%);
    color: var(--white);
    transform: scale(1.05);
}

/* PORTFOLIO SECTION */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #112240;
    border: 1px solid rgba(255, 255, 255, 0.05);
    group: hover;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-fast);
}

.portfolio-item:hover .portfolio-info {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    opacity: 0.6;
}

.portfolio-item:hover .portfolio-img {
    opacity: 1;
}

/* TESTIMONIALS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
}

/* FLOATING WHATSAPP */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition-fast);
}

.float-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    /* Hidden default */
    left: 0;
    width: 100%;
    background: rgba(5, 10, 16, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    z-index: 9998;
    transition: var(--transition-slow);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

@media (max-width: 900px) {

    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}