/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background: #000;
}

body {
    background: #000;
    color: #fff;
    font-family: "Roboto Condensed", "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 200;
    letter-spacing: 1px;
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.blog-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 165, 0, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-bottom-color 0.3s ease;
}

.blog-header:has(.mobile-menu-overlay.active) {
    backdrop-filter: none !important;
}

.blog-header.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    border-bottom-color: rgba(255, 165, 0, 0.5);
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    gap: 20px;
    flex-wrap: nowrap;
}

/* Logo Section */
.header-logo {
    flex: 1.2;
    display: flex;
    justify-content: flex-start;
}

.header-logo .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 4px;
    transition: all 0.3s ease;
}

.logo-image {
    width: 45px !important;
    height: auto;
    filter: drop-shadow(0 0 6px rgba(255, 165, 0, 0.3));
    transition: all 0.3s ease;
}

.logo-text {
    font-family: 'Diplomata SC', serif;
    font-size: 1.5rem !important;
    color: #ffa500;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.header-logo .logo-link:hover .logo-image {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(255, 165, 0, 0.6));
}

.header-logo .logo-link:hover .logo-text {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 165, 0, 0.8);
}

/* Navigation */
.header-nav {
    display: flex;
    gap: clamp(10px, 2vw, 25px);
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 10px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 0;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffa500, #ff8c00);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffa500;
    text-shadow: 0 0 8px rgba(255, 165, 0, 0.4);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Social Icons */
.header-social {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 26px);
    gap: 10px 12px;
    align-items: center;
    justify-content: flex-end;
}

.social-icon {
    display: block;
    width: 26px;
    height: 26px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-icon img {
    width: 100%;
    height: 100%;
    filter: brightness(1.2);
    transition: all 0.3s ease;
}

.social-icon:hover {
    opacity: 1;
    transform: scale(1.2);
}

.social-icon:hover img {
    filter: drop-shadow(0 0 6px rgba(255, 165, 0, 0.6));
}

/* Hamburger Menu (hidden by default) */
.hamburger {
    display: none;
}

.menu-section {
    display: none;
}

.menu-section-title {
    display: none;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
    height: calc(100vh - 80px); /* Height minus header only */
    overflow: hidden;
    margin-top: 80px; /* Push down below header */
}

/* About Section Styles */
.about-section {
    height: 0;
    overflow: hidden;
}

.about-container {
    text-align: center;
}

.about-container h1 {
    font-family: 'Diplomata SC', serif;
    font-size: 3rem;
    color: #ffa500;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.about-container p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto;
}

/* Horizontal Sections */
.horizontal-section {
    position: fixed;
    top: 80px; /* Account for header height */
    left: 0;
    width: 100%;
    height: calc(100vh - 80px - 150px); /* Full height minus header and footer space */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 5;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.horizontal-section.active {
    opacity: 1;
    z-index: 5;
    transform: scale(1);
    pointer-events: auto;
}

.section-content {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px;
    border: 2px solid rgba(255, 165, 0, 0.8);
    background: rgba(255, 255, 255, 0.02);
    overflow: visible;
    height: auto;
    max-height: calc(100vh - 80px - 180px);
    position: relative;
}

/* Odd sections - Orange borders */
.horizontal-section:nth-child(odd) .section-content {
    border: 2px solid rgba(255, 165, 0, 0.8);
}

/* Even sections - White borders */
.horizontal-section:nth-child(even) .section-content {
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.section-text {
    flex: 1;
    max-width: none;
    width: 100%;
}

.section-text h2 {
    font-family: 'Diplomata SC', serif;
    font-size: 2.2rem;
    color: #ffa500;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.section-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    text-align: justify;
}

.section-image {
    flex: 1;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.section-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.section-image:hover img {
    transform: scale(1.05);
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    color: #ffa500;
    border: 2px solid #ffa500;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease, opacity 0.5s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.nav-arrow:hover {
    background: rgba(255, 165, 0, 0.3);
    border-color: #ff8c00;
    color: #ff8c00;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.6);
}

.arrow-left {
    top: -5px;
    left: -20px;
    width: 35px;
    height: 35px;
    font-size: 20px;
}

.arrow-right {
    bottom: -10px;
    right: -20px;
}

/* Footer Styles */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 150px;
    background: #000;
    display: flex;
    align-items: center;
    padding: 0 clamp(20px, 3vw, 40px);
    border-top: 1px solid rgba(255, 165, 0, 0.3);
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left,
.footer-right {
    flex: 1;
}

.footer-center {
    flex: 2;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-social a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-social img {
    width: 28px;
    height: 28px;
    filter: brightness(1.2);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: scale(1.1);
}

.footer-social a:hover img {
    filter: brightness(1.5) drop-shadow(0 0 4px rgba(255, 165, 0, 0.6));
}

.footer-links {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffa500;
}

.footer-copyright {
    color: #888;
    font-size: 12px;
    margin: 0;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.footer-contact a {
    color: #ffa500;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #ff8c00;
    text-decoration: underline;
}

/* Responsive Design */
/* Medium screens - adjust layout but keep desktop nav */
@media (max-width: 1024px) {
    .header-content {
        gap: 15px;
        padding: 12px 20px;
    }

    .header-nav {
        gap: clamp(10px, 2vw, 20px);
        margin: 0 5px;
    }

    .nav-link {
        font-size: clamp(0.85rem, 1.3vw, 1rem);
        letter-spacing: 1px;
    }

    .header-social {
        gap: 15px;
        grid-template-columns: repeat(3, 28px);
    }

    .social-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .header-content {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo-image {
        width: 35px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .header-nav {
        display: none !important;
    }

    .header-nav.active {
        display: none !important;
    }

    .header-social {
        gap: 8px;
    }

    .social-icon {
        width: 24px;
        height: 24px;
    }

    /* Hamburger Menu */
    .hamburger {
        display: block;
        cursor: pointer;
        padding: 5px;
        z-index: 10001;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 2px;
        background: #ffa500;
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .header-nav.active {
        display: none !important;
    }

    /* Hide header social icons on mobile */
    .header-social {
        display: none;
    }

    .about-section {
        padding: 40px 20px;
    }

    .about-container h1 {
        font-size: 2rem;
    }

    .main-content {
        height: calc(100vh - 55px - 80px); /* Account for auto footer height */
        margin-top: 55px;
    }

    .horizontal-section {
        height: calc(100vh - 55px - 80px);
        top: 55px;
    }

    .section-content {
        width: 95%;
        flex-direction: column;
        gap: 15px;
        padding: 15px 12px;
        height: auto;
        max-height: calc(100vh - 55px - 80px - 20px);
        overflow-y: auto;
        border-width: 1px;
    }

    .section-text {
        max-width: 100%;
        text-align: center;
    }

    .section-text h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        line-height: 1.1;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .section-text p {
        font-size: 1rem;
        line-height: 1.5;
        text-align: left;
    }

    .section-image {
        max-width: 100%;
        width: 100%;
        flex-shrink: 0;
    }

    .section-image img {
        height: 180px;
        object-fit: cover;
    }

    /* Navigation Arrows - Make them visible inside the container on mobile */
    .nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
        border-width: 1px;
    }

    .arrow-left {
        top: 5px;
        left: 5px;
    }

    .arrow-right {
        bottom: 5px;
        right: 5px;
    }

    /* Reverse order for alternating sections on mobile for better visual flow */
    .section-2 .section-content,
    .section-4 .section-content,
    .section-6 .section-content {
        flex-direction: column-reverse;
    }

    .footer {
        padding: 12px 15px;
        height: auto;
        min-height: 100px;
        border-top: none;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        flex: none;
    }
    
    .footer-social {
        justify-content: center;
        gap: 10px;
    }
    
    .footer-social img {
        width: 20px;
        height: 20px;
    }

    .footer-links {
        font-size: 10px;
        margin-bottom: 5px;
    }

    .footer-copyright {
        font-size: 9px;
    }
    
    .footer-contact {
        align-items: center;
    }

    .footer-contact a {
        font-size: 9px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .section-content {
        padding: 12px 10px;
        width: 98%;
        gap: 12px;
    }

    .section-text h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .section-text p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .section-image img {
        height: 160px;
    }

    .footer {
        height: 70px;
        padding: 8px 12px;
    }

    .footer-social img {
        width: 18px;
        height: 18px;
    }

    .footer-links {
        font-size: 8px;
    }

    .footer-copyright {
        font-size: 7px;
    }

    .footer-contact a {
        font-size: 9px;
    }
}
