/* Modern Digital Agency UI/UX V2.1 - Refined */
:root {
    /* Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FCFAF7;
    --bg-dark: #1C1C1C;
    --bg-darker: #171717;
    
    --accent-primary: #E9682C;
    --accent-hover: #D55A23;
    --accent-light: #FFF5F1;
    
    --text-primary: #171717;
    --text-secondary: #212936; /* Darkened further for high contrast */
    --text-muted: #374151; /* Darkened */
    
    --border-color: #EAEAEA;
    --border-light: #F2F2F2;
    --border-dark: #333333;
    
    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --max-width: 1200px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08); /* Slightly strengthened */
    --shadow-hover: 0 20px 40px rgba(233, 104, 44, 0.1); /* Strengthened */
    --shadow-dark: 0 16px 32px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px; /* Base 16px */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--text-primary); font-weight: 700; line-height: 1.15; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Scroll Animation Base */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: 112px 0; }
.section-light { background-color: var(--bg-secondary); }

/* Labels & Tags */
.badge {
    display: inline-block; padding: 8px 16px; background-color: var(--accent-light);
    color: var(--accent-primary); border-radius: 100px; font-size: 14px;
    font-weight: 700; margin-bottom: 24px; letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 16px;
    transition: var(--transition); cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background-color: var(--accent-primary); color: #FFFFFF; }
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-secondary { background-color: #FFFFFF; color: var(--text-primary); border-color: var(--border-color); }
.btn-secondary:hover { border-color: var(--text-primary); background-color: #FAFAFA; }
.btn svg.arrow-icon { transition: transform 0.3s ease; }
.btn:hover svg.arrow-icon { transform: translateX(4px); }

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; background-color: #FFFFFF; z-index: 1000; transition: var(--transition); }
.navbar.scrolled { background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-family: var(--font-heading); font-size: 26px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.5px; }
.logo span { color: var(--accent-primary); }
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a.nav-item { font-size: 16px; font-weight: 500; color: var(--text-secondary); position: relative; padding: 8px 0; transition: color 0.3s ease; }
.nav-links a.nav-item::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 4px; border-radius: 4px; background-color: var(--accent-primary); transition: width 0.3s ease;
}
.nav-links a.nav-item:hover { color: var(--text-primary); }
.nav-links a.nav-item:hover::after { width: 100%; }
.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.menu-toggle span { width: 28px; height: 2px; background-color: var(--text-primary); transition: var(--transition); }

/* Hero Section */
.hero { padding: 180px 0 100px; position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-content h1 { font-size: 60px; letter-spacing: -1.5px; margin-bottom: 24px; max-width: 580px; }
.hero-content p.hero-desc { font-size: 18px; color: var(--text-secondary); margin-bottom: 40px; max-width: 540px; line-height: 1.7; font-weight: 400; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 40px; }

.hero-trust-list { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--text-secondary); }
.hero-trust-item svg { color: var(--accent-primary); flex-shrink: 0; }

/* Hero Right Mockup (Realistic UI) */
.hero-visual { position: relative; width: 110%; height: 560px; right: -5%; }
.hero-visual::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%; background: radial-gradient(circle, rgba(233,104,44,0.06) 0%, transparent 60%); z-index: -1;
}
.mockup-desktop {
    position: absolute; top: 20px; right: 20px; width: 560px; height: 380px;
    background: #FFFFFF; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color); overflow: hidden; z-index: 1;
}
.mockup-header { height: 32px; background: #F9FAFB; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; padding: 0 16px; gap: 8px; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: #E5E7EB; }
.mockup-dot.red { background: #FECACA; }
.mockup-dot.yellow { background: #FEF08A; }
.mockup-dot.green { background: #BBF7D0; }
.mockup-body { display: flex; flex-direction: column; height: calc(100% - 32px); }
.mockup-nav { height: 48px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.mockup-nav-logo { width: 80px; height: 16px; background: #171717; border-radius: 4px; }
.mockup-nav-links { display: flex; gap: 16px; }
.mockup-nav-link { width: 40px; height: 8px; background: #E5E7EB; border-radius: 4px; }
.mockup-hero { padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.mockup-title { width: 70%; height: 32px; background: #171717; border-radius: 6px; margin-bottom: 16px; }
.mockup-desc { width: 50%; height: 12px; background: #9CA3AF; border-radius: 4px; margin-bottom: 24px; }
.mockup-btn { width: 120px; height: 36px; background: var(--accent-primary); border-radius: 6px; margin-bottom: 32px; }
.mockup-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; width: 80%; }
.mockup-card { height: 80px; background: #F9FAFB; border: 1px solid var(--border-light); border-radius: 8px; }

.mockup-mobile {
    position: absolute; bottom: 10px; left: 0; width: 200px; height: 400px;
    background: #FFFFFF; border-radius: 28px; box-shadow: var(--shadow-dark);
    border: 8px solid var(--bg-dark); overflow: hidden; z-index: 2; display: flex; flex-direction: column;
}
.mockup-mobile-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 20px; background: var(--bg-dark); border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.mockup-mobile-nav { height: 50px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; margin-top: 20px; }
.mockup-mobile-hero { padding: 24px 16px; display: flex; flex-direction: column; align-items: center; }
.mockup-mobile-title { width: 90%; height: 24px; background: #171717; border-radius: 4px; margin-bottom: 12px; }
.mockup-mobile-desc { width: 80%; height: 8px; background: #9CA3AF; border-radius: 4px; margin-bottom: 16px; }
.mockup-mobile-btn { width: 100%; height: 40px; background: var(--accent-primary); border-radius: 6px; margin-bottom: 24px; }
.mockup-mobile-card { width: 100%; height: 60px; background: #F9FAFB; border: 1px solid var(--border-light); border-radius: 8px; margin-bottom: 8px; }

/* Section Headers */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header h2 { font-size: 42px; letter-spacing: -1px; margin-bottom: 20px; }
.section-header p { font-size: 18px; color: var(--text-secondary); }

/* Trust Strip */
.trust-strip { background-color: var(--bg-secondary); padding: 48px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); text-align: center; }
.trust-strip h3 { font-size: 24px; margin-bottom: 32px; color: var(--text-primary); }
.trust-strip-grid { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text-secondary); font-size: 16px; }
.trust-item svg { color: var(--accent-primary); width: 24px; height: 24px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card {
    background-color: #FFFFFF; border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    padding: 40px 32px; transition: var(--transition); display: flex; flex-direction: column; height: 100%;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(233, 104, 44, 0.4); box-shadow: var(--shadow-hover); }
.service-icon {
    width: 56px; height: 56px; background-color: var(--accent-light); color: var(--accent-primary);
    border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 20px; margin-bottom: 16px; }
.service-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin-bottom: 24px; flex-grow: 1; }
.service-link { font-size: 15px; font-weight: 600; color: var(--accent-primary); display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); margin-top: auto; }
.service-link svg { transition: transform 0.3s; }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* About Section */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual {
    position: relative; width: 100%; aspect-ratio: 1; background-color: var(--bg-secondary);
    border-radius: var(--radius-lg); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center;
}
.ui-frame { width: 85%; height: 75%; background: #FFFFFF; border-radius: 12px; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); display: flex; overflow: hidden; flex-direction: column; }
.ui-frame-header { height: 40px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; padding: 0 16px; justify-content: space-between; }
.ui-frame-logo { width: 60px; height: 12px; background: #171717; border-radius: 4px; }
.ui-frame-btn { width: 80px; height: 24px; background: var(--accent-primary); border-radius: 4px; }
.ui-frame-body { display: flex; flex: 1; }
.ui-sidebar { width: 25%; background: #F9FAFB; border-right: 1px solid var(--border-color); padding: 20px 12px; }
.ui-sidebar-item { height: 10px; background: #6B7280; border-radius: 4px; margin-bottom: 16px; }
.ui-content { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; gap: 16px; }
.ui-content-hero { height: 80px; background: var(--bg-secondary); border-radius: 8px; border: 1px dashed #9CA3AF; }
.ui-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ui-content-card { height: 60px; background: #D1D5DB; border-radius: 6px; }

.float-label {
    position: absolute; background: #FFFFFF; padding: 10px 16px; border-radius: 100px;
    font-size: 14px; font-weight: 700; color: var(--text-primary); box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color); display: flex; align-items: center; gap: 8px;
}
.float-label.top { top: 15%; left: -24px; }
.float-label.middle { top: 50%; right: -24px; transform: translateY(-50%); }
.float-label.bottom { bottom: 15%; left: -10px; }

.about-content h2 { font-size: 42px; margin-bottom: 24px; }
.about-content > p { font-size: 18px; color: var(--text-secondary); margin-bottom: 48px; }
.feature-list { display: flex; flex-direction: column; gap: 40px; }
.feature-item { display: flex; gap: 24px; }
.feature-icon { width: 40px; height: 40px; color: var(--accent-primary); flex-shrink: 0; }
.feature-icon svg { width: 100%; height: 100%; }
.feature-text h4 { font-size: 20px; margin-bottom: 8px; }
.feature-text p { color: var(--text-secondary); font-size: 16px; }

/* Process Section */
.process-v2-container {
    background-color: var(--bg-secondary);
    border-radius: 28px;
    padding: 80px 64px;
    display: flex;
    gap: 64px;
    align-items: flex-start;
}
.process-v2-left { width: 38%; flex-shrink: 0; }
.process-v2-sticky { position: sticky; top: 120px; }
.process-v2-left h2 { font-size: 40px; margin-bottom: 20px; line-height: 1.2; }
.process-v2-left p { font-size: 18px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }
.process-v2-highlight { font-size: 15px; font-weight: 700; color: var(--accent-primary); padding: 12px 20px; background: #FFFFFF; border-radius: 8px; border: 1px solid var(--border-color); display: inline-block; }

.process-v2-right { width: 62%; position: relative; }
.process-v2-line { position: absolute; left: 42px; top: 40px; bottom: 40px; width: 1px; border-left: 2px dashed #E5E7EB; z-index: 0; }

.process-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}
.process-card:hover {
    transform: translateY(-2px);
    border-color: rgba(233,104,44,0.4);
    box-shadow: 0 12px 32px rgba(233,104,44,0.06);
}
.process-offset { margin-left: 32px; }

.process-card-num {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(233,104,44,0.5);
    flex-shrink: 0;
}
.process-card-content h3 { font-size: 20px; margin-bottom: 8px; font-weight: 700; }
.process-card-content p { color: var(--text-secondary); font-size: 17px; line-height: 1.6; margin: 0; }

/* Projects Section */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.project-card { border-radius: var(--radius-lg); background-color: #FFFFFF; border: 1px solid var(--border-color); overflow: hidden; transition: var(--transition); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.project-image { aspect-ratio: 4/3; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 32px; }

.project-ui-mockup {
    width: 100%; height: 100%; background: #FFFFFF; border-radius: 8px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.5s ease;
}
.project-card:hover .project-ui-mockup { transform: scale(1.04); }

.project-content { padding: 32px 24px; }
.project-category { font-size: 13px; font-weight: 800; color: var(--accent-primary); margin-bottom: 12px; letter-spacing: 0.5px; text-transform: uppercase; }
.project-content h3 { font-size: 22px; margin-bottom: 20px; }
.project-link { font-size: 16px; font-weight: 700; color: var(--text-primary); display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); }
.project-link svg { transition: transform 0.3s; }
.project-card:hover .project-link { color: var(--accent-primary); }
.project-card:hover .project-link svg { transform: translateX(3px); }

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-content { max-width: 500px; }
.contact-content h2 { font-size: 44px; margin-bottom: 24px; }
.contact-content p { font-size: 18px; color: var(--text-secondary); margin-bottom: 40px; }

.contact-email { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; color: var(--text-primary); text-decoration: none; margin-bottom: 48px; transition: color 0.3s; }
.contact-email:hover { color: var(--accent-primary); }

.contact-trust-list { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.contact-trust-item { display: flex; align-items: center; gap: 16px; font-size: 18px; font-weight: 600; color: var(--text-primary); }
.contact-trust-item svg { color: var(--accent-primary); flex-shrink: 0; }

/* Form */
.contact-form-card { background: #FFFFFF; border-radius: var(--radius-lg); padding: 48px; border: 1px solid var(--border-color); box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.form-control { width: 100%; height: 52px; padding: 0 16px; border: 1px solid #D1D5DB; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 16px; background: #FAFAFA; transition: var(--transition); color: var(--text-primary); }
.form-control::placeholder { color: #6B7280; }
.form-control:focus { outline: none; background: #FFFFFF; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(233, 104, 44, 0.15); }
textarea.form-control { height: 140px; padding: 16px; resize: vertical; }
.btn-submit { width: 100%; height: 56px; font-size: 18px; margin-top: 8px; }

/* CTA Panel */
.cta-panel { background-color: var(--bg-dark); border-radius: var(--radius-lg); padding: 72px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: radial-gradient(#333 1px, transparent 1px); background-size: 24px 24px; opacity: 0.3; }
.cta-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cta-content h2 { color: #FFFFFF; font-size: 42px; line-height: 1.25; margin-bottom: 20px; }
.cta-content p { color: #D1D5DB; font-size: 18px; margin-bottom: 40px; }

/* Footer */
.footer { padding: 64px 0 24px; background-color: #FFFFFF; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 64px; margin-bottom: 56px; }
.footer-brand p { color: var(--text-secondary); margin-top: 16px; max-width: 320px; font-size: 16px; line-height: 1.7; }
.footer-col h4 { font-size: 19px; margin-bottom: 24px; font-weight: 700; }
.footer-links { display: flex; flex-direction: column; gap: 16px; }
.footer-links a { color: var(--text-secondary); font-size: 16px; transition: color 0.2s; font-weight: 500; }
.footer-links a:hover { color: var(--accent-primary); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.footer-copyright { color: var(--text-secondary); font-size: 15px; }

/* Responsive */
@media (max-width: 1024px) {
    .hero .container, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 64px; }
    .hero-visual { height: 500px; width: 100%; right: 0; }
    .mockup-desktop { right: 50%; transform: translateX(50%); max-width: 100%; }
    .process-v2-container { padding: 64px 32px; gap: 40px; }
    .process-v2-left h2 { font-size: 32px; }
    .process-offset { margin-left: 16px; }
    .process-v2-line { left: 26px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }
    .hero { padding: 140px 0 60px; }
    .hero-content h1 { font-size: 42px; }
    .hero-actions { flex-direction: column; }
    .hero-trust-list { flex-direction: column; align-items: flex-start; gap: 16px; }
    .btn { width: 100%; }
    .menu-toggle { display: flex; }
    .nav-links { position: absolute; top: 80px; left: 0; width: 100%; background: #FFFFFF; flex-direction: column; padding: 24px; box-shadow: var(--shadow-md); display: none; border-bottom: 1px solid var(--border-color); }
    .nav-links.active { display: flex; }
    .nav-links .btn { display: none; }
    .services-grid, .projects-grid, .footer-grid { grid-template-columns: 1fr; }
    .process-v2-container { flex-direction: column; padding: 48px 24px; gap: 40px; }
    .process-v2-left, .process-v2-right { width: 100%; }
    .process-v2-sticky { position: relative; top: 0; }
    .process-offset { margin-left: 0; }
    .process-v2-line { display: none; }
    .process-card { padding: 24px; gap: 16px; }
    .process-card-num { font-size: 40px; }
    .contact-form-card { padding: 32px 24px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .float-label.top { left: -10px; }
    .float-label.bottom { left: -10px; }
    .float-label.middle { right: -10px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 36px; }
    .section-header h2 { font-size: 32px; }
    .about-content h2 { font-size: 32px; }
    .contact-content h2 { font-size: 32px; }
    .cta-content h2 { font-size: 32px; }
    .process-v2-left h2 { font-size: 28px; }
    .trust-strip h3 { font-size: 20px; }
    .hero-visual { height: 420px; }
    .mockup-mobile { width: 160px; height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .fade-up { opacity: 1; transform: none; transition: none; }
}
/* Accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible, .nav-item:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 4px; border-radius: 4px; }
