/* --- RESET & VARIABLES --- */
:root {
    --bg-dark: #0a0e17;
    --primary-cyan: #00f2ea;
    --primary-blue: #0080ff;
    --primary-purple: #8000ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --font-main: 'Inter', sans-serif;
    --font-tech: 'Orbitron', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth; /* Enables smooth scrolling for navigation */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- BACKGROUND ORBS --- */
.background-layer {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite alternate ease-in-out;
}

.orb-1 { width: 400px; height: 400px; background: var(--primary-purple); top: -10%; left: -10%; }
.orb-2 { width: 300px; height: 300px; background: var(--primary-cyan); bottom: 10%; right: -5%; animation-delay: 2s; }
.orb-3 { width: 200px; height: 200px; background: var(--primary-blue); top: 40%; left: 40%; animation-duration: 15s; }

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* --- GLASS NAV --- */
.glass-nav {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 15px 30px;
    background: rgba(10, 14, 23, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo { font-family: var(--font-tech); font-size: 1.2rem; font-weight: 700; letter-spacing: 1px;  white-space: nowrap; text-decoration: none; color: var(--text-white); cursor: pointer;  }
.logo .highlight { color: var(--primary-cyan); }

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-white); font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--primary-cyan); text-shadow: 0 0 10px var(--primary-cyan); }

.cta-btn {
    padding: 10px 20px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
    border: none; border-radius: 50px;
    color: #000; font-weight: 700; cursor: pointer;
    transition: transform 0.2s;
    white-space: nowrap;
}
.cta-btn:hover { transform: scale(1.05); }

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    gap: 50px;
}

.hero-content { flex: 1; max-width: 600px; }
.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 242, 234, 0.1);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.hero-title { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 700; }
.gradient-text {
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub { color: var(--text-gray); font-size: 1.1rem; margin-bottom: 30px; line-height: 1.6; }

.hero-actions { display: flex; gap: 20px; }
.btn-primary {
    padding: 15px 30px;
    background: var(--text-white);
    color: var(--bg-dark);
    border: none; border-radius: 8px; font-weight: 700; cursor: pointer;
    transition: 0.3s;
}
.btn-primary:hover { box-shadow: 0 0 20px rgba(255,255,255,0.4); }

.btn-secondary {
    padding: 15px 30px;
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--glass-border);
    border-radius: 8px; cursor: pointer;
    transition: 0.3s;
}
.btn-secondary:hover { border-color: var(--primary-cyan); color: var(--primary-cyan); }

/* Visual Side */
.hero-visual { flex: 1; display: flex; justify-content: center; perspective: 1000px; }

.glass-card {
    width: 350px; height: 450px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    transition: transform 0.1s;
}

.status-row { margin-top: 20px; }
.status-row span { display: block; margin-bottom: 8px; font-size: 0.9rem; }
.bar { width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.fill { height: 100%; background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue)); }

/* Floating Icons */
.floating-icon {
    position: absolute;
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
    animation: bounce 3s infinite ease-in-out;
}
.icon-1 { top: -30px; right: -30px; animation-delay: 0s; }
.icon-2 { bottom: 40px; left: -40px; animation-delay: 1s; }
.icon-3 { bottom: -20px; right: 20px; animation-delay: 2s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- ABOUT SECTION --- */
.about-section {
    padding: 80px 10%;
    background: rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text { flex: 1; }
.about-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.about-text p { color: var(--text-gray); font-size: 1.1rem; line-height: 1.6; margin-bottom: 20px; }

.stats-grid { display: flex; gap: 40px; margin-top: 30px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2.5rem; font-weight: 700; color: var(--primary-cyan); font-family: var(--font-tech); }
.stat-label { font-size: 0.9rem; color: var(--text-gray); }

.about-visual { flex: 1; display: flex; justify-content: center; }

/* Tech Circle Animation */
.tech-circle {
    width: 300px; height: 300px;
    border: 2px dashed var(--primary-purple);
    border-radius: 50%;
    position: relative;
    animation: spin 20s linear infinite;
}
.tech-circle::before {
    content: ''; position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 2px solid var(--primary-cyan); border-radius: 50%;
    border-left-color: transparent; border-right-color: transparent;
    animation: spin 10s linear infinite reverse;
}

@keyframes spin { 100% { transform: rotate(360deg); } }


/* --- SERVICES SECTION --- */
.services-section {
    padding: 100px 10% 120px;
    position: relative;
    z-index: 2;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { color: var(--text-gray); font-size: 1.1rem; }

/* BENTO GRID */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto; 
    grid-template-areas:
        "build factory process"
        "build vision panel";
    gap: 25px;
}

.large-card   { grid-area: build; }
.card-factory { grid-area: factory; }
.card-process { grid-area: process; }
.card-panel   { grid-area: panel; }
.card-vision  { grid-area: vision; }

.bento-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    height: 100%;
    min-height: 240px;
    --mouse-x: 0px; --mouse-y: 0px;
}

.bento-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0; transition: opacity 0.5s; z-index: 1; pointer-events: none;
}

.bento-card:hover::before { opacity: 1; }
.bento-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.3); }

.card-content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    padding: 25px;
}

.icon-box {
    font-size: 2rem; margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(0,242,234,0.3));
}

.bento-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-white); }
.bento-card p { font-size: 0.9rem; color: var(--text-gray); line-height: 1.4; }

.mini-tags { margin-top: 20px; display: flex; gap: 8px; list-style: none; flex-wrap: wrap; }
.mini-tags li {
    font-size: 0.75rem; padding: 4px 10px;
    border: 1px solid var(--glass-border); border-radius: 20px;
    background: rgba(255,255,255,0.05);
}

/* --- FOOTER SECTION --- */
footer {
    position: relative;
    background: linear-gradient(to top, #05080f, #0a0e17);
    border-top: 1px solid var(--glass-border);
    padding: 80px 10% 40px;
    overflow: hidden;
}

footer::before {
    content: ''; position: absolute; bottom: -100px; left: 50%; transform: translateX(-50%);
    width: 60%; height: 300px;
    background: radial-gradient(circle, rgba(0, 242, 234, 0.15), transparent 70%);
    filter: blur(80px); z-index: 0;
}

.footer-content {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px;
}

.footer-brand h2 { font-family: var(--font-tech); margin-bottom: 20px; font-size: 1.5rem; }
.footer-brand p { color: var(--text-gray); line-height: 1.6; max-width: 300px; font-size: 0.9rem; }

.footer-links h4 { color: var(--text-white); margin-bottom: 20px; font-weight: 600; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-gray); text-decoration: none; transition: 0.3s; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-cyan); padding-left: 5px; }

.newsletter h4 { margin-bottom: 20px; }
.input-group {
    display: flex; background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border); border-radius: 5px; overflow: hidden;
}
.input-group input { background: transparent; border: none; padding: 12px; color: white; width: 100%; outline: none; }
.input-group button { background: var(--primary-cyan); border: none; padding: 0 20px; font-weight: bold; cursor: pointer; color: #000; }

.footer-bottom {
    margin-top: 60px; padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center; color: var(--text-gray); font-size: 0.8rem;
    position: relative; z-index: 2;
}


/* ========================================= */
/* SUB-PAGE STYLES (For Inner Pages)         */
/* ========================================= */
.page-hero {
    padding: 150px 10% 80px;
    text-align: center;
}
.hero-content.centered { margin: 0 auto; }

.nav-links a.active {
    color: var(--primary-cyan);
    border-bottom: 2px solid var(--primary-cyan);
}

.details-section {
    padding: 0 10% 100px;
    display: flex; flex-direction: column; gap: 100px;
}

.feature-row { display: flex; align-items: center; gap: 80px; }
.feature-row.reverse { flex-direction: row-reverse; }

.feature-text { flex: 1; }
.feature-text h2 { font-size: 2rem; margin-bottom: 20px; color: var(--primary-cyan); }
.feature-text p { font-size: 1.1rem; color: var(--text-gray); line-height: 1.6; margin-bottom: 25px; }

.feature-list { list-style: none; }
.feature-list li { margin-bottom: 12px; padding-left: 25px; position: relative; color: var(--text-white); }
.feature-list li::before { content: "▹"; position: absolute; left: 0; color: var(--primary-purple); }

.feature-visual { flex: 1; display: flex; justify-content: center; }
.visual-card {
    width: 100%; height: 300px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    position: relative; overflow: hidden;
}

.big-icon {
    font-size: 5rem;
    filter: drop-shadow(0 0 30px rgba(0, 242, 234, 0.2));
    animation: pulseIcon 4s infinite ease-in-out;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}


/* ========================================= */
/* RESPONSIVE MOBILE STYLES            */
/* ========================================= */

@media (max-width: 900px) {
    /* HEADER */
    .glass-nav { width: 95%; padding: 10px 20px; }
    .nav-links { display: none; } /* Hide links on mobile */
    .logo { font-size: 1rem; }
    .cta-btn { padding: 8px 16px; font-size: 0.8rem; }

    /* HERO */
    .hero-section { flex-direction: column; padding-top: 150px; gap: 30px; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-title { font-size: 2.5rem; }
    .hero-actions { justify-content: center; }
    .hero-visual { width: 100%; }
    .glass-card { width: 100%; max-width: 350px; }

    /* ABOUT */
    .about-container { flex-direction: column; text-align: center; }
    .stats-grid { justify-content: center; }
    .tech-circle { width: 200px; height: 200px; }

    /* GRID */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas: "build" "factory" "process" "vision" "panel";
    }

    /* FOOTER */
    .footer-content { grid-template-columns: 1fr; gap: 40px; }

    /* INNER PAGES */
    .feature-row, .feature-row.reverse { flex-direction: column; gap: 40px; text-align: left; }
    .visual-card { height: 200px; }
}
/* --- PARTNERS MARQUEE --- */
.partners-strip {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 25px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.marquee-track {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.partner-logo {
    font-family: var(--font-tech);
    font-weight: 700;
    color: var(--text-gray);
    font-size: 1.5rem;
    margin: 0 40px;
    opacity: 0.7;
    transition: 0.3s;
}
.partner-logo:hover { color: var(--primary-cyan); opacity: 1; text-shadow: 0 0 10px var(--primary-cyan); }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls half-way then resets instantly */
}
/* --- PROJECTS PAGE --- */
.projects-section { padding: 0 10% 100px; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    height: 400px;
    padding: 0; /* Remove default padding for full image */
    display: flex;
    flex-direction: column;
}

.project-img {
    flex: 2;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--glass-border);
}

.project-info {
    flex: 1;
    padding: 20px;
    background: rgba(0,0,0,0.2);
}

.project-info h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text-white); }
.project-tag {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.75rem;
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan);
    padding: 4px 10px;
    border-radius: 50px;
}
/* --- CONTACT PAGE --- */
.contact-section { padding: 0 10% 100px; }

.contact-container {
    display: flex;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info { flex: 1; }
.info-box { margin-bottom: 40px; }
.info-box h3 { color: var(--primary-cyan); font-size: 1.2rem; margin-bottom: 10px; }
.info-box p { color: var(--text-gray); font-size: 1.1rem; line-height: 1.6; }

.contact-form { flex: 1; padding: 40px; display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.9rem; color: var(--text-gray); }

.form-group input, .form-group select, .form-group textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
    outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-cyan); }

@media (max-width: 900px) {
    .contact-container { flex-direction: column; }
}
/* ========================================= */
/* PRELOADER STYLES                          */
/* ========================================= */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #05080f; /* Very dark blue/black */
    z-index: 9999; /* Sits on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* The Spinner Ring */
.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 242, 234, 0.1); /* Faint cyan track */
    border-top: 4px solid var(--primary-cyan); /* Bright cyan mover */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.2); /* Subtle glow */
}

/* The "YANTRI" Text below spinner */
#preloader::after {
    content: "YANTRI";
    position: absolute;
    top: 55%;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-gray);
    animation: pulseText 1.5s infinite ease-in-out;
}

/* Hide class (added by JS) */
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Allows clicking through after fade */
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseText {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
/* ========================================= */
/* SCROLL REVEAL ANIMATIONS                  */
/* ========================================= */

/* 1. The starting state (Invisible & pushed down) */
.reveal {
    opacity: 0;
    transform: translateY(50px); /* Pushed down 50px */
    transition: all 0.8s ease-out; /* Smooth transition */
}

/* 2. The active state (Visible & back to normal position) */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Staggered delay for Bento Grids so they don't appear all at once */
.bento-card:nth-child(1) { transition-delay: 0.1s; }
.bento-card:nth-child(2) { transition-delay: 0.2s; }
.bento-card:nth-child(3) { transition-delay: 0.3s; }
.bento-card:nth-child(4) { transition-delay: 0.4s; }
.bento-card:nth-child(5) { transition-delay: 0.5s; }
::selection {
    background: var(--primary-cyan);
    color: #000; /* Black text on Cyan background */
}
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366; /* WhatsApp Green */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s;
}

.floating-contact:hover {
    transform: scale(1.1);
}
/* --- SAFE MOBILE FIX (Phone Only) --- */
@media (max-width: 768px) {
    /* 1. Stack the Hero section vertically so text is on top of image */
    .hero-section {
        flex-direction: column;
        padding-top: 150px; /* Push down to avoid hitting navbar */
        text-align: center;
        height: auto; /* Allow scrolling */
    }

    /* 2. Make the glass cards fit the phone width */
    .glass-card {
        width: 100% !important; 
        max-width: 90vw !important; /* 90% of viewport width */
        margin: 0 auto;
    }

    /* 3. Stack the footer columns */
    .footer-content {
        grid-template-columns: 1fr; /* Single column */
        text-align: center;
        gap: 40px;
    }
}
#scrollTopBtn {
    position: fixed;
    bottom: 100px;
    right: 30px; /* If you have WhatsApp button, move this to 'right: 100px;' */
    width: 50px;
    height: 50px;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(128, 0, 255, 0.5);
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
    background: var(--primary-cyan);
}
/* --- 4K / ULTRAWIDE MONITOR FIX --- */
@media (min-width: 2000px) {
    body {
        zoom: 1.5; /* Scales everything up by 50% */
    }   
    
    /* Ensure the background covers the extra space */
    .background-layer {
        background-size: cover;
    }
}
/* --- CSS LOGO DESIGN --- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between Icon and Text */
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--text-white);
}

/* The "Y" Icon Box */
.logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background: rgba(0, 242, 234, 0.1); /* Low opacity cyan */
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    border-radius: 8px; /* Slightly rounded corners */
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.2); /* Glow effect */
    transition: all 0.3s ease;
}

/* Hover Effect */
.logo:hover .logo-icon {
    background: var(--primary-cyan);
    color: #000; /* Text turns black */
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.6); /* Stronger glow */
    transform: rotate(180deg); /* Cool tech spin effect */
}