/* 
   AL-MANARA — Strict Visual Replication
   Premium Gold, Teal, Black & Green Aesthetic
*/

:root {
    --primary-bg: #1A1A1A;
    --accent-gold: #DAA520;
    --accent-teal: #40C0BF;
    --accent-green: #2E8B57; /* Subtle green glow */
    --bright-gold: #FFD700;
    --deep-gold: #B8860B;
    --text-main: #FFFFFF;
    --text-dim: #B0B0B0;
    --glass: rgba(26, 26, 26, 0.4);
    --glass-border: rgba(64, 192, 191, 0.2);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

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

html, body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
}

/* Global Background Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Background Texture Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; }

/* Utilities */
.gold-gradient {
    background: linear-gradient(135deg, var(--accent-gold), var(--bright-gold), var(--deep-gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* 1. LOGO STRICT BLENDING */
.logo-container {
    display: flex;
    align-items: center;
    position: relative;
}

.logo-container::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 60px; height: 60px;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.4), transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(10px);
    z-index: -1;
    pointer-events: none;
}

.logo-img {
    width: 100px;
    height: auto;
    mix-blend-mode: screen; 
    filter: brightness(1.5) contrast(1.5);
    /* Strict Masking to completely obliterate any square borders from the image file */
    -webkit-mask-image: radial-gradient(circle at center, black 65%, transparent 75%);
    mask-image: radial-gradient(circle at center, black 65%, transparent 75%);
    border: none;
    background: transparent;
}

/* Navigation */
nav {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(64, 192, 191, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding-bottom: 5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 2px;
    background: var(--accent-teal);
    box-shadow: 0 0 8px var(--accent-teal);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.nav-links a:hover::after, .nav-links a.active::after {
    transform: scaleX(1);
}

/* =========================================
   STRICT 5-LAYER DEPTH SYSTEM FOR HERO
   ========================================= */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

/* LAYER 0 & 1: Background & Glows */
.layer-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: breathe-glow 8s ease-in-out infinite alternate;
}

.teal-glow {
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(64, 192, 191, 0.25), transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.green-glow {
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(46, 139, 87, 0.2), transparent 70%);
    bottom: -10%; left: 10%;
    animation-delay: -2s;
}

.gold-glow {
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.15), transparent 70%);
    top: -10%; right: -10%;
    animation-delay: -4s;
}

/* LAYER 2: WebGL Particles (+ CSS fallback) */
.layer-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.astrolabe-pattern {
    position: absolute;
    top: 50%; left: 50%;
    width: 800px; height: 800px;
    border: 1px dashed rgba(64, 192, 191, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rotate-slow 120s linear infinite;
}
.astrolabe-pattern::after {
    content: '';
    position: absolute;
    inset: -100px;
    border: 1px solid rgba(218, 165, 32, 0.1);
    border-radius: 50%;
}

.floating-particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
    background-size: 150px 150px;
    opacity: 0.15;
    animation: drift 60s linear infinite;
}
/* WebGL now handles primary constellations and particles */

/* LAYER 3: Animals (Wolf & Monkey) */
.layer-animals {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.magical-wrapper {
    position: absolute;
}

.monkey-wrapper {
    width: 35vw;
    max-width: 500px;
    top: 25%;
    left: -2%;
}

.wolf-wrapper {
    width: 40vw;
    max-width: 600px;
    bottom: 15%;
    right: -2%;
}

.magical-element {
    width: 100%;
    height: auto;
    /* STRICT BLENDING: No edges */
    mix-blend-mode: screen;
    /* Soft glowing edges / feathering */
    -webkit-mask-image: radial-gradient(ellipse at center, black 50%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, black 50%, transparent 100%);
    /* Breathing effect */
    animation: breathe-animal 6s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 15px rgba(218, 165, 32, 0.5)) brightness(1.2);
    opacity: 0.85;
}

.wolf-el {
    transform: scaleX(-1);
    animation-delay: -3s;
}

/* LAYER 4: Text Content */
.layer-content {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text-center {
    text-align: center;
    max-width: 900px;
    animation: reveal 1.2s ease-out;
}

.hero-label {
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.hero h1 {
    font-size: 4.8rem;
    line-height: 1.1;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    text-shadow: 0 0 40px rgba(218, 165, 32, 0.6), 0 0 10px rgba(0,0,0,0.8);
}

.hero-cta-wrapper {
    margin-top: 1rem;
}

/* Button: Premium Gold Glow Wrapper */
.cta-button-container {
    position: relative;
    display: inline-block;
    text-decoration: none;
    margin-top: 1.5rem;
    cursor: pointer;
}

.cta-button-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, var(--accent-gold), transparent, var(--accent-gold));
    border-radius: 30px;
    opacity: 0.2;
    z-index: -1;
    transition: all 0.3s ease;
}

.cta-button-container:hover .cta-button-glow {
    opacity: 1;
    filter: blur(30px);
    background: radial-gradient(circle, rgba(64, 192, 191, 1), transparent 75%);
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: linear-gradient(135deg, var(--deep-gold), var(--accent-gold), var(--bright-gold));
    background-size: 200% auto;
    color: #1A1A1A;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5), 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: shimmer 5s linear infinite;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.cta-button-container:hover .cta-button {
    transform: scale(1.05);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.8), 0 10px 25px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.8);
}

/* ANIMATIONS */
@keyframes breathe-glow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}

@keyframes breathe-animal {
    0% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 10px rgba(218, 165, 32, 0.3)) brightness(1.1); }
    100% { transform: scale(1.02) translateY(-10px); filter: drop-shadow(0 0 25px rgba(218, 165, 32, 0.6)) brightness(1.3); }
}

@keyframes rotate-slow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes button-pulse {
    0% { box-shadow: 0 0 20px rgba(64, 192, 191, 0.4); }
    50% { box-shadow: 0 0 40px rgba(64, 192, 191, 0.7); }
    100% { box-shadow: 0 0 20px rgba(64, 192, 191, 0.4); }
}

@keyframes drift {
    from { background-position: 0 0; }
    to { background-position: 150px 150px; }
}

@keyframes pulse-glow {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* Services */
.services {
    padding: 120px 0;
    background: transparent;
    position: relative;
    z-index: 5;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    text-align: center;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Wave animation inside cards */
.service-card::after {
    content: '';
    position: absolute;
    bottom: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(46, 139, 87, 0.1), transparent 50%);
    opacity: 0;
    transition: all 0.8s ease;
    transform: translateY(50%) rotate(0deg);
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
    transform: translateY(0%) rotate(180deg);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-green), var(--accent-teal), transparent);
    opacity: 0.5;
    box-shadow: 0 0 15px var(--accent-green);
    transition: all 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
    height: 4px;
    box-shadow: 0 0 25px var(--accent-green);
}

.service-card:hover {
    border-color: rgba(46, 139, 87, 0.8); /* Green gradient hint */
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(46, 139, 87, 0.2);
    z-index: 10;
}

.service-media {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(64, 192, 191, 0.2);
}

.service-media img, .service-media video {
    width: 100%;
    height: auto;
    display: block;
}

.download-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-green));
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(46, 139, 87, 0.4);
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(46, 139, 87, 0.8);
}

/* =========================================
   ABOUT US SECTION
   ========================================= */
.about-section {
    padding: 120px 0;
    position: relative;
    z-index: 5;
    background: linear-gradient(to bottom, transparent, rgba(20, 20, 20, 0.8), transparent);
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    flex: 1;
    position: relative;
}

.founder-img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    border: 1px solid rgba(64, 192, 191, 0.4);
    box-shadow: 0 0 30px rgba(64, 192, 191, 0.3);
    position: relative;
    z-index: 2;
    animation: float-hologram 6s ease-in-out infinite;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(64, 192, 191, 0.2), transparent 60%);
    z-index: 0;
    animation: pulse-aura 4s ease-in-out infinite alternate;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: 10%; left: 0; right: 0;
    height: 2px;
    background: var(--accent-teal);
    box-shadow: 0 0 15px var(--accent-teal);
    z-index: 3;
    opacity: 0.5;
    animation: scanline 4s linear infinite;
}

@keyframes float-hologram {
    0% { transform: translateY(0); box-shadow: 0 0 30px rgba(64, 192, 191, 0.3); }
    50% { transform: translateY(-15px); box-shadow: 0 0 50px rgba(218, 165, 32, 0.5); border-color: rgba(218, 165, 32, 0.5); }
    100% { transform: translateY(0); box-shadow: 0 0 30px rgba(64, 192, 191, 0.3); }
}

@keyframes pulse-aura {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

@keyframes scanline {
    0% { top: 5%; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { top: 95%; opacity: 0; }
}

.about-text {
    flex: 1;
}

.about-text p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.vision-box {
    background: rgba(46, 139, 87, 0.1);
    border-left: 4px solid var(--accent-green);
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
    margin-top: 2rem;
}

.vision-box h3 {
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.founder-name {
    margin-top: 2rem;
    color: var(--accent-gold) !important;
    font-weight: 600;
    font-style: italic;
}

/* =========================================
   BLOG / PUBLICATIONS SECTION
   ========================================= */
.blog-section {
    padding: 120px 0;
    position: relative;
    z-index: 5;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 12px;
    padding: 0;
    border: 1px solid rgba(64, 192, 191, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.blog-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(64, 192, 191, 0.2);
}

.blog-cover-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid rgba(64, 192, 191, 0.2);
}

.blog-cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-cover-wrapper img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h4 {
    color: var(--text-main);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.blog-card p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* =========================================
   ARTICLE MODAL (FULL SCREEN VIEWER)
   ========================================= */
.article-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.98);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow-y: auto;
    padding: 30px 15px;
}

.article-modal.active {
    display: block;
    opacity: 1;
}

.modal-close {
    position: fixed;
    top: 30px; right: 30px;
    font-size: 2rem;
    color: var(--accent-gold);
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.2);
}

.modal-control-btn {
    font-size: 1.5rem;
    color: var(--accent-gold);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.modal-control-btn:hover {
    background: rgba(218, 165, 32, 0.2);
    transform: rotate(180deg);
}

.modal-container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

.modal-header img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

.modal-body h1 {
    font-family: var(--font-serif);
    color: var(--accent-gold);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.modal-body .article-meta {
    color: var(--accent-teal);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: block;
}

.modal-body .article-text {
    color: var(--text-main);
    line-height: 1.8;
    font-size: 1.15rem;
}

.modal-body .article-text p {
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.8rem;
    color: var(--bright-gold);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal);
    font-size: 2rem;
    text-shadow: 0 0 15px rgba(64, 192, 191, 0.6);
    transition: all 0.5s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--bright-gold);
    text-shadow: 0 0 20px rgba(218, 165, 32, 0.8);
}

.service-card h3 {
    margin-bottom: 1rem;
    letter-spacing: 1px;
    color: var(--accent-gold);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
}

.service-card p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Footer matching the reference image layout */
footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(64, 192, 191, 0.2);
    background: #0d0d0d;
    position: relative;
    z-index: 5;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.contact-info p {
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info i {
    color: var(--accent-gold);
    width: 20px;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.world-map {
    width: 250px;
    height: 120px;
    background-image: url('https://www.transparenttextures.com/patterns/world-map.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    filter: invert(65%) sepia(45%) saturate(450%) hue-rotate(130deg) brightness(95%) contrast(90%);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-teal);
    border-radius: 50%;
    color: var(--accent-teal);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-teal);
    color: #000;
    box-shadow: 0 0 10px var(--accent-teal);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================= */

/* Mobile Toggle Styling */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--accent-gold);
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .about-content { flex-direction: column; text-align: center; }
    .about-image-wrapper { margin-bottom: 3rem; }
    .vision-box { border-left: none; border-top: 4px solid var(--accent-green); border-radius: 0 0 10px 10px; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: 0; right: 0;
        transform: translateX(100%);
        width: 70%; height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.mobile-active {
        transform: translateX(0);
    }

    .nav-links a { font-size: 1.2rem; }

    .hero h1 { font-size: 2.2rem; margin-bottom: 2rem; }
    .hero-label { font-size: 0.75rem; letter-spacing: 4px; }
    
    /* Reposition Animals for Mobile to avoid covering text */
    .monkey-wrapper { width: 50vw; top: 15%; left: -10%; opacity: 0.4; }
    .wolf-wrapper { width: 50vw; bottom: 5%; right: -10%; opacity: 0.4; }

    .footer-content { flex-direction: column; text-align: center; align-items: center; }
    .contact-info p { justify-content: center; }
    
    /* Modal full-screen for mobile */
    .modal-container { width: 100%; height: 100%; border-radius: 0; }
    .modal-body h1 { font-size: 2rem; }
    .modal-controls { top: 15px; right: 15px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .cta-button { padding: 1rem 2rem; font-size: 0.85rem; }
    .section-title h2 { font-size: 1.8rem; }
}

/* =========================================
   HORIZONTAL SLIDERS & CARD ANIMATIONS
   ========================================= */
.services-grid, .blog-grid {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    gap: 2rem;
    padding: 2rem 1.5rem 4rem 1.5rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Hide scrollbar for clean look but allow scrolling */
.services-grid::-webkit-scrollbar, .blog-grid::-webkit-scrollbar {
    height: 4px;
}
.services-grid::-webkit-scrollbar-thumb, .blog-grid::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
}

.service-card, .blog-card {
    flex: 0 0 350px;
    scroll-snap-align: center;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
}

/* Prevent horizontal cut-off for the last card */
.services-grid > div:last-child, .blog-grid > div:last-child {
    margin-right: 2rem;
}

@media (max-width: 768px) {
    .service-card, .blog-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =========================================
   FLAGSHIP CARD STYLING (RESPONSIVE)
   ========================================= */

.flagship-card {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    text-align: left;
    background: linear-gradient(145deg, rgba(11,15,25,0.9), rgba(15,23,42,0.8));
    border: 1px solid var(--accent-gold);
    padding: 3rem;
    margin-bottom: 2rem;
    gap: 3rem;
    box-sizing: border-box;
    width: 100%;
}

.flagship-text {
    flex: 1;
}

.flagship-text h3 {
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.flagship-text p {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    line-height: 1.6;
    font-size: 1.1rem;
}

.flagship-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-outline {
    background: transparent !important;
    border: 1px solid var(--accent-gold) !important;
    color: var(--accent-gold) !important;
}

.btn-outline:hover {
    background: var(--accent-gold) !important;
    color: #000 !important;
}

.flagship-icon {
    flex: 0 0 auto;
    text-align: center;
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    box-shadow: inset 0 0 50px rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.2);
}

.icon-circle i {
    font-size: 5rem;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.5));
}

@media (max-width: 768px) {
    .flagship-card {
        flex-direction: column-reverse;
        padding: 1.5rem;
        gap: 1.5rem;
        text-align: center;
    }
    
    .flagship-text h3 {
        font-size: 1.6rem;
    }
    
    .flagship-text p {
        font-size: 0.95rem;
    }
    
    .flagship-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 1rem;
    }
    
    .flagship-buttons .cta-button {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
    }
    
    .icon-circle {
        width: 80px;
        height: 80px;
    }
    
    .icon-circle i {
        font-size: 2.5rem;
    }
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(218, 165, 32, 0.6); border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(218, 165, 32, 0.9); }

/* Global Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
::-webkit-scrollbar-thumb { background: rgba(218, 165, 32, 0.6); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(218, 165, 32, 0.9); }
