/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2b5a9e;
    --dark-blue: #1a3a6b;
    --light-blue: #4a7fc1;
    --accent-color: #f5a623;
    --text-dark: #1d1d1f;
    --text-gray: #6e6e73;
    --text-light: #86868b;
    --bg-light: #f5f5f7;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 0.2s;
    --transition-medium: 0.4s;
    --transition-slow: 0.6s;

    /* Spacing System - 8px base unit */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 1rem;      /* 16px */
    --space-md: 1.5rem;    /* 24px */
    --space-lg: 2rem;      /* 32px */
    --space-xl: 3rem;      /* 48px */
    --space-2xl: 4rem;     /* 64px */
    --space-3xl: 6rem;     /* 96px */
    --space-4xl: 8rem;     /* 128px */

    /* Container widths */
    --container-max: 1200px;
    --container-padding: 2rem;

    /* Vertical rhythm */
    --section-padding: 6rem;
    --section-gap: 4rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-backface-visibility: hidden;
    -ms-interpolation-mode: bicubic;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    image-rendering: auto;
    transform: translateZ(0);
    will-change: transform;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 1.25rem 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition: all var(--transition-medium) var(--ease-out);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-subtle);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    min-height: 80px;
}

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

.logo img {
    height: 150px;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    image-rendering: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.logo img:hover {
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-medium) var(--ease-out), opacity var(--transition-fast) ease;
    position: relative;
    opacity: 0.85;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width var(--transition-medium) var(--ease-in-out);
    border-radius: 2px;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
    opacity: 1;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: var(--space-xs);
    cursor: pointer;
    padding: var(--space-xs);
    align-items: center;
    justify-content: center;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    margin-top: 160px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.hero .container {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-content {
    max-width: 600px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.05;
    margin: 0;
    color: var(--white);
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    opacity: 0.95;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 3.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all var(--transition-medium) var(--ease-out);
    position: relative;
    overflow: hidden;
    align-self: flex-start;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium) var(--ease-in-out);
    z-index: -1;
}

.btn-hero:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-hero:hover {
    color: var(--text-dark);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.25);
}

/* Diamond shapes */
.hero-diamonds {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
}

.diamond {
    width: 120px;
    height: 120px;
    background: rgba(43, 90, 158, 0.85);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.diamond:hover {
    transform: rotate(45deg) scale(1.1);
    background: rgba(43, 90, 158, 0.95);
}

.diamond-icon {
    transform: rotate(-45deg);
    color: var(--white);
    font-size: 2rem;
}

/* ===== SECTIONS ===== */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 auto var(--section-gap);
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.1;
    max-width: 800px;
    padding: 0 var(--space-lg);
}

/* ===== SERVICES SECTION ===== */
.services {
    background: var(--white);
}

.services-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--section-gap);
    align-items: start;
    margin-top: 0;
}

.service-image {
    position: sticky;
    top: 160px;
}

.service-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow) var(--ease-out), box-shadow var(--transition-medium) ease;
}

.service-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-item {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform var(--transition-medium) var(--ease-out);
}

.service-item:first-child {
    padding-top: 0;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item:hover {
    transform: translateX(8px);
}

.service-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 var(--space-md) 0;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    transition: color var(--transition-fast) ease;
    line-height: 1.3;
}

.service-item:hover h3 {
    color: var(--primary-blue);
}

.service-item p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 0;
    max-width: 600px;
}

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

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--section-gap);
    align-items: center;
    margin-top: 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: var(--space-md);
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform var(--transition-slow) var(--ease-out), box-shadow var(--transition-medium) ease;
}

.image-grid img:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-lg);
}

.image-grid .img-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.image-grid .img-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}

.image-grid .img-3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.about-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 0 var(--space-xl) 0;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.about-content p {
    color: var(--text-gray);
    line-height: 1.9;
    font-size: 1.1rem;
    margin: 0;
}

/* ===== VALUES SECTION ===== */
.values {
    background: var(--white);
    padding: var(--section-padding) 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    align-items: start;
}

.value-card {
    text-align: center;
    transition: transform var(--transition-medium) var(--ease-out);
}

.value-card:hover {
    transform: translateY(-8px);
}

.value-image {
    width: 100%;
    height: 320px;
    margin: 0 0 var(--space-xl) 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition-medium) ease;
}

.value-card:hover .value-image {
    box-shadow: var(--shadow-lg);
}

.value-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow) var(--ease-out);
}

.value-card:hover .value-image img {
    transform: scale(1.08);
}

.value-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 600;
    margin: 0 0 var(--space-md) 0;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.value-card p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 0;
    padding: 0 var(--space-sm);
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--section-gap);
    margin-top: 0;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.info-item {
    display: flex;
    gap: var(--space-md);
    align-items: start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-top: var(--space-xs);
    flex-shrink: 0;
}

.info-item > div {
    flex: 1;
}

.info-item h4 {
    font-weight: 600;
    margin: 0 0 var(--space-sm) 0;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

.contact-form {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition-medium) ease;
}

.contact-form:hover {
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group:last-of-type {
    margin-bottom: var(--space-xl);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.15rem 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-medium) var(--ease-out);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(43, 90, 158, 0.08);
    transform: translateY(-1px);
}

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

.btn-submit {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all var(--transition-medium) var(--ease-out);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    opacity: 0;
    transition: opacity var(--transition-medium) ease;
}

.btn-submit:hover::before {
    opacity: 1;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(43, 90, 158, 0.35);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: var(--section-padding) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: var(--section-gap);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: start;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-start;
}

.footer-logo img {
    height: 140px;
    width: auto;
    object-fit: contain;
    max-width: 300px;
    filter: brightness(1.1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    image-rendering: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.02);
    filter: brightness(1.2);
}

.footer-logo h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.footer-column h4 {
    font-weight: 600;
    margin: 0 0 var(--space-md) 0;
    color: var(--white);
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: var(--space-sm);
}

.footer-column ul li:last-child {
    margin-bottom: 0;
}

.footer-column ul li a,
.footer-column ul li {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-column ul li i {
    margin-right: 0.5rem;
    color: var(--primary-blue);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-policies {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-policies a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-policies a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* ===== FADE-IN ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
    will-change: opacity, transform;
}

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

/* Stagger animations for multiple elements */
.service-item.fade-in:nth-child(1) { transition-delay: 0.05s; }
.service-item.fade-in:nth-child(2) { transition-delay: 0.15s; }
.service-item.fade-in:nth-child(3) { transition-delay: 0.25s; }
.service-item.fade-in:nth-child(4) { transition-delay: 0.35s; }

.value-card.fade-in:nth-child(1) { transition-delay: 0.1s; }
.value-card.fade-in:nth-child(2) { transition-delay: 0.2s; }
.value-card.fade-in:nth-child(3) { transition-delay: 0.3s; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    :root {
        --container-padding: var(--space-md);
        --section-padding: var(--space-2xl);
        --section-gap: var(--space-xl);
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 100px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: var(--space-xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        align-items: flex-start;
    }

    .logo img {
        height: 100px;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: high-quality;
        image-rendering: auto;
    }

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

    .hero {
        margin-top: 100px;
        min-height: 600px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-diamonds {
        gap: 1rem;
        bottom: 80px;
    }

    .diamond {
        width: 80px;
        height: 80px;
    }

    .diamond-icon {
        font-size: 1.5rem;
    }

    .services-layout,
    .about-layout,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .service-image {
        position: static;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    :root {
        --container-padding: var(--space-sm);
        --section-padding: var(--space-xl);
        --section-gap: var(--space-lg);
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-diamonds {
        display: none;
    }

    .section-title {
        font-size: 2rem;
        padding: 0 var(--space-sm);
    }

    .image-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 200px);
    }

    .image-grid .img-1,
    .image-grid .img-2,
    .image-grid .img-3 {
        grid-column: 1;
        grid-row: auto;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .btn-hero {
        padding: 0.8rem 2rem;
        font-size: 0.85rem;
    }

    .scroll-top {
        bottom: var(--space-lg);
        right: var(--space-lg);
        width: 48px;
        height: 48px;
    }

    .value-card p {
        padding: 0;
    }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 56px;
    height: 56px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(43, 90, 158, 0.4);
    transition: all var(--transition-medium) var(--ease-out);
}

.scroll-top:hover {
    background: var(--dark-blue);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(43, 90, 158, 0.5);
}

.scroll-top.visible {
    display: flex;
}

/* ===== UTILITY CLASSES FOR ALIGNMENT ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

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

.flex-start {
    display: flex;
    align-items: flex-start;
}

.flex-end {
    display: flex;
    align-items: flex-end;
}
