/* General Styling */
:root {
    --transition-speed: 0.5s;
    --timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #000000);
    color: #f4f4f4;
    overflow-x: hidden;
    cursor: none;
}

/* Loading Screen Styling */
@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

#loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    height: 60px;
    width: auto;
    animation: pulse 1.5s infinite alternate ease-in-out;
}

/* Slideshow Styling */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slideshow-container.loaded {
    opacity: 1;
}

.slideshow-track {
    display: flex;
    height: 100%;
    animation: scroll 80s linear infinite;
    animation-play-state: paused;
}

.slideshow-track.animate {
    animation-play-state: running;
}

.slideshow-track .slide {
    height: 100%;
    width: 40vw;
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.slideshow-track .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    filter: brightness(0.6);
}

.cursor-flare {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.4);
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s, height 0.3s, background 0.3s, border 0.3s, transform 0.3s;
}

.cursor-flare.on-hover {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid #fff;
}

a, a:visited {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: none;
}
a:hover {
    color: #c4c4c4;
}

.hero-section {
    height: 100vh;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    color: #fff;
    position: relative;
    z-index: 2;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 6rem);
    z-index: 1000;
    background: transparent;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.navbar.navbar-scrolled {
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav-links { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.nav-links a, .nav-links a:visited {
    color: #fff;
    font-weight: 400;
    font-size: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: #fff; transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }

.hero-text { margin: auto; text-align: center; max-width: 800px; padding: 0 1rem; }
.hero-text h1 { font-size: 4rem; margin-bottom: 1rem; }
.hero-text p { font-size: 1.5rem; font-weight: 300; color: #ddd; margin-bottom: 2rem; }

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

a.cta-button, .submit-button {
    background-color: #fff;
    color: #000;
    padding: 1rem 1rem;
    width: 220px;
    box-sizing: border-box;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid #fff;
    cursor: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}
a.cta-button:hover, .submit-button:hover {
    background-color: #000;
    color: #fff;
}

a.cta-button.secondary {
    background-color: transparent;
    color: #fff;
}

a.cta-button.secondary:hover {
    background-color: #fff;
    color: #000;
}

.hero-socials {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
}
.hero-socials a {
    font-size: 2rem;
    color: #888;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.footer-socials a {
    font-size: 1.5rem;
    color: #888;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.hero-socials a:hover, .footer-socials a:hover {
    color: #fff;
    transform: translateY(-3px);
}

main section { padding: 6rem 0; border-bottom: 1px solid #2a2a2a; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }

.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-speed) var(--timing-function), transform var(--transition-speed) var(--timing-function);
}
.hidden.in-view {
    opacity: 1;
    transform: translateY(0);
}

.about-content { display: flex; align-items: center; gap: 4rem; }
.about-image img { max-width: 350px; border-radius: 10px; }
.about-text h3 { font-size: 1.8rem; margin-top: 0; }

.contact-section { background-color: #111; }
.subtitle { text-align: center; font-size: 1.1rem; max-width: 600px; margin: -2rem auto 3rem; }
.contact-form { max-width: 700px; margin: 0 auto; }
.form-group { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem; background-color: #2a2a2a; border: 1px solid #444; color: #fff; border-radius: 5px; font-family: 'Poppins', sans-serif; font-size: 1rem; box-sizing: border-box; }
.contact-form textarea { height: 150px; resize: vertical; margin-bottom: 1rem; }
.submit-button { width: 100%; }

.form-item-full-width {
    grid-column: 1 / -1;
}

.footer { text-align: center; padding: 2rem 0; color: #888; }

/* --- NEW: Interactive 'Made By' Credit Styling --- */
.made-by-credit {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.made-by-credit a {
    display: flex;
    align-items: center;
    justify-content: center; /* Ensures content inside the link is centered */
}

.credit-text {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    
    /* Hide the text by making it zero-width and invisible */
    opacity: 0;
    width: 0;
    transition: width 0.4s ease, opacity 0.2s ease, margin-right 0.4s ease;
}

.credit-logo {
    height: 35px; /* Made the logo bigger */
    width: auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

/* On hover, the parent 'a' tag triggers the animation */
.made-by-credit a:hover .credit-text {
    opacity: 1;
    width: 85px; /* Give the text width to make it appear */
    margin-right: 0.75rem; /* Add spacing between text and logo */
}

.made-by-credit a:hover .credit-logo {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05); /* The subtle zoom effect */
}
/* ------------------------------------------- */

.gallery-nav { background-color: rgba(10, 10, 10, 0.7); backdrop-filter: blur(8px); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 1rem; padding-top: 6rem; }
.gallery-item { position: relative; overflow: hidden; border-radius: 10px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: #fff; opacity: 0; transition: opacity 0.4s ease; padding: 2rem 1.5rem 1.5rem; }
.gallery-item:hover .overlay { opacity: 1; }

.hamburger { display: none; cursor: none; }
.hamburger div { width: 25px; height: 3px; background-color: white; margin: 5px; transition: all 0.3s ease; }

@media screen and (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
        width: calc(100% - 3rem);
    }
    .nav-links {
        position: fixed; right: 0px; top: 0px; height: 100vh; background: #111;
        display: flex; flex-direction: column; align-items: center; justify-content: space-evenly;
        width: 60%; transform: translateX(100%); transition: transform 0.5s ease-in;
    }
    .nav-links.nav-active { transform: translateX(0%); }
    .hamburger { display: block; z-index: 1001; }
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
    .about-content { flex-direction: column; text-align: center; }
    .form-group { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { font-size: 1.2rem; }
    .cursor-flare { display: none; }
    body { cursor: auto; }
    .gallery-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    .slideshow-track .slide {
        width: 100vw;
        padding: 0;
    }
}
