/* ==========================================================================
   1. GLOBAL SETTINGS & FONTS
   ========================================================================== */
@font-face {
    font-family: 'Raitor-Regular';
    src: url('fonts/Raitor-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul, li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

body {
    background-color: #ffffff;
    color: #111111;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ==========================================================================
   2. NAVIGATION BAR
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px; 
    position: fixed;    /* Keeps nav at the top [cite: 2721, 2812] */
    top: 0;
    width: 100%;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.98);
}

.logo {
    font-family: 'Raitor-Regular', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 4px;
    text-decoration: none;
    color: #979797;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #777777;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #111111;
}

/* ==========================================================================
   3. DROPDOWN MENU (Naked & Bold Style [cite: 2785])
   ========================================================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn::after {
    content: ' ▾';
    font-size: 0.7rem;
    vertical-align: middle;
    opacity: 0.5;
}

.dropdown-content {
    display: none;
    position: absolute;
    flex-direction: column;
    background-color: transparent;
    z-index: 10000;
    top: 100%;
    left: 0;
    padding-top: 15px;
}

.dropdown-content a {
    color: #777777;
    padding: 10px 0;
    text-decoration: none;
    display: block;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.dropdown-content a:hover {
    color: #111111;
    font-weight: 700; 
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ==========================================================================
   4. HOME HERO
   ========================================================================== */
.home-hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
}

.home-copyright {
    position: absolute;
    bottom: 30px; 
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem; 
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888888; 
}

.hero-image-wrapper {
    position: relative;
    display: flex; 
    justify-content: center;
    align-items: center;
    width: 80vw;
    max-width: 1400px;
}

.image-sharp {
    position: relative;
    z-index: 2;
    max-height: 90vh;
    width: auto;
    max-width: 100%;
    display: block;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ==========================================================================
   5. GALLERY MASONRY
   ========================================================================== */
.gallery-section {
    padding: 120px 20px 20px;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    column-count: 3;
    column-gap: 15px;
    width: 100%;
}

.thumbnail {
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    cursor: pointer;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.thumbnail:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   6. LIGHTBOX
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.lightbox-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.close-btn {
    position: absolute;
    top: 30px; right: 50px;
    color: #111111;
    font-size: 50px;
    cursor: pointer;
    z-index: 10;
}

/* ==========================================================================
   7. SLIDER GALLERY
   ========================================================================== */
.slider-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 40px; /* Pulls image higher for better layout [cite: 2812] */
    background-color: #ffffff;
    overflow: hidden;
    transition: margin-top 0.3s ease; /* Fluid transition for push-down [cite: 2814, 2884] */
}

/* This class is toggled by JS when the Portfolio menu is hovered [cite: 2909, 2914] */
.pushed-down {
    margin-top: 80px; 
}

.slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes fadeInOnLoad {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.slide-content {
    display: grid;
    grid-template-areas: 
        "photo"
        "text";
    justify-items: center;
    width: 100%;
    animation: fadeInOnLoad 1s ease-in-out forwards;
}

.slider-img {
    grid-area: photo; 
    max-height: 80vh;
    max-width: 90vw;
    width: auto;
    height: auto;
    transition: opacity 0.3s ease-in-out;
    will-change: opacity;
}

.caption {
    grid-area: text; 
    margin-top: 15px;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #777777;
}

.arrow {
    position: absolute;
    top: 40vh;
    transform: translateY(-50%);
    z-index: 100;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.2);
    transition: color 0.3s, transform 0.2s;
    padding: 20px;
}

.arrow:hover {
    color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.left-arrow { left: 2vw; }
.right-arrow { right: 2vw; }

/* ==========================================================================
   8. CONTACT PAGE
   ========================================================================== */
.contact-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 60px; 
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h2 {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.contact-header p {
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 1px;
}

.contact-form {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 0 auto; 
}

.form-group input, 
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #111;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-bottom: 1px solid #111; 
}

.submit-btn {
    background: none;
    border: 1px solid #111;
    padding: 18px 40px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #111;
    color: #fff;
}

.social-footer {
    margin-top: 80px;
}

.social-links {
    display: flex;
    gap: 40px;
    justify-content: center; 
}

.social-links a {
    text-decoration: none;
    color: #888;
    font-size: 0.7rem;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #111;
    font-weight: 700;
}

/* ==========================================================================
   9. MOBILE RESPONSIVENESS (Refined [cite: 2898])
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Shrink nav area to pull everything up [cite: 2901] */
    .navbar {
        padding: 15px 20px; 
        flex-direction: column;
        gap: 10px;
    }

    /* 2. Fix Gallery Slider (Landscape-alt / Documentary) [cite: 2901] */
    .slider-container {
        height: auto;      /* Remove 100vh to fit image + text [cite: 2902] */
        padding-top: 100px; /* Space for stacked nav [cite: 2901] */
        min-height: 80vh;   
        margin-top: 0 !important; /* Disables push-down on mobile [cite: 2910] */
    }

    .slider-img {
        max-height: 60vh;  /* Prevents bleeding off screen [cite: 2902] */
        max-width: 95vw;
    }

    /* 3. Re-hide arrows for swipe navigation [cite: 2909, 2912] */
    .arrow {
        display: none !important; 
    }

    /* 4. Pull caption closer to image [cite: 2902] */
    .caption {
        margin-top: 10px !important; 
        font-size: 0.65rem;
    }

    /* 5. Fix Home Hero [cite: 2901] */
    .home-hero {
        height: 80vh;      
        padding-top: 40px; 
    }

    .home-hero .image-sharp {
        max-height: 55vh;  
    }

    /* 6. Contact form safety margins [cite: 2901] */
    .contact-form {
        width: 90%;
        gap: 20px;
    }

    .dropdown-content {
        position: static; 
        padding-top: 5px;
        text-align: center;
    }
}