:root {
    --blue: #29abe2;
    --blue-dark: #1a7ab0;
    --blue-light: #e8f6fd;
    --white: #fff;
    --dark: #0d1b2a;
    --gray: #f5f8fb;
    --text: #2c3e50;
    --text-light: #7a8c9e;
    --transition: all 0.4s cubic-bezier(.25, .8, .25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

/* === NAVIGATION — transparent with blur at top, white on scroll (exactly like portfolio) === */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    .logo-light {
        display: block;
    }

    .logo-dark {
        display: none;
    }
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(41, 171, 226, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);

    .logo-light {
        display: none;
    }

    .logo-dark {
        display: block;
    }
}

/* Logo text — white on transparent, dark when scrolled */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-mark {
    width: 42px;
    height: 42px;
    background: var(--blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(41, 171, 226, 0.4);
}

.nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    line-height: 1.2;
}

.nav-logo-text span {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.75;
}

nav.scrolled .nav-logo-text {
    color: var(--dark);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    position: relative;
}

nav.scrolled .nav-links a {
    color: var(--text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue);
}

nav.scrolled .nav-links a:hover {
    color: var(--blue);
}

.nav-cta {
    background: var(--blue);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(41, 171, 226, 0.35);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(41, 171, 226, 0.45);
    background: var(--blue-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 38px;
    height: 38px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(.25, .8, .25, 1);
}

nav.scrolled .hamburger span {
    background: var(--dark);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* HERO */
.page-hero {
    padding-top: 80px;
    min-height: 52vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--dark);
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1565043589221-1a6fd9ae45c7?w=1920&q=80') center/cover;
    opacity: 0.22;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.85) 0%, rgba(13, 27, 42, 0.5) 60%, rgba(41, 171, 226, 0.15) 100%);
}

.page-hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(41, 171, 226, 0.04) 60px, rgba(41, 171, 226, 0.04) 61px), repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(41, 171, 226, 0.04) 60px, rgba(41, 171, 226, 0.04) 61px);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    padding: 60px 5%;
    max-width: 700px;
    margin-left: 5%;
}

.breadcrumb {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.breadcrumb a {
    color: var(--blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(41, 171, 226, 0.2);
    border: 1px solid rgba(41, 171, 226, 0.4);
    color: var(--blue);
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    color: white;
    line-height: 1.12;
    margin-bottom: 18px;
}

.page-hero h1 em {
    font-style: italic;
    color: var(--blue);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 520px;
}

/* GALLERY */
.gallery-section {
    padding: 70px 5% 80px;
    background: var(--gray);
}

.gallery-inner {
    max-width: 1400px;
    margin: 0 auto;
}

/* Masonry grid */
.masonry {
    columns: 4;
    column-gap: 18px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 18px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--dark);
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.55s cubic-bezier(.25, .8, .25, 1), filter 0.4s ease;
    filter: brightness(0.92);
}

.masonry-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.7);
}

.masonry-item .hover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.masonry-item:hover .hover-overlay {
    opacity: 1;
}

.zoom-icon {
    width: 52px;
    height: 52px;
    background: rgba(41, 171, 226, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.35s cubic-bezier(.25, .8, .25, 1);
}

.masonry-item:hover .zoom-icon {
    transform: scale(1);
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(13, 27, 42, 0.96);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 1100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-height: 85vh;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

.lb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.lb-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
}

.lb-prev {
    left: -70px;
}

.lb-next {
    right: -70px;
}

.lb-close {
    position: fixed;
    top: 24px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    z-index: 9001;
}

.lb-close:hover {
    background: rgba(220, 60, 60, 0.7);
    border-color: transparent;
}

.lb-counter {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    letter-spacing: 2px;
    background: rgba(13, 27, 42, 0.7);
    padding: 8px 20px;
    border-radius: 50px;
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* cta like home banner */
.cta-banner {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    padding: 80px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80') center/cover;
    opacity: 0.1;
}

.cta-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 16px;
    position: relative;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 36px;
    position: relative;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    background: white;
    color: var(--blue);
    padding: 15px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* FOOTER */
footer {
    background: var(--dark);
    padding: 60px 5% 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    line-height: 1.8;
    margin-top: 16px;
}

.footer-col h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: var(--blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 5%;
    display: flex;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.footer-contact a {
    color: var(--blue);
    text-decoration: none;
}

.footer-contact i {
    color: var(--blue);
    width: 14px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* MOBILE NAV — improved hover/active */
@media(max-width:1100px) {
    .masonry {
        columns: 3;
    }

    .lb-prev {
        left: -20px;
    }

    .lb-next {
        right: -20px;
    }
}

@media(max-width:900px) {
    .masonry {
        columns: 2;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hamburger {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 8px 0;
        gap: 0;
        border-bottom: 2px solid rgba(41, 171, 226, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        padding: 16px 6%;
        display: block;
        color: var(--text) !important;
        font-size: 1rem;
        font-weight: 500;
        transition: all 0.2s ease;
        background: transparent;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--blue) !important;
        background: var(--blue-light);
        border-left: 4px solid var(--blue);
        padding-left: calc(6% - 4px);
    }

    .nav-links a::after {
        display: none;
    }
}

@media(max-width:480px) {
    .masonry {
        columns: 1;
    }
}