:root {
    --primary-color: #3C6042;     /* Pine Green */
    --secondary-color: #B95F33;   /* Terracotta Rust */
    --accent-color: #DA9052;      /* Warm Clay */
    --text-color: #2c2c2c;        /* Dark gray */
    --light-color: #F3E6D1;       /* Ivory Beige */
    --white: #ffffff;
    --black: #000000;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif; /* New font family */
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-container > div {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    color: var(--white);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--white);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 2rem;
    background-color: var(--white);
    margin-bottom: 2rem;
    background: var(--light-color);
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-lightbox {
    position: relative;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/9;
}

.video-lightbox:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.video-preview {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.video-preview::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.video-preview::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent var(--primary-color);
    z-index: 2;
    transition: all 0.3s ease;
}

.video-lightbox:hover .video-preview::after {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.video-lightbox:hover .video-preview::before {
    transform: translate(-40%, -50%) scale(1.1);
}

.video-title {
    margin-top: 1.2rem;
    text-align: center;
    padding: 0.5rem 0;
    width: 100%;
}

.video-title h3 {
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin: 0;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.video-title h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.video-lightbox:hover + .video-title h3::after {
    width: 80px;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
    padding: 40px;
    box-sizing: border-box;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    max-height: 90vh;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.close-lightbox:hover {
    color: var(--accent-color);
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    flex-grow: 1;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* Play button overlay for mobile */
.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button-overlay::before {
    content: '';
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary-color);
    font-size: 40px;
    padding-left: 8px; /* Offset the play icon */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    content: '▶';
}

.play-button-overlay:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .lightbox {
        padding: 10px;
    }
    
    .lightbox-content {
        max-height: 60vh;
    }
    
    .play-button-overlay::before {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16/9;
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background: var(--white);
}

.about .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about h2.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 2;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    padding-right: 2rem;
}

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

.about-logo {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    padding: 3rem 2rem 4rem;
    background-color: var(--light-color);
}

.contact h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-button {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.submit-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.contact-item i {
    margin-right: 0.75rem;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.social-link:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    /* General Adjustments */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Hero Video Fix */
    .hero-video-container > div {
        height: 100%;
        width: 177.77vh; /* 16:9 Aspect Ratio */
        min-width: 100%;
        min-height: 100%;
    }
    
    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-link {
        padding: 0.75rem 1.5rem;
        text-align: center;
    }
    
    .nav-toggle {
        display: block;
        cursor: pointer;
        padding: 1rem;
        z-index: 1000;
    }
    
    .nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--text-color);
        margin: 5px 0;
        transition: 0.3s;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* About Section */
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .about-image {
        margin-top: 1rem;
    }
    
    /* Portfolio Section */
    .portfolio-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .video-lightbox {
        margin-bottom: 0;
        max-width: 100%;
    }
    
    /* Contact Section */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    /* Form Elements */
    input[type="text"],
    input[type="email"],
    textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    /* Hide Vimeo play button on mobile */
    iframe[src*="vimeo"] {
        pointer-events: none;
    }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title, .portfolio h2 {
        font-size: 2rem;
    }
    
    .contact h2 {
        font-size: 2rem;
    }
    
    .footer {
        padding: 2rem 1rem 0.5rem;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding: 1rem 0;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeIn 0.6s ease-out forwards;
}
