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

:root {
    --bg-dark: #07090e;
    --bg-card: #0c0f17;
    --bg-card-hover: #10141e;
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.13);

    --accent-purple: #3b82f6;
    --accent-pink: #60a5fa;
    --accent-blue: #3b82f6;
    --accent-teal: #14b8a6;
    --accent-green: #22c55e;
    --accent-orange: #f97316;

    --text-primary: #e2e8f0;
    --text-secondary: #8898aa;
    --text-muted: #4a5568;

    --gradient-hero: linear-gradient(135deg, #07090e 0%, #0d1a2e 50%, #0a1628 100%);
    --gradient-tiktok: linear-gradient(135deg, #070a10 0%, #0a0d18 60%, #080e1a 100%);
    --gradient-web: linear-gradient(135deg, #07090e 0%, #0a0d18 60%, #07100d 100%);

    --font: 'Outfit', system-ui, sans-serif;
    --radius: 16px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   NAV
   ========================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(9, 11, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.nav-logo:hover {
    color: var(--text-primary);
}

.nav-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.4);
}

.btn-ghost {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-hover);
}

.btn-outline:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

/* =========================================
   SECTION LABELS & TITLES
   ========================================= */
.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4a7fb5;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-green {
    background: linear-gradient(135deg, #14b8a6, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    min-height: 100svh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0 60px;
}

.hero-bg-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 10s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #2563eb, transparent);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #1d4ed8, transparent);
    bottom: -100px;
    left: -100px;
    animation-delay: 4s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #3b82f6, transparent);
    top: 40%;
    left: 30%;
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #93c5fd;
    margin-bottom: 28px;
}

.hero-name {
    font-size: clamp(3rem, 12vw, 6rem);
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.hero-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================
   SERVICES
   ========================================= */
.services {
    padding: 100px 0;
    background: var(--bg-dark);
}

.services .section-label,
.services .section-title {
    text-align: center;
}

.services .section-title {
    margin-bottom: 60px;
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-card > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: 600;
}

/* =========================================
   CASE STUDY SHARED
   ========================================= */
.case-study {
    padding: 100px 0;
}

.case-study-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 680px;
    margin-bottom: 56px;
}

/* =========================================
   TIKTOK SECTION
   ========================================= */
.tiktok-section {
    background: var(--gradient-tiktok);
    position: relative;
    overflow: hidden;
}

.tiktok-label {
    color: #4a7fb5;
}

.tiktok-section .section-title {
    max-width: 600px;
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 64px;
}

.stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-4px);
}

.stat-number {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    font-weight: 800;
    color: #60a5fa;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* TikTok embed */
.video-section {
    text-align: center;
}

.video-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.tiktok-embed-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Override TikTok embed styles for dark mode */
.tiktok-embed {
    border-radius: var(--radius) !important;
    overflow: hidden !important;
}

.video-caption {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tiktok-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.tiktok-link:hover {
    text-decoration: underline;
}

/* =========================================
   WEB DEV SECTION
   ========================================= */
.web-section {
    background: var(--gradient-web);
}

.web-label {
    color: var(--accent-teal);
}

.web-section .case-study-desc {
    max-width: 600px;
}

.project-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* Browser mockup */
.project-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transition: var(--transition);
}

.project-image-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 60px 100px rgba(0, 0, 0, 0.7);
}

.browser-bar {
    background: #1e2028;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.browser-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #fbbf24; }
.browser-dots span:nth-child(3) { background: #22c55e; }

.browser-url {
    background: #2a2d38;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-screenshot {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Project details */
.project-tag {
    display: inline-block;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.3);
    color: var(--accent-teal);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.project-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.project-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

.project-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.project-features li::first-letter {
    color: var(--accent-green);
}

.web-section .btn-primary {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-green));
    box-shadow: 0 4px 24px rgba(20, 184, 166, 0.3);
}

.web-section .btn-primary:hover {
    box-shadow: 0 8px 32px rgba(20, 184, 166, 0.5);
}

/* =========================================
   CONTACT
   ========================================= */
.contact-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-bg-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.contact-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
}

.contact-orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #1d4ed8, transparent);
    opacity: 0.12;
    top: -100px;
    right: -50px;
}

.contact-orb-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #1e40af, transparent);
    opacity: 0.1;
    bottom: -80px;
    left: -30px;
}

.contact-label {
    position: relative;
}

.contact-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
}

.contact-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.7;
    position: relative;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
    position: relative;
}

.contact-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    position: relative;
}

.contact-social-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-social-link:hover {
    color: #3b82f6;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: #06080c;
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer p a {
    color: #3b82f6;
    text-decoration: none;
}

.footer-sub {
    font-size: 0.82rem;
    margin-top: 6px;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.7s ease forwards;
}

/* =========================================
   MOBILE — PRIMARY TARGET
   ========================================= */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Nav */
    .nav-title {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 90px 0 60px;
        min-height: 100svh;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-cta-group .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Services */
    .services {
        padding: 72px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 28px 24px;
    }

    /* Case studies */
    .case-study {
        padding: 72px 0;
    }

    .case-study-desc {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    /* Stats */
    .stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-bottom: 48px;
    }

    .stat-card {
        padding: 20px 12px;
    }

    .stat-number {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .stat-label {
        font-size: 0.72rem;
    }

    /* Project showcase: stack on mobile */
    .project-showcase {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .project-name {
        font-size: 1.6rem;
    }

    /* Contact card */
    .contact-card {
        padding: 40px 24px;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .contact-buttons .btn {
        width: 100%;
        max-width: 340px;
    }

    .btn-large {
        padding: 16px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: clamp(2.6rem, 14vw, 3.8rem);
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 24px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.82rem;
    }

    .service-card {
        padding: 24px 20px;
    }

    .contact-card {
        padding: 36px 20px;
    }
}
