* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #3a5f3a;
    --color-secondary: #6b8e6b;
    --color-accent: #8b7355;
    --color-text: #2c2c2c;
    --color-text-light: #5a5a5a;
    --color-bg: #fafafa;
    --color-bg-light: #f5f5f0;
    --color-border: #d4d4c4;
    --color-beige: #e8e6df;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
}

/* Image loading optimization */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

img[loading="eager"] {
    opacity: 1;
}

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

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 5px 0;
}

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    margin-top: 70px;
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 95, 58, 0.75) 0%, rgba(107, 142, 107, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    color: white;
}

.hero-title {
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 25px;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 300;
}

.hero-cta {
    display: inline-block;
    padding: 16px 40px;
    background: white;
    color: var(--color-primary);
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.hero-cta:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Page Hero */
.page-hero {
    margin-top: 70px;
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

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

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

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 95, 58, 0.75) 0%, rgba(107, 142, 107, 0.6) 100%);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 0 20px;
}

.page-hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.page-hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

/* Sections */
section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
}

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

/* Intro Section */
.intro {
    background: var(--color-bg);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Services Preview */
.services-preview {
    background: var(--color-bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-icon {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.service-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.service-description {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    gap: 10px;
    color: var(--color-secondary);
}

/* Portfolio Preview */
.portfolio-preview {
    background: var(--color-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.portfolio-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 20px;
}

.portfolio-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-accent);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.portfolio-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* Testimonials */
.testimonials {
    background: var(--color-bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-size: 16px;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.testimonial-author span {
    font-size: 14px;
    color: var(--color-text-light);
}

/* CTA Section */
.cta {
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.cta-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: white;
    color: var(--color-primary);
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    border: 2px solid white;
}

.cta-button:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* About Page */
.about-intro {
    background: var(--color-bg);
}

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

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

/* Values */
.values {
    background: var(--color-bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.value-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.value-text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Team */
.team {
    background: var(--color-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
}

.team-image {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

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

.team-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--color-primary);
}

.team-role {
    font-size: 15px;
    color: var(--color-text-light);
}

/* Stats */
.stats {
    background: var(--color-primary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* Services Detail */
.services-detail {
    background: var(--color-bg);
}

.service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.service-detail-item:last-child {
    margin-bottom: 0;
}

.service-detail-item.reverse {
    direction: rtl;
}

.service-detail-item.reverse > * {
    direction: ltr;
}

.service-detail-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detail-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-primary);
}

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

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    font-size: 15px;
    color: var(--color-text-light);
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
    line-height: 1.6;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: 700;
}

.link-button {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    border: 2px solid var(--color-primary);
}

.link-button:hover {
    background: transparent;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Process */
.process {
    background: var(--color-bg-light);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.process-step {
    text-align: center;
}

.process-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: var(--color-secondary);
    color: white;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 20px;
}

.process-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.process-text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Portfolio Detail */
.portfolio-detail {
    background: var(--color-bg);
}

.portfolio-item-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 100px;
}

.portfolio-item-detail:last-child {
    margin-bottom: 0;
}

.portfolio-item-detail.reverse {
    direction: rtl;
}

.portfolio-item-detail.reverse > * {
    direction: ltr;
}

.portfolio-detail-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
}

.portfolio-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-detail-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-primary);
}

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

.portfolio-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--color-bg-light);
    border-radius: 8px;
}

.detail-item {
    font-size: 14px;
    color: var(--color-text-light);
}

.detail-item strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.portfolio-detail-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.portfolio-detail-content h3:first-of-type {
    margin-top: 0;
}

.portfolio-detail-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* Contact Section */
.contact-section {
    background: var(--color-bg);
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-wrapper {
    max-width: 600px;
}

.contact-form {
    margin-top: 30px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 15px;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.submit-button {
    width: 100%;
    padding: 14px;
    background: var(--color-secondary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.contact-info-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    margin-top: 30px;
}

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

.info-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.info-item p,
.info-item a {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-light);
}

.info-item a {
    color: var(--color-primary);
}

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

/* Footer */
.footer {
    background: var(--color-primary);
    color: white;
    padding: 60px 20px 30px;
    border-top: 3px solid var(--color-accent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-beige);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 968px) {
    .hero,
    .about-content,
    .service-detail-item,
    .portfolio-item-detail,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .service-detail-item.reverse,
    .portfolio-item-detail.reverse {
        direction: ltr;
    }

    .portfolio-detail-image {
        position: static;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

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

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

@media (max-width: 640px) {
    section {
        padding: 60px 20px;
    }

    .hero {
        padding: 60px 20px;
    }

    .page-hero {
        padding: 80px 20px;
    }

    .portfolio-details {
        grid-template-columns: 1fr;
    }
}

