/* Custom Styles for Terraformix Redesign */

/* 1. Global Variables & Typography Overrides */
:root {
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    --dark-bg: #0b0f19;
    --slate-card: #131b2e;
    --border-color: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

/* 2. Custom Padding & Utilities */
.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.fs-12 {
    font-size: 0.75rem;
}

.fs-14 {
    font-size: 0.875rem;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

.max-width-600 {
    max-width: 600px;
}

.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. Text & Badge Gradients */
.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bg-primary-gradient {
    background: var(--primary-gradient);
    color: #ffffff !important;
}

/* 4. Navigation Styling */
#mainNav {
    transition: all 0.3s ease-in-out;
    background-color: transparent;
    border-bottom: 1px solid transparent;
}

/* Scrolling/Sticky Navbar Blur Effect - Fully solid dark to prevent bleeding */
#mainNav.navbar-shrink {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    background-color: #0b0f19 !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #60a5fa !important;
}

/* On screens smaller than 992px, navbar always has a solid background for readability */
@media (max-width: 991.98px) {
    #mainNav {
        background-color: #0b0f19 !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* 5. Hero Section (Sleek Dark Glowing Theme) */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 100px;
    background-color: var(--dark-bg) !important;
    overflow: hidden;
}

/* Radial Glow Behind Content */
.hero-bg-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(16, 185, 129, 0.03) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.fw-extrabold {
    font-weight: 800;
}

/* Premium Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
    background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* 6. Challenges (Light Mode Cards) */
.challenge-card {
    background-color: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.challenge-card:hover {
    transform: translateY(-4px);
    background-color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    border-color: rgba(59, 130, 246, 0.15) !important;
}

.roi-highlight {
    background-color: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
}

/* 7. Specialties (Premium Dark Cards) */
.bg-dark {
    background-color: var(--dark-bg) !important;
}

.service-card {
    background-color: var(--slate-card) !important;
    border: 1px solid var(--border-color) !important;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(59, 130, 246, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.bg-primary-transparent {
    background-color: rgba(59, 130, 246, 0.1);
}

.link-primary {
    color: #60a5fa !important;
    transition: color 0.2s ease;
}

.link-primary:hover {
    color: #34d399 !important;
}

/* 8. Process Section (Elegant Numbers & Timeline) */
.step-num {
    font-size: 2.25rem;
    line-height: 1;
    margin-right: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-content {
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
}

/* 9. Contact Section */
.bg-slate {
    background-color: var(--slate-card) !important;
}

.contact-form .form-control {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px;
    padding: 1.2rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}

.contact-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25) !important;
}

.contact-form .form-floating > label {
    padding: 1.2rem 1rem;
}

.contact-form .form-floating > .form-control:focus ~ label,
.contact-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #60a5fa !important;
    opacity: 0.85;
}

/* 10. Footer Section */
.bg-black {
    background-color: #06080e !important;
}

.fs-14 {
    font-size: 0.875rem;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
