@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Syne:wght@700;800&display=swap');

:root {
    --bg-color: #050505;
    --surface-color: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary-color: #7000ff;
    --secondary-color: #00f2ff;
    --accent-color: #ff007a;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --glass-blur: blur(12px);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Syne', sans-serif;
    text-transform: uppercase;
    letter-spacing: -1px;
}

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

ul {
    list-style: none;
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glass {
    background: var(--surface-color);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 10px 20px rgba(112, 0, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(112, 0, 255, 0.5);
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: var(--glass-blur);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
    /* Prevent items from dropping to next line */
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 55px;
    flex-shrink: 0;
    /* Don't squash the logo */
}

.logo img {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(112, 0, 255, 0.3));
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    /* Take up available space */
    justify-content: flex-end;
    /* Push links to the right toward the button */
}

.btn-primary {
    white-space: nowrap;
    /* Keep button text on one line */
    flex-shrink: 0;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

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

.page-hero {
    min-height: 45vh !important;
    padding-top: 180px;
    padding-bottom: 30px;
}

.page-hero .container {
    display: block;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 100%;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-image {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 40px;
    overflow: hidden;
    /* Glass effect wrapper for image */
    background: var(--surface-color);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    filter: drop-shadow(0 0 30px rgba(112, 0, 255, 0.2));
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Services Section --- */
.services {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.service-card {
    padding: 3rem 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

/* --- CTA Section --- */
.cta {
    padding: 100px 0;
}

.cta-box {
    padding: 100px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

/* --- Footer --- */
footer {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
    font-family: 'Syne', sans-serif;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features {
    text-align: left;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.portfolio-slider-container {
    position: relative;
    width: 100%;
    margin-top: 3rem;
}

.portfolio-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2rem 0;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
}

.portfolio-slider::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.portfolio-item {
    flex: 0 0 400px;
    /* Large fixed width for carousel items */
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.1), rgba(0, 242, 255, 0.1));
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95) 70%);
    transition: var(--transition);
    z-index: 2;
}

.portfolio-logo-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    padding-bottom: 10rem;
    /* Space for the overlay info */
    transition: var(--transition);
}

.client-logo {
    max-width: 70%;
    max-height: 40%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

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

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

.blog-card {
    overflow: hidden;
    transition: var(--transition);
}

.blog-content {
    padding: 1.5rem;
}

.blog-tag {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Floating Elements --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
}

/* --- Mobile Navigation --- */
.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    z-index: 1001;
}

@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border-left: 1px solid var(--border-color);
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-family: 'Syne', sans-serif;
    }

    .nav .btn-primary {
        display: none;
        /* Hide top-level CTA on mobile header to save space */
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .cta-box h2 {
        font-size: 2.5rem;
    }

    .portfolio-item {
        flex: 0 0 calc(100vw - 3rem);
        /* Full width minus container padding */
        height: 300px;
    }

    .portfolio-logo-container {
        padding-bottom: 8rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btns .btn {
        margin: 0 !important;
    }
}

/* --- Testimonials --- */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(to bottom, transparent, rgba(112, 0, 255, 0.05), transparent);
}

.testimonial-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.testimonial-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 450px;
    padding: 3rem;
    position: relative;
    border: 1px solid var(--border-color);
}

.quote-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.3;
    position: absolute;
    top: 2rem;
    left: 2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.author-info h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    text-transform: none;
    letter-spacing: 0;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(100vw - 4rem);
        padding: 2.5rem 1.5rem;
    }
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 3rem;
    text-align: left;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    justify-content: center;
}

.contact-item:first-child {
    border-right: 1px solid var(--border-color);
    padding-right: 3rem;
}

.contact-item:last-child {
    padding-left: 3rem;
}

.contact-item h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    color: var(--text-color);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0.2rem;
}

.contact-info-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.contact-info-row i {
    font-size: 1.6rem;
    width: 32px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info-row span,
.contact-info-row a {
    color: var(--text-muted);
    font-size: 1.15rem;
    transition: var(--transition);
    white-space: nowrap;
    /* Prevent number/email wrapping */
    line-height: 1;
}

.contact-info-row a:hover {
    color: var(--secondary-color);
}

@media (max-width: 992px) {
    .contact-grid {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.5rem;
        gap: 2.5rem;
        text-align: center;
    }

    .contact-item {
        align-items: center;
    }

    .contact-item:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 2.5rem;
    }

    .contact-item:last-child {
        padding-left: 0;
    }
}

/* --- ROAS Highlights Carousel --- */
.roas-carousel {
    padding: 60px 0;
    background: var(--bg-color);
}

.roas-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.roas-slider {
    display: flex;
    gap: 3rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem;
}

.roas-slider::-webkit-scrollbar {
    display: none;
}

.roas-item {
    flex: 0 0 450px;
    height: 300px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.roas-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(0) brightness(0.8);
    transform: scale(1);
    /* No scale needed without blur */
}

.roas-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(112, 0, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 2px solid var(--secondary-color);
    padding: 1.5rem 3rem;
    border-radius: 20px;
    color: white;
    font-weight: 800;
    font-size: 3rem;
    white-space: nowrap;
    box-shadow: 0 0 50px rgba(112, 0, 255, 0.5);
    z-index: 2;
    text-align: center;
}

.roas-badge span {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .roas-item {
        flex: 0 0 calc(90vw);
        height: 250px;
    }

    .roas-badge {
        font-size: 2rem;
        padding: 1rem 2rem;
    }
}