/* Announcement bar styles (inserted) */
:root{
    --announce-bg-start: #c42727; /* strong red */
    --announce-bg-end: #ff6a00;   /* orange */
    --announce-text: #ffffff;
    --announce-height: 44px;
}

#announcement{position:fixed;top:0;left:0;width:100%;height:var(--announce-height);overflow:hidden;background:linear-gradient(90deg,var(--announce-bg-start),var(--announce-bg-end));display:none;align-items:center;z-index:99999}
#announcement[aria-hidden="false"]{display:flex}
#announcement .announcement-inner{height:100%;display:flex;align-items:center;width:100%;overflow:hidden;padding:0 1rem}
#announcement .announcement-track{display:flex;flex-wrap:nowrap;white-space:nowrap;box-sizing:border-box;align-items:center}
#announcement .announcement-track .item{display:inline-flex;padding:0 2.5rem;font-weight:700;color:var(--announce-text);font-size:15px;line-height:var(--announce-height);align-items:center}

/* Animated scroll: duration will be set dynamically based on text width via JS */
.announce-animate{animation-name:announce-scroll;animation-timing-function:linear;animation-iteration-count:infinite}

@keyframes announce-scroll{
    0%{transform:translateX(0)}
    100%{transform:translateX(-50%)}
}

@media (max-width:600px){
    #announcement .announcement-track .item{padding:0 1.2rem;font-size:13px}
}

/* Small muted dynamic date line */
.dynamic-date {
    font-size: 0.92rem;
    color: #b9bbbe;
    text-align: center;
    margin-bottom: 2.3rem;
    opacity: 0.7;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: #0a0a0f;
    color: #ffffff;
    overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at center, #2e1a1a 0%, #0a0a0f 100%);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: #e74c3c;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: particleFloat 8s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(231, 76, 60, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(231, 76, 60, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 4s ease-in-out infinite alternate;
}

@keyframes gridPulse {
    0% { opacity: 0.1; }
    100% { opacity: 0.4; }
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(220, 118, 118, 0.1));
    animation: shapeFloat 20s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.shape:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(100px, -100px) rotate(90deg); }
    50% { transform: translate(-50px, -200px) rotate(180deg); }
    75% { transform: translate(-150px, -50px) rotate(270deg); }
}

/* ===== HEADER ===== */
header {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(231, 76, 60, 0.3);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-image {
    display: flex;
    height: 65px;
    /* Give it a small rotation for fun, assuming the image exists */
    transform: rotate(5deg);
}

.logo-container a {
    text-decoration: none;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e74c3c, #c0392b, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 4s ease-in-out infinite alternate;
}



nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav a:hover {
    background: rgba(231, 76, 60, 0.15);
    transform: translateY(-1px);
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid #e74c3c;
    padding: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 4px;
}

.hamburger:hover {
    background: rgba(231, 76, 60, 0.2);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    display: block;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* ===== SECTIONS ===== */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

/* ===== HOME SECTION ===== */
#home {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15) 0%, rgba(10, 10, 15, 0.9) 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 8rem;
}

.home-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 2rem;
}

.home-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #e74c3c, #c0392b, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: titleGlow 4s ease-in-out infinite alternate;
    text-align: center;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 20px rgba(231, 76, 60, 0.5)); }
    100% { filter: drop-shadow(0 0 40px rgba(231, 76, 60, 0.8)); }
}

.home-subtitle {
    font-size: 1.3rem;
    color: #b9bbbe;
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
    max-width: 500px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.4);
    border: 2px solid transparent;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.8s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 25px 50px rgba(231, 76, 60, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.phone-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phoneImage1 {
    max-width: 350px;
    width: 100%;
    height: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* ===== OTHER SECTIONS ===== */
#about, #contact, #docs {
    text-align: center;
}

#about {
    background: linear-gradient(135deg, rgba(46, 26, 26, 0.8) 0%, rgba(10, 10, 15, 0.9) 100%);
}

#contact {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(10, 10, 15, 0.9) 100%);
}

#docs {
    background: linear-gradient(135deg, rgba(47, 49, 54, 0.3) 0%, rgba(10, 10, 15, 0.9) 100%);
}

section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #e74c3c, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

section h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    border: 2px solid rgba(231, 76, 60, 0.5);
    padding: 1.5rem;
    border-radius: 15px;
    background: rgba(231, 76, 60, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
section h4 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    border: 3px solid #00d4aa;
    padding: 1.2rem 2rem;
    border-radius: 25px;
    background: rgba(0, 212, 170, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

section h3:hover, section h4:hover {
    background: rgba(231, 76, 60, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(231, 76, 60, 0.3);
}

section p, section p1 {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #b9bbbe;
}

/* ===== WAVE DIVIDERS ===== */
.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    line-height: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

.red-to-white .wave-shape { 
    fill: rgba(46, 26, 26, 0.8);
}

.white-to-red .wave-shape { 
    fill: rgba(231, 76, 60, 0.1);
}

.white-to-red {
    transform: rotate(180deg);
}

/* ===== FOOTER ===== */
footer {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    color: white;
    text-align: center;
    padding: 3rem 0;
    position: relative;
    border-top: 1px solid rgba(231, 76, 60, 0.3);
}

footer p {
    font-size: 1rem;
    color: #b9bbbe;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    #home {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .home-content {
        text-align: center;
        padding-right: 0;
    }
    
    .phoneImage1 {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    section { 
        padding: 3rem 1rem; 
    }
    
    section h2 { 
        font-size: 2.5rem; 
    }
    
    .home-title {
        font-size: 2.5rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .wave-divider { 
        height: 80px; 
    }
}

@media (max-width: 600px) {
    .hamburger {
        display: flex;
    }

    .header-container {
        padding: 0 1rem;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: transparent;
        backdrop-filter: none;
        flex-direction: column;
        gap: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
        border: none;
    }

    nav ul.show {
        max-height: 400px;
    }

    nav ul li {
        width: 100%;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(231, 76, 60, 0.2);
    }

    nav ul.show li {
        opacity: 1;
        transform: translateY(0);
    }

    nav ul.show li:nth-child(1) { transition-delay: 0.1s; }
    nav ul.show li:nth-child(2) { transition-delay: 0.2s; }
    nav ul.show li:nth-child(3) { transition-delay: 0.3s; }
    nav ul.show li:nth-child(4) { transition-delay: 0.4s; }

    nav ul li a {
        display: block;
        text-align: center;
        padding: 1.5rem;
        width: 100%;
    }

    nav ul li:last-child {
        border-bottom: none;
        border-radius: 0 0 8px 8px;
    }

    nav ul li:first-child {
        border-radius: 8px 8px 0 0;
    }

    nav ul.closing {
        transition: max-height 0.3s ease 0.2s;
    }

    nav ul.closing li {
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.2s ease;
    }

    nav ul.closing li:nth-child(4) { transition-delay: 0s; }
    nav ul.closing li:nth-child(3) { transition-delay: 0.05s; }
    nav ul.closing li:nth-child(2) { transition-delay: 0.1s; }
    nav ul.closing li:nth-child(1) { transition-delay: 0.15s; }
}

/* ===== ENHANCED LOGO SYSTEM ===== */
/* Logo Image with Fun Rotation */
.logo-image {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
    animation: logoRotate 6s ease-in-out infinite;
    display: block;
}

@keyframes logoRotate {
    0%, 100% { transform: rotate(4deg); }
}

/* Enhanced fallback text styling */
.logo-fallback .logo-text {
    display: block;
}

.logo-image + .logo-text {
    display: none;
}

/* When image fails, hide image and show text */
.logo-image.failed {
    display: none;
}

.logo-image.failed + .logo-text {
    display: block;
}

/* ===== DOCUMENTATION LAYOUT ===== */
.docs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    padding: 2rem;
}

.docs-nav {
    position: sticky;
    top: 88px; /* below header */
    align-self: start;
}

.docs-nav ul {
    list-style: none;
    padding: 1rem;
    background: rgba(10,10,15,0.6);
    border-radius: 12px;
    border: 1px solid rgba(231,76,60,0.12);
}

.docs-nav a {
    display: block;
    padding: 0.6rem 0.5rem;
    color: #b9bbbe;
    text-decoration: none;
    border-radius: 6px;
}

.docs-nav a:hover, .docs-nav a:focus {
    background: rgba(231,76,60,0.08);
    color: #fff;
}

.docs-content .doc-section { 
    margin-bottom: 3rem;
}

.docs-hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.docs-hero .lead { color: #b9bbbe; margin-bottom: 1.5rem; }
.panel { background: rgba(10,10,15,0.6); padding: 1.25rem; border-radius: 12px; border: 1px solid rgba(231,76,60,0.06); }

@media (max-width: 900px) {
    .docs-container { grid-template-columns: 1fr; padding: 1rem; }
    .docs-nav { position: relative; top: auto; margin-bottom: 1rem; }
}