@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

body.home-page {
    background-color: #0c2b40;
}

/* Header */
header {
    background-color: #eaebeb;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    will-change: transform;
}

body.home-page header {
    background-color: transparent;
    box-shadow: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.logo-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.35rem;
    color: #2c3e50;
}

body.home-page .logo-mark {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 769px) {
    nav ul {
        margin-left: auto;
    }
}

nav ul li {
    margin-left: 2rem;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    display: block;
}

nav ul li a:hover {
    color: #3498db;
}

body.home-page nav ul li a {
    color: #f5f7fa;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

body.home-page nav ul li a:hover {
    color: #ffffff;
}

body.about-page,
body.contact-page,
body.images-page {
    background-color: #0c2b40;
    color: #e8edf2;
}

body.about-page header,
body.contact-page header,
body.images-page header {
    background-color: transparent;
    box-shadow: none;
}

body.about-page nav ul li a,
body.contact-page nav ul li a,
body.images-page nav ul li a {
    color: #dfe7ee;
}

body.about-page nav ul li a:hover,
body.contact-page nav ul li a:hover,
body.images-page nav ul li a:hover {
    color: #ffffff;
}

body.about-page .logo-mark,
body.contact-page .logo-mark,
body.images-page .logo-mark {
    color: #f7f7f7;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

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

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
    border: 1px solid #e0e0e0;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li a {
    padding: 0.75rem 1.5rem;
    color: #333;
    font-weight: 400;
    white-space: nowrap;
    transition: all 0.3s;
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
}

.dropdown-menu li:last-child a {
    border-bottom: 1px solid #e0e0e0;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa6e;
    color: #3498db;
    text-decoration: underline;
}

/* Main content */
main {
    margin-top: 110px;
}

body.home-page main {
    margin-top: 0;
}

/* Hero section */
.hero {
    position: relative;
    min-height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://res.cloudinary.com/daxlmsrkq/image/upload/photos/migrated-84-306829876');
    background-size: 150%;
    background-position: 44% center;
    background-repeat: no-repeat;
    filter: blur(3px);
    z-index: -1;
}

.home-hero {
    min-height: 100vh;
    height: 100vh;
    padding: 0;
    position: relative;
    width: 100vw;
}

body.home-page .hero::before {
    background-size: 120%;
    background-position: 50% 70%;
    background-repeat: no-repeat;
    filter: none;
}

.home-title {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    color: #f7f7f7;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    letter-spacing: 0.3rem;
    text-align: left;
    text-shadow: 0 10px 30px rgba(0,0,0,0.4);
    animation: slide-right 1s ease-out both;
    z-index: 1100;
}

.home-links {
    position: absolute;
    left: 8%;
    top: calc(50% + 64px);
    transform: translateY(-50%);
    display: flex;
    gap: 1.5rem;
    animation: slide-up 1.2s ease-out both;
    animation-delay: 0.7s;
    z-index: 1100;
}

.home-links a {
    color: #f7f7f7;
    text-decoration: none;
    border-bottom: 1px solid rgba(231, 236, 241, 0.2);
    padding: 0.35rem 0;
    font-size: 0.95rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    background: transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.home-links a:hover {
    color: #ffffff;
    border-color: rgba(231, 236, 241, 0.85);
}

@keyframes slide-right {
    0% {
        opacity: 0;
        transform: translate(-24px, -50%);
    }
    100% {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

.hero-content {
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: white;
}

.cta-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* Services section */
.services {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.about-contact-container {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.about-box, .contact-box {
    flex: 1;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about-box h2, .contact-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.about-me {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-me-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-image: url('../images/about_me.JPEG');
    background-size: 350%;
    background-position: 70% 30%;
    background-repeat: no-repeat;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.about-me p {
    max-width: 400px;
    line-height: 1.6;
    color: #555;
}

/* Contact Form Styles */
.contact-box form {
    display: flex;
    flex-direction: column;
}

.contact-box label {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.contact-box input, .contact-box textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-box textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-box button {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-box button:hover {
    background-color: #2980b9;
}

.contact-status {
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.contact-status.success {
    color: #2e7d32;
}

.contact-status.error {
    color: #c62828;
}

.contact-status.loading {
    color: #1565c0;
}

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

.service-item {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-item p {
    color: #7f8c8d;
}

/* Footer */
footer {
    background-color: #0c2b40;
    color: white;
    text-align: center;
    padding: 2rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #3498db;
}

.instagram-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    header {
        position: fixed;
    }

    main {
        margin-top: 90px;
    }

    body.home-page main {
        margin-top: 0;
    }

    body.home-page header {
        display: none;
    }

    .logo img {
        height: 40px;
    }

    .logo-mark {
        font-size: 1.6rem;
        letter-spacing: 0.25rem;
    }

    .hero {
        padding: 1rem;
        min-height: 60vh;
    }

    .hero::before {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .home-hero {
        min-height: 100vh;
        height: 100vh;
        padding: 0;
    }

    body.home-page .hero::before {
        background-size: cover;
        background-position: 48% center;
        background-repeat: no-repeat;
    }

    .hero-content {
        padding: 1rem;
    }

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

    nav {
        flex-direction: column;
        padding: 0.5rem 1rem;
    }

    nav ul {
        margin-top: 0.5rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 0.75rem;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 0;
    }

    nav ul li a {
        padding: 0.25rem 0.5rem;
        font-size: 0.95rem;
    }

    /* Mobile dropdown styles */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: #f8f9fa;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-top: 0.5rem;
        border-radius: 0;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        border-bottom: 1px solid #e0e0e0;
    }

    .dropdown-menu li a {
        padding: 1rem;
        font-size: 1rem;
        border-bottom: 1px solid #e0e0e0;
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    .about-contact-container {
        flex-direction: column;
    }

    .about-box, .contact-box {
        margin-bottom: 2rem;
    }

    .about-me {
        flex-direction: column;
        text-align: center;
    }

    .about-me-photo {
        width: 180px;
        height: 180px;
        background-size: cover;
        background-position: center;
    }

    .logo img {
        height: 50px;
    }

    .about-hero {
        flex-direction: column;
        text-align: center;
        padding: 3.5rem 1.5rem;
    }

    .about-hero .hero-image img {
        width: 280px;
        height: 360px;
    }

    .contact-hero {
        text-align: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .home-title {
        font-size: 2rem;
        letter-spacing: 0.2rem;
        padding: 0 1rem;
        left: 50% !important;
        right: auto;
        transform: translate(-50%, -50%) !important;
        text-align: center;
        top: 42%;
        max-width: 90%;
        width: fit-content;
        margin: 0;
    }

    .home-links {
        flex-direction: column;
        gap: 0.75rem;
        left: 50% !important;
        right: auto;
        top: calc(42% + 90px);
        transform: translate(-50%, 0) !important;
        align-items: center;
        max-width: 90%;
        width: fit-content;
        margin: 0;
    }

    .home-links a {
        font-size: 0.85rem;
        letter-spacing: 0.15rem;
    }
}

/* Contact Page Styles */
.contact-content {
    padding: 6rem 2rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-info {
    animation: slide-down 0.8s ease-out both;
}

.contact-form {
    animation: slide-up 0.8s ease-out both;
}

.contact-info h2,
.contact-form h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #f7f7f7;
}

.contact-info h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #f7f7f7;
    animation: slide-down 0.8s ease-out both;
}

.contact-intro {
    margin-bottom: 2.5rem;
    color: rgba(231, 236, 241, 0.85);
    max-width: 320px;
    animation: slide-down 0.9s ease-out both;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    font-size: 1rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: rgba(231, 236, 241, 0.7);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #f0f4f8;
    font-size: 1.05rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(231, 236, 241, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    font-size: 0.75rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-bottom: 1px solid rgba(231, 236, 241, 0.4);
    border-radius: 0;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: transparent;
    color: #f5f7fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f7f7f7;
}

.cta-button {
    background-color: transparent;
    color: #f7f7f7;
    border: 1px solid rgba(231, 236, 241, 0.6);
    padding: 1rem 2rem;
    border-radius: 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* About Page Styles */
.about-hero {
    display: flex;
    align-items: center;
    min-height: 60vh;
    background-color: transparent;
    padding: 6rem 2rem 5rem;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-hero .hero-content {
    flex: 1;
    padding-right: 0;
    animation: slide-down 0.8s ease-out both;
    max-width: 500px;
}

.about-hero .hero-image {
    flex: 1;
    text-align: center;
    animation: slide-up 0.8s ease-out both;
}

.about-hero .hero-image img {
    width: 360px;
    height: 480px;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

body.about-page .hero-content h2,
body.about-page .hero-content p {
    color: #f7f7f7;
}

@keyframes slide-down {
    0% {
        opacity: 0;
        transform: translateY(-24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-content {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.about-text h2 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.about-text h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    color: #2c3e50;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.about-text ul {
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    color: #555;
}

.about-details h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.skill-item {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.skill-item h4 {
    font-size: 1.2rem;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.skill-item p {
    color: #7f8c8d;
    margin: 0;
}

.testimonials {
    text-align: center;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.testimonial {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
}

.testimonial cite {
    font-weight: bold;
    color: #3498db;
}

/* Mobile responsiveness for new pages */
@media (max-width: 768px) {
    .contact-container,
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-hero {
        flex-direction: column;
        text-align: center;
    }

    .about-hero .hero-content {
        padding-right: 0;
        padding-bottom: 2rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery Styles */
.gallery-hero {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
    text-align: center;
}

.gallery-hero .hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.gallery-hero .hero-content p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-content {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.search-container {
    display: flex;
    gap: 1rem;
}

.search-input {
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    width: 300px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
}

.search-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #2980b9;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #3498db;
    color: white;
}

.gallery-title-section {
    text-align: center;
    padding: 30px 20px 10px;
    font-family: 'Cormorant Garamond', serif;
}

.gallery-title-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #f7f7f7;
    letter-spacing: 0.15em;
    margin: 0;
}

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

.gallery-page.album-view {
    max-width: 100%;
    padding: 0;
    margin: 0;
    height: 100%;
}

.tag-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 30px;
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 14px 16px;
}

.tag-filter-title {
    font-weight: 600;
    color: #f7f7f7;
    margin-right: 4px;
}

.tag-filter-select {
    background: transparent;
    color: #f7f7f7;
    border: 1px solid rgba(231, 236, 241, 0.5);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    min-width: 180px;
    appearance: none;
}

.tag-filter-select option {
    color: #0c2b40;
}

.tag-filter-clear {
    margin-left: 0;
    border: none;
    background: none;
    color: #f7f7f7;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.7;
    padding: 0 4px;
    transition: all 0.3s;
}

.tag-filter-clear:hover {
    opacity: 1;
    transform: scale(1.2);
}

.album-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.album-tag {
    background: rgba(231, 236, 241, 0.12);
    color: #e7edf3;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.album-view-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(12, 43, 64, 0.75);
    border: 1px solid rgba(231, 236, 241, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.album-view-title {
    font-weight: 600;
    color: #f7f7f7;
}

.album-view-clear {
    color: #f7f7f7;
    text-decoration: none;
    font-weight: 500;
}

.album-view-clear:hover {
    text-decoration: underline;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1rem 0 2rem;
}

.album-card {
    position: relative;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #e6e6e6;
    height: 400px;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.album-card:hover img {
    transform: scale(1.04);
}

.album-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.35), transparent);
    padding: 1.5rem;
    color: #fff;
}

.album-card-title {
    font-size: 1.5rem;
    margin: 0 0 0.35rem 0;
    color: #fff;
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.05em;
}

.album-card-meta {
    font-size: 0.85rem;
    color: #e0e0e0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.photo-carousel {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background-color: #0c2b40;
    margin: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    contain: layout style;
}

.carousel-main {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
    width: 100%;
    position: relative;
    flex: 1;
    overflow: hidden;
    touch-action: manipulation;
    padding: 0 3rem;
    box-sizing: border-box;
}

.carousel-image-container {
    flex: 1;
    width: calc(100% + 6rem);
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 150px;
    margin: 0 -3rem;
    box-sizing: border-box;
    contain: layout style paint;
}

.carousel-main-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    will-change: none;
    backface-visibility: hidden;
    transition: opacity 0.25s ease;
    opacity: 1;
    touch-action: manipulation;
}

.carousel-main-image.is-loading {
    opacity: 0.35;
}

.carousel-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2.8rem 2rem 1.25rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.72), rgba(0,0,0,0.35), transparent);
    z-index: 30;
    pointer-events: auto;
    text-align: center;
    gap: 0.5rem;
}

.carousel-overlay-top {
    display: none;
}

.carousel-album-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: #ffffff;
    margin: -0.6rem 0 0;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    letter-spacing: 0.1em;
}

.carousel-back-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.15rem 0;
    line-height: 1.5;
    transition: color 0.15s ease, opacity 0.15s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    pointer-events: auto;
    z-index: 31;
    font-weight: 500;
    text-decoration: none;
    margin-top: -0.7rem;
}

.carousel-back-btn:hover {
    color: #dfe7ee;
    opacity: 0.8;
}

.carousel-arrow {
    background-color: transparent;
    border: none;
    color: #ffffff;
    font-size: 3rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.15s ease, text-shadow 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-arrow-left {
    left: 1rem;
}

.carousel-arrow-right {
    right: 1rem;
}

.carousel-arrow:hover {
    background-color: transparent;
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-50%) scale(1.15);
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.carousel-info {
    display: none;
}

.carousel-info h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.carousel-info p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.carousel-thumbnails {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    background-color: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    min-height: 120px;
}

.thumbnails-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 2rem;
    justify-content: center;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
}

.thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
    opacity: 0.6;
    will-change: transform, opacity;
}

.thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #3498db;
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
    aspect-ratio: auto;
}

#albumPhotoGrid {
    display: none !important;
}

.gallery-page.album-view #albumPhotoGrid {
    display: flex !important;
    flex-direction: column;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100%;
    height: calc(100vh - 80px);
    position: relative;
    overflow: hidden;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: none;
}

.gallery-overlay {
    display: none;
}

.gallery-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.gallery-overlay p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

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

.lightbox.active {
    display: flex;
}

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

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: left;
}

.lightbox-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.lightbox-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: rgba(0,0,0,0.3);
    border: none;
    padding: 15px 20px;
    transition: background 0.3s;
    z-index: 2001;
}

.lightbox-nav:hover {
    background: rgba(0,0,0,0.6);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 30px;
    color: white;
    font-size: 16px;
    background: rgba(0,0,0,0.5);
    padding: 10px 15px;
    border-radius: 5px;
}

/* Service item links */
.service-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}

.service-item-link:hover {
    transform: translateY(-5px);
}

/* Main search styling */
.main-search {
    margin-bottom: 3rem;
    justify-content: center;
}

.main-search .search-input {
    width: 400px;
}

/* Mobile gallery styles */
@media (max-width: 768px) {
    .gallery-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        justify-content: center;
    }

    .filter-buttons {
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .album-grid {
        grid-template-columns: 1fr;
    }

    .album-view-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-search .search-input {
        width: 100%;
        max-width: 400px;
    }

    .lightbox-nav {
        padding: 10px 15px;
        font-size: 30px;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .carousel-main {
        gap: 0;
        padding: 0;
    }

    .carousel-arrow {
        min-width: 58px;
        min-height: 58px;
        font-size: 2.5rem;
        padding: 0.6rem 0.9rem;
        top: 52%;
    }

    .carousel-arrow-left {
        left: 0.5rem !important;
    }

    .carousel-arrow-right {
        right: 0.5rem !important;
    }

    .carousel-image-container {
        max-width: 100%;
        padding-top: 95px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .carousel-main-image {
        max-width: 100%;
        max-height: 100%;
    }

    .photo-carousel {
        padding: 0;
        margin: 0;
        height: 100%;
    }

    .carousel-header-overlay {
        left: 0;
        right: 0;
        width: 100%;
        padding: 2.05rem 1rem 0.9rem;
        gap: 0.25rem;
    }

    .thumbnails-scroll {
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .carousel-thumbnails {
        min-height: 90px;
        padding: 0.5rem 0;
    }

    .carousel-album-name {
        font-size: 1.8rem;
        letter-spacing: 0.05em;
    }

    .carousel-back-btn {
        font-size: 0.9rem;
        margin-top: -0.25rem;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    body.home-page .hero::before {
        background-size: cover;
        background-position: center;
    }

    .home-hero {
        min-height: 100svh;
        height: 100svh;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .gallery-page.album-view #albumPhotoGrid {
        height: 100vh;
    }

    .carousel-image-container {
        padding-top: 55px !important;
    }

    .carousel-main-image {
        max-height: calc(100vh - 140px);
    }

    .carousel-thumbnails {
        min-height: 70px;
        padding: 0.35rem 0;
    }

    .thumbnail {
        width: 52px;
        height: 52px;
    }

    .carousel-header-overlay {
        left: 0;
        right: 0;
        width: 100%;
        padding: 1.1rem 1rem 0.65rem;
    }

    .carousel-arrow {
        top: 55%;
    }
}
