/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */
:root {
    --color-primary: #1a3a5c;
    --color-primary-light: #2a5a8c;
    --color-primary-dark: #0f2640;
    --color-accent: #c8a45e;
    --color-accent-light: #e0c87a;
    --color-accent-dark: #a8854a;
    --color-bg: #fafafa;
    --color-bg-alt: #f0ede8;
    --color-bg-dark: #111820;
    --color-text: #2d2d2d;
    --color-text-light: #6b6b6b;
    --color-text-muted: #999;
    --color-white: #ffffff;
    --color-border: #e0ddd8;
    --color-success: #2ecc71;
    --color-error: #e74c3c;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 60px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

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

/* ===========================
   HEADER
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.header--scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    z-index: 1001;
}

.logo__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.logo__text {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
    transition: color var(--transition);
}

.header--scrolled .logo__text {
    color: var(--color-primary-dark);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.85);
    border-radius: 100px;
    transition: all var(--transition);
}

.nav__link:hover,
.nav__link--active {
    color: var(--color-white);
    background: rgba(255,255,255,0.15);
}

.header--scrolled .nav__link {
    color: var(--color-text);
}

.header--scrolled .nav__link:hover,
.header--scrolled .nav__link--active {
    color: var(--color-primary);
    background: rgba(26,58,92,0.08);
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition);
}

.header--scrolled .nav-toggle span {
    background: var(--color-primary-dark);
}

/* ===========================
   HERO
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(200, 164, 94, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(42, 90, 140, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: url('/images/company.png') center/cover no-repeat;
    opacity: 0.08;
}

.hero__content {
    position: relative;
    text-align: center;
    color: var(--color-white);
    max-width: 720px;
}

.hero__tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 16px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-white), var(--color-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.hero__scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    position: relative;
}

.hero__scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-accent-light);
    border-radius: 2px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(200,164,94,0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200,164,94,0.4);
}

.btn--full {
    width: 100%;
}

/* ===========================
   SECTIONS
   =========================== */
.section {
    padding: 100px 0;
}

.section__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section__tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section__divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section__desc {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about {
    background: var(--color-white);
}

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

.about__image-wrapper {
    position: relative;
}

.about__image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about__image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about__image-frame:hover .about__image {
    transform: scale(1.03);
}

.about__image-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.6;
}

.about__headline {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    color: var(--color-primary-dark);
    line-height: 1.3;
    margin-bottom: 20px;
}

.about__text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-accent-dark);
    line-height: 1;
}

.stat__plus {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-accent);
}

.stat__label {
    display: block;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 6px;
}

/* ===========================
   PROJECTS SECTION
   =========================== */
.projects {
    background: var(--color-bg-alt);
}

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

.project-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.project-card__image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-card__image {
    transform: scale(1.05);
}

.project-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-accent-dark);
    border-radius: 100px;
    letter-spacing: 0.02em;
}

.badge--coming {
    background: var(--color-primary);
}

.badge--completed {
    background: var(--color-success);
}

.project-card__body {
    padding: 24px;
}

.project-card__title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
}

.project-card__legal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.project-card__legal li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-accent);
}

.legal-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.project-card__legal strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 2px;
}

.project-card__legal p {
    font-size: 12.5px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.project-card__downloads {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    background: rgba(26,58,92,0.05);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-download:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-download svg {
    flex-shrink: 0;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact {
    background: var(--color-white);
}

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

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

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact-info-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.contact-info-card a {
    color: var(--color-primary);
    font-weight: 500;
}

.contact-info-card a:hover {
    color: var(--color-accent);
}

/* Form */
.contact__form-wrapper {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.required {
    color: var(--color-error);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

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

.form-error {
    display: block;
    font-size: 12px;
    color: var(--color-error);
    margin-top: 6px;
    min-height: 18px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(46,204,113,0.08);
    border: 1px solid rgba(46,204,113,0.2);
    border-radius: var(--radius-sm);
    margin-top: 16px;
    color: #27ae60;
    font-size: 14px;
    animation: fadeInUp 0.4s ease;
}

.form-success svg {
    flex-shrink: 0;
    color: var(--color-success);
}

.btn__loading .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--color-bg-dark);
    padding: 28px 0;
}

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

.footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__brand .logo__icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.footer__brand .logo__text {
    font-size: 16px;
    color: var(--color-white);
}

.footer__copy {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ===========================
   ANIMATIONS
   =========================== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 991px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image {
        height: 320px;
    }

    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15,38,64,0.97);
        backdrop-filter: blur(16px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
        z-index: 1000;
    }

    .nav--open {
        opacity: 1;
        pointer-events: all;
    }

    .nav__list {
        flex-direction: column;
        gap: 12px;
    }

    .nav__link {
        font-size: 20px;
        padding: 12px 32px;
        color: rgba(255,255,255,0.9);
    }

    .nav__link:hover,
    .nav__link--active {
        color: var(--color-white);
        background: rgba(255,255,255,0.1);
    }

    .nav-toggle--active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .nav-toggle--active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-toggle--active span {
        background: var(--color-white) !important;
    }

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

    .section {
        padding: 72px 0;
    }

    .about__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .stat__number {
        font-size: 28px;
    }

    .contact__form-wrapper {
        padding: 24px;
    }

    .footer__inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__cta {
        width: 100%;
    }

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