/* akuru.css - Custom Styling for the Interactive Menu */

/* Prevent scrolling while the menu is open (controlled by JS later) */
body.menu-open {
    overflow: hidden;
}

/* --- MAGNETIC MENU BUTTON --- */
.menu-toggler-wrapper {
    position: fixed;
    top: 1.5em;
    right: 1.5em;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.menu-toggler {
    position: relative;
    width: 120px;
    height: 60px;
    background: #0f0f0f;
    border-radius: 60px;
    display: flex;
    align-items: center;
    transition: width 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Dark mode adjustment for the button */
.dark .menu-toggler {
    background: #1f2937;
}

.menu-toggler.opened { 
    width: 60px; 
}

.menu-copy { 
    position: absolute;
    left: 26px;
    color: #fff; 
    text-transform: uppercase; 
    font-size: 12px;
    font-weight: 600;
    transition: left 0.4s ease, opacity 0.3s ease;
}

/* Shift text slightly on hover */
.menu-toggler:hover .menu-copy {
    left: 20px;
}

.menu-toggler.opened .menu-copy { 
    opacity: 0; 
}

/* The circular icon area holding the hamburger lines */
.menu-toggle-icon {
    position: absolute;
    right: 0;
    width: 60px;
    height: 60px;
    background: #00C853; 
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Hide the green circle down to a tiny dot initially */
    clip-path: circle(12% at 50% 50%);
    transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* The Hamburger Lines */
/* Expand the circle on hover */
.menu-toggler:hover .menu-toggle-icon,
.menu-toggler.opened .menu-toggle-icon {
    clip-path: circle(50% at 50% 50%);
}

.hamburger {
    position: relative;
    width: 24px;
    height: 24px;
    opacity: 0; /* Hide lines initially */
    transition: opacity 0.4s ease;
}

/* Show lines on hover */
.menu-toggler:hover .hamburger,
.menu-toggler.opened .hamburger {
    opacity: 1;
}

.menu-bar {
    width: 100%;
    height: 2px;
    background: #fff; /* White lines on green background */
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.menu-bar[data-position="top"] { 
    top: 6px; 
}

.menu-bar[data-position="bottom"] { 
    bottom: 6px; 
}

/* Hamburger to 'X' animation */
.menu-toggler.opened .menu-bar[data-position="top"] { 
    transform: translateY(5px) rotate(45deg); 
}
.menu-toggler.opened .menu-bar[data-position="bottom"] { 
    transform: translateY(-5px) rotate(-45deg); 
}

/* --- THE FULL SCREEN MENU OVERLAY --- */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0f0f0f; /* Pure black/dark grey */
    display: flex;
    
    /* Initially hidden via clip-path (bottom slice) */
    clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
    pointer-events: none;
    flex-direction: column;
}

@media (min-width: 768px) {
    .menu {
        flex-direction: row;
    }
}

.col { 
    flex: 1; 
    padding: 10% 5%; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

/* --- THE FULL SCREEN MENU OVERLAY UPDATES --- */
.links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Allow scrolling if screen is too small */
    overflow-y: auto; 
    max-height: 75vh;
}

/* Hide scrollbar for clean look */
.links::-webkit-scrollbar { display: none; }
.links { -ms-overflow-style: none; scrollbar-width: none; }

.link a { 
    color: #fff; 
    /* Use clamp and vh so it scales cleanly without overflowing */
    font-size: clamp(30px, 7vh, 70px); 
    line-height: 1.1;
    font-weight: 300;
    text-decoration: none; 
    opacity: 0; 
    display: block; 
    transform: translateY(30px);
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .link a { font-size: clamp(30px, 6vh, 60px); }
}

.link a:hover {
    color: #16a34a; /* Hover green */
}

/* Column 2: Big Decorative Text and Socials */
.socials {
    display: flex;
    gap: 40px;
    color: #fff;
}

.sub-col p {
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0; /* Hidden for animation */
    transform: translateY(20px);
}

.header {
    margin-top: auto;
    overflow: hidden; /* Required for the text reveal animation */
}

.header h1 { 
    color: #1f2937; /* Very dark grey, barely visible against black background */
    font-size: 18vw; 
    line-height: 0.8; 
    font-weight: 800;
    margin: 0;
    letter-spacing: -5px;
}

.header h1 span { 
    display: inline-block; 
    transform: translateY(100%) rotateX(-90deg); /* Positioned for 3D flip-in */
}

/* ==========================================
   RESTORED SECTION CSS (From about_us.php)
   ========================================== */

/* --- Project Scroller --- */
.project-scroller-outer { overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.project-scroller-inner { display: flex; flex-wrap: nowrap; width: max-content; }
.project-scroller-inner .card { flex-shrink: 0; width: 80vw; margin-right: 2rem; scroll-snap-align: center; }
@media (min-width: 768px) { .project-scroller-inner .card { width: 400px; } }

/* --- Gallery (Full Screen) --- */
.gallery-scroll-container { 
    display: flex; 
    align-items: center; 
    width: 100vw; 
    height: 100vh; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
    perspective: 1200px; 
}
.gallery-scroll-container::-webkit-scrollbar { display: none; }

.gallery-item { 
    flex: 0 0 100vw; /* Take exactly one full screen width */
    height: 100vh;   /* Take exactly one full screen height */
    scroll-snap-align: center; 
    cursor: pointer; 
    z-index: 1; 
}

.gallery-item-inner { 
    position: relative; 
    width: 100%; 
    height: 100%; 
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
    transform-style: preserve-3d; 
}

.gallery-item:hover .gallery-item-inner { 
    transform: rotateY(180deg); 
}

.gallery-item-front, .gallery-item-back { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    -webkit-backface-visibility: hidden; 
    backface-visibility: hidden; 
}

.gallery-item-front img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: brightness(0.6); /* Darken slightly so white text floats above clearly */
    transition: filter 0.5s ease; 
}

.gallery-item:hover .gallery-item-front img { 
    filter: brightness(0.3); /* Darken further on hover before flipping */
}

.gallery-item-back { 
    background-color: #0f0f0f; /* mAgric dark black/grey */
    color: white; 
    transform: rotateY(180deg); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    padding: 10vw; 
    text-align: center; 
}

.gallery-item-back h3 { 
    font-size: clamp(2.5rem, 6vw, 5rem); /* Massive dynamic text */
    font-weight: 800; 
    margin-bottom: 1rem; 
    color: #22c55e; /* Esoko Green */
    letter-spacing: -2px;
}

.gallery-item-back p { 
    font-size: clamp(1rem, 2vw, 1.5rem); 
    max-width: 800px; 
    line-height: 1.6; 
    color: #e5e7eb; 
}



/* --- Logo Scroller --- */
.logo-scroller-outer { overflow: hidden; position: relative; mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent); }
.logo-scroller-inner { display: flex; width: max-content; animation: scroll-left 40s linear infinite; }
.logo-scroller-inner:hover { animation-play-state: paused; }
.logo-scroller-inner img { height: 50px; width: auto; margin: 0 2.5rem; object-fit: contain; filter: grayscale(100%); opacity: 0.7; transition: filter 0.3s, opacity 0.3s; }
.logo-scroller-inner img:hover { filter: grayscale(0%); opacity: 1; cursor: pointer; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Phone Simulator --- */
.phone-simulator { width: 300px; height: 600px; background-color: #1a1a1a; border-radius: 40px; border: 8px solid #0a0a0a; box-shadow: 0 10px 30px rgba(0,0,0,0.3); display: flex; flex-direction: column; overflow: hidden; position: relative; margin: 0 auto; }
.phone-notch { height: 25px; width: 140px; background-color: #0a0a0a; position: absolute; top: 0; left: 50%; transform: translateX(-50%); border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; z-index: 10; }
.phone-screen { flex-grow: 1; background-color: #f7fafc; display: flex; flex-direction: column; overflow: hidden; }
.phone-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; padding-top: 35px; background-color: #fff; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; }
.phone-header img { height: 24px; width: auto; }
.phone-header span { font-weight: 600; color: #2d3748; font-size: 14px; }
.lang-toggle button { font-size: 10px; font-weight: 600; padding: 2px 4px; border-radius: 4px; background-color: #edf2f7; color: #718096; }
.lang-toggle button.active { background-color: #16a34a; color: #fff; }
.phone-body { flex-grow: 1; overflow-y: auto; padding: 20px 16px; }
.phone-body label { display: block; font-size: 12px; font-weight: 500; color: #4a5568; margin-bottom: 4px; }
.phone-body input, .phone-body select { width: 100%; padding: 8px; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 12px; margin-bottom: 12px;}
.phone-body button { width: 100%; padding: 10px; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; color: #fff; background-color: #22c55e; }
#capture-gps-btn { background-color: #3b82f6; }
#take-photo-btn { background-color: #4a5568; }
#photo-preview { width: 100%; height: 120px; background-color: #edf2f7; border-radius: 6px; display: none; justify-content: center; align-items: center; overflow: hidden; margin-bottom: 12px; }
#photo-preview img { width: 100%; height: 100%; object-fit: cover; }
#phone-camera-view { flex-grow: 1; background-color: #000; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 40px; }
#phone-shutter-btn { width: 60px; height: 60px; border-radius: 50%; border: 4px solid #fff; background-color: #ffffff44; cursor: pointer; }

/* --- Social Media List --- */
.social-media-list { list-style-type: none; padding: 0; margin: 20px 0 0 0; display: flex; gap: 10px; }
.social-media-list li { width: 45px; height: 45px; border-radius: 50%; background-color: #5a738e; text-align: center; line-height: 45px; transition: all .2s; cursor: pointer; }
.social-media-list li a { color: #fff; display: block; font-size: 20px;}
.social-media-list li:hover { background-color: #fff; transform: translateY(-2px); }
.social-media-list li:nth-child(1):hover a { color: #3b5998; }
.social-media-list li:nth-child(2):hover a { color: #0077b5; }
.social-media-list li:nth-child(3):hover a { color: #00acee; }
.social-media-list li:nth-child(4):hover a { color: #bc2a8d; }
.social-media-list li:nth-child(5):hover a { color: #CD201F ; }

/* ==========================================
   mAgric PREMIUM FEATURES
   ========================================== */

/* 1. Global Custom Cursor */
@media (min-width: 768px) {
    body, a, button, .magnetic {
        cursor: none !important; /* Hides default mouse */
    }
}

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    mix-blend-mode: difference; /* Inverts colors based on background */
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
}

/* Premium Inverting Magnifier Cursor */
#custom-cursor.hover-link {
    width: 80px; /* Increased size for a magnifying glass feel */
    height: 80px;
    background: #ffffff; /* Solid white */
    mix-blend-mode: difference; /* Perfectly inverts colors below it */
    border: none; /* Remove the border */
    backdrop-filter: none; /* Remove the foggy blur causing the text to hide */
}

#custom-cursor.hover-video {
    width: 80px;
    height: 80px;
    background: #00C853; /* Esoko Green */
    mix-blend-mode: normal;
}

/* 2. Split Text Preparation */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotate(10deg);
}
/* ==========================================
   FIX FOR GSAP PIN FLICKERING
   Forces GPU hardware acceleration on scrolling tracks
   ========================================== */
.projects-track, 
.services-track, 
.project-panel, 
.service-panel {
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0); /* Triggers GPU composition */
}

/* ==========================================
   GSAP IFRAME RELOAD FIX
   Forces solid sections to slide over the fixed background iframe
   ========================================== */

/* 1. Make all vertical sections stack on top of the iframe */
body > section, 
body > footer {
    position: relative;
    z-index: 10;
}

/* 2. Give horizontal sliding panels a solid background so they cover the iframe */
.projects-track .project-panel:not(#platform-vision) {
    background-color: #0f0f0f;
}
/* ==========================================
   PREMIUM TACTILE FILM GRAIN OVERLAY
   ========================================== */
body::before {
    content: "";
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    /* Generates an SVG static noise texture natively in the browser */
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.04; /* Keep it incredibly subtle (4%) */
    pointer-events: none; /* Ensures you can still click things underneath it */
    z-index: 999998; /* Sits below the cursor, but above everything else */
}

/* ==========================================
   CUSTOM SCROLLBAR (PROJECT DETAILS CURTAIN)
   ========================================== */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #0a0a0a; 
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #22c55e; /* Esoko Green */
}
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #333 #0a0a0a;
}
/* ==========================================
   GSAP PIN FLICKER FIX (HARDWARE ACCELERATION)
   ========================================== */
#horizontal-projects-wrapper,
.projects-track, 
.project-panel, 
#services-wrapper,
.services-track, 
.service-panel {
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0); /* Forces GPU rendering */
}