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

/* ========================================
   VARIABLES
======================================== */
:root {
    --dark: #0d0b1a;
    --dark-2: #151229;
    --dark-3: #1e1a36;
    --purple: #9b4dca;
    --purple-deep: #7213BE;
    --pink: #e44d8a;
    --gradient: linear-gradient(135deg, #e44d8a, #9b4dca);
    --gradient-dark: linear-gradient(135deg, #0d0b1a 0%, #1a0a2e 50%, #0d0b1a 100%);
    --white: #f0f0f5;
    --gray: #8888a0;
    --card-bg: rgba(30, 26, 54, 0.6);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

.cd-header-logo img,
.cd-footer-brand img {
    max-width: none;
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: var(--dark);
}

html::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 4px;
}

/* ========================================
   HEADER
======================================== */
.cd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 5%;
    background: transparent;
    transition: var(--transition);
}

.cd-header.scrolled {
    background: rgba(13, 11, 26, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.cd-header-logo img {
    height: 5rem;
    min-width: 160px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 768px) {
    .cd-header-logo img {
        height: 4.5rem;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .cd-header-logo img {
        height: 4rem;
        min-width: 120px;
    }
}

.cd-nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.cd-nav a {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(240, 240, 245, 0.8);
    position: relative;
    transition: var(--transition);
}

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

.cd-nav a:hover {
    color: #fff;
}

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

.cd-menu-toggle {
    display: none;
    font-size: 2.4rem;
    color: var(--white);
    cursor: pointer;
}

/* ========================================
   HERO SECTION
======================================== */
.cd-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12rem 5% 6rem;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.cd-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 50%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(155, 77, 202, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cd-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 40%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(228, 77, 138, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cd-hero-content {
    flex: 1;
    max-width: 580px;
    z-index: 2;
}

.cd-hero-badge {
    display: inline-block;
    background: var(--gradient);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.6rem 2rem;
    border-radius: 3rem;
    margin-bottom: 2.5rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
}

.cd-hero-content h1 {
    font-size: 6.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cd-hero-subtitle {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.cd-hero-desc {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin-bottom: 3.5rem;
    max-width: 480px;
}

.cd-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--gradient);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 1.5rem 3.5rem;
    border-radius: 0.8rem;
    transition: var(--transition);
    box-shadow: 0 4px 25px rgba(228, 77, 138, 0.3);
}

.cd-hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(228, 77, 138, 0.5);
}

.cd-hero-btn i {
    transition: transform 0.3s ease;
}

.cd-hero-btn:hover i {
    transform: translateX(5px);
}

/* Code Window */
.cd-hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.cd-code-window {
    background: var(--dark-3);
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(155, 77, 202, 0.2);
}

.cd-code-header {
    background: var(--dark-2);
    padding: 1.2rem 1.5rem;
    display: flex;
    gap: 0.8rem;
}

.cd-dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
}

.cd-dot.red { background: #ff5f57; }
.cd-dot.yellow { background: #ffbd2e; }
.cd-dot.green { background: #28ca41; }

.cd-code-body {
    padding: 2rem;
    font-family: 'Fira Code', monospace;
    font-size: 1.4rem;
    line-height: 2;
    color: #cdd6f4;
}

.cd-keyword { color: #e44d8a; }
.cd-var { color: #89b4fa; }
.cd-func { color: #a6e3a1; }
.cd-prop { color: #89dceb; }
.cd-string { color: #f9e2af; }

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

/* ========================================
   SERVICES SECTION
======================================== */
.cd-services {
    padding: 10rem 0;
    background: var(--dark);
}

.cd-services h2,
.cd-projects h2,
.cd-process h2,
.cd-cta h2 {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
}

.cd-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 5rem;
}

.cd-service-card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 3.5rem 2.5rem;
    text-align: center;
    border: 1px solid rgba(155, 77, 202, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

.cd-service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(155, 77, 202, 0.3);
    box-shadow: 0 20px 50px rgba(155, 77, 202, 0.1);
}

.cd-service-card:hover::before {
    transform: scaleX(1);
}

.cd-service-icon {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: rgba(155, 77, 202, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: var(--transition);
}

.cd-service-icon i {
    font-size: 2.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.cd-service-card:hover .cd-service-icon {
    background: var(--gradient);
}

.cd-service-card:hover .cd-service-icon i {
    -webkit-text-fill-color: #fff;
    background: none;
}

.cd-service-card h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.cd-service-card p {
    font-size: 1.5rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ========================================
   PROJECTS SECTION
======================================== */
.cd-projects {
    padding: 10rem 0;
    background: var(--dark-2);
}

.cd-section-subtitle {
    text-align: center;
    font-size: 1.6rem;
    color: var(--gray);
    font-style: italic;
    margin-bottom: 4rem;
}

.cd-project-card {
    background: var(--card-bg);
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid rgba(155, 77, 202, 0.15);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.cd-project-card:hover {
    border-color: rgba(155, 77, 202, 0.3);
    box-shadow: 0 20px 60px rgba(155, 77, 202, 0.1);
}

.cd-project-images {
    background: linear-gradient(135deg, rgba(155, 77, 202, 0.1) 0%, rgba(228, 77, 138, 0.05) 100%);
    padding: 4rem 3rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cd-project-images::-webkit-scrollbar {
    display: none;
}

.cd-phone-mockup {
    flex-shrink: 0;
    width: 180px;
    height: 390px;
    border-radius: 2.4rem;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(155, 77, 202, 0.3);
    background: #fff;
    transition: transform 0.4s ease;
}

.cd-phone-mockup.cd-phone-center {
    width: 210px;
    height: 455px;
    border-color: var(--pink);
    box-shadow: 0 20px 50px rgba(228, 77, 138, 0.3);
    z-index: 2;
}

.cd-phone-mockup:hover {
    transform: translateY(-10px);
}

.cd-phone-mockup img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.cd-project-info {
    padding: 4rem 3.5rem;
}

.cd-project-info h3 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cd-project-type {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cd-project-desc {
    font-size: 1.5rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.cd-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.cd-tech-stack span {
    background: rgba(155, 77, 202, 0.15);
    color: #c4a1e0;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0.5rem 1.4rem;
    border-radius: 2rem;
    border: 1px solid rgba(155, 77, 202, 0.2);
    transition: var(--transition);
}

.cd-tech-stack span:hover {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

.cd-app-buttons {
    display: flex;
    gap: 1.2rem;
}

.cd-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 1.1rem 2.2rem;
    border-radius: 0.8rem;
    transition: var(--transition);
}

.cd-store-btn.appstore {
    background: #fff;
    color: var(--dark);
}

.cd-store-btn.playstore {
    background: var(--gradient);
    color: #fff;
}

.cd-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cd-store-btn i {
    font-size: 1.8rem;
}

/* ========================================
   PROCESS SECTION
======================================== */
.cd-process {
    padding: 10rem 0;
    background: var(--dark);
}

.cd-process-timeline {
    max-width: 800px;
    margin: 5rem auto 0;
    position: relative;
}

.cd-process-timeline::before {
    content: '';
    position: absolute;
    left: 4.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--pink), var(--purple), rgba(155, 77, 202, 0.1));
}

.cd-process-step {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.cd-process-step:last-child {
    margin-bottom: 0;
}

.cd-step-number {
    flex-shrink: 0;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(228, 77, 138, 0.3);
    position: relative;
    z-index: 2;
}

.cd-step-content {
    background: var(--card-bg);
    padding: 2.5rem 3rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(155, 77, 202, 0.1);
    flex: 1;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.cd-step-content:hover {
    border-color: rgba(155, 77, 202, 0.3);
    transform: translateX(5px);
}

.cd-step-content h3 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.cd-step-content p {
    font-size: 1.5rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ========================================
   CTA SECTION
======================================== */
.cd-cta {
    padding: 10rem 0;
    background: var(--dark-2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cd-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(228, 77, 138, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cd-cta h2 {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.cd-cta > .cd-container > p {
    font-size: 1.8rem;
    color: var(--gray);
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 2;
}

.cd-contact-options {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cd-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--gradient);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 1.5rem 3.5rem;
    border-radius: 0.8rem;
    transition: var(--transition);
    box-shadow: 0 4px 25px rgba(228, 77, 138, 0.3);
}

.cd-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(228, 77, 138, 0.5);
}

.cd-cta-btn.cd-cta-btn-outline {
    background: transparent;
    border: 2px solid rgba(155, 77, 202, 0.5);
    box-shadow: none;
}

.cd-cta-btn.cd-cta-btn-outline:hover {
    border-color: var(--purple);
    box-shadow: 0 8px 30px rgba(155, 77, 202, 0.2);
}

/* ========================================
   FOOTER
======================================== */
.cd-footer {
    background: var(--dark);
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(155, 77, 202, 0.1);
}

.cd-footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.cd-footer-brand img {
    height: 4.5rem;
    width: auto;
    margin-bottom: 1.5rem;
    image-rendering: -webkit-optimize-contrast;
}

.cd-footer-brand p {
    font-size: 1.5rem;
    color: var(--gray);
}

.cd-footer-links h4,
.cd-footer-contact h4 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.cd-footer-links a,
.cd-footer-contact a {
    display: block;
    font-size: 1.4rem;
    color: var(--gray);
    padding: 0.5rem 0;
    transition: var(--transition);
}

.cd-footer-links a:hover,
.cd-footer-contact a:hover {
    color: #fff;
    transform: translateX(4px);
}

.cd-footer-contact a i {
    margin-right: 0.8rem;
    color: var(--purple);
}

.cd-footer-social {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(155, 77, 202, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.cd-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 50%;
    background: var(--dark-3);
    color: var(--gray);
    margin: 0 0.5rem;
    font-size: 1.6rem;
    transition: var(--transition);
}

.cd-footer-social a:hover {
    background: var(--gradient);
    color: #fff;
    transform: translateY(-3px);
}

.cd-footer-bottom {
    text-align: center;
    font-size: 1.4rem;
    color: var(--gray);
    padding: 2rem;
    border-top: 1px solid rgba(155, 77, 202, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.cd-footer-bottom span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.cd-footer-agency {
    color: var(--gray);
    transition: var(--transition);
}

.cd-footer-agency:hover {
    color: #fff;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 991px) {
    .cd-hero {
        flex-direction: column;
        min-height: auto;
        padding: 12rem 5% 5rem;
        text-align: center;
    }

    .cd-hero-content {
        max-width: 100%;
        margin-bottom: 4rem;
    }

    .cd-hero-desc {
        max-width: 100%;
        margin: 0 auto 3rem;
    }

    .cd-hero-content h1 {
        font-size: 5rem;
    }

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

    .cd-project-images {
        justify-content: flex-start;
        padding: 3rem 2rem;
    }

    .cd-phone-mockup {
        width: 170px;
        height: 368px;
    }

    .cd-phone-mockup.cd-phone-center {
        width: 195px;
        height: 423px;
    }

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

@media (max-width: 768px) {
    .cd-menu-toggle {
        display: block;
    }

    .cd-nav {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 25rem;
        background: rgba(21, 18, 41, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        border-radius: 1rem;
        flex-direction: column;
        gap: 0;
        border: 1px solid rgba(155, 77, 202, 0.2);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .cd-nav.active {
        right: 5%;
        opacity: 1;
        visibility: visible;
    }

    .cd-nav a {
        display: block;
        padding: 1.2rem 1.5rem;
        font-size: 1.6rem;
        border-radius: 0.5rem;
    }

    .cd-nav a:hover {
        background: rgba(155, 77, 202, 0.15);
    }

    .cd-nav a::after {
        display: none;
    }

    .cd-hero-content h1 {
        font-size: 4rem;
    }

    .cd-hero-subtitle {
        font-size: 1.7rem;
    }

    .cd-services h2,
    .cd-projects h2,
    .cd-process h2,
    .cd-cta h2 {
        font-size: 3.2rem;
    }

    .cd-project-info {
        padding: 3rem 2.5rem;
    }

    .cd-project-info h3 {
        font-size: 2.4rem;
    }

    .cd-app-buttons {
        flex-direction: column;
    }

    .cd-process-timeline::before {
        left: 3.5rem;
    }

    .cd-step-number {
        width: 7rem;
        height: 7rem;
        font-size: 2rem;
    }

    .cd-footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .cd-hero {
        padding: 10rem 4% 4rem;
    }

    .cd-hero-content h1 {
        font-size: 3.5rem;
    }

    .cd-hero-subtitle {
        font-size: 1.5rem;
    }

    .cd-hero-desc {
        font-size: 1.4rem;
    }

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

    .cd-services,
    .cd-projects,
    .cd-process,
    .cd-cta {
        padding: 7rem 0;
    }

    .cd-process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cd-process-timeline::before {
        display: none;
    }

    .cd-project-images {
        justify-content: flex-start;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    .cd-phone-mockup {
        width: 160px;
        height: 347px;
    }

    .cd-phone-mockup.cd-phone-center {
        width: 180px;
        height: 390px;
    }

    .cd-cta h2 {
        font-size: 2.6rem;
    }

    .cd-contact-options {
        flex-direction: column;
        align-items: center;
    }
}
