@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

/* ============================================
   BSC ECOLAB - HIGH-END TECH / CYBERPUNK THEME
   ============================================ */

:root {
    --bg-main: #030508;
    --bg-surface: rgba(8, 12, 20, 0.75);
    --accent-cyan: #00f3ff;
    --accent-blue: #0066ff;
    --text-main: #e0fbfc;
    --text-muted: #6b8a9e;
    --border-glow: rgba(0, 243, 255, 0.25);
    --font-main: 'Rajdhani', sans-serif;
    --font-tech: 'Share Tech Mono', monospace;
}

/* Global Resets & Background */
body {
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
    font-family: var(--font-main) !important;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-tech) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

p {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Smooth Scrolling */
html { scroll-behavior: smooth; }

/* ============================================
   Navigation (Tech HUD Style)
   ============================================ */
nav {
    background: rgba(3, 5, 8, 0.85) !important;
    backdrop-filter: blur(12px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
    border-bottom: 1px solid var(--border-glow) !important;
    box-shadow: 0 4px 20px rgba(0, 243, 255, 0.05) !important;
    transition: all 0.3s ease !important;
}

.nav-logo {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.nav-logo span {
    font-family: var(--font-tech) !important;
    color: var(--accent-cyan) !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
    letter-spacing: 1px;
}

.nav-logo img {
    height: 36px !important;
    width: auto !important;
    filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.5));
}

.nav-menu a {
    font-family: var(--font-tech) !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
    position: relative;
    transition: all 0.3s ease !important;
    padding: 5px 0;
}





.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent-cyan) !important;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: transparent !important; /* Let grid show through */
}

.hero-section::before { display: none; }

.hero h1 {
    font-size: 4rem !important;
    background: linear-gradient(90deg, #ffffff 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none; /* Handled by JS glow or keep clean */
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.3));
}

.google-cursor {
    display: inline-block;
    margin-left: 5px;
    width: 15px;
    height: 1em;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ============================================
   Cards (Data Panels)
   ============================================ */
.card {
    background: var(--bg-surface) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--border-glow) !important;
    border-radius: 2px !important; /* Sharp tech corners */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Scanning line effect on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 2px; height: 100%;
    background: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
    z-index: 10;
}

.card:hover::before {
    transform: scaleY(1);
}

.card:hover {
    transform: translateY(-5px) !important;
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 15px 35px rgba(0, 243, 255, 0.15) !important;
    background: rgba(15, 25, 40, 0.85) !important;
}

.card-icon {
    background: rgba(0, 243, 255, 0.05) !important;
    border: 1px solid var(--border-glow) !important;
    border-radius: 50% !important;
    box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.1);
    transition: all 0.4s ease !important;
}

.card:hover .card-icon {
    border-color: var(--accent-cyan) !important;
    box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.3), 0 0 15px rgba(0, 243, 255, 0.2);
    transform: scale(1.1) rotate(15deg) !important;
}

.card-icon img {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

/* ============================================
   Buttons (Cyberpunk Style)
   ============================================ */
.btn {
    font-family: var(--font-tech) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0 !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
    z-index: 1;
    /* Angled corners */
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.btn-primary {
    background: rgba(0, 243, 255, 0.1) !important;
    border: 1px solid var(--accent-cyan) !important;
    color: var(--accent-cyan) !important;
    box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.2) !important;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

.btn-primary:hover {
    background: var(--accent-cyan) !important;
    color: #000 !important;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.6) !important;
    text-shadow: none;
    transform: translateY(-2px) !important;
}

.btn-secondary {
    background: transparent !important;
    border: 1px solid var(--text-muted) !important;
    color: var(--text-main) !important;
}

.btn-secondary:hover {
    border-color: var(--text-main) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* ============================================
   Scroll Animations
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: #010102 !important;
    border-top: 1px solid var(--border-glow) !important;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
}

footer h3 {
    color: var(--accent-cyan) !important;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.3);
}

footer a {
    color: var(--text-muted) !important;
    transition: all 0.3s ease !important;
}

footer a:hover {
    color: var(--accent-cyan) !important;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
    padding-left: 8px !important;
}

/* Custom Selection */
::selection {
    background-color: rgba(0, 243, 255, 0.3);
    color: #ffffff;
    text-shadow: 0 0 5px var(--accent-cyan);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* ============================================
   MORE ANIMATIONS (Glitch, Scanline, Float)
   ============================================ */

/* CRT Scanline Overlay */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Glitch Effect for Headings */
.glitch {
    position: relative;
    display: inline-block;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(11px, 9999px, 91px, 0); }
    20% { clip: rect(85px, 9999px, 33px, 0); }
    40% { clip: rect(14px, 9999px, 98px, 0); }
    60% { clip: rect(58px, 9999px, 12px, 0); }
    80% { clip: rect(73px, 9999px, 55px, 0); }
    100% { clip: rect(32px, 9999px, 88px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(12px, 9999px, 55px, 0); }
    40% { clip: rect(88px, 9999px, 12px, 0); }
    60% { clip: rect(34px, 9999px, 77px, 0); }
    80% { clip: rect(99px, 9999px, 22px, 0); }
    100% { clip: rect(45px, 9999px, 66px, 0); }
}

/* Floating Icons */
.card-icon {
    animation: float-icon 3s ease-in-out infinite;
}
@keyframes float-icon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* Nav Link Brackets on Hover */
.nav-menu a::before {
    content: '[';
    position: absolute;
    left: -10px;
    opacity: 0;
    color: var(--accent-cyan);
    transition: all 0.3s ease;
    transform: translateX(10px);
}
.nav-menu a::after {
    content: ']';
    position: absolute;
    right: -10px;
    opacity: 0;
    color: var(--accent-cyan);
    transition: all 0.3s ease;
    transform: translateX(-10px);
    background-color: transparent !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    bottom: auto !important;
}
.nav-menu a:hover::before {
    opacity: 1;
    transform: translateX(0);
}
.nav-menu a:hover::after {
    opacity: 1;
    transform: translateX(0);
}
