/* Design System & Premium Variables */
:root {
    /* Rich Color Palette */
    --color-primary: #0284c7; 
    --color-primary-hover: #0369a1;
    --color-primary-light: #e0f2fe;
    --color-accent: #38bdf8;
    
    --color-text-main: #0f172a;
    --color-text-muted: #475569;
    --color-text-inverse: #ffffff;
    
    --color-bg-main: #f8fafc;
    --color-bg-card: #ffffff;
    --color-border: #e2e8f0;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout & Effects */
    --container-max-width: 1200px;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.2);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

/* Background Decor Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    will-change: transform;
    contain: strict;
    pointer-events: none;
}

.bg-shape-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
}

.bg-shape-2 {
    top: 40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #fce7f3, var(--color-primary-light));
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    line-height: 1.2;
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.w-full { width: 100%; }
.text-center { text-align: center; }
.text-left { text-align: left !important; }

/* Glassmorphism (lightweight — no backdrop-filter for scroll perf) */
.glass-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(230, 235, 245, 0.6);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-text-inverse);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
}

.btn-secondary {
    background: #ffffff;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--color-bg-main);
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
    padding: var(--space-4) 0;
}

.header.scrolled {
    padding: var(--space-2) 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-clean { color: var(--color-primary); }
.logo-ton { color: var(--color-text-main); }

.nav {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-full);
    border: 1px solid rgba(230, 235, 245, 0.6);
    gap: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

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

.header-contact {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.phone-link {
    display: none;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-main);
    background: #ffffff;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.phone-link:hover {
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--color-text-main);
    transition: all 0.3s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-6);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.mobile-menu.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.mobile-menu-actions {
    margin-top: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    width: 80%;
    max-width: 300px;
    text-align: center;
}

.mobile-phone {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Section Common */
.section { padding: var(--space-24) 0; }
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-4);
    letter-spacing: -0.5px;
}
.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero */
.hero {
    padding: calc(100px + var(--space-16)) 0 var(--space-20);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--color-primary-light);
    color: var(--color-primary-hover);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    letter-spacing: -1.5px;
    margin-bottom: var(--space-6);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.trust-stars {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.trust-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.2;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background-color: var(--color-border);
}

.hero-visual {
    position: relative;
    padding: var(--space-4);
}

.hero-image-card {
    padding: var(--space-3);
    position: relative;
    z-index: 10;
}

.hero-main-img {
    border-radius: var(--radius-sm);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    box-shadow: var(--shadow-lg);
    z-index: 20;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.badge-top-right {
    top: -20px;
    right: -20px;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.floating-badge strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--color-text-main);
}

.floating-badge span {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.service-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
    background: var(--color-primary);
    color: white;
}

.service-icon {
    font-size: 2rem;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
}

.service-desc {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* Process Section (Video) */
.process-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding: var(--space-8);
}

.steps-list {
    margin-top: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.step-item {
    display: flex;
    gap: var(--space-4);
}

.step-number {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
}

.step-text h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-1);
}

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

.process-video-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
    max-width: 320px;
    margin: 0 auto;
}

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

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

.portfolio-card {
    overflow: hidden;
}

.portfolio-card:hover {
    transform: translateY(-8px);
}

.portfolio-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.portfolio-img-wrapper img,
.portfolio-img-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.5s ease;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img,
.portfolio-card:hover .portfolio-img-wrapper video {
    transform: scale(1.05);
}

.portfolio-tag {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: rgba(255,255,255,0.9);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.portfolio-info {
    padding: var(--space-6);
}

.portfolio-info h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-2);
}

.portfolio-info p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: var(--space-5) var(--space-6);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--color-primary);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 var(--space-6) var(--space-5);
    color: var(--color-text-muted);
}

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    padding: var(--space-12) var(--space-6);
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: var(--space-4);
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

.cta-actions .btn-primary {
    background: #ffffff;
    color: var(--color-primary);
}

.cta-actions .btn-primary:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-16);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.footer-desc {
    margin-top: var(--space-4);
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-6);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-text-main) !important;
    font-weight: 500;
}

.contact-icon {
    width: 32px;
    height: 32px;
    background: var(--color-bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: var(--space-6) 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

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

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Responsive */
@media (min-width: 768px) {
    .nav, .phone-link { display: flex; }
    .menu-toggle, .mobile-menu { display: none !important; }

    .hero-container {
        grid-template-columns: 1fr 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-wrapper {
        grid-template-columns: 1fr 1fr;
        padding: var(--space-12);
        align-items: center;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
