@charset "UTF-8";

:root {
    --primary: #1A3026;
    --brand-green: #7BB343;
    --brand-grad: linear-gradient(135deg, #7BB343 0%, #5A8D2F 100%);
    --secondary: #708238;
    --accent: #7BB343;
    --warm-beige: #D4C3A1;
    --light: #F9F7F2;
    --dark: #121212;
    --glass: rgba(255, 255, 255, 0.03);
    --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Paper/Linen Texture Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use a high quality natural paper texture (data uri to avoid broken links ideally, but keeping the original url) */
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    /* Behind text, above backgrounds */
}

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

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--light);
    color: var(--primary);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Typography Enhancements */
.brand-text {
    color: var(--brand-green);
    font-weight: 800;
}

.brand-grad-text {
    background: var(--brand-grad);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Nav Styles */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    transition: var(--transition);
    background: transparent;
}

nav.scrolled {
    background: rgba(26, 48, 38, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.8rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(123, 179, 67, 0.3);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover, .nav-links a.active {
    opacity: 1;
    color: var(--brand-green);
}

/* Buttons */
.btn-premium {
    background: var(--brand-grad);
    background-size: 200% auto;
    color: white !important;
    padding: 1.25rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(123, 179, 67, 0.2);
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
}

.btn-premium:hover::after {
    left: 200%;
}

.btn-premium:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(123, 179, 67, 0.3);
}

.btn-outline {
    border: 2px solid var(--accent);
    color: var(--accent) !important;
    padding: 1.15rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    background: transparent;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--accent);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(123, 179, 67, 0.2);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 0 5%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    /* Pan animation done via JS/CSS classes for better performance */
    transform: scale(1.05); /* initial scale */
}

.hero-animate {
    animation: panHero 20s ease-in-out infinite alternate;
}

@keyframes panHero {
    from {
        transform: scale(1.05) translate(0, 0);
    }

    to {
        transform: scale(1.1) translate(-1%, -1%);
    }
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 1s forwards 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    color: var(--warm-beige);
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 1s forwards 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-content .cta-group {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 1s forwards 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Section Spacing & Transitions */
section {
    padding: 7rem 10%;
    position: relative;
}

.bg-soft {
    background-color: #F4F2EE;
}

.section-title {
    margin-bottom: 5rem;
    text-align: center;
}

.section-title h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.text-white {
    color: #ffffff !important;
}

.section-title p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--brand-grad);
    margin: 2rem auto;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Animate divider on scroll */
[data-aos].active .divider {
    width: 120px;
}

/* Cards */
.glass-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 3rem;
    border-radius: 32px;
    transition: var(--transition);
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(26, 48, 38, 0.08);
    border-color: var(--brand-green);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--brand-grad);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 10px 20px rgba(123, 179, 67, 0.2);
    transition: var(--transition);
}

.glass-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Project Cards */
.project-card {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    height: 500px;
    cursor: pointer;
    transition: var(--transition);
    display: block;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 2.5rem;
    background: linear-gradient(transparent, rgba(26, 48, 38, 0.95));
    color: white;
    transition: var(--transition);
}

/* Hover fx for the text link */
.project-card .project-link i {
    transition: transform 0.3s ease;
}
.project-card:hover .project-link i {
    transform: translateX(-5px);
}

.badge {
    background: var(--brand-green);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

/* Mobile Adjustments */
@media (max-width: 968px) {
    section {
        padding: 6rem 8%;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }
}

/* Animations */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-aos="fade-up"].active {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-in"] {
    opacity: 0;
    transition: opacity 1s ease-out;
}

[data-aos="fade-in"].active {
    opacity: 1;
}

 /* Add staggers for children elements if needed using nth-child in specific sections OR JS.
    Here we add delay classes that JS can inject */
.delay-100 { transition-delay: 100ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-400 { transition-delay: 400ms !important; }

/* Custom Forms */
.form-input {
    width: 100%;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    background: #F9F7F2;
    padding: 1rem;
    font-family: 'Cairo', sans-serif;
    color: var(--primary);
    border-radius: 8px 8px 0 0;
    transition: var(--transition);
    outline: none;
}
.form-input:focus {
    border-bottom-color: var(--brand-green);
    background: #fff;
    box-shadow: 0 4px 15px rgba(123, 179, 67, 0.05);
}

/* Parallax Effect Classes */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Utility to ensure text styling matches */
.prose p {
    margin-bottom: 1.5rem;
}

/* Form states */
.form-success {
    display: none;
    background: rgba(123, 179, 67, 0.1);
    border: 1px solid var(--brand-green);
    color: var(--primary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.form-error {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
