/* ===========================================
   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.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);
}

/* ===========================================
   TUTORIALS SECTION - MOBILE FIRST
   =========================================== */

.tutorials {
    padding: clamp(6vh, 15vh, 20vh) 0;
    background: rgba(0, 0, 0, 0.295);
    min-height: 100vh;
}

.tutorial-container {
    width: 100%;
    padding: 0 clamp(1rem, 4vw, 3rem);
    box-sizing: border-box;
}

.tutorial-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: clamp(1rem, 3vw, 2rem);
}

.tutorial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: clamp(10px, 2vw, 15px);
    padding: clamp(1.5rem, 4vw, 2rem);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor:pointer;
    transition: all 0.4s ease;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245, 196, 63, 0.2);
}

.tutorial-card h3 {
    color: #fca402dc;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.tutorial-card p {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.6;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.tutorial-type {
    display: inline-block;
    padding: clamp(4px, 1vw, 5px) clamp(10px, 3vw, 15px);
    background: #fca4028c;
    border-radius: 20px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: #fafafaef;
    margin-bottom: clamp(1rem, 3vw, 5rem);
}

/* ===========================================
   ABOUT SECTION - MOBILE FIRST
   =========================================== */

.about {
    padding: clamp(4rem, 10vh, 8rem) 0;
    background: rgba(0, 0, 0, 0.3);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    text-align: center;
}

.about-image {
    aspect-ratio: 1;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 6vw, 3rem);
    min-height: 200px;
}

.about-text h3 {
    color: #fca402dc;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    font-size: clamp(1.5rem, 4vw, 1.8rem);
}

.about-text p {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.8;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* ===========================================
   FOOTER - MOBILE FIRST
   =========================================== */

footer {
    background: rgba(56, 56, 56, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: clamp(0.5rem, 2vw, 1rem) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: clamp(0.5rem, 2vw, 2rem);
    padding: 0 clamp(1rem, 4vw, 3rem);
}

.footer-section h4 {
    color: #fca402dc;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.4s ease;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.footer-section a:hover {
    color: #fca402dc;
}

.copyright {
    padding-top: 0.5rem;
    color: #888;
    padding-bottom: 0.5rem;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
}

/* ===========================================
   POPUP STYLES - MOBILE FIRST
   =========================================== */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.411);
    display: none;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: clamp(1rem, 4vw, 2rem);
}

.popup-overlay.show {
    display: flex;
}

.popup-content {
    background: url("/site_images/crescentmoon_scaled.webp");
    background-size: cover;
    background-position: center;
    padding: clamp(1rem, 4vw, 2rem);
    border-radius: clamp(8px, 2vw, 10px);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(255, 166, 0, 0.589);
}

.close-btn {
    position: absolute;
    top: clamp(10px, 3vw, 15px);
    right: clamp(15px, 4vw, 20px);
    font-size: clamp(20px, 5vw, 24px);
    cursor: pointer;
    color: #dad7d1e5;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: clamp(30px, 7vw, 35px);
    height: clamp(30px, 7vw, 35px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #ffd07ae5;
    background: rgba(0, 0, 0, 0.7);
}

.popup-header {
    text-align: center;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
}

.popup-header h2 {
    color: #e0e0de;
    margin: 0 0 clamp(0.5rem, 2vw, 1rem) 0;
    font-weight: lighter;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
}

.popup-header p {
    color: #e0e0de;
    margin-bottom: 0;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Mailchimp overrides for mobile */
#mc_embed_signup {
    background: transparent !important;
    width: 100% !important;
    font-size: clamp(14px, 3vw, 16px) !important;
    margin-top: clamp(2rem, 8vw, 8rem);
}

#mc_embed_signup h2 {
    display: none;
}

#mc_embed_signup .mc-field-group {
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
}

#mc_embed_signup input[type="email"] {
    width: 100%;
    padding: clamp(10px, 3vw, 12px);
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: clamp(14px, 3vw, 16px);
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.1);
    color: #f9f9fa;
}

#mc_embed_signup input[type="email"]::placeholder {
    color: #fcbc47e1;
    font-style: italic;
}

#mc_embed_signup input[type="email"]:focus {
    border-color: #fcbc47e1;
    outline: none;
}

#mc_embed_signup .button {
    background: rgba(248, 174, 36, 0.8);
    color: rgb(255, 255, 255);
    padding: clamp(8px, 2vw, 10px) clamp(8px, 2vw, 10px);
    border: none;
    border-radius: 5px;
    font-size: clamp(14px, 3vw, 16px);
    cursor: pointer;
    width: 100%;
    transition: all 0.4s ease;
    margin-top: clamp(0.5rem, 2vw, 1rem);
}

#mc_embed_signup .button:hover {
    background: #ffac13fa;
    transform: translateY(-2px);
}

.popup-content .refferal_badge {
    display: none;
}

/* ===========================================
   CONTACT FORM - MOBILE FIRST
   =========================================== */

.contact-section {
    padding: clamp(6rem, 20vh, 12rem) 0 clamp(4rem, 10vh, 8rem);
    background: rgba(0, 0, 0, 0.3);
    min-height: 100vh;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.contact-header {
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 3rem);
}

.contact-header h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    color: #fca402dc;
    background: linear-gradient(45deg, #fca402dc, #ffac13fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-header p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #e0e0de;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: clamp(10px, 2vw, 15px);
    padding: clamp(2rem, 5vw, 3rem);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

.form-group {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.form-group label {
    display: block;
    margin-bottom: clamp(0.25rem, 1vw, 0.5rem);
    color: #e0e0de;
    font-weight: 500;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: clamp(10px, 3vw, 12px) clamp(12px, 3vw, 15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: clamp(6px, 1.5vw, 8px);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: clamp(14px, 3vw, 16px);
    font-family: inherit;
    transition: all 0.4s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fca402dc;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group textarea {
    min-height: clamp(100px, 20vw, 120px);
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(45deg, #fca402dc, #ffac13fa);
    color: white;
    padding: clamp(12px, 3vw, 15px) clamp(30px, 8vw, 40px);
    border: none;
    border-radius: clamp(6px, 1.5vw, 8px);
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(252, 164, 2, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: clamp(1rem, 3vw, 2rem);
    margin-top: clamp(2rem, 5vw, 3rem);
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: clamp(10px, 2vw, 15px);
    padding: clamp(1.5rem, 4vw, 2rem);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.info-card h3 {
    color: #fca402dc;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.info-card p {
    color: #e0e0de;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.success-message,
.error-message {
    padding: clamp(0.75rem, 2vw, 1rem);
    border-radius: clamp(6px, 1.5vw, 8px);
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    display: none;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.success-message {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4CAF50;
}

.error-message {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #f44336;
}

/* ===========================================
   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: 300ms !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;
    }
}