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

:root {
    --navy: #1a365d;
    --navy-light: #234681;
    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --amber: #f59e0b;
    --amber-hover: #d97706;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --transition: 0.3s ease;
}

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

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

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

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

img {
    max-width: 100%;
    display: block;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color var(--transition);
    position: relative;
}

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

.nav-links a:hover {
    color: var(--navy);
}

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

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: border-color var(--transition);
}

.lang-toggle:hover {
    border-color: var(--blue);
}

.lang-divider {
    color: var(--border);
}

.lang-option {
    color: var(--text-light);
    transition: color var(--transition);
}

.lang-option.active {
    color: var(--navy);
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
    padding: 160px 0 100px;
    background:
        /* Grid pattern */
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        /* Base gradient */
        linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    background-size:
        60px 60px,
        60px 60px,
        100% 100%;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 65%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 65%);
    border-radius: 50%;
}

/* Floating geometric shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.shape-1 {
    width: 300px;
    height: 300px;
    right: 8%;
    top: 15%;
    transform: rotate(15deg);
}

.shape-2 {
    width: 200px;
    height: 200px;
    right: 15%;
    top: 35%;
    transform: rotate(-10deg);
    border-color: rgba(59, 130, 246, 0.2);
}

.shape-3 {
    width: 120px;
    height: 120px;
    right: 30%;
    bottom: 20%;
    transform: rotate(30deg);
    border-radius: 50%;
    border-color: rgba(245, 158, 11, 0.15);
}

.shape-4 {
    width: 80px;
    height: 80px;
    right: 5%;
    bottom: 25%;
    transform: rotate(45deg);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
    line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
    background: var(--amber);
    color: var(--navy);
    padding: 14px 32px;
}

.btn-primary:hover {
    background: var(--amber-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ===== Section Shared ===== */
.services,
.about,
.contact {
    padding: 100px 0;
}

.services h2,
.about h2,
.contact h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-sub {
    font-size: 1.0625rem;
    color: var(--text-light);
    margin-bottom: 48px;
    max-width: 520px;
}

.services .section-sub,
.contact .section-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.services h2,
.contact h2 {
    text-align: center;
}

/* ===== Services Grid ===== */
.services {
    background: var(--bg);
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
}

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

/* ===== About ===== */
.about-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    font-size: 1.0625rem;
    color: var(--text-light);
    margin-top: 16px;
    line-height: 1.7;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 60px;
}

.detail-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.detail-card svg {
    margin: 0 auto 12px;
}

.detail-card strong {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.detail-card p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy);
}

/* ===== Contact ===== */
.contact {
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    font-family: inherit;
    font-size: 0.9375rem;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.form-status {
    font-size: 0.875rem;
    font-weight: 500;
    min-height: 1.25em;
}

.form-status.success {
    color: #16a34a;
}

.form-status.error {
    color: #dc2626;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 8px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail strong {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.contact-detail p {
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.6;
}

.contact-detail a {
    color: var(--blue);
    font-weight: 500;
    transition: color var(--transition);
}

.contact-detail a:hover {
    color: var(--navy);
}

/* ===== Footer ===== */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.6);
    padding: 28px 0;
}

.footer-inner {
    text-align: center;
    font-size: 0.875rem;
}

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

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-details {
        flex-direction: row;
        padding-top: 0;
    }

    .detail-card {
        flex: 1;
    }

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

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 130px 0 70px;
    }

    .services,
    .about,
    .contact {
        padding: 70px 0;
    }

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

    .about-details {
        flex-direction: column;
    }

    .section-sub {
        margin-bottom: 32px;
    }
}
