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

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f8f9fc;
    --border: #e5e7eb;
    --success: #059669;
    --error: #dc2626;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 10px;
    --transition: 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

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

img {
    max-width: 100%;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-logo-svg {
    flex-shrink: 0;
}

.footer-logo-svg {
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

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

.cta-link {
    background: var(--primary);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 6px;
    transition: background var(--transition);
}

.cta-link::after {
    display: none;
}

.cta-link:hover {
    background: var(--primary-dark);
}

/* Nav right group */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    gap: 4px;
    background: var(--border);
    border-radius: 6px;
    padding: 2px;
}

.lang-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    color: var(--text-light);
    transition: all var(--transition);
}

.lang-btn:hover {
    color: var(--text);
}

.lang-btn.active {
    background: var(--primary);
    color: #fff;
}

.lang-switcher-mobile {
    display: none;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ===== Flash Messages ===== */
.flash-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
}

.flash-message {
    padding: 14px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    animation: slideIn 0.3s ease;
}

.flash-success {
    background: #ecfdf5;
    color: var(--success);
    border: 1px solid #a7f3d0;
}

.flash-error {
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    line-height: 1;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 40%, #e8f0fe 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
}

.highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

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

/* Hero Animated Logo */
.hero-logo-animated {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.logo-anim {
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
}

.hero-logo-text {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: 2px;
    opacity: 0;
    animation: logoTextAppear 0.6s ease forwards;
    animation-delay: 1.6s;
}

/* Logo dot animation: scale + fade in with stagger */
.logo-dot {
    opacity: 0;
    transform-origin: center;
    transform: scale(0);
    animation: dotPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--d) * 0.04s);
}

@keyframes dotPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Logo bar animation: grow from bottom */
.logo-bar {
    opacity: 0;
    animation: barGrow 0.5s ease forwards;
}

.logo-bar-1 {
    transform-origin: 87px 118px;
    animation-delay: 1.0s;
}

.logo-bar-2 {
    transform-origin: 100px 118px;
    animation-delay: 1.15s;
}

.logo-bar-3 {
    transform-origin: 113px 118px;
    animation-delay: 1.3s;
}

@keyframes barGrow {
    0% {
        opacity: 0;
        transform: scaleY(0);
    }
    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes logoTextAppear {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 540px;
    margin: 0 auto;
}

/* ===== Services ===== */
.services {
    padding: 100px 0;
    background: linear-gradient(180deg, #e8f0fe 0%, #ffffff 100%);
}

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

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all var(--transition);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
}

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

.service-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Contact ===== */
.contact {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.contact-form {
    background: var(--bg);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.92rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: var(--error);
}

.form-error {
    display: block;
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 4px;
    min-height: 1.2em;
}

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

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--bg);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.info-item {
    margin-bottom: 12px;
}

.info-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.info-item a {
    color: var(--primary);
    font-size: 0.92rem;
}

.info-item a:hover {
    text-decoration: underline;
}

.info-card p {
    font-size: 0.92rem;
    color: var(--text-light);
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 14px;
    background: #ecfdf5;
    color: var(--success);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ===== Footer ===== */
.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid #334155;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.footer-links a {
    font-size: 0.88rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #e2e8f0;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 0.82rem;
}

/* ===== Privacy Page ===== */
.privacy-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.privacy-content {
    max-width: 720px;
    margin: 0 auto;
}

.privacy-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}

.privacy-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 32px;
    margin-bottom: 12px;
}

.privacy-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.privacy-content ul {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
    padding-left: 24px;
}

.privacy-content ul li {
    margin-bottom: 8px;
}

.privacy-content a:not(.btn) {
    color: var(--primary);
    text-decoration: none;
}

.privacy-content a:not(.btn):hover {
    text-decoration: underline;
}

.privacy-update {
    margin-top: 40px;
    font-size: 0.85rem;
    font-style: italic;
}

.privacy-content .btn {
    margin-top: 16px;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 8px;
}

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

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .lang-switcher {
        display: none;
    }

    .lang-switcher-mobile {
        display: flex;
        gap: 4px;
        background: var(--border);
        border-radius: 6px;
        padding: 2px;
        margin-top: 8px;
    }

    .cta-link {
        text-align: center;
    }

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

    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .logo-anim {
        width: 220px;
        height: 220px;
    }

    .hero-logo-text {
        font-size: 1.8rem;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .flash-container {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}
