/* ==========================================================================
   BuildsWithCode Core Styles — High Performance Cyber Theme & Animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;600&display=swap');

:root {
    --bg-dark: #020c10;
    --card-bg: rgba(255, 255, 255, 0.02);
    --border-color: rgba(255, 255, 255, 0.07);
    --cyan: #00ffc8;
    --blue: #00a8ff;
    --purple: #a855f7;
    --amber: #f59e0b;
    --pink: #ec4899;
    --teal: #06b6d4;
    --orange: #f97316;
    --emerald: #10b981;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #020c10;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 200, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00ffc8;
}

/* Background Cyber Grid Pattern */
.cyber-grid-bg {
    position: relative;
    background-color: #020c10;
    background-image: 
        linear-gradient(rgba(0, 255, 200, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 200, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Background Interactive Water Ripple Canvas Layer */
#water-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

/* Polygon Clip-Path styling */
.tech-clip-btn {
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
    transition: all 0.3s ease;
}

.tech-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-card:hover {
    border-color: rgba(0, 255, 200, 0.4);
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.12), 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

/* Animated Text */
.animated-android-text {
    background: linear-gradient(
        90deg,
        #00ffc8 0%,
        #00a8ff 25%,
        #a855f7 50%,
        #00a8ff 75%,
        #00ffc8 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerAndroidText 4s linear infinite, glowPulseText 3s ease-in-out infinite alternate;
    display: inline-block;
}

@keyframes shimmerAndroidText {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

@keyframes glowPulseText {
    0% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 200, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 25px rgba(0, 255, 200, 0.7)) drop-shadow(0 0 10px rgba(0, 168, 255, 0.5));
    }
}

/* Floating Animation for Android Badges */
.android-float {
    animation: androidFloat 3.5s ease-in-out infinite;
}

@keyframes androidFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

/* Cyber Radar Beam Scanning Animation */
.android-scan-beam {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 200, 0.15),
        transparent
    );
    animation: scanBeam 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
}

@keyframes scanBeam {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 200%;
    }
}

/* Glowing Pulse Aura */
.android-pulse-glow {
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.3);
    animation: androidPulse 2.5s ease-in-out infinite alternate;
}

@keyframes androidPulse {
    0% {
        box-shadow: 0 0 15px rgba(0, 255, 200, 0.2);
        border-color: rgba(0, 255, 200, 0.3);
    }
    100% {
        box-shadow: 0 0 35px rgba(0, 255, 200, 0.5);
        border-color: rgba(0, 255, 200, 0.8);
    }
}

/* Kotlin Code Typing Blinking Cursor */
.blinking-cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background-color: #00ffc8;
    margin-left: 2px;
    animation: blink 0.8s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Ripple Effect on Android Interactive Tap */
.compose-ripple {
    position: relative;
    overflow: hidden;
}

.compose-ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(0, 255, 200, 0.4) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.compose-ripple:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* Typography Classes */
.font-orbitron {
    font-family: 'Orbitron', monospace;
}

/* Eyebrow badge styling */
.cyber-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    color: rgba(0, 255, 200, 0.8);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.cyber-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: #00ffc8;
    box-shadow: 0 0 6px #00ffc8;
}

/* Stat Box Glow */
.stat-box {
    background: rgba(0, 255, 200, 0.03);
    border: 1px solid rgba(0, 255, 200, 0.08);
    border-radius: 4px;
    transition: all 0.3s ease;
}
.stat-box:hover {
    border-color: rgba(0, 255, 200, 0.3);
    background: rgba(0, 255, 200, 0.06);
}
