/* ============================================
   BitRooted - Modern 2025 Design System
   ============================================ */

:root {
    /* Core Colors */
    --primary: #0e7c8f;
    --accent: #1fc2a0;
    --accent-light: #7dd3fc;
    --accent-glow: rgba(31, 194, 160, 0.2);
    
    /* Backgrounds */
    --bg: #101820;
    --bg-elevated: #1a2332;
    --card-bg: #18232f;
    --card-bg-hover: #1f2d3d;
    
    /* Text */
    --text: #e6f1ff;
    --text-muted: #7a8fa6;
    --text-dim: #4a5a6a;
    
    /* Borders & Dividers */
    --border: rgba(31, 194, 160, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.05);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(14, 124, 143, 0.08);
    --shadow-md: 0 4px 16px rgba(14, 124, 143, 0.12);
    --shadow-lg: 0 8px 32px rgba(30, 200, 160, 0.15);
    --shadow-glow: 0 0 20px var(--accent-glow);
    
    /* Spacing */
    --section-padding: 6rem 0;
    --container-padding: 2rem;
    
    /* Animations */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   Base Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Grain Texture Overlay - 2025 Trend */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

body > * {
    position: relative;
    z-index: 2;
}

/* ============================================
   Scroll Progress Bar
   ============================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #1fc2a0 0%, #0e7c8f 50%, #7dd3fc 100%);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ============================================
   Navigation - Enhanced
   ============================================ */

.navbar {
    background: rgba(16, 24, 32, 0.85) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
    transition: all 0.3s var(--transition-smooth);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(16, 24, 32, 0.95) !important;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    color: var(--accent) !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    transition: transform 0.3s var(--transition-smooth);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    width: 42px;
    height: 42px;
    transition: transform 0.3s var(--transition-bounce);
}

.navbar-brand:hover img {
    transform: rotate(5deg) scale(1.1);
}

.nav-link {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s var(--transition-smooth);
}

.nav-link.active,
.nav-link:hover {
    color: var(--accent) !important;
}

.nav-link::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: width 0.3s var(--transition-smooth);
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* ============================================
   Hero Section - Modernized
   ============================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #0e7c8f 0%, #101820 50%, #1a2332 100%);
}

/* Animated Mesh Gradient Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(31, 194, 160, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(14, 124, 143, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(125, 211, 252, 0.1) 0%, transparent 50%);
    animation: meshGradient 20s ease infinite;
    z-index: 0;
}

@keyframes meshGradient {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5%, 5%) rotate(90deg); }
    50% { transform: translate(-5%, 5%) rotate(180deg); }
    75% { transform: translate(5%, -5%) rotate(270deg); }
}

/* Floating Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    bottom: 20%;
    right: 15%;
    animation-delay: -7s;
}

.hero-orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    top: 50%;
    right: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #1fc2a0 30%, #0e7c8f 60%, #7dd3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-sub {
    color: var(--text-muted);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta-group {
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* ============================================
   Buttons - Enhanced
   ============================================ */

.btn-accent {
    background: linear-gradient(135deg, #0e7c8f 0%, #1fc2a0 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 3rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: 
        0 0 20px rgba(31, 194, 160, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-accent:hover::before {
    width: 300px;
    height: 300px;
}

.btn-accent:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 
        0 0 30px rgba(31, 194, 160, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-accent:active {
    transform: translateY(0);
}

.btn-outline-accent {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
    font-weight: 600;
    border-radius: 3rem;
    padding: 0.95rem 2.5rem;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--transition-smooth);
}

.btn-outline-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: left 0.5s;
}

.btn-outline-accent:hover::before {
    left: 100%;
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ============================================
   Stats Section - New
   ============================================ */

.stats-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(31, 194, 160, 0.03) 100%);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.stat-card::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border);
}

.stat-card:last-child::after {
    display: none;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Section Styles
   ============================================ */

section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: var(--text);
}

.section-title-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: -2rem auto 3rem;
}

/* ============================================
   Card System - Bento Style
   ============================================ */

.card-custom {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on hover */
.card-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(31, 194, 160, 0.08), transparent);
    transition: left 0.6s;
    pointer-events: none;
}

.card-custom:hover::before {
    left: 100%;
}

.card-custom:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    background: var(--card-bg-hover);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s var(--transition-bounce);
}

.card-custom:hover .card-icon {
    transform: scale(1.2) rotate(5deg);
}

.card-title {
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.card-text {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   Services - Icon Style
   ============================================ */

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s var(--transition-smooth);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, transparent, var(--accent-glow));
    transition: height 0.3s var(--transition-smooth);
}

.service-card:hover::after {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: grayscale(0.3);
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    filter: grayscale(0);
    transform: scale(1.15);
}

.service-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.form-control,
.form-control:focus {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.85rem 1.2rem;
    font-size: 1rem;
    transition: all 0.3s var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
}

.form-label {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info a {
    color: var(--accent);
    margin-right: 1.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s var(--transition-smooth);
    display: inline-block;
}

.contact-info a:hover {
    color: var(--accent-light);
    transform: translateY(-2px);
}

.contact-info p {
    color: var(--text-muted);
    margin: 1rem 0 0 0;
    font-size: 1rem;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: linear-gradient(180deg, var(--bg) 0%, #0a121a 100%);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.95rem;
}

footer nav a {
    color: var(--text-muted);
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
}

footer nav a:hover {
    color: var(--accent);
}

/* ============================================
   Floating CTA Button
   ============================================ */

.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px var(--accent-glow);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    animation: pulse 2s infinite;
}

.floating-cta:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px var(--accent-glow);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px var(--accent-glow);
    }
    50% {
        box-shadow: 0 4px 30px rgba(31, 194, 160, 0.4);
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 992px) {
    :root {
        --section-padding: 4rem 0;
    }
    
    .hero-section {
        padding-top: 80px;
        min-height: 90vh;
    }
    
    .hero-title {
        text-align: center;
    }
    
    .hero-sub {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .stat-card::after {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .floating-cta {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-info a {
        display: block;
        margin: 0.5rem 0;
    }
}

/* ============================================
   Utilities
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow {
    box-shadow: var(--shadow-glow);
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

