/* ================= VARIABLES & RESET ================= */
:root {
    /* Primary Colors */
    --color-primary: #1A3A2E;
    /* Deep Forest Green */
    --color-forest-green: #2D4A3E;
    /* Lighter Forest Green */

    /* Secondary Colors */
    --color-secondary: #F5F1E8;
    /* Cream */

    /* Accent Colors */
    --color-accent: #D4A574;
    /* Gold Accent */

    /* Wood Tones */
    --color-mahogany: #8B4513;
    /* Terracotta Brown */
    --color-warm-brown: #A0522D;
    /* Warm Brown */

    /* Text Colors */
    --color-text: #2C2416;
    /* Dark Brown Text */
    --color-text-light: #6B5D4D;
    /* Light Brown Text */

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

    /* Utilities */
    --radius: 4px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-secondary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

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

.gold {
    color: var(--color-accent);
}

/* ================= COMPONENTS ================= */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-gold {
    background-color: var(--color-accent);
    color: #2C2416;
}

.btn-gold:hover {
    background-color: #B8945F;
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--color-accent);
    /* Gold border */
    color: var(--color-accent);
    /* Gold text */
    background: transparent;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    /* Gold background */
    color: #2C2416;
    /* Dark text */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.35);
}

/* ================= HEADER ================= */
.site-header {
    background-color: var(--color-primary);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 2000;
    /* Increased to stay above sticky filters */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: #F5F1E8;
}

.logo h1 .gold {
    color: var(--color-accent);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    color: rgba(245, 241, 232, 0.8);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-accent);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-extras {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #F5F1E8;
}

/* ================= HERO ================= */
.hero {
    height: 85vh;
    background: url('assets/images/01.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(26, 58, 46, 0.3),
            rgba(26, 58, 46, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #F5F1E8;
}

/* ================= SECTIONS GLOBALS ================= */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.section-title p {
    color: var(--color-text-light);
}

/* ================= COLLECTION GRID ================= */
.cat-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    height: 400px;
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cat-card:hover img {
    transform: scale(1.1);
}

.cat-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(26, 58, 46, 0.9), transparent);
    color: #fff;
}

.cat-info h4 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

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

/* ================= FEATURES ================= */
.bg-dark {
    background-color: var(--color-primary);
    color: #F5F1E8;
}

.feature-box {
    padding: 40px 20px;
}

.gold-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.feature-box h4 {
    color: #F5F1E8;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.feature-box p {
    color: #C4B8A8;
    font-size: 0.95rem;
}

/* ================= PROJECT GRID ================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-item {
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.project-item img,
.project-item .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    position: absolute;
    top: 0;
    left: 0;
}

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

.overlay-text {
    position: absolute;
    inset: 0;
    background: rgba(26, 58, 46, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: #fff;
}

.project-item:hover .overlay-text {
    opacity: 1;
}

.overlay-text h4 {
    color: #fff;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.project-item:hover .overlay-text h4 {
    transform: translateY(0);
}

.small-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #fff;
    padding-bottom: 2px;
}

/* ================= COLLECTIONS PAGE ================= */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid #D4A574;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s;
    color: var(--color-primary);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--color-accent);
    color: #2C2416;
    border-color: var(--color-accent);
}

.project-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s;
}

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

.card-img-container {
    height: 250px;
    position: relative;
    overflow: hidden;
}

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

.card-img-container:hover img {
    transform: scale(1.05);
}

.card-info {
    padding: 20px;
}

.card-info span {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-mahogany);
    font-weight: 600;
}

.card-info h3 {
    font-size: 1.2rem;
    margin-top: 5px;
    color: var(--color-primary);
}

/* ================= DETAILS PAGE ================= */
.project-header {
    margin-bottom: 40px;
}

.project-details-grid {
    display: block;
    margin-bottom: 60px;
}

.detail-sidebar {
    display: none;
}

.detail-sidebar ul li {
    padding: 12px 0;
    border-bottom: 1px solid #E8E4DF;
    font-size: 0.95rem;
}

.detail-sidebar ul li:last-child {
    border: none;
}

/* Section Wrapper for Multi-Section Projects */
.section-wrapper {
    width: 100%;
    margin-bottom: 40px;
    display: block;
    clear: both;
}

.section-wrapper h3 {
    width: 100%;
    display: block;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.gallery-grid {
    column-width: 300px;
    column-gap: 20px;
    width: 100%;
    display: block;
}

.gallery-grid img {
    width: 100%;
    display: block;
    height: auto;
    border-radius: var(--radius);
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    break-inside: avoid;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius);
    background: #f4f4f4;
}

.project-details-grid {
    align-items: flex-start;
}

@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}

/* ================= FOLDER NAVIGATION ================= */
.folder-nav-container {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E8E4DF;
}

.folder-nav-container h4 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #6B5D4D;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.folder-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.folder-nav button {
    background: #fff;
    border: 1px solid #D4A574;
    padding: 15px 25px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: var(--color-text);
}

.folder-nav button i {
    color: var(--color-accent);
}

.folder-nav button:hover,
.folder-nav button.active {
    background: var(--color-accent);
    color: #2C2416;
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

.folder-nav button:hover i,
.folder-nav button.active i {
    color: #2C2416;
}

/* ================= LIGHTBOX ================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 36, 28, 0.98);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-height: 85vh;
    max-width: 90vw;
    object-fit: contain;
    border-radius: 4px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #F5F1E8;
    font-size: 3rem;
    cursor: pointer;
}

/* ================= FOOTER ================= */
footer {
    background-color: var(--color-primary);
    color: #F5F1E8;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(245, 241, 232, 0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    color: #C4B8A8;
}

footer a {
    color: var(--color-accent);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }

    .grid-3,
    .project-grid,
    .project-details-grid {
        grid-template-columns: 1fr;
    }

    .header-flex {
        flex-wrap: wrap;
    }

    .main-nav {
        position: fixed;
        right: -100%;
        top: 70px;
        width: 100%;
        background: var(--color-primary);
        padding: 20px;
        transition: 0.3s;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .hamburger {
        display: block;
    }
}

/* ================= VIDEO CONTAINERS ================= */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #111;
    overflow: hidden;
    border-radius: var(--radius);
}

.video-container iframe {
    position: absolute;
    width: 100%;
    height: 125%;
    top: -12.5%;
    left: 0;
    border: none;
    pointer-events: none;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, #111 20%, rgba(17, 17, 17, 0) 100%);
    z-index: 5;
    pointer-events: none;
}

.video-container::after {
    content: 'YouTube Playback';
    position: absolute;
    top: 10px;
    left: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6rem;
    z-index: 6;
    animation: fadeOutText 3s forwards;
    pointer-events: none;
}

@keyframes fadeOutText {
    0% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.gallery-item.horizontal .video-container {
    aspect-ratio: 16 / 9;
}

.gallery-item.horizontal .video-container iframe {
    height: 100%;
    top: 0;
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= 3D ANIMATIONS ================= */

/* Perspective Container for 3D Effects */
.grid-3,
.project-grid {
    perspective: 1200px;
    perspective-origin: center center;
}

/* 3D Card Base Styles */
.cat-card,
.project-card,
.feature-box,
.project-item {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    backface-visibility: hidden;
}

/* 3D Hover States */
.cat-card:hover,
.project-card:hover,
.feature-box:hover {
    box-shadow:
        0 25px 50px rgba(26, 58, 46, 0.2),
        0 0 0 1px rgba(212, 165, 116, 0.1);
    z-index: 10;
}

/* 3D Entrance Animation */
@keyframes rotateIn3D {
    from {
        opacity: 0;
        transform: perspective(1200px) rotateX(15deg) rotateY(-15deg) translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: perspective(1200px) rotateX(0) rotateY(0) translateY(0) scale(1);
    }
}

/* Apply Entrance Animation */
.animate-up {
    animation: rotateIn3D 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: var(--anim-delay, 0s);
    opacity: 0;
}

.animate-up:nth-child(1) {
    --anim-delay: 0.1s;
}

.animate-up:nth-child(2) {
    --anim-delay: 0.2s;
}

.animate-up:nth-child(3) {
    --anim-delay: 0.3s;
}

.animate-up:nth-child(4) {
    --anim-delay: 0.4s;
}

.animate-up:nth-child(5) {
    --anim-delay: 0.5s;
}

.animate-up:nth-child(6) {
    --anim-delay: 0.6s;
}

/* Explicit Animation Delays for Manual Use */
.delay-1 {
    --anim-delay: 0.2s !important;
}

.delay-2 {
    --anim-delay: 0.4s !important;
}

.delay-3 {
    --anim-delay: 0.6s !important;
}

.delay-4 {
    --anim-delay: 0.8s !important;
}

.delay-5 {
    --anim-delay: 1.0s !important;
}


/* 3D Tilt Active State */
.tilt-3d {
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--rotateX, 0deg)) rotateY(var(--rotateY, 0deg)) translateZ(var(--translateZ, 0px));
}

/* 3D Shine Effect */
.cat-card::before,
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.15) 0%,
            transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
}

.cat-card:hover::before,
.project-card:hover::before {
    opacity: 1;
}

/* Project Item Special 3D */
.project-item {
    perspective: 1000px;
}

.project-item .overlay-text {
    transform: translateZ(50px);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-item:hover .overlay-text {
    transform: translateZ(80px);
}

/* Mobile: Disable 3D for better performance */
@media (max-width: 768px) {

    .cat-card,
    .project-card,
    .feature-box,
    .project-item {
        transform: none !important;
    }

    .cat-card::before,
    .project-card::before {
        display: none;
    }

    @keyframes rotateIn3D {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

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


/* ================= CONTACT PAGE STYLES ================= */

/* Contact Hero */
.contact-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-forest-green) 100%);
    padding: 100px 0 80px;
    /* Added bottom padding */
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
    /* Separation from next section */
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.05;
}

.hero-pattern {
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 165, 116, 0.3) 0%, transparent 50%);
    animation: floatPattern 20s ease-in-out infinite;
}

@keyframes floatPattern {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(2deg);
    }
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-secondary);
    /* Cream text */
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 165, 116, 0.15);
    border: 1px solid var(--color-accent);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--color-accent);
    animation: fadeInDown 0.8s ease;
}

.contact-hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--color-secondary);
    /* Cream */
    animation: fadeInUp 0.8s ease 0.2s both;
}

.contact-hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--color-secondary);
    /* Cream */
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    /* Gold */
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    color: var(--color-secondary);
    /* Cream */
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(245, 241, 232, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    /* Increased gap */
    align-items: flex-start;
}

/* Form Wrapper */
.contact-form-wrapper {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(26, 58, 46, 0.08);
    border: 1px solid rgba(212, 165, 116, 0.2);
    /* Gold tint border */
    margin-bottom: 40px;
    /* Spacing for mobile */
}

.form-header {
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Modern Form Styles */
.modern-form {
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    /* Increased gap */
}

.form-group {
    position: relative;
    margin-bottom: 30px;
    /* Increased margin */
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 18px 15px 18px 45px;
    /* Increased vertical padding slightly */
    border: 1px solid #E8E4DF;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-body);
    background: var(--color-secondary);
    color: var(--color-text);
    transition: all 0.3s ease;
    line-height: 1.2;
    /* Helps vertically center the typed text */
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    /* Gold focus */
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

.form-group label {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--color-text-light);
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 5px;
    line-height: 1;
    height: auto;
    display: block;
    margin: 0;
}

/* Adjust label for cream input bg */
.form-group input:focus+label,
.form-group input.has-value+label,
.form-group textarea:focus+label,
.form-group textarea.has-value+label {
    top: 0;
    left: 40px;
    font-size: 12px;
    color: var(--color-accent);
    transform: translateY(-50%);
    background: #fff;
    /* White background for floating label */
    padding: 0 5px;
}

/* Select Dropdown Label - Dynamic Floating */
.form-group select+label {
    top: 50%;
    left: 45px;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--color-text-light);
    background: transparent;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Float label when focused OR when a value is selected */
.form-group select:focus+label,
.form-group select:valid+label,
.form-group select.has-value+label {
    top: 0;
    left: 40px;
    font-size: 12px;
    color: var(--color-accent);
    background: white;
    /* Matches input focus background */
    transform: translateY(-50%);
    padding: 0 5px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    transition: color 0.3s;
    z-index: 2;
}

textarea+.input-icon {
    top: 20px;
    transform: translateY(0);
}

.form-group input:focus~.input-icon,
.form-group textarea:focus~.input-icon,
.form-group select:focus~.input-icon {
    color: var(--color-accent);
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    transition: width 0.4s ease;
    z-index: 2;
}

.form-group input:focus~.focus-border,
.form-group textarea:focus~.focus-border,
.form-group select:focus~.focus-border {
    width: 100%;
}

.validation-message {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
}

.form-group.valid .validation-message {
    color: #27ae60;
}

.form-group.invalid .validation-message {
    color: #e74c3c;
}

.form-group.invalid input,
.form-group.invalid textarea,
.form-group.invalid select {
    border-color: #e74c3c;
}

.form-group.valid input,
.form-group.valid textarea,
.form-group.valid select {
    border-color: #27ae60;
}

.form-group.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-10px);
    }

    40%,
    80% {
        transform: translateX(10px);
    }
}

.char-count {
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-size: 11px;
    color: var(--color-text-light);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-forest-green) 100%);
    color: var(--color-secondary);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 58, 46, 0.3);
}

.btn-submit .btn-text,
.btn-submit .btn-icon,
.btn-submit .btn-loader,
.btn-submit .btn-success {
    display: inline-block;
    vertical-align: middle;
}

.btn-submit .btn-icon {
    margin-left: 10px;
}

.btn-submit .btn-loader,
.btn-submit .btn-success {
    display: none;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon {
    display: none;
}

.btn-submit.loading .btn-loader {
    display: inline-block;
}

.btn-submit.success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.btn-submit.success .btn-text,
.btn-submit.success .btn-icon,
.btn-submit.success .btn-loader {
    display: none;
}

.btn-submit.success .btn-success {
    display: inline-block;
    font-size: 24px;
}

/* Form Success Message */
.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.visible {
    display: block;
    animation: fadeInUp 0.6s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon i {
    font-size: 40px;
    color: white;
}

.form-success h4 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.form-success p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* Contact Info Wrapper */
.contact-info-wrapper {
    position: sticky;
    top: 100px;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    /* Increased gap */
    margin-bottom: 30px;
    /* Increased gap */
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #E8E4DF;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    box-shadow: 0 8px 25px rgba(26, 58, 46, 0.15);
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-forest-green) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 20px;
    color: var(--color-secondary);
}

.card-icon.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.card-content h4 {
    font-size: 14px;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.card-content p {
    font-size: 12px;
    color: var(--color-text-light);
    margin: 0;
}

.card-link {
    display: block;
    font-size: 13px;
    color: var(--color-accent);
    font-weight: 600;
    margin-top: 5px;
}

.card-link:hover {
    color: var(--color-mahogany);
}

/* Map Container */
.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    /* Increased gap */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #E8E4DF;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 58, 46, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    cursor: pointer;
    transition: opacity 0.3s;
}

.map-pin {
    text-align: center;
    color: white;
}

.map-pin i {
    font-size: 48px;
    color: var(--color-accent);
    margin-bottom: 10px;
    display: block;
    animation: bounce 2s infinite;
}

.map-pin span {
    font-size: 16px;
    font-weight: 600;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Social Links - Hidden for now */
/*
.social-links {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.social-links h4 { font-size: 16px; color: var(--color-primary); margin-bottom: 15px; }
.social-icons { display: flex; justify-content: center; gap: 12px; }
.social-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 18px;
    transition: all 0.3s ease;
}
.social-icon.facebook { background: #1877f2; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon.youtube { background: #ff0000; }
.social-icon.pinterest { background: #e60023; }
.social-icon:hover { transform: translateY(-5px) scale(1.1); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); }
*/

/* Recent Projects Preview */
.recent-projects-preview {
    padding: 80px 0;
    background: var(--color-secondary);
    margin-top: 60px;
    /* Separation */
}

.projects-grid-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.preview-item {
    position: relative;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 58, 46, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-item:hover .preview-overlay {
    opacity: 1;
}

.preview-overlay span {
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.cta-container {
    text-align: center;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float.hidden {
    transform: translateY(100px);
    opacity: 0;
}

.whatsapp-float.pulse {
    animation: pulse 1s ease;
}

.whatsapp-float .tooltip {
    position: absolute;
    right: 70px;
    background: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-wrapper {
        position: static;
        margin-top: 40px;
    }

    .contact-hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .projects-grid-preview {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .contact-hero {
        padding: 60px 0 40px;
        margin-bottom: 40px;
    }

    .contact-hero-content h2 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}




/* ================= COLLECTIONS PAGE STYLES ================= */

/* Collections Hero */
.collections-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-forest-green) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.collections-hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    background-size: 150px;
    animation: floatPattern 30s linear infinite;
}

.collections-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-secondary);
}

.collections-badge {
    display: inline-block;
    background: rgba(212, 165, 116, 0.15);
    border: 1px solid var(--color-accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--color-accent);
}

.collections-hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.collections-hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-secondary);
}

/* Filters Wrapper */
.filters-wrapper {
    background: transparent;
    padding: 25px 0 15px 0;
    margin-bottom: 30px;
}

.filters-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Filter Buttons */
.filter-btn {
    background: transparent;
    border: 1.5px solid var(--color-accent);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--color-accent);
    transition: width 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 100%;
}

.filter-btn:hover,
.filter-btn.active {
    color: #2C2416;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 165, 116, 0.3);
}

/* Collections Grid - Masonry Style */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding-bottom: 60px;
}

/* Project Card - Premium Design */
/* Project Card - No White Background */
.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    /* Removed white block */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(26, 58, 46, 0.25);
}

/* Card Image Container */
.card-img-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* Card Overlay */
.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(26, 58, 46, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover::after {
    opacity: 1;
}

/* Card Info */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px 15px;
    z-index: 2;
    background: linear-gradient(to top, rgba(26, 58, 46, 0.95) 0%, rgba(26, 58, 46, 0.7) 60%, transparent 100%);
    /* Text always visible */
    opacity: 1;
    transform: translateY(0);
}

/* Remove the hidden state on mobile too */
.project-card .card-info {
    opacity: 1;
    transform: translateY(0);
}

.card-info span {
    display: none;
    /* HIDE the small category label to avoid duplication */
}

.card-info h3 {
    font-size: 1.4rem;
    color: var(--color-accent);
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-info h3 a {
    color: var(--color-accent);
}


/* View Icon on Hover */
.project-card::before {
    content: '\f065';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2C2416;
    font-size: 16px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    z-index: 3;
}

.project-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-light);
}

.empty-state i {
    font-size: 50px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h4 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 10px;
}

/* Collections CTA */
.collections-cta {
    background: var(--color-secondary);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid rgba(26, 58, 46, 0.1);
}

.cta-content h3 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.cta-content p {
    color: var(--color-text-light);
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ================= RESPONSIVE - MOBILE FRIENDLY ================= */

@media (max-width: 1024px) {
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .collections-hero-content h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {

    /* Hero Adjustments */
    .collections-hero {
        padding: 100px 0 60px;
    }

    .collections-hero-content h2 {
        font-size: 2.2rem;
    }

    .collections-hero-content p {
        font-size: 1rem;
        padding: 0 20px;
    }

    /* Filters - Scrollable on Mobile */
    .filters-wrapper {
        padding: 15px 0;
        top: 60px;
    }

    .filters-container {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 20px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filters-container::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 8px 20px;
        font-size: 13px;
    }

    /* Grid - Single Column */
    .collections-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px 40px;
    }

    /* Card - Mobile Optimized */
    .card-img-container {
        height: 250px;
    }

    /* Show Info Always on Mobile (No Hover) */
    .project-card::after {
        opacity: 1;
        height: 40%;
    }

    .card-info {
        transform: translateY(0);
        opacity: 1;
        padding: 15px;
    }

    .card-info h3 {
        font-size: 1.1rem;
    }

    /* Hide View Icon on Mobile */
    .project-card::before {
        display: none;
    }

    /* CTA */
    .collections-cta {
        padding: 50px 20px;
    }

    .cta-content h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .collections-hero-content h2 {
        font-size: 1.8rem;
    }

    .card-img-container {
        height: 220px;
    }

    .collections-badge {
        font-size: 10px;
        padding: 5px 12px;
    }
}

/* ================= "LIVE" WEBSITE EFFECTS ================= */

/* 1. Gentle Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(0.5deg);
    }
}

/* Apply Floating to Hero Content */
.hero-content,
.collections-hero-content,
.contact-hero-content {
    /* Sequence: Entrance FIRST, then Float loops */
    animation-name: rotateIn3D, float;
    animation-duration: 0.8s, 6s;
    animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1), ease-in-out;
    animation-fill-mode: forwards, none;
    animation-iteration-count: 1, infinite;
    animation-delay: var(--anim-delay, 0s), calc(var(--anim-delay, 0s) + 0.8s);
}

/* 2. Moving Gradient Background Animation */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Apply Moving Gradient to Collection Hero */
.collections-hero {
    background: linear-gradient(-45deg, #1a3a2e, #2d4a3e, #1a3a2e, #0f241c);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
}

/* Apply Moving Gradient to Contact Hero */
.contact-hero {
    background: linear-gradient(-45deg, #1a3a2e, #2d4a3e, #1a3a2e, #0f241c);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
}

/* Optional: Add subtle float to Section Titles */
.section-title h3 {
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}