:root {
    --primary-color: #f39c12;
    --bg-color: #0f1115;
    --text-color: #ffffff;
    --text-secondary: #a0aab2;
    --nav-bg: rgba(15, 17, 21, 0.9);
    --section-bg: #15181e;
    --card-bg: #1a1e24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body {
    font-family: 'Inter', 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation */
header {
    position: sticky; /* Make header sticky when scrolling */
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    flex-direction: column;
    z-index: 1002;
    position: relative;
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    color: var(--text-color);
    font-size: 1.2rem;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-right a {
    color: var(--text-color);
    font-size: 1.2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.logo a {
    color: var(--text-color);
}

.nav-links {
    display: flex;
    justify-content: center;
    width: 100%;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
}

@media screen and (min-width: 769px) {
    .nav-top {
        padding: 0 1rem;
        height: 60px;
    }
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: 8vh;
        padding: 0 1rem;
    }
    .nav-links {
        border-top: none;
        width: 50%;
        justify-content: space-around;
    }
    .nav-links li a {
        flex-direction: row;
        gap: 8px;
    }
}

.theme-toggle-btn { display: none; }

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Sections */
section {
    padding: 100px 5%;
    min-height: 100vh;
}

.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero .slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s backwards;
    min-width: 160px;
    min-height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3);
}

/* Featured Photo Section */
.featured-section {
    background-color: var(--bg-color);
    padding: 60px 5%;
}

.featured-section > h2 {
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.featured-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem; /* More spacing between the two featured items */
    padding-top: 2rem;
}

.featured-item {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Alternating Layout */
.featured-item:nth-child(even) {
    flex-direction: row; /* Removed row-reverse since HTML order handles the alternating logic naturally */
}

.featured-photo {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    aspect-ratio: 16 / 9; /* Wider landscape format */
}

.featured-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-photo:hover img {
    transform: scale(1.03); /* Subtle hover zoom effect */
}

.featured-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-info h3 {
    font-size: 2.2rem;
    text-align: left;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.featured-description {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.featured-details {
    background: #1a1e24;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.featured-details p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.featured-details p:last-child {
    margin-bottom: 0;
}

.featured-details strong {
    color: var(--text-color);
}

/* Instagram Follow Section */
.instagram-section {
    background-color: #1a1e24;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 1rem; /* Reduced padding space */
    min-height: auto !important;
}

.instagram-content {
    max-width: 800px;
    margin: 0 auto;
}

.instagram-content h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.instagram-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem; /* Reduced margin */
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

.btn-instagram:hover {
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.5);
}

/* Gallery Section */
.gallery-section {
    background-color: #15181e;
}

.gallery-search-container {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    padding: 0 1rem;
    position: relative;
}

.gallery-search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    color: var(--text-color);
    background-color: #1a1e24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.gallery-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.2);
}

.gallery-search-input::placeholder {
    color: var(--text-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Desktop: 3-4 photos per row */
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Slight zoom on hover */
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay span {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .item-overlay span {
    transform: translateY(0);
}

/* Video Section */
.video-section {
    background-color: #1a1e24;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-item {
    background-color: #15181e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-thumbnail-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-thumbnail-container:hover .video-thumbnail {
    transform: scale(1.05);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(229, 9, 20, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.video-thumbnail-container:hover .play-button-overlay {
    background-color: #f39c12;
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.video-caption {
    padding: 1rem;
    font-size: 1rem;
    color: var(--text-color);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Video Player Modal */
#videoModal .modal-wrapper {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    background: #000;
}

.video-iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* About Section */
.about-section {
    background-color: #15181e;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about-content {
    max-width: 800px;
    padding: 0 1rem;
}

.about-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: #0a0c0f;
    padding: 4rem 2rem 1rem;
    text-align: center;
}

.footer-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: #1a1e24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
}

.btn-submit {
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    width: 100%;
    animation: none; /* remove initial animation trigger */
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.socials a {
    color: #fff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1a1e24;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.socials a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* Tablet: 2-3 per row */
    }
}

@media screen and (max-width: 768px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
    }
    body {
        padding-top: 60px;
    }
    .nav-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 60px;
        padding: 0 15px;
    }
    .logo {
        font-size: 1.2rem;
        color: #ffffff;
        text-align: left;
        display: block !important; /* Ensure logo appears on mobile */
    }
    .logo a {
        color: #ffffff;
    }
    .burger {
        display: block !important;
        cursor: pointer;
    }
    .nav-links {
        position: fixed;
        right: 0px;
        height: calc(100vh - 60px);
        top: 60px;
        background-color: var(--nav-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in;
        z-index: 9998;
    }

    .nav-links li {
        opacity: 0;
        margin-bottom: 1.5rem;
    }

    .nav-links li a, .theme-toggle-btn {
        font-size: 1.2rem;
        padding: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .nav-links li a span:not(.material-icons) {
        display: inline-block !important; /* Show text */
    }

    .nav-active {
        transform: translateX(0%);
    }

    .hero .slide {
        background-position: center center;
        background-size: cover;
        height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        padding: 0 1rem;
        word-wrap: break-word;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .video-caption {
        font-size: 0.85rem;
        padding: 0.5rem;
        line-height: 1.4;
    }

    .about-content h2, .instagram-content h2, section h2, .footer-content h3 {
        font-size: clamp(0.70rem, 3.3vw, 1rem) !important;
        color: #fff;
        margin-bottom: 0.8rem !important;
        letter-spacing: 0px !important;
        white-space: nowrap !important; /* Force 1 line */
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
        display: block !important;
    }

    .about-content p, .instagram-content p, .featured-description, .hero-content p {
        font-size: 0.85rem !important;
        line-height: 1.5;
        margin-bottom: 0.8rem;
        padding: 0 1rem;
    }
    
    .nav-socials {
        display: flex;
        gap: 10px;
    }
    
    .featured-container {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .featured-item {
        flex-direction: column-reverse !important; /* Stack text/title on top of image on mobile */
    }

    .featured-item:nth-child(even) {
        flex-direction: column-reverse !important; /* Stack text/title on top of image on mobile */
    }
    
    .featured-info h3 {
        font-size: clamp(0.70rem, 3.3vw, 1rem) !important;
        text-align: center;
        color: #fff; /* Ensure white title block */
        margin-bottom: 0.5rem;
        letter-spacing: 0px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
        display: block !important;
    }
    
    /* Global Mobile Headings fixes */
    section {
        min-height: auto !important;
        padding: 2.5rem 5% !important; /* Reduce excessive mobile padding padding */
    }
    
    .instagram-section { 
        padding: 1.5rem 5% !important; 
    }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

.nav-links li.fade {
    animation: navLinkFade 0.5s ease forwards 0.3s;
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Photo Detail Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-wrapper {
    display: flex;
    flex-direction: row;
    background-color: #1a1e24;
    border-radius: 12px;
    overflow: hidden;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal-wrapper {
    transform: scale(1);
}

.modal-image-container {
    flex: 2;
    background-color: #0a0c0f;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#modalImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-details {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#modalTitle {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-row i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.detail-description {
    margin-top: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 20px;
    z-index: 2001;
    background-color: rgba(0,0,0,0.3);
    border-radius: 5px;
    text-decoration: none;
    user-select: none;
}

.modal-nav:hover {
    color: var(--primary-color);
    background-color: rgba(0,0,0,0.6);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Responsive Modal */
@media screen and (max-width: 900px) {
    .modal-wrapper {
        flex-direction: column;
        height: 90vh;
        overflow-y: auto;
    }
    
    .modal-image-container {
        height: 50vh;
        flex: none;
    }
    
    .modal-nav {
        top: 25vh;
    }
    
    #modalTitle {
        font-size: 1.5rem;
        margin-bottom: 0;
        margin-top: 0;
    }
}


/* === SYSTEM OVERRIDES FOR MOBILE NAV AND GALLERY GRID === */
#latest-gallery-grid .gallery-item:nth-child(n+9) { display: none !important; }
.gallery-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 15px !important; }

@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 600px) {
    #latest-gallery-grid .gallery-item:nth-child(n+9) { display: block !important; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 4px !important; padding: 0 4px !important; }
}

.nav-links li a { display: flex !important; align-items: center !important; gap: 8px !important; }

/* Desktop Hide Icons, Mobile Show Icons */
@media screen and (min-width: 769px) {
    .nav-links li a i { display: none !important; }
}

/* Mobile layout is handled in the main media query block above. */

/* Instagram Section Spacing Reduction */
.instagram-section { padding: 1.5rem 1rem !important; }
.instagram-content p { margin-bottom: 0.8rem !important; }
