/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #2c3e50;
    --primary-light: #34495e;
    --primary-dark: #1a252f;
    --accent-color: #c9a96e;
    --accent-light: #d4b578;
    --accent-dark: #b8956a;

    --white-color: #ffffff;
    --light-color: #f8f9fa;
    --gray-light: #e9ecef;
    --gray-color: #6c757d;
    --gray-dark: #495057;
    --dark-color: #212529;

    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;

    /* Typography - Mobile First */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Inter', sans-serif;

    /* Fluid Typography */
    --biggest-font-size: clamp(2rem, 5vw, 3.5rem);
    --h1-font-size: clamp(1.75rem, 4vw, 2.5rem);
    --h2-font-size: clamp(1.5rem, 3vw, 2rem);
    --h3-font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    --normal-font-size: clamp(0.875rem, 1.5vw, 1rem);
    --small-font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    --smaller-font-size: 0.75rem;

    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /* Spacing - Mobile First */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: clamp(2rem, 5vw, 3rem);
    --spacing-xxl: clamp(2.5rem, 6vw, 4rem);

    /* Layout */
    --container-max-width: 1200px;
    --header-height: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.2);

    /* Border Radius */
    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;

    /* Z-index */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* Responsive Header Height */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 3.5rem;
    }
}

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-regular);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--white-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: var(--font-semi-bold);
    line-height: 1.2;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

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

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media screen and (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

.section {
    padding: var(--spacing-xl) 0;
}

@media screen and (min-width: 768px) {
    .section {
        padding: var(--spacing-xxl) 0;
    }
}

.section__header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section__subtitle {
    display: inline-block;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-xs);
}

.section__title {
    font-size: var(--h1-font-size);
    margin-bottom: var(--spacing-sm);
}

.section__description {
    font-size: var(--normal-font-size);
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1.5rem;
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-width: 150px;
}

@media screen and (min-width: 768px) {
    .btn {
        padding: 1rem 2rem;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--white-color);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.25rem;
    font-size: var(--small-font-size);
}

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

.btn-full {
    width: 100%;
}

.btn-arrow {
    transition: var(--transition-normal);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ===== HEADER - IMPROVED MOBILE ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    z-index: var(--z-fixed);
    transition: var(--transition-normal);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    z-index: var(--z-fixed);
}

.nav__logo h2 {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

@media screen and (min-width: 768px) {
    .nav__logo h2 {
        font-size: 1.5rem;
    }
}

.nav__logo span {
    display: none;
}

@media screen and (min-width: 576px) {
    .nav__logo span {
        display: block;
        font-size: var(--smaller-font-size);
        color: var(--accent-color);
        font-weight: var(--font-medium);
    }
}

/* Mobile Menu */
.nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: var(--transition-normal);
    z-index: var(--z-modal);
}

.nav__menu.show-menu {
    right: 0;
}

@media screen and (min-width: 769px) {
    .nav__menu {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        background: transparent;
        gap: var(--spacing-lg);
    }
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

@media screen and (min-width: 769px) {
    .nav__list {
        flex-direction: row;
        gap: var(--spacing-lg);
    }
}

.nav__link {
    font-weight: var(--font-medium);
    color: var(--primary-color);
    position: relative;
    font-size: 1.125rem;
}

@media screen and (min-width: 769px) {
    .nav__link {
        font-size: var(--normal-font-size);
    }
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-normal);
}

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

.nav__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

@media screen and (min-width: 769px) {
    .nav__contact {
        flex-direction: row;
        gap: var(--spacing-xs);
    }
}

.contact-numbers {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
}

.contact-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--primary-color);
}

@media screen and (min-width: 769px) {
    .contact-number {
        font-size: var(--small-font-size);
    }
}

.nav__toggle,
.nav__close {
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: var(--z-fixed);
}

.nav__toggle {
    display: block;
}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

@media screen and (min-width: 769px) {
    .nav__toggle,
    .nav__close {
        display: none;
    }
}

/* ===== HERO SECTION - ENHANCED VIDEO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.hero__container {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--header-height) 0 2rem;
}

/* Enhanced Video Container */
.hero__video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
}

@media (min-aspect-ratio: 16/9) {
    .hero__video-container {
        width: 100%;
        height: auto;
    }
}

@media (max-aspect-ratio: 16/9) {
    .hero__video-container {
        width: auto;
        height: 100%;
    }
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

/* Lighter overlay for clearer video */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
}

.hero__content {
    width: 100%;
    max-width: 900px;
    padding: 0 1rem;
    margin: 0 auto;
}

.hero__text {
    color: var(--white-color);
    text-align: center;
}

.hero__subtitle {
    display: inline-block;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hero__title {
    font-size: var(--biggest-font-size);
    font-weight: var(--font-bold);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--white-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__title-accent {
    color: var(--accent-color);
    display: block;
}

.hero__description {
    font-size: var(--normal-font-size);
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Improved Stats Section */
.hero__stats {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 0 1rem;
}

.stat-number {
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: var(--font-bold);
    color: var(--accent-color);
    margin-bottom: 0.25rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
    font-size: var(--small-font-size);
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

@media screen and (max-width: 576px) {
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero__buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-down {
    display: none;
}

@media screen and (min-width: 768px) {
    .scroll-down {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xs);
        color: var(--white-color);
        font-size: var(--small-font-size);
        opacity: 0.8;
        transition: var(--transition-normal);
    }
}

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

.about__content {
    max-width: 1000px;
    margin: 0 auto;
}

.about__story h3,
.about__expertise h3 {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about__story p {
    margin-bottom: 1rem;
    color: var(--gray-dark);
    line-height: 1.7;
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media screen and (min-width: 576px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 992px) {
    .expertise-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.expertise-item {
    background: var(--white-color);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition-normal);
}

/* ===== LOCATIONS SECTION - MOBILE OPTIMIZED ===== */
.locations__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media screen and (min-width: 768px) {
    .locations__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.location__card {
    background: var(--white-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-normal);
}

.location__image {
    height: 200px;
    overflow: hidden;
}

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

.location__content {
    padding: 1.5rem;
}

.location__content h3 {
    font-size: var(--h3-font-size);
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.location__content p {
    font-size: var(--small-font-size);
    color: var(--gray-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.location__features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.location__features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: var(--small-font-size);
    color: var(--gray-dark);
}

.location__features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ===== PORTFOLIO SECTION - MOBILE OPTIMIZED ===== */
.portfolio__filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.filter-btn {
    padding: 0.5rem 1rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--gray-color);
    background: var(--gray-light);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media screen and (min-width: 576px) {
    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 992px) {
    .portfolio__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

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

.contact__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media screen and (min-width: 992px) {
    .contact__content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.contact__info {
    display: grid;
    gap: 1.5rem;
}

.contact__card {
    background: var(--white-color);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    text-align: center;
}

/* Enhanced Form for Mobile */
.contact__form-container {
    background: var(--white-color);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-medium);
}

@media screen and (min-width: 768px) {
    .contact__form-container {
        padding: 2.5rem;
    }
}

.form__input {
    width: 100%;
    padding: 1rem;
    font-size: 16px; /* Prevents zoom on iOS */
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    background: var(--white-color);
    transition: var(--transition-normal);
}

/* ===== FOOTER - MOBILE OPTIMIZED ===== */
.footer {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 2rem 0 1.5rem;
}

@media screen and (min-width: 768px) {
    .footer {
        padding: 3rem 0 2rem;
    }
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

@media screen and (min-width: 576px) {
    .footer__content {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
}

@media screen and (min-width: 992px) {
    .footer__content {
        grid-template-columns: 1fr 2fr;
        gap: 3rem;
    }
}

.footer__links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

@media screen and (min-width: 576px) {
    .footer__links {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
}

@media screen and (min-width: 768px) {
    .footer__links {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--small-font-size);
    color: var(--gray-light);
    text-align: center;
}

@media screen and (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

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

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

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

.hidden {
    display: none;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 8px;
    text-decoration: none;
    z-index: var(--z-modal);
}

.skip-link:focus {
    top: 0;
}