@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
    * {
        cursor: none;
    }
}

:root {
    --bg-dark: #0a0b10;
    --bg-card: #15171e;
    --primary-neon: #00e5ff;
    /* Electric Blue */
    --accent-neon: #f0ff00;
    /* Cyber Yellow */
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --white: #ffffff;
    /* Theme Base Colors */
    --theme-security: #ff003c; /* Red */
    --theme-energy: #f0ff00;   /* Yellow */
    --theme-network: #ff8c00;  /* Orange */

    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    }

/* Theme Overrides */
body.theme-security {
    --primary-neon: var(--theme-security);
    --accent-neon: #ff4d4d;
}

body.theme-energy {
    --primary-neon: var(--theme-energy);
    --accent-neon: #fffb00;
}

body.theme-network {
    --primary-neon: var(--theme-network);
    --accent-neon: #ffb347;
}

html.lenis {
    height: auto;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-neon);
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

/* Noise Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

/* Header and Navigation */
header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

header.scrolled {
    background-color: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    padding: 0.5rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
    font-style: italic;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-neon);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, #1a1c25 0%, #0a0b10 100%);
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 10vw;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 800;

    letter-spacing: -4px;
    position: relative;
    z-index: 2;
}

.tagline {
    font-size: 1.4rem;
    color: var(--primary-neon);
    margin-bottom: 3rem;
    max-width: 600px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
}

/* Custom Cursor removed (replaced by SplashCursor) */

/* Magnetic Buttons */
.cta-buttons {
    display: flex;
    gap: 2rem;
    z-index: 2;
}

.cta-button {
    padding: 1.4rem 3.5rem;
    border-radius: 0;
    /* Brutalist feel */
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.cta-button:first-child {
    background-color: var(--primary-neon);
    color: var(--bg-dark);
}

.cta-button.secondary {
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
}

.cta-button:hover {
    background-color: var(--accent-neon);
    color: var(--bg-dark);
    border-color: var(--accent-neon);
    transform: translateY(-5px);
}

/* Sections */
.services {
    padding: 10rem 5%;
    background-color: var(--bg-dark);
}

.services h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 5rem;
    color: var(--white);
    text-align: left;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.service-card {
    background: var(--bg-card);
    padding: 3.5rem;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    transition: all 0.5s ease;
    position: relative;
}

.service-card:hover {
    border-color: var(--primary-neon);
}

.service-card.cctv:hover {
    box-shadow: 0 10px 40px -10px rgba(255, 0, 60, 0.3);
    border-color: var(--theme-security) !important;
}

.service-card.solar:hover {
    box-shadow: 0 10px 40px -10px rgba(0, 255, 102, 0.3);
    border-color: var(--theme-energy) !important;
}

.service-card.wifi:hover {
    box-shadow: 0 10px 40px -10px rgba(255, 234, 0, 0.3);
    border-color: var(--theme-network) !important;
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.service-card p {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.8;
}

.learn-more {
    margin-top: 2rem;
    color: var(--primary-neon);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
}


/* Animated Background Blobs */
.blob-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    filter: blur(80px);
}

.blob {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: move 20s infinite alternate;
}

.blob:nth-child(2) {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(240, 255, 0, 0.1) 0%, transparent 70%);
    animation-delay: -10s;
    animation-duration: 25s;
}

@keyframes move {
    0% {
        transform: translate(-30%, -20%) scale(1);
    }

    100% {
        transform: translate(30%, 20%) scale(1.2);
    }
}

/* Contact Section Redesign */
.contact {
    padding: 10rem 5%;
    background-color: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact h2 {
    font-family: var(--font-heading);
    font-size: 5rem;
    margin-bottom: 4rem;
    color: var(--white);
    letter-spacing: -2px;
}

.contact-container {
    max-width: 800px;
    margin: 0;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-form textarea {
    grid-column: span 2;
    height: 200px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 1.2rem;
    padding: 1rem 0;
    transition: border-color 0.3s ease;
}

.contact-form input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 1.1rem;
    padding: 1rem 0;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-neon);
}

.submit-btn {
    grid-column: span 2;
    background-color: var(--primary-neon);
    color: var(--bg-dark);
    padding: 1.5rem;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 2rem;
    cursor: none;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--accent-neon);
    transform: scale(1.02);
}

/* Service-specific Form Styles (CCTV, Solar, Wi-Fi) */
.service-select,
.solar-select {
    grid-column: span 2;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 1.1rem;
    padding: 1rem 0;
    transition: border-color 0.3s ease;
    appearance: none;
    cursor: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 1em;
}

.service-select:focus,
.solar-select:focus {
    outline: none;
    border-color: var(--primary-neon);
}

.service-select option,
.solar-select option {
    background: var(--bg-dark);
    color: var(--white);
}

/* Footer Refinement */
footer {
    background-color: var(--bg-dark);
    color: var(--text-dim);
    padding: 8rem 5% 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-neon);
}

.footer-bottom {
    text-align: left;
    margin-top: 8rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-neon);
}


/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) rotate(5deg);
}

.whatsapp-float i {
    margin: 0;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.toast {
    background: rgba(10, 11, 16, 0.95);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary-neon);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(120%);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: auto;
    border-radius: 0;
}

.toast.active {
    transform: translateX(0);
}

.toast.error {
    border-left-color: #ff3333;
}

.toast-close {
    margin-left: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.toast-close:hover {
    opacity: 1;
}

/* Sticky Hero Section (Scroll Animation) */
.hero-sticky-container {
    height: 500vh;
    position: relative;
}

.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
}

#hero-scroll-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1rem;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    /* text-transform: lowercase; */
    margin-bottom: 2rem;
    letter-spacing: -2px;
    color: var(--white);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-content .tagline {
    color: var(--text-main);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .service-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Header & Mobile Menu */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        width: 30px;
        height: 2px;
        background: var(--white);
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -7px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-dark);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Hero Section */
    .hero {
        padding-top: 5rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-button {
        width: 100%;
    }

    /* Services & Features */
    .services h2, .service-features h2, .benefits h2, .solutions h2, .team-section h2, .values-section h2, .contact h2 {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .service-cards, .feature-grid, .benefits-grid, .solutions-grid {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 1.5rem;
    }

    .service-card, .feature-card, .benefit-card, .solution-card, .mission-card, .vision-card, .team-member, .value-card {
        padding: 2rem 1.5rem;
    }

    .services, .service-features, .benefits, .solutions, .team-section, .values-section, .contact {
        padding: 5rem 5%;
    }

    /* Contact Form */
    .contact-form {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .logo img {
        height: 60px !important;
    }
}