:root {
    --copper: #c48c6a;
    --copper-light: #d9a882;
    --dark-blue: #1e2a3a;
    --teal: #1ea3a3;
    --teal-glow: rgba(30,163,163,0.4);
    --dark-bg: #08090b;
    --card-bg: rgba(255,255,255,0.035);
    --card-border: rgba(255,255,255,0.08);
    --light-text: #c8d0da;
    --muted: #7c8899;
    --white: #ffffff;
    --font-main: 'Inter', sans-serif;
    --font-headings: 'Space Grotesk', sans-serif;
    --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--light-text);
    margin: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    letter-spacing: -0.02em;
    color: var(--white);
    margin: 0;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; padding: 0; margin: 0; }

/* TECH BACKGROUND */
.tech-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--dark-bg);
}
.tech-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(30,163,163,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30,163,163,0.08) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 25%, black 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 85% 65% at 50% 25%, black 0%, transparent 75%);
}
#bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.tech-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(30,163,163,0.08), transparent 55%),
        linear-gradient(180deg, transparent 0%, var(--dark-bg) 92%);
}

.container {
    width: 88%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* HEADER */
header {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, 92%);
    z-index: 1000;
    background: rgba(15, 17, 20, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    padding: 10px 12px 10px 22px;
    transition: all 0.35s ease;
}
header.scrolled {
    top: 10px;
    background: rgba(10, 11, 13, 0.85);
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

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

.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 38px; width: auto; border-radius: 50%; }
.logo span {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0;
}

/* DESKTOP NAV */
nav ul { display: flex; gap: 8px; align-items: center; }
nav a {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 100px;
    color: var(--light-text);
}
nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
nav a.active { color: var(--white); background: rgba(30,163,163,0.18); }

.nav-cta {
    margin-left: 6px;
    padding: 10px 22px !important;
    background: var(--teal);
    color: var(--white) !important;
    font-weight: 600;
}
.nav-cta:hover { background: #189393; }

/* LANGUAGE SWITCH */
.lang-switch {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
    padding: 3px;
    margin-left: 6px;
}
.lang-btn {
    padding: 7px 13px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-main);
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}
.lang-btn.active { background: var(--teal); color: var(--white); }
.lang-btn:hover:not(.active) { color: var(--white); }

.mobile-nav .lang-switch { margin-left: 0; margin-top: 10px; padding: 4px; }
.mobile-nav .lang-btn { padding: 8px 18px; font-size: 0.8rem; }

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--light-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* MOBILE NAV */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6,7,9,0.97);
    backdrop-filter: blur(10px);
    z-index: 1050;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    font-family: var(--font-headings);
    font-size: 1.9rem;
    color: var(--light-text);
    font-weight: 600;
    transition: color 0.3s ease;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--teal); }

/* HERO (home page) */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 120px;
}

#hero .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(30,163,163,0.1);
    border: 1px solid rgba(30,163,163,0.3);
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 30px;
}
.hero-badge .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 12px var(--teal-glow);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

#hero h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.98;
    margin: 0 0 22px 0;
    background: linear-gradient(135deg, #ffffff 40%, var(--copper-light) 75%, var(--teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typewriter-wrap {
    font-family: var(--font-headings);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--light-text);
    min-height: 2rem;
    margin-bottom: 42px;
    font-weight: 500;
}
.typewriter-wrap b { color: var(--teal); font-weight: 600; }

#typewriter::after {
    content: '|';
    animation: blink 0.8s infinite;
    color: var(--copper);
}

@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

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

/* PAGE HERO (services / contact pages) */
.page-hero {
    padding: 170px 0 60px;
    text-align: center;
}

/* BTN */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 34px;
    background-color: var(--teal);
    color: var(--white);
    border: 1px solid var(--teal);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 100px;
}
.btn:hover {
    background: #189393;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30,163,163,0.35);
}
.btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.18);
    color: var(--white);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.35);
    box-shadow: none;
}
.btn-sm { padding: 10px 18px; font-size: 0.78rem; }

/* SECTIONS */
#services, #contact, #services-preview, #cta-banner { padding: 110px 0; position: relative; }

.eyebrow {
    display: block;
    text-align: center;
    color: var(--teal);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 18px;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 60px;
    display: block;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* SERVICE CARDS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--card-bg);
    padding: 38px 32px;
    border-radius: var(--radius);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(30,163,163,0.35);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}

.service-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--teal);
    background: rgba(30,163,163,0.12);
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.price-tag {
    color: var(--copper-light);
    font-weight: 700;
    font-family: var(--font-headings);
    font-size: 1.15rem;
}

/* COMPACT PREVIEW CARDS (home page) */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 45px;
}
.preview-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: all 0.3s ease;
}
.preview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(30,163,163,0.3);
}
.preview-card .service-icon { margin-bottom: 18px; }
.preview-card h3 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 600; }
.preview-card p { font-size: 0.85rem; color: var(--muted); margin: 0; }
.preview-cta { text-align: center; }

/* IDEA CTA (home page) */
#idea-cta { padding: 0 0 110px; position: relative; }
.idea-panel {
    display: flex;
    align-items: center;
    gap: 36px;
    background: linear-gradient(135deg, rgba(30,163,163,0.1), rgba(196,140,106,0.06));
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 50px 46px;
}
.idea-icon {
    width: 74px; height: 74px;
    border-radius: 20px;
    background: rgba(196,140,106,0.15);
    color: var(--copper-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}
.idea-content { flex: 1; }
.idea-content h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 10px; }
.idea-content p { color: var(--muted); margin: 0; font-size: 0.95rem; line-height: 1.7; }
.idea-panel .btn { flex-shrink: 0; white-space: nowrap; }

/* CTA BANNER (home page) */
.cta-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
}
.cta-panel h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.cta-panel p { color: var(--muted); margin-bottom: 30px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* CONTACT */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 18px; }

.contact-info p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.92rem;
}

.contact-detail-item i {
    width: 42px; height: 42px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    display: flex; align-items: center; justify-content: center;
    color: var(--teal);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.contact-cta {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 48px 42px;
    text-align: center;
}

.contact-cta h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.contact-cta p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

/* FADE IN */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-up.active { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* FLOATING BUTTON */
.fab-btn {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--teal);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(30,163,163,0.5);
    transition: all 0.3s ease;
}
.fab-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(30,163,163,0.6);
    color: white;
}

/* FOOTER */
footer {
    background: transparent;
    padding: 50px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-logo span {
    font-family: var(--font-headings);
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

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

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #444;
}

/* SERVICE DETAIL PAGES */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 30px;
}
.back-link:hover { color: var(--teal); }

.detail-hero-icon {
    width: 74px; height: 74px;
    border-radius: 20px;
    background: rgba(30,163,163,0.12);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 26px;
}

.detail-intro {
    max-width: 720px;
    margin: 0 auto 70px;
    text-align: center;
    color: var(--light-text);
    font-size: 1.05rem;
    line-height: 1.85;
}

.detail-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
    align-items: start;
}

.detail-block h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.feature-list { display: flex; flex-direction: column; gap: 16px; }
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.92rem;
    color: var(--light-text);
    line-height: 1.6;
}
.feature-list li i { color: var(--teal); margin-top: 4px; flex-shrink: 0; }
.feature-list li strong { color: var(--white); }

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}
.process-step {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 30px 24px;
}
.process-step .step-num {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    color: var(--teal);
    margin-bottom: 14px;
    font-weight: 700;
}
.process-step h4 { font-size: 1rem; margin-bottom: 8px; font-weight: 600; }
.process-step p { font-size: 0.85rem; color: var(--muted); margin: 0; line-height: 1.6; }

.price-panel {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 46px 38px;
}
.price-panel .price-tag {
    font-size: 2.6rem;
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-headings);
}
.price-panel .price-note { color: var(--muted); font-size: 0.85rem; margin-bottom: 30px; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .detail-columns { grid-template-columns: 1fr; gap: 40px; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    nav { display: none; }
    .hamburger { display: flex; }

    header { width: 92%; padding: 8px 8px 8px 16px; }
    .logo-img { height: 32px; }

    #hero { padding-top: 100px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }

    .typewriter-wrap { font-size: 1.05rem; }

    .container { width: 92%; padding: 0 15px; }

    .services-grid, .preview-grid { grid-template-columns: 1fr; gap: 20px; }

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

    .page-hero { padding: 130px 0 30px; }

    #services, #contact, #services-preview, #cta-banner { padding: 70px 0; }
    #idea-cta { padding: 0 0 70px; }

    .idea-panel { flex-direction: column; text-align: center; padding: 36px 26px; }
    .idea-panel .btn { width: 100%; justify-content: center; }

    .cta-panel { padding: 36px 22px; }
    .cta-actions { flex-direction: column; align-items: stretch; }
    .cta-actions .btn { justify-content: center; }

    .detail-hero-icon { width: 60px; height: 60px; font-size: 1.6rem; }
    .process-steps { grid-template-columns: 1fr; margin-bottom: 50px; }
    .detail-columns { margin-bottom: 50px; }
    .detail-intro { margin-bottom: 45px; font-size: 0.95rem; }
    .price-panel { padding: 34px 24px; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .logo span { font-size: 1.1rem; }
    .fab-btn { width: 50px; height: 50px; bottom: 25px; right: 20px; }
    .contact-cta { padding: 32px 24px; }
    .price-panel .price-tag { font-size: 2.1rem; }
}
