/* ===========================================
   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);
}

.about-section {
    padding: 120px 0 80px 0;
    background: transparent; /* Match gallery */
}


/* Add to your CSS 
.author-section {
    margin-bottom: 80px;  Space between author sections 
    padding: 40px 0;
    position: relative;
}*/

.author-section {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: center;
    text-align: center;
}


.author-image {
    width: 100%;
    max-width: 300px; /* Limit size on larger screens */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(252, 164, 2, 0.2);
}

.author-image img {
    width: 100%;
    height: auto;
    display: block;
}

.author-content {
    flex: 1;
}

.author-name {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #fca402;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.author-content p {
    line-height: 1.8;
    color: #e0e0e0;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 300;
    text-indent: 2rem;
}

.author-content h2 {
    text-align: center;
}

.author-section::after {
    content: "";
    display: block;
    clear: both;
}

/* 8. Add section divider */
.section-divider {
    width: 80%;
    height: 3px;
    background: linear-gradient(to right, transparent, #fca402, transparent);
    margin: 3rem auto;
}

/* Optional: Add a subtle divider between sections 
.author-section:not(:last-child)::after {
    content: "";
    display: block;
    width: 80%;
    height: 5px;
    background: linear-gradient(to right, transparent, #fca402, transparent);
    margin: 550px auto -80px;
}*/

/* Blog Page Base Styles */
main {
    padding-top: 35px; /* Adjust based on your header height */
    margin-top: -50px; /* Adjust based on your header height */
    min-height: 100vh;
    display: grid;
    /*background-color: #00000000;*/
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, #fdb632cb 0%, #fca402 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    text-align: center;
}

.blog-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 40px 20px 80px; /* Now only needs content padding */
}

/* Blog Header */
.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, #fdb632d5 0%, #fca402 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.blog-meta {
    color: #888;
    font-size: 1.1rem;
}

.blog-meta span {
    margin: 0 15px;
}

/* Article Styles 
.blog-article {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(5px);
    /*border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
}*/

.about-article {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(5px);
    padding: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Typography */

.blog-article h1 {
    font-size: 3rem;
    color: #fca402;
    /*margin: 40px 700px 20px;*/
}

.blog-article h2 {
    font-size: 2rem;
    color: #fca402;
    margin: 40px 0 20px;
    text-align: center;
}

.blog-article h3 {
    font-size: 1.5rem;
    color: #fca402;
    margin: 30px 0 15px;
}

.blog-article p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: lighter 300;
}

.blog-article blockquote {
    border-left: 4px solid #fca402;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #ccc;
}

.author-signature {
    text-align: center;
    margin: 50px 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: #fca402;
    letter-spacing: 2px;
}
/* Drop Cap for First Letter 
.blog-article p::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.65;
    padding: 10px 5px 0 0;
    color: #fca402;
    font-weight: ligher italic;
}*/

/* Image Layouts */

/* 1. Full Width Image */
.blog-image-full {
    width: 100%;
    margin: 40px 0;
    border-radius: 10px;
    overflow: hidden;
}

.blog-image-full img {
    width: 100%;
    height: auto;
    display: block;
}

/* 2. Image with Text Wrap 
.blog-image-left,
.blog-image-right {
    max-width: 30%;
    margin: 0px 40px 20px 0px;
    border-radius: 10px;
    overflow: hidden;
}*/

.blog-image-left {
    float: left;
    margin-left: 30px;
}

.blog-image-right {
    float: right;
    margin-right: 30px;
}

.blog-image-left img,
.blog-image-right img {
    width: 100%;
    height: auto;
    display: block;
}

/* 3. Side-by-Side Images */
.blog-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.blog-image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* 4. Gallery Grid */
.blog-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 40px 0;
}

.blog-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.blog-gallery img:hover {
    transform: scale(1.05);
}

/* 5. Image with Caption */
.blog-figure {
    margin: 40px 0;
    text-align: center;
}

.blog-figure img {
    width: 100%;
    border-radius: 10px;
}

.blog-figure figcaption {
    margin-top: 15px;
    color: #888;
    font-style: italic;
    font-size: 0.95rem;
}

/* 6. Hero Image with Text Overlay */
.blog-hero {
    position: relative;
    margin: 40px -40px; /* Negative margin to break out of padding */
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.blog-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.blog-hero-overlay h2 {
    color: #fff;
    margin: 0;
}

/* Special Sections */

/* Info Box */
.blog-info-box {
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
}

.blog-info-box::before {
    content: "ℹ️ ";
    font-size: 1.2rem;
}

/* Code Block */
.blog-code {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    color: #64b5f6;
}

/* Lists */
.blog-article ul,
.blog-article ol {
    margin: 20px 0;
    padding-left: 30px;
    color: #e0e0e0;
}

.blog-article li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Call to Action */
.blog-cta {
    background: linear-gradient(135deg, rgba(252, 164, 2, 0.1), rgba(252, 164, 2, 0.2));
    border: 1px solid #fca402;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
}

.blog-cta h3 {
    color: #fca402;
    margin-bottom: 15px;
}

.blog-cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: #fca402;
    color: #000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.blog-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(252, 164, 2, 0.4);
}

/* Related Posts */
.blog-related {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-related h3 {
    color: #64b5f6;
    margin-bottom: 30px;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.blog-related-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-related-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

/* 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;
        }

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        padding: 80px 15px 60px;
    }
    
    .blog-article {
        padding: 20px;
    }
    
    .blog-image-left,
    .blog-image-right {
        float: none;
        max-width: 100%;
        margin: 20px 0;
    }
    
    .blog-image-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-hero {
        margin: 20px -20px;
        height: 300px;
    }
    
    .blog-hero-overlay {
        padding: 20px;
    }
}

/* Animations */
.blog-article > * {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.blog-article > *:nth-child(1) { animation-delay: 0.1s; }
.blog-article > *:nth-child(2) { animation-delay: 0.2s; }
.blog-article > *:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clearfix for floated images */
.blog-article::after {
    content: "";
    display: table;
    clear: both;
}

/* ===========================================
   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);
    }
}*/
@media (min-width: 768px) {
    .author-section {
        flex-direction: row; /* Side by side on tablets+ */
        text-align: left;
    }
    
    .author-reverse {
        flex-direction: row-reverse;
    }
    
    .author-reverse .author-content {
        text-align: left;
    }
    
    .author-image {
        flex-shrink: 0;
    }
}

/* 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: 500ms !important;
    }
}

@media (prefers-contrast: high) {
    .nav-links a,
    .hero h1,
    .tutorial-card h3,
    .about-text h3 {
        color: #ffffff;
    }
}