/* --- START OF FULLY REVISED style.css --- */
:root {
    --bg-color: #0d0d0d;
    --primary-color: #1a1a1a;
    --accent-color: #007bff;
    --glow-color: rgba(0, 123, 255, 0.5);
    --text-color: #f0f0f0;
    --text-secondary: #a0a0a0;
}
/* ከርሰሩን እዚህ ጋር አናጠፋውም */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* እዚህ ጋር ብቻ እናጠፋዋለን */
body, a, button, input {
    cursor: none; 
}
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background-color: var(--bg-color); background-image: radial-gradient(circle at 50% 0%, rgba(30, 30, 30, 0.8) 0%, var(--bg-color) 70%); color: var(--text-color); overflow-x: hidden; }
h1, h2, h3 { font-family: 'Orbitron', sans-serif; }
h1 { font-size: 4rem; letter-spacing: 2px; white-space: nowrap; text-shadow: 0 0 15px rgba(255, 255, 255, 0.1); }
h2 { font-size: 3rem; margin-bottom: 50px; text-shadow: 0 0 15px rgba(255, 255, 255, 0.1); }
h3 { font-size: 1.2rem; margin-top: 15px; }
p { font-size: 1.1rem; line-height: 1.8; }
.cursor {
    width: 20px; /* የመነሻ መጠን */
    height: 20px;
    border: 1px solid var(--accent-color); /* ወይም ነጭ ማድረግ ትችላለህ: #fff */
    border-radius: 50%;
    position: fixed; /* ይህ በጣም ወሳኝ ነው! */
    pointer-events: none; /* ማውዙ ኤለመንቶችን እንዳይጋርድ */
    z-index: 99999 !important; /* ከሁሉም በላይ እንዲሆን */
    transform: translate(-50%, -50%); /* ማውዙን መሃል ላይ ለማድረግ */
    transition: width 0.3s, height 0.3s, background-color 0.3s, transform 0.1s;
    mix-blend-mode: difference; /* ከባግራውንድ ጋር ተለይቶ እንዲታይ (Optional) */
}
.cursor.hovered { 
    width: 50px; 
    height: 50px; 
    background-color: rgba(0, 123, 255, 0.2); 
    border-color: transparent;
    mix-blend-mode: normal;
}

@media (pointer: coarse) {
    .cursor { display: none !important; }
    body, a, button, input { cursor: auto !important; }
}

#page-wrapper { transition: transform 0.8s cubic-bezier(0.6, 0.05, 0.28, 0.91), opacity 0.8s ease; }
body.portfolio-open #page-wrapper { transform: scale(0.9) translateY(-5%); opacity: 0.3; pointer-events: none; }

/* ========================================= */
/* === NEW CONCEPT: SCI-FI EDGE HEADER === */
/* ========================================= */



.cta-button { background-color: var(--accent-color); color: white; padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s; box-shadow: 0 0 20px var(--glow-color); }
.cta-button:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 0 35px var(--glow-color); }
#hero { height: 100vh; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; text-align: center; }
.spline-container { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 1; }
.spline-container iframe { opacity: 0; transition: opacity 1s ease-in-out; }
#hero::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 60%; background: linear-gradient(to top, var(--bg-color) 30%, transparent); z-index: 2; pointer-events: none; }
.hero-content { position: absolute; bottom: 5%; left: 50%; transform: translateX(-50%); z-index: 3; width: 90%; max-width: 1200px; }
.hero-content p { margin-top: 20px; margin-bottom: 40px; }
.portfolio-section-container { position: absolute; top: 50%; right: 4%; transform: translateY(-50%); z-index: 5; display: flex; align-items: center; gap: 20px; }
.vertical-title { writing-mode: vertical-rl; transform: rotate(180deg); font-family: 'Orbitron', sans-serif; font-size: 1.2rem; letter-spacing: 2px; color: rgba(255, 255, 255, 0.5); transition: opacity 0.4s ease; }
.portfolio-cards { display: flex; flex-direction: column; gap: 20px; }
.p-card {
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid #444;
    border-radius: 50px;
    padding: 12px; /* ትንሽ እንዲያንስ */
    display: flex;
    align-items: center;
    width: 50px;  /* መጠኑን ቀነስነው */
    height: 50px; /* መጠኑን ቀነስነው */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* ለአኒሜሽኑ */
    overflow: hidden;
    opacity: 0;
    transform: translateX(50px);
}
.portfolio-section-container:hover .vertical-title {
    opacity: 0;
}

/* ኮንቴነሩ ላይ hover ሲደረግ ካርዱ እንዲሰፋ እና እንዲያበራ */
.portfolio-section-container:hover .p-card {
    width: 220px; /* የመስፊያው መጠን (እንደአስፈላጊነቱ አስተካክለው) */
    border-color: var(--accent-color);
    box-shadow: 0 0 25px var(--glow-color);
}
.p-card i {
    font-size: 1.5rem; /* የአይከኑን መጠን ቀነስነው */
    color: var(--text-color);
    transition: color 0.3s;
    min-width: 26px;
    text-align: center;
}

/* Hover ሲደረግ የአይከኑ ቀለም እንዲቀየር */
.portfolio-section-container:hover .p-card i {
    color: var(--accent-color);
}



/* ========================================= */
/* === NEW HEADER LAYOUT (LOGO + NAV) === */
/* ========================================= */

header {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    padding: 0 50px; /* በግራና ቀኝ ክፍተት */
    z-index: 2000;
    display: flex;
    justify-content: space-between; /* ግራ እና ቀኝ ይበትናቸዋል */
    align-items: center;
    pointer-events: none; /* መሃል ላይ ክፍተት እንዲኖር */
}

/* የግራው ቡድን (ሎጎ + ሜኑ) */
.header-left-group {
    display: flex;
    align-items: center;
    gap: 30px; /* በሎጎ እና በሜኑ መካከል ያለው ክፍተት */
    pointer-events: auto;
}

/* 1. LOGO (Smaller) */
.top-logo img {
    height: 30px; /* ሎጎውን አሳነስነው */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease;
    display: block;
}
.top-logo:hover img { transform: scale(1.1); }

/* 2. NAV DOCK (Now beside logo) */
.nav-dock {
    background: rgba(20, 20, 20, 0.8); /* መስታወት */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 25px; /* መጠኑን አሳነስነው */
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.dock-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.dock-links li a {
    color: #aaa;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem; /* ጽሁፉን አሳነስነው */
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
    text-transform: uppercase;
}

.dock-links li a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* 3. CONTACT BUTTON (Smaller & Top Right) */
.top-contact-btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    
    padding: 8px 20px; /* በተኑን አሳነስነው */
    border-radius: 50px;
    
    color: #fff;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem; /* ጽሁፍ ቀነስን */
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.top-contact-btn i {
    background: var(--accent-color);
    color: #000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.top-contact-btn:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--glow-color);
}

.top-contact-btn:hover i {
    transform: rotate(-45deg);
    background: #fff;
}

/* Mobile Menu */
.mobile-menu-trigger {
    display: none;
    pointer-events: auto;
    color: white;
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    header { padding: 0 20px; top: 20px; }
    .nav-dock { display: none; } /* በሞባይል ሜኑው ይጠፋል */
    .top-contact-btn { display: none; }
    .mobile-menu-trigger { display: block; }
    
    /* Mobile menu open state */
    .nav-dock.mobile-open {
        display: flex !important;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        border-radius: 0;
        padding: 20px;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        z-index: 1999;
    }
    .nav-dock.mobile-open .dock-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    /* በሞባይሎጎ ሎጎዋ ብቻት ይቀራላል */
    .header-left-group { width: 100%; justify-content: space-between; }
}

.card-label {
    white-space: nowrap; /* ጽሁፉ እንዳይሰበር */
    opacity: 0; /* በመጀመሪያ አይታይም */
    margin-left: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: opacity 0.4s ease 0.1s; /* አኒሜሽኑ ከትንሽ መዘግየት ጋር */
}

/* Hover ሲደረግ ጽሁፉ እንዲታይ */
.portfolio-section-container:hover .card-label {
    opacity: 1;
}
#hero.loaded .portfolio-cards .p-card:nth-child(1) { transform: translateX(0); opacity: 1; transition-delay: 0.4s; }
#hero.loaded .portfolio-cards .p-card:nth-child(2) { transform: translateX(0); opacity: 1; transition-delay: 0.6s; }
#hero.loaded .portfolio-cards .p-card:nth-child(3) { transform: translateX(0); opacity: 1; transition-delay: 0.8s; }
#hero.loaded .portfolio-cards .p-card:nth-child(4) { transform: translateX(0); opacity: 1; transition-delay: 1.0s; }
.content-wrapper { background-color: var(--bg-color); position: relative; z-index: 20; perspective: 1000px; }
.section, footer { padding: 120px 8%; text-align: center; }
.hidden { opacity: 0; transform: translateY(35px) rotateX(-10deg); transform-origin: top center; transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.25, 1, 0.5, 1); }
.show { opacity: 1; transform: translateY(0) rotateX(0); }
#services {
    height: 300vh;
    padding: 0;
    background-color: var(--bg-color); /* ዳራው ጥቁር መሆኑን እናረጋግጣለን */
    position: relative; /* ለ z-index እንዲሰራ */
    z-index: 3; /* ከሌሎች ከፍ ያለ z-index እንሰጠዋለን */
}
#services h2 { position: sticky; top: 0; z-index: 21; padding-top: 120px; padding-bottom: 20px; margin:0; background-color: var(--bg-color); }
.services-sticky-wrapper { height: 100vh; width: 100%; position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; }
.services-content-pane { display: flex; justify-content: center; align-items: center; width: 100%; position: relative; z-index: 10; padding-bottom: 50px; }
.service-card-sticky { position: absolute; background-color: var(--primary-color); padding: 50px; border-radius: 20px; border: 1px solid #333; display: flex; align-items: center; gap: 50px; width: 90%; max-width: 950px; text-align: left; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s; backdrop-filter: blur(5px); background: rgba(26, 26, 26, 0.8);}
.service-card-sticky.active { opacity: 1; visibility: visible; will-change: transform; }
.service-icon, .service-details > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.service-icon { transform: scale(0.7) rotate(-15deg); }
.service-card-sticky.active .service-icon { opacity: 1; transform: scale(1) rotate(0deg); transition-delay: 0.1s; }
.service-card-sticky.active .service-details h3 { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.service-card-sticky.active .service-details p { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.service-card-sticky.active .service-sub-tags { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.service-icon { background-color: #2a2a2a; border-radius: 20px; width: 200px; height: 200px; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.service-icon i { font-size: 6rem; background: linear-gradient(180deg, #b0b0b0, #404040); -webkit-background-clip: text; background-clip: text; color: transparent; }
.service-details { display: flex; flex-direction: column; }
.service-details h3 { font-size: 2.5rem; margin-top: 0; margin-bottom: 15px; }
.service-details p { font-size: 1.1rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 30px; }
.service-sub-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.sub-tag { background-color: transparent; border: 1px solid #444; color: var(--text-secondary); padding: 10px 20px; border-radius: 50px; text-align: center; transition: all 0.3s ease; }
.sub-tag:hover { background-color: var(--accent-color); color: white; border-color: var(--accent-color); }
.services-progress-nav { position: absolute; bottom: 50px; z-index: 22; }
.progress-dots { position: relative; z-index: 2; display: flex; list-style: none; gap: 20px; background-color: #111; padding: 8px; border-radius: 50px; border: 1px solid #333; }
.progress-nav-item { width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: color 0.3s ease; }
.progress-nav-item i { font-size: 1.5rem; color: #666; transition: color 0.3s ease; }
.progress-nav-item.active i { color: #fff; }
.progress-highlight { position: absolute; z-index: 1; top: 8px; width: 50px; height: 50px; background-color: var(--accent-color); border-radius: 50%; transition: left 0.5s cubic-bezier(0.65, 0, 0.35, 1); }
.service-background-images { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; perspective: 1000px; perspective-origin: 50% 150%; }
.background-image-pair { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1); }
.background-image-pair.active { opacity: 1; }
.bg-img-left, .bg-img-right { position: absolute; bottom: 0; max-height: 80vh; width: auto; opacity: 0; transform: translateY(80px) scale(0.9) rotate(5deg); transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), opacity 1.2s ease; mask-image: linear-gradient(to top, transparent 5%, black 40%); -webkit-mask-image: linear-gradient(to top, transparent 5%, black 40%); }
.bg-img-left { left: -3%; }
.bg-img-right { right: -3%; transform: translateY(80px) scale(0.9) rotate(-5deg); }
.background-image-pair.active .bg-img-left, .background-image-pair.active .bg-img-right { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
.background-image-pair.active .bg-img-left { transition-delay: 0.2s; }
.background-image-pair.active .bg-img-right { transition-delay: 0.3s; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 50px; max-width: 1200px; margin: 50px auto 0; }
.team-member { text-align: center; }
.team-member img { 
    width: 150px; 
    height: 150px; 
    border-radius: 50%; 
    
    object-fit: cover; 
    /* top center የነበረውን ወደዚህ ቀይረው */
    object-position: center 20%;  /* ይህ ማለት፡ ፊታቸውን ትንሽ ዝቅ አድርጎ መሃል ላይ ያደርገዋል */
    
    filter: grayscale(100%); 
    border: 3px solid #444; 
    transition: all 0.3s ease; 
    margin-bottom: 15px;
}

.team-member:hover img { 
    transform: scale(1.05); 
    border-color: var(--accent-color); 
    box-shadow: 0 0 25px var(--glow-color); 
    filter: grayscale(0%); /* Hover ሲደረግ ቀለሙ ይመለሳል (አሪፍ ኢፌክት ነው) */
}
.team-member:hover img { transform: scale(1.05); border-color: var(--accent-color); box-shadow: 0 0 25px var(--glow-color); }
.team-member p { font-size: 0.9rem; color: #aaa; margin-top: 5px; }
#clients { background-color: var(--primary-color); }

.contact-details { max-width: 800px; margin: 0 auto; text-align: left; }
.contact-details p { font-size: 1.2rem; margin-bottom: 20px; display: flex; align-items: center; }
.contact-details i { color: var(--accent-color); font-size: 1.5rem; margin-right: 20px; width: 30px; text-align: center; }
footer { padding: 40px; text-align: center; background-color: var(--primary-color); }
.portfolio-view { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; background: radial-gradient(circle at 50% 50%, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 1) 90%); opacity: 1; transition: opacity 0.6s ease, transform 0.6s ease; }
.portfolio-view.hidden { opacity: 0; pointer-events: none; transform: scale(1.05); }
.close-portfolio-view { position: absolute; top: 30px; right: 40px; background: none; border: none; font-size: 3rem; color: white; opacity: 0.7; transition: opacity 0.3s, transform 0.3s; z-index: 10; }
.close-portfolio-view:hover { opacity: 1; transform: rotate(90deg); }
#portfolio-grid-view { perspective: 1000px; }
#grid-title { position: absolute; top: 5%; font-size: 2.5rem; opacity: 0.8; }
#grid-container { width: 100%; height: 80%; overflow-y: auto; overflow-x: hidden; padding: 20px 0; }
#grid-container::-webkit-scrollbar { display: none; }
#grid-container { -ms-overflow-style: none; scrollbar-width: none; }
.grid-content { padding: 0 8%; }
.grid-item-hud { position: relative; opacity: 0; transform: rotateX(-90deg) translateY(100px); transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s ease; overflow: hidden; }
.grid-item-hud.visible { opacity: 1; transform: rotateX(0deg) translateY(0); }
.grid-item-hud .hud-image { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(0% 0%, 95% 0%, 100% 10%, 100% 100%, 10% 100%, 0% 90%); }
.grid-item-hud::before, .grid-item-hud::after { content: ''; position: absolute; inset: -3px; background: linear-gradient(45deg, var(--accent-color), #00d9ff); z-index: -1; clip-path: polygon(0% 0%, 95% 0%, 100% 10%, 100% 100%, 10% 100%, 0% 90%); opacity: 0; transition: opacity 0.4s ease; }
.grid-item-hud::after { filter: blur(10px); }
.grid-item-hud:hover::before, .grid-item-hud:hover::after { opacity: 1; }
.grid-item-hud:hover { transform: scale(1.05) !important; }
#portfolio-viewer { perspective: 2500px; }
#viewer-title { position: absolute; top: 5%; font-size: 2.5rem; opacity: 0.8; }
.carousel-container { width: 100%; height: 70vh; display: flex; align-items: center; justify-content: center; }
.portfolio-carousel { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; }
.portfolio-item-3d { position: absolute; left: 0; right: 0; margin: auto; width: 60vw; max-width: 900px; height: 34vw; max-height: 510px; background-size: cover; background-position: center; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.2); box-shadow: 0 20px 50px rgba(0,0,0,0.6); -webkit-box-reflect: below 15px linear-gradient(transparent, transparent, rgba(0,0,0,0.5)); transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, filter 0.6s ease; }
.carousel-nav { position: absolute; bottom: 5%; display: flex; gap: 30px; }
.carousel-nav button { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); color: white; width: 60px; height: 60px; border-radius: 50%; font-size: 1.5rem; transition: all 0.3s ease; }
.carousel-nav button:hover { background: var(--accent-color); border-color: var(--accent-color); box-shadow: 0 0 20px var(--glow-color); }
.back-to-grid { position: absolute; top: 40px; left: 40px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); color: white; padding: 10px 20px; border-radius: 30px; font-weight: 500; transition: all 0.3s; z-index: 10; }
.back-to-grid:hover { background: var(--accent-color); border-color: var(--accent-color); }
.back-to-grid i { margin-right: 10px; }
#back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background-color: var(--accent-color); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; text-decoration: none; font-size: 20px; transition: opacity 0.3s, transform 0.3s; }
#back-to-top.hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
.grid-project-title { grid-column: 1 / -1; text-align: left; font-family: 'Orbitron', sans-serif; font-size: 1.5rem; color: var(--accent-color); margin-top: 40px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #444; opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.grid-project-title:first-child { margin-top: 0; }
.grid-project-title.visible { opacity: 1; transform: translateY(0); }
.project-collage-grid { display: grid; grid-template-columns: repeat(24, 1fr); grid-auto-rows: 6vw; grid-auto-flow: dense; gap: 15px; margin-bottom: 90px; }
.grid-item-hud .hud-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.grid-item-hud:hover .hud-image { transform: scale(1.05); }
.pattern-1 .grid-item-hud:nth-of-type(5n + 1) { grid-column: span 14; grid-row: span 5; }
.pattern-1 .grid-item-hud:nth-of-type(5n + 2) { grid-column: span 10; grid-row: span 3; }
.pattern-1 .grid-item-hud:nth-of-type(5n + 3) { grid-column: span 10; grid-row: span 2; }
.pattern-1 .grid-item-hud:nth-of-type(5n + 4) { grid-column: span 12; grid-row: span 3; }
.pattern-1 .grid-item-hud:nth-of-type(5n + 5) { grid-column: span 12; grid-row: span 3; }
.pattern-2 .grid-item-hud:nth-of-type(4n + 1) { grid-column: span 9; grid-row: span 6; }
.pattern-2 .grid-item-hud:nth-of-type(4n + 2) { grid-column: span 15; grid-row: span 3; }
.pattern-2 .grid-item-hud:nth-of-type(4n + 3) { grid-column: span 8; grid-row: span 3; }
.pattern-2 .grid-item-hud:nth-of-type(4n + 4) { grid-column: span 7; grid-row: span 3; }
.pattern-3 .grid-item-hud:nth-of-type(6n + 1) { grid-column: span 12; grid-row: span 3; }
.pattern-3 .grid-item-hud:nth-of-type(6n + 2) { grid-column: span 12; grid-row: span 3; }
.pattern-3 .grid-item-hud:nth-of-type(6n + 3) { grid-column: span 8; grid-row: span 3; }
.pattern-3 .grid-item-hud:nth-of-type(6n + 4) { grid-column: span 8; grid-row: span 3; }
.pattern-3 .grid-item-hud:nth-of-type(6n + 5) { grid-column: span 8; grid-row: span 3; }
.pattern-3 .grid-item-hud:nth-of-type(6n + 6) { grid-column: span 24; grid-row: span 2; }
.project-collage-grid .grid-item-hud { grid-column: span 12; grid-row: span 3; }
#portfolio-narrative { padding-top: 100px; padding-bottom: 100px; }
.narrative-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 150px; }
.narrative-project { display: grid; grid-template-columns: repeat(12, 1fr); gap: 30px; align-items: center; opacity: 0; transform: translateY(80px); transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.narrative-project.is-visible { opacity: 1; transform: translateY(0); }
.narrative-image-container { grid-column: 1 / span 7; grid-row: 1; position: relative; border-radius: 15px; overflow: hidden; }
.narrative-text-container { grid-column: 8 / -1; grid-row: 1; text-align: left; z-index: 2; }
.narrative-project:nth-child(even) .narrative-image-container { grid-column: 6 / -1; }
.narrative-project:nth-child(even) .narrative-text-container { grid-column: 1 / span 5; text-align: right; }
.narrative-project-category { font-family: 'Poppins', sans-serif; font-weight: 500; color: var(--accent-color); margin-bottom: 10px; display: block; }
.narrative-project-title { font-family: 'Orbitron', sans-serif; font-size: 2.5rem; margin-bottom: 20px; }
.narrative-project-description { color: var(--text-secondary); line-height: 1.7; }
.narrative-image-container .liquid-effect-image { width: 100%; height: 450px; object-fit: cover; }

/* --- NEW 'ABOUT US' STYLES --- */
#about {
    position: sticky;
    top: 0;
    height: 100vh; /* ሲገለጥ ሙሉ ስክሪን እንዲሸፍን */
    padding: 120px 0;
    z-index: 2; /* ከ #services በታች እንዲሆን */

    /* ከበስተጀርባው ያለው ምስልና ኢፌክት እንዳለ ይቀጥላል */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    overflow: hidden;
}
.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;

    /* ---> እነዚህን ሁለት መስመሮች ጨምር <--- */
    position: relative; /* ከላይ ካለው overlay በላይ እንዲታይ */
    z-index: 2;         /* ከ z-index: 1 በላይ እንዲሆን */
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 
     * ዋናው ለውጥ እዚህ ላይ ነው፦
     * ከግራ ወደ ቀኝ የሚሄድ linear-gradient እንጠቀማለን።
     * በግራ በኩል ምስሉ በትንሹ እንዲታይ `rgba(13, 13, 13, 0.8)` እንጠቀማለን።
     * ወደ ቀኝ ሲሄድ ሙሉ በሙሉ ወደ ጥቁር (`#0d0d0d`) ይቀየራል።
     */
    background: linear-gradient(
        to right, 
        rgba(13, 13, 13, 0.8) 5%,  /* በግራ በኩል ያለው ጥቁረት (ምስሉን በትንሹ ያሳያል) */
        #0d0d0d 50%                 /* ከ65% በኋላ ሙሉ በሙሉ ጥቁር ይሆናል */
    );

    /* የድብዘዛውን መጠን (blur) ትንሽ እንጨምረዋለን */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    z-index: 1;
}

.about-visual { position: relative; border-radius: 15px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.about-visual::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, var(--glow-color), transparent 50%); opacity: 0.5; mix-blend-mode: overlay; z-index: 2; }
.about-visual img { width: 100%; display: block; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.about-visual:hover img { transform: scale(1.05); }
.about-content { text-align: left; }
.about-content .pre-title { font-weight: 600; color: var(--accent-color); margin-bottom: 10px; display: block; letter-spacing: 1px; }
.about-content h2 { text-align: left; margin-bottom: 25px; }
.about-text { max-width: none; margin: 0 0 40px 0; color: var(--text-secondary); }
.about-pillars { display: flex; flex-direction: column; gap: 30px; }
.pillar { display: flex; align-items: flex-start; gap: 20px; }
.pillar-icon { flex-shrink: 0; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #2a2a2a; border: 1px solid #444; transition: all 0.3s ease; }
.pillar-icon i { font-size: 1.5rem; color: var(--accent-color); }
.pillar:hover .pillar-icon { transform: scale(1.1); box-shadow: 0 0 20px var(--glow-color); }
.pillar-text h3 { margin-top: 0; margin-bottom: 5px; font-size: 1.3rem; font-family: 'Poppins', sans-serif; font-weight: 600; }
.pillar-text p { font-size: 0.95rem; line-height: 1.6; color: var(--text-secondary); }
.glitch { position: relative; color: var(--text-color); text-shadow: 0 0 5px var(--glow-color); }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-color); overflow: hidden; }
.glitch::before { left: 2px; text-shadow: -2px 0 #ff00c1; clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); animation: glitch-anim-1 4s infinite linear alternate-reverse; }
.glitch::after { left: -2px; text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1; clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%); animation: glitch-anim-2 4s infinite linear alternate-reverse; }
@keyframes glitch-anim-1 { 0% { clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%); } 10% { clip-path: polygon(0 75%, 100% 75%, 100% 75%, 0 75%); } 20% { clip-path: polygon(0 59%, 100% 59%, 100% 90%, 0 90%); } 30% { clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%); } 40% { clip-path: polygon(0 34%, 100% 34%, 100% 54%, 0 54%); } 50% { clip-path: polygon(0 36%, 100% 36%, 100% 51%, 0 51%); } 60% { clip-path: polygon(0 8%, 100% 8%, 100% 33%, 0 33%); } 70% { clip-path: polygon(0 92%, 100% 92%, 100% 93%, 0 93%); } 80% { clip-path: polygon(0 42%, 100% 42%, 100% 77%, 0 77%); } 90% { clip-path: polygon(0 80%, 100% 80%, 100% 80%, 0 80%); } 100% { clip-path: polygon(0 47%, 100% 47%, 100% 68%, 0 68%); } }
@keyframes glitch-anim-2 { 0% { clip-path: polygon(0 78%, 100% 78%, 100% 99%, 0 99%); } 10% { clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%); } 20% { clip-path: polygon(0 24%, 100% 24%, 100% 56%, 0 56%); } 30% { clip-path: polygon(0 29%, 100% 29%, 100% 86%, 0 86%); } 40% { clip-path: polygon(0 94%, 100% 94%, 100% 94%, 0 94%); } 50% { clip-path: polygon(0 4%, 100% 4%, 100% 45%, 0 45%); } 60% { clip-path: polygon(0 24%, 100% 24%, 100% 51%, 0 51%); } 70% { clip-path: polygon(0 3%, 100% 3%, 100% 9%, 0 9%); } 80% { clip-path: polygon(0 70%, 100% 70%, 100% 71%, 0 71%); } 90% { clip-path: polygon(0 88%, 100% 88%, 100% 93%, 0 93%); } 100% { clip-path: polygon(0 3%, 100% 3%, 100% 99%, 0 99%); } }

/* --- SPLINE SHOWCASE STYLES --- */
#spline-showcase {
    padding: 0;
    height: 100vh;
    max-height: 900px;
    position: relative;
    overflow: hidden;
}
spline-viewer {
    width: 100%;
    height: 100%;
}
#spline-showcase::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%; /* የሽፋኑን ቁመት (ሎጎውን በደንብ እንዲሸፍን) */
    background: linear-gradient(to top, var(--bg-color) 20%, transparent);
    z-index: 4; /* ከስፕላይኑ በላይ እንዲሆን */
    pointer-events: none; /* መዳፊትን እንዳይከለክል */
}
/* --- MOBILE RESPONSIVE STYLES --- */
@media (pointer: coarse), (max-width: 1024px) {
    * { cursor: auto; }
    .cursor { display: none !important; }
}

@media (max-width: 768px) {
    body { cursor: auto; }
    h1 { font-size: 2.1rem; white-space: normal; line-height: 1.25; }
    h2 { font-size: 2.2rem; }
    p { font-size: 0.95rem; }
    .section, footer { padding: 80px 5%; }
    header { padding: 15px 5%; }


    #hero { height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 120px 0 40px 0; position: relative; overflow: hidden; text-align: center; }
    .spline-container { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; overflow: hidden; }
    .spline-container iframe { position: absolute; width: 140%; height: 100%; left: -20%; top: 0; transform: scale(0.95) translateY(-10%); transform-origin: center center; }
    .hero-content { position: relative; z-index: 3; width: 95%; margin: 0 auto 30px auto; }
    .hero-content p { margin-bottom: 20px; }
    .portfolio-section-container { position: relative; top: auto; right: auto; transform: none; flex-direction: column; margin: 0 auto; width: 90%; gap: 15px; z-index: 5; }
    .vertical-title { display: none; }
    .portfolio-cards { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 15px; }
    .p-card { width: 200px; height: auto; opacity: 1; transform: none; transition: none; border-color: var(--accent-color); box-shadow: 0 0 15px var(--glow-color); }
    .p-card i { color: var(--accent-color); }
    .card-label { opacity: 1; }
    .portfolio-section-container:hover .p-card { width: 200px; }
    #services { height: auto; }
    #services h2 { position: relative; padding-top: 0; }
    .services-sticky-wrapper { position: relative; height: auto; top: auto; padding: 20px 0; }
    .services-content-pane { display: flex; flex-direction: column; gap: 40px; padding-bottom: 0; }
    .service-card-sticky { position: relative; opacity: 1; visibility: visible; flex-direction: column; text-align: center; gap: 20px; padding: 30px; }
    .service-icon, .service-details > * { opacity: 1; transform: none; }
    .service-icon { width: 120px; height: 120px; }
    .service-icon i { font-size: 4rem; }
    .service-details { text-align: center; }
    .service-details h3 { font-size: 1.8rem; }
    .services-progress-nav { display: none; }
    .service-background-images {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 2;
        pointer-events: none;
    }
    .background-image-pair {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transform: none !important;
        transition: opacity 0.8s ease-in-out;
    }
    .background-image-pair.active {
        opacity: 1;
    }
    .bg-img-left, .bg-img-right {
        position: absolute;
        top: 50% !important;
        left: 50% !important;
        bottom: auto !important;
        right: auto !important;
        transform: translate(-50%, -50%) scale(1.1) !important;
        max-height: 45vh !important;
        width: auto !important;
        opacity: 0 !important;
        transition: opacity 0.8s ease-in-out, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1) !important;
        mask-image: radial-gradient(circle, black 30%, transparent 80%) !important;
        -webkit-mask-image: radial-gradient(circle, black 30%, transparent 80%) !important;
        filter: brightness(0.35) contrast(1.2) !important;
    }
    .bg-img-right {
        display: none !important;
    }
    .background-image-pair.active .bg-img-left {
        opacity: 0.22 !important;
        transform: translate(-50%, -50%) scale(1.3) !important;
    }
    .about-container { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { max-width: 80%; margin: 0 auto; }
    .about-content h2 { text-align: center; }
    #spline-showcase { display: none; }
    .team-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 30px; }
    .team-member img { width: 120px; height: 120px; }
    .contact-details p { font-size: 1rem; flex-direction: column; align-items: center; gap: 10px; }
    .contact-details i { margin-right: 0; }
    #grid-title, #viewer-title { font-size: 1.5rem; text-align: center; padding: 0 10px; }
    .close-portfolio-view { top: 15px; right: 15px; font-size: 2.5rem; }
    .back-to-grid { top: 20px; left: 20px; padding: 8px 15px; }
    .project-collage-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 15px; }
    .project-collage-grid .grid-item-hud, .pattern-1 .grid-item-hud:nth-of-type(n), .pattern-2 .grid-item-hud:nth-of-type(n), .pattern-3 .grid-item-hud:nth-of-type(n) { grid-column: auto; grid-row: auto; height: 60vw; }
    #portfolio-viewer { perspective: 1000px; }
    .carousel-container { height: 60vh; }
    .portfolio-item-3d { width: 90vw; height: 55vw; -webkit-box-reflect: unset; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
    .carousel-nav { bottom: 10%; }
    .narrative-project { grid-template-columns: 1fr; gap: 20px; }
    .narrative-image-container, .narrative-project:nth-child(even) .narrative-image-container { grid-column: 1 / -1; grid-row: 1; }
    .narrative-text-container, .narrative-project:nth-child(even) .narrative-text-container { grid-column: 1 / -1; grid-row: 2; text-align: center; padding: 20px; background: rgba(0,0,0,0.3); border-radius: 10px; }
    .narrative-project-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .cta-button { padding: 10px 25px; font-size: 0.9rem; }
    .p-card { width: 100%; justify-content: center; }
    .portfolio-cards { width: 100%; }
    .service-sub-tags { grid-template-columns: 1fr; }
    .about-visual { max-width: 100%; }
}

/* --- በ style.css መጨረሻ ላይ የሚጨመር --- */

/* ABOUT US SLIDESHOW STYLES */
.about-visual {
    position: relative; /* ለኮንትሮሎቹ አቀማመጥ */
    overflow: hidden; /* ከኮንቴነሩ ውጪ ያሉ ነገሮችን ለመደበቅ */
}

.slideshow-container {
    width: 100%;
    padding-top: 66.66%; /* ለ 3:2 aspect ratio (እንደ ምስሎችህ አስተካክለው) */
    position: relative;
    background-color: #1a1a1a;
    border-radius: 15px;
}

.slideshow-container .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 15px;
}

.slideshow-container .slide.active {
    opacity: 1;
}

.slideshow-controls {
    position: absolute;
    top: 50%;
    left: 15px;
    right: 15px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none; /* አዝራሮቹ ብቻ እንዲነኩ */
}

.slideshow-controls button {
    pointer-events: all; /* አዝራሮቹ እንዲነኩ ማድረግ */
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-controls button:hover {
    background: rgba(0, 0, 0, 0.7);
}

#spline-showcase,
#team,
#clients,
#contact,
footer {
    position: relative; /* ለ z-index እንዲሰራ */
    z-index: 3; /* ከ #about ክፍል በላይ እንዲሆኑ */
    background-color: var(--bg-color); /* ከስር ያለውን እንዳያሳዩ */
}

/* --- NEW CLIENT SCROLLER STYLES --- */
.client-scroller-container {
    max-width: 1400px;
    margin: 0 auto;
    /* በዳር በኩል ሎጎዎቹ እንዲደበዝዙ ለማድረግ */
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}

.scroller {
    overflow: hidden;
}

.scroller__inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px; /* በሎጎዎች መካከል ያለው ክፍተት */
    padding: 20px 0;
    width: max-content; /* ይዘቱ እንዳይሰበር */
}

/* === የማይንቀሳቀስ አኒሜሽኑን እንፈጥራለን === */
@keyframes scroll {
    to {
        transform: translateX(-50%);
    }
}

/* === አኒሜሽኑን ለሁለቱ ረድፎች እንሰጣለን === */
.scroller[data-direction="left"] .scroller__inner {
    animation: scroll 60s linear infinite; /* የፍጥነቱ መጠን (በሰከንድ) */
}

.scroller[data-direction="right"] .scroller__inner {
    animation: scroll 60s linear infinite reverse; /* ወደ ተቃራኒው አቅጣጫ እንዲሄድ */
}

/* === ለእያንዳንዱ ሎጎ የጠየከው የሚያምር ሳጥን === */
.client-logo-item {
    height: 90px; /* የሳጥኑ ቁመት */
    width: 180px; /* የሳጥኑ ስፋት */
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(35, 35, 35, 0.5); /* ትንሽ ድብዘዛ ያለው ዳራ */
    border: 1px solid #444; /* የሳጥኑ ድንበር */
    border-radius: 12px; /* የሳጥኑን ጠርዝ ክብ ለማድረግ */
    transition: background 0.3s ease;
}

.client-logo-item:hover {
    background: rgba(50, 50, 50, 0.8); /* ሲነካ ቀለሙ እንዲደምቅ */
}

.client-logo-item img {
    max-width: 80%;
    max-height: 50px;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.client-logo-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* --- DYNAMIC SHOWCASE SECTION --- */
#dynamic-showcase {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    
    /* 1. ጠንካራ የጀርባ ቀለም መስጠት (ይህ ነው ዋናው መፍትሄ!) */
    background-color: var(--bg-color); 
    
    /* 2. ከሌሎች ሴክሽኖች በላይ እንዲሆን ማድረግ */
    z-index: 10; 
    
    /* 3. Transition ለቀለም መቀየር */
    transition: background-color 0.6s ease;
}
body.light-theme #dynamic-showcase {
    background-color: #ffffff; /* ሴክሽኑ ራሱ ነጭ መሆን አለበት */
}

/* ይሄ Class በ JS ሲጨመር ባግራውንድ ነጭ ይሆናል */
body.light-theme {
    --bg-color: #ffffff;
    --text-color: #111111;
    --text-secondary: #444444;
    --accent-color: #0056b3; /* ትንሽ ጠቆር ያለ ሰማያዊ ለነጭ ዳራ */
}

/* Light Theme ሲሆን የናቭባር እና የሌሎች ኤለመንቶች ቀለም */
body.light-theme header {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid #eee;
}
body.light-theme nav ul li a { color: #111; }
body.light-theme .logo img { filter: invert(1); } /* ሎጎው ጥቁር እንዲሆን */
body.light-theme h2, body.light-theme h1, body.light-theme p { color: #111; text-shadow: none; }

/* Showcase Header */
.showcase-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.showcase-title {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 900;
}

.cta-button.dark-btn {
    background-color: #111;
    color: #fff;
    margin-top: 20px;
    display: inline-block;
}

body.light-theme .cta-button.dark-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* Marquee (የሚንቀሳቀሱ ምስሎች) Styles */
.marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform: rotate(-2deg); /* ቪዲዮው ላይ እንዳለው ትንሽ ለማዘመም */
    width: 110%; /* ከስክሪን እንዲሰፋ */
    margin-left: -5%;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 30px;
}

.marquee-track, .marquee-track-reverse {
    display: flex;
    gap: 30px;
    flex-shrink: 0;
    width: max-content;
}

/* አኒሜሽን - ወደ ግራ */
.marquee-track {
    animation: scrollLeft 40s linear infinite;
}

/* አኒሜሽን - ወደ ቀኝ */
.marquee-track-reverse {
    animation: scrollRight 40s linear infinite;
}

.showcase-img {
    width: 250px;
    height: 350px; /* Portrait style (እንደ ቪዲዮው) */
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.showcase-img:hover {
    transform: scale(1.05);
    z-index: 2;
}

/* Keyframes */
@keyframes scrollLeft {
    to { transform: translateX(calc(-100% - 30px)); }
}

@keyframes scrollRight {
    from { transform: translateX(calc(-100% - 30px)); }
    to { transform: translateX(0); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .showcase-title { font-size: 2.5rem; }
    .showcase-img { width: 180px; height: 250px; }
    .marquee-wrapper { transform: rotate(0deg); width: 100%; margin-left: 0; }
}

.marquee-track, .marquee-track-reverse {
    display: flex;
    gap: 30px;
    flex-shrink: 0;
    width: max-content;
    
    /* --- ይህንን ጨምር (Performance Fix) --- */
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    /* ------------------------------------- */
}



/* --- CURSOR FIX --- */
.cursor {
    z-index: 99999 !important; /* ከሁሉም ነገር በላይ እንዲሆን */
    pointer-events: none; /* ክሊክ እንዳይከለክል */
}

/* ሄደሩ ከርሰሩን እንዳይጋርድ */
header {
    cursor: none; /* ሄደሩ ላይ ሲሆንም ከርሰሩ እንዳይጠፋ */
}
.nav-dock, .fixed-contact, .logo, a, button {
    cursor: none; /* ለሁሉም ሊንኮች */
}

/* ========================================= */
/* === TRIDENT CINEMATIC LOADER STYLES === */
/* ========================================= */

#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999; /* ከሁሉም በላይ */
    background-color: #050505;
    display: block; /* መጀመሪያ ላይ ይታያል */
}

/* Backgrounds */
#bg-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.25;
    filter: grayscale(100%) contrast(120%);
    transition: transform 0.2s ease-out;
}

.bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.1);
}

.bg-image.active {
    opacity: 1;
    transform: scale(1);
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.3) 0%, #000 100%);
    z-index: 1;
}

/* 3D Canvas */
#canvas-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10;
    cursor: grab;
}
#canvas-container:active { cursor: grabbing; }

/* Text UI */
.info-ui {
    position: absolute;
    bottom: 12%; 
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 20;
    width: 90%;
    max-width: 800px;
    pointer-events: none;
    text-shadow: 0 5px 15px rgba(0,0,0,1);
}

.fact-title {
    font-family: 'Noto Serif Ethiopic', 'Oswald', serif;
    font-weight: 700;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    letter-spacing: 1px;
}

.fact-desc {
    font-family: 'Noto Serif Ethiopic', 'Poppins', serif;
    font-size: 1.1rem;
    color: #ddd;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.2s;
}

.active-text .fact-title, 
.active-text .fact-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Progress Bar */
.progress-container {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 4px;
    background: #111;
    z-index: 30;
}
.progress-bar {
    height: 100%;
    background: #fff;
    width: 0%;
    box-shadow: 0 0 15px rgba(255,255,255,0.8);
    transition: width 0.1s linear;
}

.mouse-hint {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 0.7rem;
    color: white;
    opacity: 0.5;
    z-index: 25;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 5px 10px;
    border-radius: 20px;
    font-family: 'Oswald', sans-serif;
}

/* ሞባይል ሪስፖንሲቭ */
@media (max-width: 768px) {
    .fact-title { font-size: 1.5rem; margin-bottom: 5px; }
    .fact-desc { font-size: 0.9rem; line-height: 1.4; }
    .info-ui { width: 95%; bottom: 15%; }
    .mouse-hint { display: none; }
}

