/* ========================================
   ROOT VARIABLES & RESET
   ======================================== */

@font-face {
    font-family: 'Available';
    src: url('Available.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Dark Theme Colors */
    --bg-dark: #000000;
    --text-dark: #ffffff;
    --grid-dark: #2e2e2e;
    --accent-dark: #C9A962;
    --accent-hover: #D4B76E;
    
    /* Light Theme Colors */
    --bg-light: #ffffff;
    --text-light: #000000;
    --grid-light: #e6e6e6;
    --accent-light: #C9A962;
    
    /* Fonts */
    --font-primary: 'Available', 'Montserrat', sans-serif;
    --font-secondary: 'Available', 'Playfair Display', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-xxl: 8rem;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    
    /* Z-index layers */
    --z-base: 1;
    --z-content: 2;
    --z-header: 1000;
    --z-overlay: 9998;
    --z-modal: 9999;
    --z-whatsapp: 10000;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition-smooth);
    position: relative;
}

/* Dark Theme (Default) */
body[data-theme="dark"] {
    background: var(--bg-dark);
    color: var(--text-dark);
}

body[data-theme="dark"] .grid-background {
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent calc(20% - 1px),
        var(--grid-dark) calc(20% - 1px),
        var(--grid-dark) 20%
    );
}

/* Light Theme */
body[data-theme="light"] {
    background: var(--bg-light);
    color: var(--text-light);
}

body[data-theme="light"] .grid-background {
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent calc(20% - 1px),
        var(--grid-light) calc(20% - 1px),
        var(--grid-light) 20%
    );
}

body[data-theme="light"] .header {
    border-bottom-color: var(--grid-light);
}

body[data-theme="light"] .off-canvas-menu {
    background: var(--bg-light);
}

body[data-theme="light"] .btn-primary {
    background: var(--accent-light);
    color: var(--bg-light);
}

body[data-theme="light"] .btn-secondary {
    border-color: var(--text-light);
    color: var(--text-light);
}

body[data-theme="light"] .service-card,
body[data-theme="light"] .gallery-item,
body[data-theme="light"] .filter-btn {
    border-color: var(--grid-light);
}

body[data-theme="light"] .whatsapp-float {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: var(--font-primary);
}

select {
    font-family: var(--font-primary);
}

/* ========================================
   ANIMATED GRID BACKGROUND
   ======================================== */

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.page-title {
    font-family: var(--font-secondary);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.7;
}

/* Ghost Text Background */
.ghost-text {
    position: absolute;
    font-size: clamp(8rem, 20vw, 18rem);
    font-weight: 900;
    opacity: 0.03;
    pointer-events: none;
    white-space: nowrap;
    z-index: var(--z-base);
    font-family: var(--font-secondary);
    line-height: 1;
}

.ghost-text[data-text="NOVVUS"],
.ghost-text[data-text="HOME"] {
    top: 20%;
    left: -5%;
}

.ghost-text[data-text="GALLERY"] {
    top: 10%;
    right: -10%;
}

.ghost-text[data-text="PROJECTS"],
.ghost-text[data-text="PORTFOLIO"] {
    top: 15%;
    left: -8%;
}

.ghost-text[data-text="ABOUT"] {
    top: 10%;
    left: 5%;
}

.ghost-text.running {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-dark);
    color: var(--bg-dark);
    border-color: var(--accent-dark);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 169, 98, 0.3);
}

.btn-secondary {
    background: transparent;
    border-color: currentColor;
}

.btn-secondary:hover {
    background: var(--accent-dark);
    color: var(--bg-dark);
    border-color: var(--accent-dark);
}

/* ========================================
   HEADER
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    background: transparent;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

body[data-theme="light"] .header.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem var(--spacing-md);
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    z-index: 10;
    position: relative;
}

.logo a {
    display: block;
}

.logo-image {
    height: 50px;
    width: auto;
    transition: var(--transition-fast);
}

.logo-image:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    cursor: pointer;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    min-width: 200px;
    padding: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
    z-index: 100;
}

body[data-theme="light"] .dropdown-content {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--grid-light);
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.dropdown-content a:hover {
    background: var(--accent-dark);
    color: var(--bg-dark);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10;
    position: relative;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: currentColor;
    transition: var(--transition-smooth);
}

.menu-toggle:hover span {
    background: var(--accent-dark);
}

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

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

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

/* ========================================
   OFF-CANVAS MENU
   ======================================== */

.off-canvas-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: var(--bg-dark);
    z-index: var(--z-overlay);
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.off-canvas-menu.active {
    transform: translateX(0);
}

.off-canvas-content {
    padding: var(--spacing-xl) var(--spacing-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.close-menu:hover {
    color: var(--accent-dark);
    transform: rotate(90deg);
}

.off-canvas-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.off-canvas-link {
    font-size: 2rem;
    font-weight: 600;
    font-family: var(--font-secondary);
    transition: var(--transition-fast);
    display: inline-block;
}

.off-canvas-link.sub-link {
    font-size: 1.5rem;
    padding-left: var(--spacing-md);
    color: var(--accent-dark);
}

.off-canvas-link:hover {
    color: var(--accent-dark);
    transform: translateX(10px);
}

.off-canvas-info {
    margin-top: auto;
    opacity: 0.6;
}

.off-canvas-info p {
    margin-bottom: 0.5rem;
}

/* ========================================
   WHATSAPP INTEGRATION
   ======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: var(--z-whatsapp);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
    }
}

/* WhatsApp Modal */
.whatsapp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: 1rem;
}

.whatsapp-modal.active {
    display: flex;
}

.whatsapp-modal-content {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: var(--spacing-lg);
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: slideUp 0.4s ease;
}

body[data-theme="light"] .whatsapp-modal-content {
    background: var(--bg-light);
    border-color: var(--grid-light);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whatsapp-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: currentColor;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.whatsapp-close:hover {
    color: var(--accent-dark);
}

.whatsapp-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.whatsapp-header svg {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-sm);
}

.whatsapp-header h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: #25D366;
}

.whatsapp-form .form-group {
    margin-bottom: var(--spacing-md);
}

.whatsapp-form input,
.whatsapp-form textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: currentColor;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
    border-radius: 5px;
}

body[data-theme="light"] .whatsapp-form input,
body[data-theme="light"] .whatsapp-form textarea {
    border-color: rgba(0, 0, 0, 0.2);
}

.whatsapp-form input:focus,
.whatsapp-form textarea:focus {
    outline: none;
    border-color: #25D366;
}

.whatsapp-form textarea {
    resize: vertical;
}

.whatsapp-form .btn-primary {
    width: 100%;
    background: #25D366;
    border-color: #25D366;
}

.whatsapp-form .btn-primary:hover {
    background: #20BA5A;
    border-color: #20BA5A;
}

/* ========================================
   THEME TOGGLE
   ======================================== */

.theme-toggle {
    position: fixed;
    right: 2rem;
    bottom: 7rem;
    z-index: 999;
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 50px;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-toggle:hover {
    background: var(--accent-dark);
}

.toggle-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

body[data-theme="dark"] .toggle-icon.sun {
    display: none;
}

body[data-theme="light"] .toggle-icon.moon {
    display: none;
}

/* ========================================
   BACK TO TOP
   ======================================== */

.back-to-top {
    position: fixed;
    right: 2rem;
    bottom: 12rem;
    width: 50px;
    height: 50px;
    background: var(--accent-dark);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 998;
    border-radius: 50%;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(201, 169, 98, 0.3);
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: var(--z-content);
}

.container-fluid {
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: var(--z-content);
}

section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-header.centered {
    text-align: center;
}

.text-center {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-lg);
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: var(--z-content);
    width: 100%;
}

.hero-slider {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

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

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background: var(--accent-dark);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--accent-hover);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.8);
}

body[data-theme="light"] .hero-content {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--grid-light);
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    opacity: 0.8;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    height: 600px;
}

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

.about-image:hover img {
    transform: scale(1.05);
}

.about-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.about-content .btn-secondary {
    margin-top: var(--spacing-md);
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

body[data-theme="light"] .service-card {
    border-color: var(--grid-light);
}

.service-card:hover {
    border-color: var(--accent-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 169, 98, 0.2);
}

.service-icon {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-secondary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-secondary);
}

.service-card p {
    opacity: 0.7;
    line-height: 1.8;
}

/* ========================================
   FEATURED PROJECTS
   ======================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.project-card {
    position: relative;
    overflow: hidden;
    height: 450px;
}

.project-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-overlay h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-overlay span {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    background: rgba(201, 169, 98, 0.05);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-info p {
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.contact-details {
    margin-top: var(--spacing-lg);
}

.contact-item {
    margin-bottom: var(--spacing-md);
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-dark);
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-form-container {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-theme="light"] .contact-form-container {
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--grid-light);
}

.contact-form h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--accent-dark);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: currentColor;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

body[data-theme="light"] .form-group input,
body[data-theme="light"] .form-group textarea,
body[data-theme="light"] .form-group select {
    border-color: rgba(0, 0, 0, 0.2);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-dark);
}

.form-group textarea {
    resize: vertical;
}

.form-group select {
    cursor: pointer;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

body[data-theme="light"] .footer {
    border-top-color: var(--grid-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: var(--spacing-sm);
}

.footer-logo p {
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--accent-dark);
}

.footer-links,
.footer-portfolio {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links h4,
.footer-portfolio h4,
.footer-social h4 {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-dark);
}

.footer-links a,
.footer-portfolio a {
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-portfolio a:hover {
    color: var(--accent-dark);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 0.875rem;
    font-weight: 600;
}

body[data-theme="light"] .social-links a {
    border-color: rgba(0, 0, 0, 0.2);
}

.social-links a:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-size: 0.875rem;
}

body[data-theme="light"] .footer-bottom {
    border-top-color: var(--grid-light);
}

/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    position: relative;
}

/* ========================================
   PORTFOLIO PAGE SPECIFIC
   ======================================== */

.portfolio-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.portfolio-intro p {
    font-size: 1.125rem;
    line-height: 1.8;
    opacity: 0.8;
}

.portfolio-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.category-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

body[data-theme="light"] .category-card {
    border-color: var(--grid-light);
}

.category-card:hover {
    border-color: var(--accent-dark);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(201, 169, 98, 0.3);
}

.category-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

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

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
}

.category-overlay h3 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-dark);
}

.category-overlay p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-sm);
}

.category-count {
    font-size: 0.875rem;
    color: var(--accent-dark);
    letter-spacing: 1px;
}

/* ========================================
   PROJECT GRID (Commercial & Residential)
   ======================================== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.project-item {
    position: relative;
    overflow: hidden;
    height: 450px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

body[data-theme="light"] .project-item {
    border-color: var(--grid-light);
}

.project-item:hover {
    border-color: var(--accent-dark);
    box-shadow: 0 10px 30px rgba(201, 169, 98, 0.2);
}

.project-item-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.project-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

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

.project-item-overlay h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-item-overlay .project-type {
    font-size: 0.875rem;
    color: var(--accent-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-item-overlay .project-location {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ========================================
   GALLERY PAGE
   ======================================== */

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: currentColor;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
}

body[data-theme="light"] .filter-btn {
    border-color: rgba(0, 0, 0, 0.2);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    justify-items: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 400px;
    opacity: 1;
    transform: scale(1);
    transition: var(--transition-smooth);
    margin: 0 auto;
    width: 100%;
}

.gallery-item.hide {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
    height: 820px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.gallery-overlay span {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ========================================
   SINGLE PROJECT PREVIEW CENTER FIX
   (NO DESIGN CHANGES)
   ======================================== */

.gallery-compact {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-thumbnail {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}
/* ========================================
   ABOUT PAGE SPECIFIC
   ======================================== */

.about-story-section {
    padding: var(--spacing-xxl) 0;
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.about-story-content {
    padding: var(--spacing-md);
}

.about-story-content h3 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--accent-dark);
}

.about-story-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.about-story-image {
    position: relative;
    overflow: hidden;
    height: 600px;
}

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

.team-section {
    background: rgba(201, 169, 98, 0.05);
    padding: var(--spacing-xxl) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.team-member {
    text-align: center;
    padding: var(--spacing-md);
}

.team-image {
    position: relative;
    overflow: hidden;
    height: 400px;
    margin-bottom: var(--spacing-md);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

body[data-theme="light"] .team-image {
    border-color: var(--grid-light);
}

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

.team-member:hover .team-image img {
    transform: scale(1.05);
}

.team-member h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-dark);
}

.team-member .role {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.team-member .experience {
    font-size: 0.875rem;
    color: var(--accent-dark);
    letter-spacing: 1px;
}

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

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

.value-card {
    text-align: center;
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

body[data-theme="light"] .value-card {
    border-color: var(--grid-light);
}

.value-card:hover {
    border-color: var(--accent-dark);
    transform: translateY(-5px);
}

.value-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-dark);
    font-family: var(--font-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-secondary);
}

.value-card p {
    opacity: 0.7;
    line-height: 1.8;
}

.cta-section {
    background: rgba(201, 169, 98, 0.05);
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.8;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
        --spacing-xxl: 6rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .hero-slider {
        height: 50vh;
    }
    
    .about-grid,
    .contact-grid,
    .about-story-grid,
    .portfolio-categories {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
        --spacing-xxl: 4rem;
    }
    
    .header-content {
        padding: 1rem var(--spacing-md);
    }
    
    .logo-image {
        height: 40px;
    }
    
    .theme-toggle,
    .back-to-top {
        right: 1rem;
    }
    
    .theme-toggle {
        bottom: 6rem;
    }
    
    .back-to-top {
        bottom: 11rem;
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
        width: 55px;
        height: 55px;
    }
    
    .off-canvas-menu {
        max-width: 100%;
    }
    
    .off-canvas-link {
        font-size: 1.5rem;
    }
    
    .off-canvas-link.sub-link {
        font-size: 1.25rem;
    }
    
    .hero {
        min-height: auto;
        padding-top: 80px;
    }
    
    .hero-content {
        padding: var(--spacing-md);
    }
    
    .services-grid,
    .projects-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .gallery-item.wide,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
        height: 400px;
    }
    
    .team-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .portfolio-categories,
    .category-card {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .ghost-text {
        font-size: 6rem;
    }
    
    .off-canvas-content {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .close-menu {
        font-size: 2rem;
        top: 1rem;
        right: 1rem;
    }
    
    .whatsapp-modal-content {
        padding: var(--spacing-md);
    }
}

/* ========================================
   ANIMATIONS & UTILITIES
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.parallax-image {
    transform: translateY(0);
    transition: transform 0.3s ease-out;
}

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

/* Print Styles */
@media print {
    .header,
    .off-canvas-menu,
    .whatsapp-float,
    .theme-toggle,
    .back-to-top,
    .whatsapp-modal {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ========================================
   PORTFOLIO GALLERY STYLES
   ======================================== */

.project-gallery {
    margin-bottom: var(--spacing-xxl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
}

.project-gallery:last-child {
    border-bottom: none;
}

.project-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.project-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-dark);
}

body[data-theme="light"] .project-title {
    color: var(--accent-light);
}

.project-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
}

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

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.view-icon {
    color: var(--accent-dark);
    font-size: 3rem;
    font-weight: 300;
}

/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
}

.project-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.modal-info {
    text-align: center;
    margin-top: var(--spacing-md);
    color: #ffffff;
}

.modal-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--accent-dark);
}

.modal-counter {
    margin-top: var(--spacing-xs);
    opacity: 0.7;
}

.modal-close,
.modal-prev,
.modal-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: var(--spacing-sm) var(--spacing-md);
    transition: background 0.3s ease;
    z-index: 10;
}

.modal-close:hover,
.modal-prev:hover,
.modal-next:hover {
    background: rgba(201, 169, 98, 0.3);
}

.modal-close {
    top: 20px;
    right: 20px;
}

.modal-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Services Detail Page */
.service-detail {
    margin-bottom: var(--spacing-xxl);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

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

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

.service-number {
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent-dark);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.service-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.service-description p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.service-features {
    list-style: none;
    margin-top: var(--spacing-md);
}

.service-features li {
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.service-features li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-dark);
}

.service-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Process Section */
.process-section {
    padding: var(--spacing-xxl) 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.process-step {
    text-align: center;
    padding: var(--spacing-lg);
}

.process-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-dark);
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

/* Contact Page Styles */
.contact-page-section {
    padding: var(--spacing-xxl) 0;
}

.contact-hours,
.contact-social {
    margin-top: var(--spacing-lg);
}

.contact-hours h3,
.contact-social h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-dark);
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: var(--spacing-sm);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.contact-text {
    flex: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-intro {
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
}

.contact-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

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

.map-container {
    margin-top: var(--spacing-lg);
    border-radius: 8px;
    overflow: hidden;
}

/* About Page Styles */
.story-section,
.focus-section,
.team-section,
.craftsmanship-section {
    padding: var(--spacing-xxl) 0;
}

.story-grid,
.focus-grid,
.craftsmanship-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.focus-grid.reverse {
    direction: rtl;
}

.focus-grid.reverse > * {
    direction: ltr;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.founder-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.founder-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--spacing-md);
}

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

.founder-role {
    color: var(--accent-dark);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.founder-experience {
    opacity: 0.7;
    margin-bottom: var(--spacing-sm);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.value-card {
    padding: var(--spacing-lg);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-dark);
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-dark);
}

.philosophy-statement {
    padding: var(--spacing-xxl) 0;
    background: rgba(201, 169, 98, 0.05);
}

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

.statement-content blockquote {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    line-height: 1.8;
    font-style: italic;
    border-left: 4px solid var(--accent-dark);
    padding-left: var(--spacing-lg);
    margin: 0;
}

/* Portfolio Categories */
.portfolio-categories {
    padding: var(--spacing-xxl) 0;
}

.portfolio-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.1rem;
    line-height: 1.8;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--spacing-lg);
}

.category-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.category-image {
    position: relative;
    aspect-ratio: 4 / 3;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-lg);
    color: #ffffff;
}

.category-overlay h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.category-link {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: var(--accent-dark);
    font-weight: 600;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.highlight-card {
    text-align: center;
}

.highlight-image {
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.highlight-info h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
}

.highlight-location {
    opacity: 0.7;
    margin-bottom: var(--spacing-xs);
}

.highlight-type {
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Stats Section */
.stats-section {
    padding: var(--spacing-xxl) 0;
    background: rgba(201, 169, 98, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

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

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-dark);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Approach Section */
.approach-section {
    padding: var(--spacing-xxl) 0;
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.approach-points {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.approach-point {
    display: flex;
    gap: var(--spacing-md);
}

.point-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-dark);
    flex-shrink: 0;
}

.approach-point h4 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
}

/* Philosophy Section */
.philosophy-section {
    padding: var(--spacing-xxl) 0;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .service-detail-grid,
    .story-grid,
    .focus-grid,
    .craftsmanship-grid,
    .approach-grid,
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service-detail-grid.reverse,
    .focus-grid.reverse {
        direction: ltr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .founders-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .modal-prev,
    .modal-next {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* Fix dropdown glitch */
.nav-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-dark);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 4px;
    padding: var(--spacing-sm) 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body[data-theme="light"] .dropdown-content {
    background: var(--bg-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: inherit;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover,
.dropdown-content a.active {
    background: rgba(201, 169, 98, 0.1);
    color: var(--accent-dark);
}

/* Ensure images load properly */
img {
    display: block;
    max-width: 100%;
    height: auto;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Do NOT hide lazy images */
img[loading="lazy"] {
    opacity: 1;
}

/* Dropdown visibility fix */
.contact-form select { color: #fff !important; background: #111 !important; }
.contact-form select option { color: #000 !important; background: #fff !important; }

body[data-theme="light"] .contact-form select { color: #000 !important; background: #fff !important; }
body[data-theme="light"] .contact-form select option { color: #000 !important; background: #fff !important; }



/* ========================================
   COMPACT GALLERY STYLES
   ======================================== */

.gallery-compact {
    max-width: 600px;
    margin: var(--spacing-md) 0 var(--spacing-lg);
}

.gallery-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    aspect-ratio: 4/3;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-thumbnail:hover img {
    transform: scale(1.05);
}

.gallery-thumbnail .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--spacing-md);
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-thumbnail:hover .gallery-overlay {
    opacity: 1;
}

.gallery-thumbnail .view-text {
    color: var(--accent-dark);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ========================================
   LIGHTBOX MODAL STYLES
   ======================================== */

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: var(--spacing-sm);
    color: var(--accent-dark);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(201, 169, 98, 0.2);
    border: 2px solid var(--accent-dark);
    color: var(--accent-dark);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10001;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-dark);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    line-height: 1;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-thumbnails {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    max-width: 90vw;
    overflow-x: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.lightbox-thumb {
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    flex-shrink: 0;
}

.lightbox-thumb:hover {
    opacity: 0.8;
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: var(--accent-dark);
}

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

/* Responsive adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-content img {
        max-height: 60vh;
    }
    
    .lightbox-thumbnails {
        bottom: 10px;
        max-width: 95vw;
    }
    
    .lightbox-thumb {
        width: 60px;
        height: 45px;
    }
}

/* Hide original gallery grids when using compact view */
.project-gallery .gallery-grid[style*="display:none"],
.project-gallery .gallery-grid[style*="display: none"] {
    display: none !important;
}

.project-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-header {
    text-align: center;
    max-width: 900px;
}

.gallery-compact {
    width: 100%;
    display: flex;
    justify-content: center;
}

.gallery-thumbnail {
    margin-left: auto;
    margin-right: auto;
}
/* ===============================
   GALLERY MODAL (SAFE)
================================ */

.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.gallery-close,
.gallery-prev,
.gallery-next {
    position: absolute;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    user-select: none;
}

.gallery-close {
    top: 20px;
    right: 30px;
}

.gallery-prev {
    left: 30px;
}

.gallery-next {
    right: 30px;
}

@media (max-width: 768px) {
    .gallery-prev,
    .gallery-next {
        font-size: 2rem;
    }
}
/* ---------- Thumbnail strip BELOW the main image (manual horizontal slider) ---------- */

/* Ensure modal content stacks image above thumbnails */
.lightbox-content,
.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

/* Main modal images: leave room for thumbnails and not take full viewport */
#lightboxImage,
#galleryModalImg {
  max-width: 90vw;
  width: auto;
  max-height: calc(80vh - 100px); /* reserve space for thumbnails & controls */
  object-fit: contain;
  display: block;
}

/* Thumbnail container: single-row horizontal slider below the image */
#lightboxThumbnails,
#modalThumbnails {
  display: block;
  width: 90vw;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 6px;
  box-sizing: border-box;

  white-space: nowrap;         /* keep thumbs on one line */
  overflow-x: auto;           /* manual horizontal scroll */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling (thin, unobtrusive) */
#lightboxThumbnails::-webkit-scrollbar,
#modalThumbnails::-webkit-scrollbar {
  height: 8px;
}
#lightboxThumbnails::-webkit-scrollbar-thumb,
#modalThumbnails::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
}
#lightboxThumbnails::-webkit-scrollbar-track,
#modalThumbnails::-webkit-scrollbar-track {
  background: transparent;
}

/* Thumbnail images: fixed small size, inline, don't grow */
#lightboxThumbnails img,
#modalThumbnails img,
.lightbox-thumb img,
.modal-thumb {
  display: inline-block;
  width: 88px;               /* small fixed width — adjust if you want bigger/smaller */
  height: 64px;              /* fixed height */
  object-fit: cover;
  margin-right: 8px;
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.65;
  border: 2px solid transparent;
  transition: transform .12s ease, opacity .12s ease, border-color .12s ease;
}

/* Active thumbnail highlight */
#lightboxThumbnails img.active,
#modalThumbnails img.active,
.lightbox-thumb.active img,
.modal-thumb.active {
  opacity: 1;
  border-color: #caa24d;     /* gold accent */
  transform: translateY(-3px);
}

/* Ensure thumbnails don't overlap the big image on small screens */
@media (max-width: 720px) {
  #lightboxImage,
  #galleryModalImg {
    max-height: calc(70vh - 90px);
  }
  #lightboxThumbnails img,
  #modalThumbnails img {
    width: 68px;
    height: 52px;
  }
}
/* ---------- Image Counter (1 / 13) FIX ---------- */

#imageCounter {
  display: block;
  position: relative;
  margin-top: 6px;
  margin-bottom: 6px;
  text-align: center;

  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;

  opacity: 0.85;
  z-index: 10;
}

/* Ensure it sits between image and thumbnails */
.lightbox-content,
.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Prevent thumbnails from covering the counter */
#lightboxThumbnails,
#modalThumbnails {
  margin-top: 6px;
}
/* ---------- IMAGE COUNTER FIX (visible, centered, above thumbnails) ---------- */

/* Ensure modal content is a stacking container */
.lightbox-content,
.modal-content {
  position: relative;      /* allows counter to be placed reliably */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Counter styling */
#imageCounter {
  display: block !important;
  position: relative;      /* stays between image and thumbnails in source order */
  z-index: 9999;           /* above thumbnails */
  margin: 8px 0 6px;
  padding: 0;
  text-align: center;

  color: #caa24d !important;         /* gold color to match theme */
  font-size: 15px !important;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6); /* makes it readable on dark bg */
  opacity: 0.95;
  pointer-events: none;    /* avoid interfering with thumbnail clicks */
}

/* Defensive overrides in case older styles hide it */
#imageCounter[style] { position: relative !important; } /* prevents inline absolute hiding */
#imageCounter.hidden, #imageCounter[aria-hidden="true"] { display:block !important; opacity:0.95 !important; }

/* If a theme rule absolutely positioned the counter off-screen, re-center it */
@media (min-width: 480px) {
  #imageCounter {
    margin-top: 10px;
  }
}

/* Mobile tweak */
@media (max-width: 480px) {
  #imageCounter {
    font-size: 13px !important;
    margin-top: 6px;
    margin-bottom: 6px;
  }
}
#imageCounter {
    position: absolute;
    bottom: 90px;           /* above thumbnails */
    left: 50%;
    transform: translateX(-50%);
    color: #d4af37;         /* gold like commercial */
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    pointer-events: none;
    background: rgba(0,0,0,0.4);
    padding: 4px 10px;
    border-radius: 12px;
}
/* ===============================
   FIX: Make hamburger visible on mobile
   (Add this at the end of styles.css)
   =============================== */

@media (max-width: 1024px) {
  /* Ensure the toggle is shown on mobile/tablet */
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
    z-index: 1100;            /* above header content */
    color: #fff !important;   /* icon color (bars inherit currentColor) */
    position: relative;
  }

  /* the three bars */
  .menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: #fff !important;               /* visible on dark header */
    transition: transform 0.28s ease, opacity 0.2s ease;
    transform-origin: center;
  }

  /* small spacing so bars don't crowd */
  .menu-toggle span + span {
    margin-top: 5px;
  }

  /* active (X) animation - keep same transforms but slightly adjusted */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  /* Make sure header-actions area keeps the toggle on the right */
  .header .header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* If header becomes dark on scroll, keep bars visible */
  .header.scrolled .menu-toggle { color: #fff; }
  body[data-theme="light"] .menu-toggle { color: #111; }
  body[data-theme="light"] .menu-toggle span { background: #111 !important; }
}
/* ===============================
   FIX: Image Counter (Residential)
   =============================== */

#imageCounter {
  position: absolute;
  bottom: 90px;               /* above thumbnails */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1005;

  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;

  color: #d4af37;             /* gold like commercial */
  font-size: 14px;
  font-weight: 500;

  padding: 6px 14px;
  border-radius: 20px;

  background: rgba(0, 0, 0, 0.65);
  border: 1px solid #d4af37;

  pointer-events: none;       /* so it doesn't block clicks */
}

/* Make sure modal container is relative */
#galleryModal {
  position: fixed;
}

/* Prevent thumbnails from pushing it away */
#modalThumbnails {
  margin-top: 20px;
}
/* FORCE image counter to be visible */
.modal-counter,
#imageCounter {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    color: #C9A962;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 10002;
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 6px;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

