:root {
    /* Color Palette - Bright and Clean */
    --color-bg: #ffffff;
    --color-surface: #f7f7f9;
    --color-text: #1a1a1a;
    --color-text-muted: #6b6b6b;
    --color-accent: #000000;
    --color-border: #eaeaea;
    --color-white: #ffffff;
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Layout & Spacing */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.bg-surface {
    background-color: var(--color-surface);
}

/* Typography Classes */
.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: 1px solid var(--color-accent);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-accent);
}

.btn-text {
    background-color: transparent;
    color: var(--color-text);
    padding: 1rem 0;
    font-weight: 500;
}

.btn-text:hover {
    color: var(--color-text-muted);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition-slow);
    background: transparent;
    color: white;
}

.navbar .logo img {
    filter: invert(1) brightness(100);
    transition: var(--transition-slow);
}

.navbar:not(.scrolled) .btn-outline {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar:not(.scrolled) .btn-outline:hover {
    background-color: white;
    color: var(--color-accent);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    color: var(--color-text);
}

.navbar.scrolled .logo img {
    filter: none;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover {
    color: var(--color-text-muted);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--color-bg);
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    z-index: 1000;
    border-radius: 6px;
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
    border: 1px solid var(--color-border);
}

.dropdown-content a {
    color: var(--color-text);
    padding: 0.75rem 1.5rem;
    display: block;
    text-transform: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0;
}

.dropdown-content a:hover {
    background-color: var(--color-surface);
    color: var(--color-text);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

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

/* Nested Dropdown Menu */
.nested-dropdown {
    position: relative;
    display: block;
}

.nested-dropdown-content {
    display: none;
    position: absolute;
    left: 100%;
    top: -0.5rem;
    background-color: var(--color-bg);
    min-width: 240px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    z-index: 1001;
    border-radius: 6px;
    padding: 0.5rem 0;
    border: 1px solid var(--color-border);
}

.nested-dropdown-content a {
    color: var(--color-text);
    padding: 0.75rem 1.5rem;
    display: block;
    text-transform: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0;
}

.nested-dropdown:hover .nested-dropdown-content,
.nested-dropdown-content:hover {
    display: block;
    animation: fadeIn 0.2s ease;
}

.nested-dropbtn {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.nested-dropbtn .arrow {
    font-size: 0.8em;
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
}

.nested-dropdown:hover .nested-dropbtn .arrow {
    transform: translateX(3px);
    color: var(--color-text);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    min-height: 700px;
    width: 100%;
}

.hero-content {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    z-index: 2;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: white;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.hero-actions .btn-primary {
    background-color: white;
    color: var(--color-text);
    border-color: white;
}

.hero-actions .btn-primary:hover {
    background-color: transparent;
    color: white;
}

.hero-actions .btn-text {
    color: white;
}

.hero-actions .btn-text:hover {
    color: rgba(255,255,255,0.7);
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 80%);
    pointer-events: none;
    z-index: 2;
}

.hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.hero-image img.carousel-slide {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-image img.carousel-slide.active {
    opacity: 1;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--color-bg);
    padding: 3rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: transform var(--transition-slow);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.service-icon {
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-muted);
}

/* Portfolio Masonry */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.masonry-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.masonry-item:nth-child(3n-1) {
    margin-top: 4rem; /* simple masonry stagger effect for middle column */
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.masonry-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

.masonry-item .overlay span {
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.portfolio-footer {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

/* Footer */
.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: 6rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h2 {
    font-size: 2rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1.5s ease;
}

.reveal-up.active,
.reveal-fade.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--color-surface);
    color: var(--color-text);
}

.masonry-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.masonry-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--color-text-muted);
    transform: rotate(90deg);
}

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

/* Service Pages - Luxury Layout Components */
.hero-anchor-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
    max-height: 70vh;
    object-fit: cover;
    display: block;
    transform: translateY(-2rem);
}

.credential-banner {
    background-color: var(--color-text);
    color: var(--color-bg);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 4rem;
}

.credential-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.credential-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    text-align: center;
}

.feature-card {
    padding: 2.5rem 2rem;
    background: var(--color-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.aerial-gallery-section {
    padding-bottom: 6rem;
}

.aerial-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 350px;
    gap: 24px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.gallery-wrapper.tall {
    grid-row: span 2;
}

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

.cta-section {
    padding: 8rem 0;
    background: linear-gradient(to bottom, transparent, var(--color-surface));
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.testimonial-quote {
    font-size: 2.25rem;
    font-weight: 300;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-size: 1rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Expandable Album Grid */
.portfolio-albums {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    align-items: start;
    margin-bottom: 4rem;
}

.album-details {
    background: var(--color-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

/* When the album expands, it spans all columns */
.album-details[open] {
    grid-column: 1 / -1;
    cursor: default;
    background: transparent;
    box-shadow: none;
}

.album-summary {
    position: relative;
    list-style: none; /* remove default arrow */
    cursor: pointer;
    overflow: hidden;
    height: 350px;
}

.album-summary::-webkit-details-marker {
    display: none;
}

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-details:hover:not([open]) .album-cover {
    transform: scale(1.05);
}

.album-details[open] .album-summary {
    display: none; /* Hide the cover card when expanded */
}

.album-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    z-index: 2;
}

.album-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.album-info span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.8);
}

/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    font-size: 1rem;
    font-family: var(--font-main);
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    transition: var(--transition-fast);
}

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

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        min-height: auto;
        padding-top: 2rem;
    }
    
    .hero-content {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .hero-image {
        position: relative;
        width: 100vw;
        left: calc(-1 * (100vw - 100%) / 2);
        top: auto;
        bottom: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hero-image img {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .masonry-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonial-quote {
        font-size: 1.5rem;
    }
    
    .masonry-item:nth-child(even) {
        margin-top: 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav-links {
        display: none; /* Hide on mobile for simplicity in this version */
    }
}

/* Collapsible Portfolios */
.portfolio-details {
    width: 100%;
}

.portfolio-summary {
    cursor: pointer;
    list-style: none; /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 2px solid var(--color-border);
    transition: color var(--transition-fast);
}

.portfolio-summary::-webkit-details-marker {
    display: none; /* Safari/Chrome */
}

.portfolio-summary:hover {
    color: var(--color-text-muted);
}

/* Animated Toggle Icon */
.toggle-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    position: relative;
    color: var(--color-accent);
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Horizontal line */
.toggle-icon::before {
    width: 20px;
    height: 2px;
}

/* Vertical line */
.toggle-icon::after {
    width: 2px;
    height: 20px;
}

details[open] .toggle-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

details[open] .toggle-icon::before {
    transform: rotate(180deg);
}

.portfolio-category-content {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Nested Project Accordions */
.project-details {
    margin-bottom: 1rem;
    width: 100%;
}

.project-summary {
    cursor: pointer;
    list-style: none; /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 500;
    font-size: 1.25rem;
    transition: color var(--transition-fast);
}

.project-summary::-webkit-details-marker {
    display: none; /* Safari/Chrome */
}

.project-summary:hover {
    color: var(--color-text-muted);
}

.toggle-icon-small {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    position: relative;
    color: var(--color-text-muted);
}

.toggle-icon-small::before,
.toggle-icon-small::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toggle-icon-small::before {
    width: 12px;
    height: 2px;
}

.toggle-icon-small::after {
    width: 2px;
    height: 12px;
}

details[open] > .project-summary .toggle-icon-small::after {
    transform: rotate(90deg);
    opacity: 0;
}

details[open] > .project-summary .toggle-icon-small::before {
    transform: rotate(180deg);
}

/* Lightbox Navigation */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    padding: 2rem;
    background: transparent;
    border: none;
    outline: none;
    transition: color var(--transition-fast);
    user-select: none;
    z-index: 1001;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--color-text-muted);
}

