/*@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');*/

:root {
    --primary: #9c27b0;
    --primary-dark: #7b1fa2;
    --secondary: #ff9800;
    --accent: #ff5722;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #f5f5f6;
    --white: #ffffff;
    --navbar-height: 100px; /* keep in sync with .art-navbar height */
}

/* Reset and box-sizing */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles and dark mode */
body {
    font-family: 'Segoe UI', 'Raleway', Tahoma, Geneva, Verdana, Arial, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-dark, #333);
    background-color: var(--bg-light, #ffff);
    transition: background 0.5s ease;
}

    body.dark-mode {
        background: #1e1e2e;
        color: #e0e0e0;
    }

/* Navbar and sidebar */
.art-navbar {
    background-color: var(--white, #fff);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    width: 100%;
    height: var(--navbar-height);
    top: 0;
    z-index: 1000;
    border-radius: 0;
}

body.dark-mode .art-navbar,
body.dark-mode .sidebar {
    background: #1e1e2e;
}

/* Container - Fixed height to match navbar */
.art-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--navbar-height);
    padding: 0 20px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 110px;
    width: 80px;
    height: calc(100vh - 110px);
    background: var(--bg-light, #f5f5f6);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    z-index: 999;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex: 1;
}

    .logo a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-decoration: none;
        color: var(--primary);
        font-size: 38px;
        font-weight: 700;
        font-family: 'Playfair Display', serif;
    }

        .logo img {
            width: 75px;
            height: 75px;
            border-radius: 50%;
            margin-right: 15px;
        }

    .logo i {
        font-size: 28px;
        margin-right: 10px;
    }

/* Navigation - Fixed alignment for nav-links and dark__container */
.navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: var(--navbar-height);
    gap: 20px;
}

body.dark-mode .navigation {
    background: transparent !important;
}

/* Nav links - properly aligned */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

    .nav-links li {
        position: relative;
    }

    .nav-links a {
        text-decoration: none;
        color: var(--text-dark, #333);
        font-weight: 500;
        font-size: 20px;
        transition: color 0.3s;
        padding: 10px 15px;
        display: flex;
        align-items: center;
        background: transparent !important;
        white-space: nowrap;
    }

body.dark-mode .nav-links a {
    color: #fff !important;
}

    body.dark-mode .nav-links a:hover {
        color: #ff9800 !important;
    }

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

/* Dark mode container - properly aligned */
.dark__container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    transition: all 0.5s ease;
}

body.dark-mode .dark__container {
    background: transparent !important;
    box-shadow: none;
}

/* Toggle button styles */
.toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    position: relative;
    background: linear-gradient(145deg, #f0f0f0, #cacaca);
    box-shadow: 5px 5px 10px #bebebe, -5px -5px 10px #ffffff;
    transition: all 0.3s ease;
    overflow: hidden;
}

body.dark-mode .toggle-btn {
    background: linear-gradient(145deg, #2a2a3e, #1e1e2e);
    box-shadow: 5px 5px 10px #1a1a2a, -5px -5px 10px #3a3a4e;
}

.toggle-btn:active {
    box-shadow: inset 5px 5px 10px #bebebe, inset -5px -5px 10px #ffffff;
}

body.dark-mode .toggle-btn:active {
    box-shadow: inset 5px 5px 10px #1a1a2a, inset -5px -5px 10px #3a3a4e;
}

.sun, .moon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    transition: all 0.5s ease;
}

.sun {
    opacity: 1;
}

.moon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(180deg);
}

body.dark-mode .sun {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-180deg);
}

body.dark-mode .moon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Dropdown styles */
.nav-links .dropdown-toggle i {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white, #fff);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 200px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 10;
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    transition: all 0.3s;
}

    .dropdown-menu a:hover {
        background-color: var(--bg-light, #f5f5f6);
        color: var(--primary);
    }

/* Buttons */
.nav-buttons {
    display: flex;
    margin-left: 30px;
    gap: 10px;
}

.btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background-color: transparent;
}

    .btn-outline:hover {
        background-color: var(--primary);
        color: var(--white);
    }

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

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

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    height: 40px;
    width: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: all 0.3s;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 992px) {
    .navigation {
        position: fixed;
        top: var(--navbar-height);
        left: -100%;
        /* width: 30%;*/
        height: calc(100vh - var(--navbar-height));
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 30px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: all 0.5s ease;
        overflow-y: auto;
        gap: 0;
    }

        .navigation.active {
            left: 0;
        }

    .nav-links {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 0;
    }

        .nav-links li {
            margin: 10px 0;
            width: 100%;
        }

        .nav-links a {
            width: 100%;
            padding: 15px 0;
        }

    .dark__container {
        margin-top: 20px;
        width: 100%;
        justify-content: flex-start;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 15px;
        margin-top: 5px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .nav-buttons {
        margin-left: 0;
        margin-top: 30px;
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

        .hamburger.active .bar:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }

        .hamburger.active .bar:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active .bar:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }
}


/* Fix navigation wrapping/overflow for medium-wide screens (<1450px) */

/* Make logo take only needed space and allow nav to use remaining space */
.art-navbar .container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* keep header items on one line */
}

.logo {
    flex: 0 0 auto; /* don't let logo grow and push nav out */
}

/* Let navigation shrink properly and avoid overflowing its flex container */
.navigation {
    flex: 1 1 auto;
    min-width: 0; /* allows children to shrink inside flex item (prevents overflow) */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

/* Ensure nav-links can shrink and wrap if needed, prevent long items from overflowing */
.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
    flex-wrap: wrap; /* allow lines when extremely tight */
}

/* Hide the debug screen-size paragraph when space is limited */
.navigation > p {
    margin: 0;
    padding-left: 8px;
}

/* Targeted adjustments for narrower widths to keep layout intact */
@media (max-width: 1450px) {
    .logo a {
        font-size: 28px;
    }

        .logo a img {
            width: 60px;
            height: 60px;
        }

    .nav-links a {
        font-size: 18px;
        padding: 8px 10px;
    }

    .navigation {
        gap: 8px;
    }

        /* hide the debug size text so it doesn't push navigation */
        .navigation > p {
            display: none;
        }
}


/* Fix navigation wrapping/overflow for medium-wide screens (<1450px) */

/* Make logo take only needed space and allow nav to use remaining space */
.art-navbar .container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* keep header items on one line */
}

.logo {
    flex: 0 0 auto; /* don't let logo grow and push nav out */
}

/* Let navigation shrink properly and avoid overflowing its flex container */
.navigation {
    flex: 1 1 auto;
    min-width: 0; /* allows children to shrink inside flex item (prevents overflow) */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

/* Ensure nav-links can shrink and wrap if needed, prevent long items from overflowing */
.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
    flex-wrap: wrap; /* allow lines when extremely tight */
}

/* Hide the debug screen-size paragraph when space is limited */
.navigation > p {
    margin: 0;
    padding-left: 8px;
}

/* Targeted adjustments for narrower widths to keep layout intact */
@media (max-width: 1450px) {
    .logo a {
        font-size: 28px;
    }

        .logo a img {
            width: 60px;
            height: 60px;
        }

    .nav-links a {
        font-size: 18px;
        padding: 8px 10px;
    }

    .navigation {
        gap: 8px;
    }

        /* hide the debug size text so it doesn't push navigation */
        .navigation > p {
            display: none;
        }
}


.Default__hero, .hero {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.09), rgba(0,0,0,0.09)), url('../images/Girls-Lake.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 0 20px;
    font-family: 'Playfair Display', 'Segoe UI', Arial, sans-serif;
    margin-top: 75px;
    transition: all 0.5s ease;
    filter: brightness(1.1) contrast(1.05);
}


body.dark-mode .Default__hero,
body.dark-mode .hero {
    background: linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.08)), url('../images/Girls-Lake.jpg') no-repeat center center;
    background-size: cover;
    filter: brightness(0.7) contrast(1.2);
}


.History__hero {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.09), rgba(0,0,0,0.09)), url('../images/Bazzar.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 0 20px;
    transition: all 0.5s ease;
    filter: brightness(1.1) contrast(1.05);
}

    /* Make History__hero images responsive */
    .History__hero .card-img-top {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: cover;
        border-radius: 8px;
    }

/* Additional responsive breakpoints for History__hero images */
@media (max-width: 1200px) {
    .History__hero .card-img-top {
        max-width: 350px !important;
    }
}

@media (max-width: 992px) {
    .History__hero .card-img-top {
        max-width: 300px !important;
    }
}

@media (max-width: 768px) {
    .History__hero .card-img-top {
        max-width: 250px !important;
    }
}

@media (max-width: 576px) {
    .History__hero .card-img-top {
        max-width: 200px !important;
    }
}

body.dark-mode .History__hero {
    background: linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.08)), url('../images/Bazzar.jpg') no-repeat center center;
    background-size: cover;
    filter: brightness(0.7) contrast(1.2);
}

    /* History hero paragraph text - yellow in dark mode */
    body.dark-mode .History__hero p {
        color: #ffeb3b !important;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    }


/* Painting Hero Section - NOW BRIGHTER IN REGULAR MODE */
.Painting__hero {
    height: 100vh;
    width: 100vw;
    display: grid;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.09), rgba(0,0,0,0.09)), url('../images/Painting.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 0 20px;
    transition: all 0.5s ease;
    filter: brightness(1.1) contrast(1.05);
}

    /* Center align images within Painting__hero */
    .Painting__hero .imageGallery {
        justify-content: center;
    }

        .Painting__hero .imageGallery img {
            display: block;
            margin: 0 auto;
        }

/* Dark mode for Painting Hero - NOW DARKER IN DARK MODE */
body.dark-mode .Painting__hero {
    background: linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.08)), url('../images/Painting.jpg') no-repeat center center;
    background-size: cover;
    filter: brightness(0.7) contrast(1.2);
}


.Coins__hero, .hero {
    /*    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;*/
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.09), rgba(0,0,0,0.09)), url('../images/Coins.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    /*padding: 0 20px;*/
    font-family: 'Playfair Display', 'Segoe UI', Arial, sans-serif;
    /*margin-top: 75px;*/
    transition: all 0.5s ease;
    filter: brightness(1.1) contrast(1.05);
}


body.dark-mode .Coins__hero,
body.dark-mode .hero {
    background: linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.08)), url('../images/Coins.jpg') no-repeat center center;
    background-size: cover;
    filter: brightness(0.7) contrast(1.2);
}

    /* Coins hero h1 text - yellow in dark mode */
    body.dark-mode .Coins__hero h1 {
        color: #ffeb3b !important;
        text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    }


/*.Photography__hero, .hero {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.09), rgba(0,0,0,0.09)), url('../images/Photography.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 0 20px;
    font-family: 'Playfair Display', 'Segoe UI', Arial, sans-serif;
    margin-top: 75px;
    transition: all 0.5s ease;
    filter: brightness(1.1) contrast(1.05);
}*/

body.dark-mode .hero {
    background: linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.08)), url('../images/Photography.jpg') no-repeat center center;
    background-size: cover;
    filter: brightness(0.7) contrast(1.2);
}

    /* Photography hero h1 text - yellow in dark mode */
/*    body.dark-mode .Photography__hero h1 {
        color: #ffeb3b !important;
        text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    }*/

.Contact__hero, .hero {
    height: 100vh;
    width: 100vw;
   /* display: flex;
    flex-direction: column;*/
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.09), rgba(0,0,0,0.09)), url('../images/Contact.jpg') no-repeat center center;
    background-size: cover;
    color: #0E4C92;
    padding: 0 20px;
    font-family: 'Playfair Display', 'Segoe UI', Arial, sans-serif;
    margin-top: 75px;
    transition: all 0.5s ease;
    filter: brightness(1.1) contrast(1.05);
}


body.dark-mode .Contact__hero,
body.dark-mode .hero {
    background: linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.08)), url('../images/Contact.jpg') no-repeat center center;
    background-size: cover;
    filter: brightness(0.7) contrast(1.2);
}

    /* Contact hero h1 text - yellow in dark mode */
    body.dark-mode .Contact__hero h1 {
        color: #ffeb3b !important;
        text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    }

/* Hero text styles - adjusted for brighter normal mode */
.Default__hero h1, .history__hero h1,
.Contact__hero h1, .Photography__hero {
    font-size: 2.5rem;
    color: #ffeb3b;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.Default__hero p, .history__hero p {
    font-size: 1.2rem;
    color: #fff;
    margin-top: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.hero p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

/* lblQuote h4 styling - make italic */
#lblQuote.h4 {
    font-style: italic;
}

/* lblAuthor h5 styling - same as Default__hero h1 */
#lblAuthor.h5 {
    font-size: 2.5rem;
    color: #ffeb3b;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

/* Text readability in dark mode - stronger shadows for darker backgrounds */
body.dark-mode .Default__hero h1,
body.dark-mode .history__hero h1,
body.dark-mode .hero h1,
body.dark-mode .Painting__hero h1,
body.dark-mode #lblAuthor.h5 {
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    color: #ffeb3b;
}

body.dark-mode .Default__hero p,
body.dark-mode .history__hero p,
body.dark-mode .hero p,
body.dark-mode .Painting__hero p {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    color: #fff;
}

/* History hero container adjustments */
.History__hero .container,
.History__hero .row,
.History__hero .col-12 {
    margin: 0 !important;
    padding: 0 !important;
}

/* Section, card, grid, feature, icon */
.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    display: flex;
    flex-direction: column;
    padding-top: 30px !important;
    padding-bottom: 10px !important;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: var(--white);
    transition: all 0.3s ease;
}

/* Dark mode for cards */
body.dark-mode .card {
    background: #2a2a3e;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: #e0e0e0;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 10px !important;
}

.card-text {
    flex: 1;
    overflow: hidden;
    margin-bottom: 5px;
    text-align: justify;
}

body.dark-mode .card-text {
    color: #e0e0e0;
}

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

.feature {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

body.dark-mode .feature {
    background: #2a2a3e;
    color: #e0e0e0;
}

.feature h3 {
    margin: 20px 0;
    color: #667eea;
}

body.dark-mode .feature h3 {
    color: #ff9800;
}

.icon {
    font-size: 3rem;
    color: #764ba2;
}

body.dark-mode .icon {
    color: #ff9800;
}

/* Description */
.description {
    2rem;
    text-align: center;
    color: #666;
    line-height: 1.6;
}

body.dark-mode .description {
    color: #b0b0b0;
}

/* Responsive image sizing */
@media (max-width: 768px) {
    .card-img-top {
        height: 150px !important;
    }
}

/* Ensure navigation starts at bottom of header (logo) */

/* For the slide-in navigation (mobile), start it at the bottom of the header/logo
   and size it to the remaining viewport height so its top meets the logo bottom. */
@media (max-width: 992px) {
    .navigation {
        top: var(--navbar-height);
        height: calc(100vh - var(--navbar-height));
        overflow-y: auto; /* allow scrolling if content is tall */
        min-width: 0; /* prevent flex overflow issues */
    }

        .navigation.active {
            left: 0; /* keep existing slide-in behavior */
            top: var(--navbar-height); /* ensure it aligns with the logo bottom */
            height: calc(100vh - var(--navbar-height));
        }
}
