/* --- Global Reset & Variables --- */
:root {
    --primary-blue: #00d2ff;
    --primary-green: #3a7bd5;
    --primary-purple: #9d50bb;
    --dark-bg: #020611;
    --darker-bg: #010408;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(0, 210, 255, 0.1);
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --nav-height: 70px;
    --top-bar-height: 40px;
}

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

html, body {
    height: 100%;
    font-family: 'Tahoma', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow: hidden; /* Parallax wrapper handles scroll */
}

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

/* --- Typography Utilities --- */
h1, h2, h3, h4, h5 { margin-bottom: 1rem; color: #fff; }
p { line-height: 1.6; color: var(--text-muted); margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.text-white { color: #fff; }
.text-gradient-blue {
    background: linear-gradient(to right, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- TOP BAR --- */
#top-bar {
    position: fixed; top: 0; width: 100%; height: var(--top-bar-height);
    background-color: var(--darker-bg); z-index: 101;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; font-size: 20px; font-weight: 600;
}
@media (max-width: 458px) {
    #top-bar {
		font-size: 15px;
	}
}


.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.top-left a { margin-right: 20px; color: #fff; }
.top-left a:hover { color: var(--primary-blue); }
.top-right .highlight { color: var(--primary-green); font-weight: 600; margin-left: 15px; }

/* --- NAVIGATION --- */
#main-header {
    position: fixed; top: var(--top-bar-height); width: 100%; height: var(--nav-height);
    z-index: 100; transition: all 0.3s ease;
}
#main-header.scrolled {
    background-color: rgba(2, 6, 17, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.header-content { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo img { max-height: 200px; position:absolute; top:0px;}

.main-nav ul { list-style: none; display: flex; gap: 35px; }
.main-nav a { font-weight: 600; font-size: 20px; color: #fff; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-blue); }
.btn-contact { border: 1px solid var(--primary-blue); padding: 8px 20px; border-radius: 20px; }
.btn-contact:hover { background: var(--primary-blue); color: #000 !important; }

/* Hide mobile toggle and menu on normal screens (desktops and larger) */
@media (min-width: 768px) {
    .mobile-toggle {
        display: none !important;
    }
    .mobile-menu {
        display: none !important;
    }
}

/* Mobile Menu */
.mobile-toggle { display: none; font-size: 1.5rem; color: #fff; cursor: pointer; }
.mobile-menu {
    position: fixed; top: calc(var(--nav-height) + var(--top-bar-height)); left: 0; width: 100%;
    background: rgba(2, 6, 17, 0.98); backdrop-filter: blur(15px);
    max-height: 0; overflow: hidden; transition: 0.4s ease;
    border-bottom: 0px solid rgba(255,255,255,0.1);
}
.mobile-menu.open { max-height: 400px; }
.mobile-menu ul { list-style: none; padding: 20px 0; text-align: center; }
.mobile-menu li { margin: 15px 0; }

/* --- PARALLAX WRAPPER --- */
.parallax-wrapper {
    height: calc(100vh - var(--top-bar-height));
    margin-top: var(--top-bar-height);
    overflow-x: hidden;
    overflow-y: auto;
    perspective: 300px;
    scroll-behavior: smooth;
}
.parallax-group { position: relative; height: 100vh; transform-style: preserve-3d; }
.parallax-layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
/* Back layer for BG */
.layer-back { transform: translateZ(-300px) scale(2); z-index: 1; }
/* Mid layer for Visual */
.layer-mid { transform: translateZ(-150px) scale(1.5); z-index: 2; pointer-events: none; justify-content: flex-end; padding-right: 5%;  }
/* Base layer for Content */
.layer-base { transform: translateZ(0); z-index: 3; }

/* --- HERO SECTION --- */
.hero-bg {
    background-image: url('assets/web.png');
    background-size: cover; background-position: center; filter: brightness(0.4);
}
.hero-visual img { width: 1200px; filter: drop-shadow(0 0 40px rgba(0, 210, 255, 0.3)); opacity: 0.8; }
.hero-content-wrapper { justify-content: flex-start; } /* Reset default center */
.hero-content { width: 100%; z-index: 10; padding-top: 50px; } /* Ensure text is above image */
.hero-content h5 { color: var(--primary-blue); letter-spacing: 2px; }
.hero-content h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 25px; }
.hero-content p { font-size: 1.2rem; max-width: 600px; color: #ddd; margin-bottom: 35px; }
.hero-btns { display: flex; gap: 20px; }

.btn-primary {
    display: inline-block; padding: 14px 35px; background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    color: #fff; font-weight: 700; border-radius: 30px; box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}
.btn-secondary {
    display: inline-block; padding: 12px 35px; border: 2px solid #fff; border-radius: 30px;
    color: #fff; font-weight: 700;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 25px rgba(0, 210, 255, 0.6); }
.btn-secondary:hover { background: #fff; color: #000; }

.hero-visual img {
    max-width: 80%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8)) 
            drop-shadow(0 0 20px rgba(0, 255, 255, 0.6)) 
            drop-shadow(0 0 40px rgba(0, 255, 255, 0.4));
    animation: neon-glow 2s ease-in-out infinite alternate;
}

/* Electric Wires (Nerves) - Using pseudo-elements for glowing lines */
/* Brain Image Styles */
.hero-visual img {
    max-width: 75%; /* Default for desktop */
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8)) 
            drop-shadow(0 0 20px rgba(0, 255, 255, 0.6)) 
            drop-shadow(0 0 40px rgba(0, 255, 255, 0.4));
    animation: neon-glow 3s ease-in-out infinite alternate;
}
/* Wire Styles (Your Updated Code) */
.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%; /* Adjust to start from brain's "nerves" area */
    left: 70px; /* Extend leftward (negative value for left side) */
    width: 1010px; /* Length of wire */
    height: 2px; /* Thickness */
    background: linear-gradient(to left, rgba(0, 255, 255, 0.8), transparent); /* Fading glow */
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.6);
    animation: wire-pulse 1.5s ease-in-out infinite;
    transform: rotate(-15deg); /* Slight angle for realism */
}

.hero-visual::after {
    content: '';
    position: absolute;
    top: 60%;
    left: 80px;
    width: 1250px;
    height: 3px;
    background: linear-gradient(to left, rgba(0, 255, 255, 1), transparent);
    box-shadow: 0 0 15px rgba(0, 255, 255, 1), 0 0 30px rgba(0, 255, 255, 0.8);
    animation: wire-pulse 2s ease-in-out infinite reverse; /* Reverse for alternating effect */
    transform: rotate(10deg);
}

/* Additional wires if needed - Add more pseudo-elements or use extra divs */
.hero-visual .wire-1 {
    position: absolute;
    top: 48%;
    left: 30px;
    width: 1000px;
    height: 1px;
    background: rgba(0, 255, 255, 0.9);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.9);
    animation: wire-pulse 1s ease-in-out infinite;
    transform: rotate(-25deg);
}

.hero-visual .wire-2 {
    position: absolute;
    top: 57%;
    left: 20px;
    width: 1310px;
    height: 2px;
    background: rgba(0, 255, 255, 0.7);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.7);
    animation: wire-pulse 1.8s ease-in-out infinite reverse;
    transform: rotate(20deg);
}

/* Keyframe for wire pulsing (electric flicker) */
@keyframes wire-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.6);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.4), 0 0 10px rgba(0, 255, 255, 0.3);
    }
}

/* Existing brain glow animation */
@keyframes neon-glow {
    from {
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8)) 
                drop-shadow(0 0 20px rgba(0, 255, 255, 0.6)) 
                drop-shadow(0 0 40px rgba(0, 255, 255, 0.4));
    }
    to {
        filter: drop-shadow(0 0 15px rgba(0, 255, 255, 1)) 
                drop-shadow(0 0 30px rgba(0, 255, 255, 0.8)) 
                drop-shadow(0 0 60px rgba(0, 255, 255, 0.6));
    }
}

/* Responsive Adjustments for Tablets (768px and below) */
@media (max-width: 768px) {
    .hero-visual img {
        max-width: 90%; /* Slightly larger on tablet for better visibility */
    }
    
    .hero-visual::before {
        width: 600px; /* Shorten wire */
        left: 50px; /* Adjust start position */
        transform: rotate(-10deg); /* Reduce angle */
    }
    
    .hero-visual::after {
        width: 700px;
        left: 60px;
        transform: rotate(5deg);
    }
    
    .hero-visual .wire-1 {
        width: 550px;
        left: 20px;
        transform: rotate(-20deg);
    }
    
    .hero-visual .wire-2 {
        width: 750px;
        left: 15px;
        transform: rotate(15deg);
    }
}

/* Responsive Adjustments for Mobile (576px and below) */
@media (max-width: 576px) {
    .hero-visual img {
        max-width: 100%; /* Full width on mobile for prominence */
        animation-duration: 3s; /* Slow down animation for better mobile performance */
    }
    
    .hero-visual::before {
        width: 300px; /* Much shorter for mobile */
        left: 30px;
        transform: rotate(-5deg);
        box-shadow: 0 0 8px rgba(0, 255, 255, 0.6), 0 0 15px rgba(0, 255, 255, 0.4); /* Reduce glow intensity */
        animation-duration: 2s; /* Slower pulse */
    }
    
    .hero-visual::after {
        width: 350px;
        left: 40px;
        transform: rotate(0deg); /* Straighten for simplicity */
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.6);
        animation-duration: 2.5s;
    }
    
    .hero-visual .wire-1 {
        width: 250px;
        left: 10px;
        transform: rotate(-10deg);
        display: none; /* Hide one wire on very small screens for cleaner look */
    }
    
    .hero-visual .wire-2 {
        width: 400px;
        left: 5px;
        transform: rotate(10deg);
        box-shadow: 0 0 8px rgba(0, 255, 255, 0.5); /* Dimmer glow */
        animation-duration: 2.2s;
    }
}
/* lines glowing tooo*/ 
/* Container for the scrolling lines */
.scrolling-lines {
    position: fixed; /* Or absolute, depending on your layout */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none; /* Prevents interaction */
    z-index: -1; /* Behind content; adjust if needed */
}

/* Individual glowing line styles */
.glow-line {
    position: absolute;
    width: 113px; /* ~3cm at 96dpi; adjust for exact length */
    height: 2px; /* Thin horizontal line */
    background: linear-gradient(to right, transparent, rgba(0, 255, 255, 1), transparent); /* Neon blue with fade */
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.4); /* Multi-layered glow */
    animation: scroll-right-to-left linear infinite; /* Scrolling animation */
}

/* Staggered positions and timings for beauty */
.line-1 {
    top: 20%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.line-2 {
    top: 40%;
    animation-duration: 10s;
    animation-delay: 2s;
}

.line-3 {
    top: 60%;
    animation-duration: 12s;
    animation-delay: 4s;
}

.line-4 {
    top: 80%;
    animation-duration: 9s;
    animation-delay: 1s;
}

.line-5 {
    top: 10%;
    animation-duration: 11s;
    animation-delay: 3s;
}

/* Keyframe animation for scrolling */
@keyframes scroll-right-to-left {
    0% {
        transform: translateX(100vw); /* Start off-screen right */
        opacity: 0; /* Fade in */
    }
    10% {
        opacity: 1; /* Full glow */
    }
    90% {
        opacity: 1; /* Maintain glow */
    }
    100% {
        transform: translateX(-113px); /* End off-screen left (line width to hide fully) */
        opacity: 0; /* Fade out */
    }
}
/* glowing brain ends */

/* --- SECTION STANDARD --- */
.section-standard {
    position: relative; z-index: 10; background-color: var(--dark-bg); padding: 80px 0;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; font-weight: 700; }

/* --- SERVICES --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card {
    background: var(--card-bg); border: 1px solid var(--card-border); padding: 40px; border-radius: 15px;
    transition: 0.3s; backdrop-filter: blur(5px);
}
.service-card:hover { transform: translateY(-10px); border-color: var(--primary-blue); background: rgba(255,255,255,0.05); }
.icon-box { font-size: 2.5rem; margin-bottom: 20px; }
.glow-blue { color: var(--primary-blue); text-shadow: 0 0 15px var(--primary-blue); }
.glow-green { color: #00ff88; text-shadow: 0 0 15px #00ff88; }
.glow-purple { color: var(--primary-purple); text-shadow: 0 0 15px var(--primary-purple); }

/* --- AUTO SCROLL PORTFOLIO --- */
.portfolio-section { overflow: hidden; padding-bottom: 100px; }
.slider-container { width: 100%; overflow: hidden; position: relative; }
.slider-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}
.slider-track:hover { animation-play-state: paused; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Move half width because we duplicated content */
}

.project-card {
    min-width: 320px; margin: 0 15px;
    background: #0a0f1c; border-radius: 15px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05); transition: 0.3s;
}
.project-card:hover { transform: scale(1.05); border-color: var(--primary-blue); }
.project-img { height: 200px; background-size: cover; background-position: center; }
.project-info { padding: 20px; }
.project-info h4 { margin-bottom: 5px; color: #fff; }

/* --- ABOUT SECTION FIXED --- */
.about-wrapper {
    display: flex; align-items: center; gap: 60px;
    padding: 50px 0;
}
.about-text { flex: 1; }
.about-visual { flex: 1; display: flex; justify-content: center; }
.visual-circle {
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,210,255,0.1) 0%, transparent 70%);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(0,210,255,0.2);
}
.visual-circle img { max-width: 80%; animation: float 6s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.stats-row { display: flex; gap: 40px; margin-top: 30px; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: #fff; display: block; }
.stat-label { font-size: 0.9rem; color: var(--primary-blue); }

/* --- PRICING & QUOTE --- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; align-items: flex-end; }
.pricing-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 15px; padding: 30px; text-align: center; }
.pricing-card.featured {
    background: linear-gradient(145deg, rgba(2, 6, 17, 0.9), rgba(0, 210, 255, 0.1));
    border: 1px solid var(--primary-blue); transform: scale(1.05); z-index: 2;
}
.price { font-size: 2.5rem; font-weight: 700; margin: 15px 0; }
.pricing-features { list-style: none; text-align: left; margin: 20px 0; }
.pricing-features li { margin-bottom: 10px; font-size: 0.9rem; }
.pricing-features li i { color: var(--primary-green); margin-right: 10px; }
.pricing-features li.disabled { opacity: 0.5; }

.quote-section { background: url('assets/circuit-bg.jpg') fixed center/cover; position: relative; }
.quote-section::before { content:''; position:absolute; inset:0; background:rgba(0,0,0,0.85); }
.quote-container { position:relative; z-index:2; background:rgba(255,255,255,0.05); padding:40px; border-radius:20px; border:1px solid var(--card-border); max-width: 800px; margin: 0 auto; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.full-width { grid-column: span 2; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; background: rgba(0,0,0,0.3); border: 1px solid #333; padding: 12px; color: #fff; border-radius: 5px;
}

/* --- PROFESSIONAL FOOTER --- */
.main-footer { background-color: #000; border-top: 1px solid #222; padding: 70px 0 20px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; }
.footer-logo img { max-width: 150px; margin-bottom: 20px; }
.brand-col p { font-size: 0.9rem; color: #888; }

.links-col ul { list-style: none; }
.links-col ul li { margin-bottom: 10px; }
.links-col ul li a { color: #888; transition: 0.3s; font-size: 0.9rem; }
.links-col ul li a:hover { color: var(--primary-blue); padding-left: 5px; }

.sub-form { display: flex; margin-top: 15px; margin-bottom: 20px; }
.sub-form input { flex: 1; padding: 10px; border: 1px solid #333; background: #111; color: #fff; border-radius: 4px 0 0 4px; }
.sub-form button { padding: 10px 20px; background: var(--primary-blue); border: none; cursor: pointer; border-radius: 0 4px 4px 0; }
.contact-info-small p { margin-bottom: 5px; font-size: 0.9rem; }
.contact-info-small i { color: var(--primary-blue); width: 20px; }

.social-links a { display: inline-flex; width: 35px; height: 35px; background: #222; color: #fff; align-items: center; justify-content: center; border-radius: 50%; margin-right: 10px; transition: 0.3s; }
.social-links a:hover { background: var(--primary-blue); }

.footer-bottom { border-top: 1px solid #222; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; color: #666; font-size: 0.85rem; }
.footer-policy a { color: #666; margin-left: 20px; }

/* --- RESPONSIVE FIXES --- */
@media (max-width: 992px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .about-wrapper { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 3rem; }
    .hero-visual img { max-width: 400px; margin-top: 30px; }
    .layer-mid { justify-content: center; padding: 0; opacity: 0.3; } /* Center brain on tablet */
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-toggle { display: block; }
    .hero-section { text-align: center; }
    .hero-content-wrapper { justify-content: center; }
    .hero-btns { justify-content: center; }
    .hero-content h1 { font-size: 2.2rem; }
    .quote-form { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: scale(1); }
    .layer-mid { opacity: 0.2; } /* Fade brain more on mobile */
    .visual-circle { width: 300px; height: 300px; margin: 0 auto; }
}