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

:root {
    --bg-dark: #09090f;
    --bg-darker: #060609;
    --bg-surface: #0e0e1a;
    --surface-1: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.07);
    --primary: #4f6ef7;
    --primary-hover: #3a58e0;
    --primary-glow: rgba(79, 110, 247, 0.25);
    --accent: #e8a838;
    --accent-hover: #d4922a;
    --accent-glow: rgba(232, 168, 56, 0.2);
    --text-main: #f0f2f8;
    --text-muted: #8b919e;
    --text-subtle: #555d6b;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(79, 110, 247, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--accent); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 7rem 0; }
.bg-darker { background-color: var(--bg-darker); }

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

/* Eyebrow label */
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(232, 168, 56, 0.3);
    border-radius: 100px;
    background: rgba(232, 168, 56, 0.07);
}

/* Glass */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(79, 110, 247, 0.45);
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--surface-2);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--text-main);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #09090f;
    font-weight: 700;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(232, 168, 56, 0.4);
    color: #09090f;
}

.btn-large { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: rgba(9, 9, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(9, 9, 15, 0.97);
    border-bottom-color: var(--glass-border);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.logo img { height: 36px; }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active-link {
    color: var(--text-main);
    background: var(--surface-1);
}

.btn-nav {
    padding: 0.45rem 1.1rem;
    background: var(--primary);
    color: white !important;
    border-radius: 6px;
    font-size: 0.9rem;
}

.btn-nav:hover {
    background: var(--primary-hover);
    color: white !important;
}

/* Lang Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 16px;
    padding: 4px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--surface-1);
}

.lang-switcher a {
    text-decoration: none;
    color: var(--text-subtle);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 5px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lang-switcher a:hover { color: var(--text-main); background: var(--surface-2); }
.lang-switcher a.active {
    color: var(--text-main);
    background: var(--primary);
}

.lang-icon { display: none; }

/* Hamburger */
.hamburger { display: none; cursor: pointer; }
.bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-muted);
    border-radius: 2px;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(79, 110, 247, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 110, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 110, 247, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 860px;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.9s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.1s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.3s; }

@keyframes fadeIn { to { opacity: 1; } }

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 { font-size: 2.6rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; margin-top: 0.5rem; }

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.stat-box {
    background: var(--surface-1);
    border: 1px solid var(--glass-border);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.stat-box:hover { transform: translateY(-4px); border-color: rgba(79, 110, 247, 0.3); }
.stat-box:hover::before { opacity: 1; }

.stat-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: block;
}

.stat-box h3 {
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.stat-box p { color: var(--text-muted); font-size: 0.85rem; }

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

.service-card {
    padding: 2.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0; top: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover { transform: translateY(-6px); border-color: rgba(79, 110, 247, 0.3); box-shadow: var(--shadow-glow); }
.service-card:hover::after { opacity: 1; }

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(79, 110, 247, 0.1);
    border: 1px solid rgba(79, 110, 247, 0.2);
    border-radius: var(--radius-sm);
    color: var(--primary);
}

.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-6px);
    transition: var(--transition);
}

.service-card:hover .service-link { opacity: 1; transform: translateX(0); }

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: default;
}

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

/* Always-visible bottom strip */
.portfolio-strip {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(9,9,15,0.95) 0%, transparent 100%);
    z-index: 2;
    transition: var(--transition);
}

.portfolio-strip h3 { font-size: 1.2rem; margin-bottom: 0; }

/* Hover overlay with full info */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 15, 0.88);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
}

.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover .portfolio-strip { opacity: 0; }

.portfolio-overlay h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.portfolio-overlay p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }

.status-badge {
    display: inline-block;
    margin-top: 0.5rem;
    background: rgba(232, 168, 56, 0.15);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    border: 1px solid rgba(232, 168, 56, 0.35);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.portfolio-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.portfolio-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-1);
    border: 1px solid var(--glass-border);
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.04em;
}

/* FAQ */
.faq-container { max-width: 760px; margin: 0 auto; }

.faq-item {
    margin-bottom: 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover { border-color: rgba(79, 110, 247, 0.25); }

.faq-question {
    width: 100%;
    padding: 1.4rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-1);
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    gap: 1rem;
}

.faq-question:hover { background: var(--surface-2); }

.faq-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: var(--bg-darker);
}

.faq-answer p {
    padding: 1.25rem 1.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
}

.contact-info { padding: 2.25rem; }
.contact-info h3 { margin-bottom: 2rem; font-size: 1.3rem; }

.info-item { margin-bottom: 1.75rem; }

.info-item strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.info-item p { color: var(--text-muted); font-size: 0.95rem; }
.info-item a { color: var(--text-muted); }
.info-item a:hover { color: var(--text-main); }

.contact-form { padding: 2.25rem; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* Footer */
.footer {
    background-color: var(--bg-darker);
    padding: 5rem 0 2rem;
    border-top: 1px solid transparent;
    background-image: linear-gradient(var(--bg-darker), var(--bg-darker)),
                      linear-gradient(90deg, transparent, rgba(79,110,247,0.3), rgba(232,168,56,0.3), transparent);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; max-width: 300px; }

.footer-address {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-subtle);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 1.25rem;
    font-family: 'Inter', sans-serif;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text-main); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-subtle);
    font-size: 0.85rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px; left: 20px; right: 20px;
    max-width: 900px;
    margin: 0 auto;
    right: auto;
    background: rgba(14, 14, 26, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 110, 247, 0.3);
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px var(--border-subtle);
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.hidden { transform: translateY(calc(100% + 30px)); }
.cookie-banner p { font-size: 0.9rem; color: var(--text-muted); }
.cookie-banner a { color: var(--primary); }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; margin-left: 2rem; }

/* Legal Pages */
.legal-page { padding-top: 120px; }

.legal-content {
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    margin-bottom: 4rem;
}

.legal-content h1 { color: var(--primary); margin-bottom: 2rem; }
.legal-content h2 { margin-top: 2rem; color: var(--text-main); font-size: 1.2rem; }
.legal-content p, .legal-content ul { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.8; }
.legal-content ul { padding-left: 2rem; }

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .cookie-banner { flex-direction: column; gap: 1rem; text-align: center; right: 20px; }
    .cookie-actions { margin-left: 0; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 76px;
        flex-direction: column;
        background: rgba(9, 9, 15, 0.99);
        width: 100%;
        height: calc(100vh - 76px);
        text-align: center;
        transition: 0.35s cubic-bezier(0.4,0,0.2,1);
        padding-top: 2rem;
        gap: 0;
    }

    .nav-links.active { left: 0; }
    .nav-links li { margin: 0.5rem 0; }
    .lang-switcher { margin-left: 0; margin-top: 1rem; justify-content: center; }

    .hero h1 { font-size: 2.4rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 2rem; }
    .about-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .container { padding: 0 1.25rem; }
    .section { padding: 5rem 0; }
    .about-stats { grid-template-columns: 1fr; }
}
