/* ===========================================
   COMPLETE MOBILE-FIRST CSS REPLACEMENT
   This replaces your entire main_page_style.css
   =========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #fff5f5;
    background: rgba(0, 0, 0, 0);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background image - mobile optimized */
body::before {
    content: '';
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/site_images/final_thumbnails_for_site/cygWall_jb_tnail.jpg') no-repeat center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 1;
}

/* Container system */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

/* ===========================================
   HEADER - MOBILE FIRST
   =========================================== */

header {
    background: rgba(56, 56, 56, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: clamp(0.5rem, 2vw, 1rem) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.192);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

.logo {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    color: #fdfdfce1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: clamp(0.25rem, 1vw, 0.5rem);
}

.logo::before {
    content: "";
    background-image: url("/site_images/nobg.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: clamp(35px, 8vw, 70px);
    height: clamp(35px, 8vw, 70px);
    display: inline-block;
}

/* Navigation - Mobile First */
.nav-links {
    display: none; /* Hidden by default on mobile */
    list-style: none;
}

.nav-links.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgb(48, 48, 48);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease-in;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links a {
    color: #fdfdfcf3;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.4s ease;
    position: relative;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links a:last-child {
    border-bottom: none;
}

.nav-links a:hover {
    color: #fca402dc;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2.5px;
    bottom: 0;
    left: 0;
    background-color: #fca402ad;
    transition: width 0.4s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.4s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger:focus {
    outline: 2px solid #fca402dc;
    outline-offset: 2px;
}

/* ===========================================
   HERO SECTION - MOBILE FIRST
   =========================================== */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.226);
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 10vh, 8rem) clamp(1rem, 4vw, 3rem);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    background: linear-gradient(45deg, #fca402dc, #ffac13fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.4rem);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    max-width: clamp(300px, 90vw, 600px);
    margin-left: auto;
    margin-right: auto;
    font-weight: bold;
    color: #fdfdfce1;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    padding: clamp(10px, 2vw, 12px) clamp(20px, 5vw, 30px);
    background: linear-gradient(45deg, #fca402dc, #ffac13fa);
    color: white;
    text-decoration: none;
    border-radius: clamp(20px, 4vw, 25px);
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(252, 164, 2, 0.3);
    min-width: 120px;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 164, 2, 0.5);
}

/* Gallery Section */
.gallery {
    padding: 120px 0 80px 0;
    background:transparent; 
        }

.gallery-container {
    width: 100%;
    padding: 0 clamp(20px, 5vw, 60px);
    box-sizing: border-box;

    }
        
.section-title {
    text-align: center;
    font-size: 2.5rem;
     margin-bottom: 3rem;
    color: #64b5f6;
}
        
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);  /*Responsive gap*/ 
    /* max-width: 2000px;  Adjust as needed */
     margin: 0 auto;
}
        
.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border: 2px solid transparent;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.1rem;
    will-change: transform;
    transition: transform .35s,
                box-shadow .35s,
                border-color .35s;
    /*min-height: 300px; /* Minimum height for consistency 
    display: flex;
    flex-direction: column;*/
}
        
.gallery-item:hover {
    transform: scale(1.05) translateY(-10px);
        border-color: rgba(100, 181, 246, 0.5);
        box-shadow: 0 20px 40px rgba(100, 181, 246, 0.3);
}
        
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
        
.gallery-item:hover img {
    transform: scale(1.05);
}
        
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
        
.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}
        
.overlay-title {
    font-size: 1.5rem;
    font-weight: lighter;
    color:  #fca402;
     margin-bottom: 0.5rem;
}
        
.overlay-details {
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1.4;
}
        


     /* Zoom controls */
.zoom-controls {
     position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 2002;
}
        
.zoom-btn {
    width: 40px;
     height: 40px;
    background: rgba(100, 181, 246, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}
        
.zoom-btn:hover {
    background: rgba(100, 181, 246, 1);
    transform: scale(1.1);
}
        
.reset-btn {
    width: auto;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: normal;
}
        
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #64b5f6;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.4s ease;
}
        
.close:hover {
     color: #90caf9;
}
        
/* Footer 
footer {
    background: rgba(56, 56, 56, 0);
    backdrop-filter: blur(5px);           
    text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
            position: fixed;
            opacity: 1.;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1000;

        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }
        
        .footer-section h4 {
            color: #64b5f6;
            margin-bottom: 1rem;
        }
        
        .footer-section a {
            color: #e0e0e0;
            text-decoration: none;
            display: block;
            margin-bottom: 0.5rem;
            transition: color 0.3s ease;
            
        }
        
        .footer-section a:hover {
            color: #64b5f6;
            
        }
        
        .copyright {
            padding-top: 0.5rem;
            color: #888;
            padding-bottom: 0.5rem;
        }*/
        
/*===========================================
   BREAKPOINTS - PROGRESSIVE ENHANCEMENT
   =========================================== */

/* Small phones and up */
@media (min-width: 480px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #mc_embed_signup .button {
        width: auto;
        min-width: 120px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

/* Large phones/small tablets */
@media (min-width: 768px) {
    .tutorial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr 1.5fr;
        text-align: left;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets and up */
@media (min-width: 1024px) {
    .nav-links {
        display: flex !important;
        position: static;
        background: none;
        backdrop-filter: none;
        flex-direction: row;
        padding: 0;
        gap: clamp(0.5rem, 2vw, 1.5rem);
        box-shadow: none;
        animation: none;
    }
    
    .nav-links a {
        border-bottom: none;
        padding: 0.5rem 0;
    }
    
    .hamburger {
        display: none;
    }
    
    .tutorial-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .about-content {
        grid-template-columns: 1fr 2fr;
    }
    
    .contact-info {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large desktops */
@media (min-width: 1440px) {
    .tutorial-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===========================================
   ACCESSIBILITY & PERFORMANCE
   =========================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .nav-links a,
    .hero h1,
    .tutorial-card h3,
    .about-text h3 {
        color: #ffffff;
    }
}