@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    /* Change from stark white to a soft, professional slate-tinted white */
    --bg-main: #f8fafc; 
    --bg-secondary: #f1f5f9;
    --glass-white: rgba(255, 255, 255, 0.7);
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: #334155;
}

/* Add a subtle grid pattern to the hero sections */
.hero-creative, .services-hero {
    background-color: var(--bg-main);
    background-image: radial-gradient(#cbd5e1 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    position: relative;
}

/* SECTION VARIATIONS to break up the "whiteness" */
.section-light {
    background-color: var(--bg-secondary);
}

.section-white-card {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* Decorative Blobs (Add these to your HTML for flair) */
.blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
}

body {
    background-color: var(--light);
    color: #334155;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    backdrop-filter: blur(10px);
    background: var(--glass) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--dark) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    margin: 0 10px;
}

/* HERO SECTION */
.hero {
    background: radial-gradient(circle at top right, #f0f9ff 0%, #e0f2fe 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
}

/* CARDS */
.service-card {
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 20px;
    background: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #e0f2fe;
    color: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* BUTTONS */
.btn-primary-custom {
    background: var(--dark);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
}

.btn-primary-custom:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Layout to push footer to bottom */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

/* This pushes the footer down */
main, .content-wrapper {
    flex: 1 0 auto;
}

/* MODERN SERVICE CARDS */
.service-card-modern {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    height: 100%;
    transition: all 0.3s ease;
}

.service-card-modern:hover {
    background: #ffffff;
    border-color: #0ea5e9;
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.1);
    transform: translateY(-5px);
}

.service-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0ea5e9;
    background: #f0f9ff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.tech-list li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #475569;
    font-weight: 500;
}

.fw-800 { font-weight: 800; }

/* RE-STYLE BG INFO FOR MODERN LOOK */
.bg-info-subtle {
    background-color: #e0f2fe !important;
}
.text-info {
    color: #0ea5e9 !important;
}
/* BIG MODERN FOOTER */
footer {
    flex-shrink: 0;
    background: #0f172a; /* Deep Slate */
    color: #94a3b8;
    padding: 80px 0 30px; /* Increased padding for "Bigness" */
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 25px;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
    display: block;
    margin-bottom: 12px;
}

footer a:hover {
    color: #0ea5e9; /* Sky Blue */
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
}

/* ABOUT PAGE SPECIALS */
.about-image-stack {
    position: relative;
    padding: 20px;
}

/* Create a decorative background element behind the image */
.about-image-stack::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #e0f2fe;
    top: 0;
    left: 0;
    border-radius: 50px;
    z-index: -1;
    transform: rotate(-3deg);
}

.about-image-stack img {
    transition: transform 0.5s ease;
}

.about-image-stack:hover img {
    transform: scale(1.02);
}

/* Feature icon box in About cards */
.icon-box-lg {
    width: 70px;
    height: 70px;
    background: #e0f2fe;
    color: #0ea5e9;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.py-100 { padding: 100px 0; }

.text-gradient {
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-tech {
    background: #e0f2fe;
    color: #0ea5e9;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* HERO VISUALS */
.hero-visual-container {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    position: absolute;
}

.main-ui {
    width: 320px;
    height: 220px;
    padding: 20px;
    z-index: 2;
}

.floating-card-1 {
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    font-weight: bold;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
    bottom: 40px;
    left: 20px;
    padding: 15px 25px;
    font-weight: bold;
    z-index: 3;
    animation: float 4s ease-in-out infinite 2s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* UI Placeholder Elements */
.ui-header { height: 10px; width: 40%; background: #e2e8f0; border-radius: 5px; margin-bottom: 20px; }
.ui-line { height: 8px; width: 100%; background: #f1f5f9; border-radius: 4px; margin-bottom: 10px; }
.ui-line.short { width: 60%; }
.ui-block { height: 60px; width: 100%; background: #f1f5f9; border-radius: 10px; }

/* FEATURE BOXES */
.feature-box {
    padding: 40px;
    background: white;
    border-radius: 30px;
    border: 1px solid #f1f5f9;
    transition: 0.3s;
}

.feature-box.active {
    background: #0ea5e9;
    color: white;
}

.feature-box.active .text-muted { color: rgba(255,255,255,0.8) !important; }

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

/* PROCESS STEPS */
.process-step {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
}

.step-num {
    font-weight: 800;
    color: #0ea5e9;
    font-size: 1.2rem;
    position: relative;
}

.step-num::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.1);
    left: 50%;
    top: 30px;
}
/* SERVICES PAGE ENHANCEMENTS */
.service-tag {
    color: #0ea5e9;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.pill-feature {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.tech-stack-card i {
    transition: 0.3s;
    cursor: pointer;
}

.tech-stack-card i:hover {
    color: #0ea5e9;
    transform: scale(1.2);
}

.cta-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #0ea5e9 100%);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
}

.vr {
    width: 1px;
    background-color: #e2e8f0;
    opacity: 1;
}

/* Glass card simulation */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: 30px;
}
/* CONTACT PAGE STYLES */
.modern-input {
    padding: 12px 18px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    background-color: #f8fafc;
    transition: 0.3s;
}

.modern-input:focus {
    border-color: #0ea5e9;
    background-color: #fff;
    box-shadow: none;
}

.icon-circle {
    width: 45px;
    height: 45px;
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}

.social-btn:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-3px);
}

.form-label {
    margin-bottom: 8px;
    color: #334155;
}

/* --- DARK MODE VARIABLES --- */
[data-theme="dark"] {
    --bg-main: #0f172a;        /* Deep Slate */
    --bg-secondary: #1e293b;   /* Lighter Slate */
    --text-main: #f1f5f9;
    --text-secondary: #94a3b8;
    --glass-white: rgba(15, 23, 42, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Updated Global Styles to use variables */
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .card, 
[data-theme="dark"] .service-card-modern,
[data-theme="dark"] .navbar {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color);
    color: var(--text-main);
}

[data-theme="dark"] .text-dark { color: #ffffff !important; }
[data-theme="dark"] .text-secondary, [data-theme="dark"] .text-muted { color: var(--text-secondary) !important; }

/* TOGGLE SWITCH UI */
.theme-switch-wrapper { display: flex; align-items: center; }
.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}
.theme-switch input { display: none; }
.slider {
    background-color: #cbd5e1;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 5px;
}
.slider:before {
    background-color: white;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    z-index: 2;
}
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
input:checked + .slider { background-color: #0ea5e9; }
input:checked + .slider:before { transform: translateX(26px); }

/* FORCE BOOTSTRAP TO RESPECT DARK THEME */
[data-theme="dark"] body {
    background-color: var(--bg-main) !important;
}

[data-theme="dark"] .bg-white, 
[data-theme="dark"] .bg-light,
[data-theme="dark"] .section-white-card {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .card, 
[data-theme="dark"] .service-card-modern,
[data-theme="dark"] .glass-card,
[data-theme="dark"] .tech-stack-card {
    background-color: #1e293b !important; /* Slightly lighter than main bg */
    border-color: rgba(255,255,255,0.1) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .text-dark, 
[data-theme="dark"] .fw-800,
[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h5 {
    color: #ffffff !important;
}

[data-theme="dark"] .text-muted, 
[data-theme="dark"] .text-secondary,
[data-theme="dark"] .lead {
    color: #94a3b8 !important;
}

[data-theme="dark"] .navbar {
    background-color: rgba(15, 23, 42, 0.9) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .modern-input {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: white !important;
}

[data-theme="dark"] .pill-feature {
    background-color: #334155 !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}

/* Adjust Hero Grid for Dark Mode */
[data-theme="dark"] .hero-creative, 
[data-theme="dark"] .services-hero {
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 0.5px, transparent 0.5px) !important;
}

/* Adjust Blobs for Dark Mode */
[data-theme="dark"] .blob {
    opacity: 0.2;
}
/* FIX INVISIBLE ELEMENTS IN DARK MODE */
[data-theme="dark"] .navbar-brand,
[data-theme="dark"] .nav-link,
[data-theme="dark"] .footer h5,
[data-theme="dark"] .footer a,
[data-theme="dark"] .service-card-modern h3,
[data-theme="dark"] .feature-box h4,
[data-theme="dark"] .step-num,
[data-theme="dark"] .process-step h5,
[data-theme="dark"] label.form-label {
    color: #ffffff !important;
}

/* Ensure Icons are visible */
[data-theme="dark"] i:not(.text-info):not(.text-warning):not(.text-success) {
    color: #cbd5e1 !important;
}

/* Fix "Light" buttons that become invisible on light backgrounds in dark mode */
[data-theme="dark"] .btn-outline-dark {
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .btn-outline-dark:hover {
    background-color: #475569 !important;
}

/* Fix text-muted which becomes too dark to read */
[data-theme="dark"] .text-muted, 
[data-theme="dark"] .text-secondary,
[data-theme="dark"] .text-white-50,
[data-theme="dark"] p.lead {
    color: #94a3b8 !important; /* Lighter slate blue for readability */
}

/* Fix Borders that disappear */
[data-theme="dark"] .border,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Specific Navbar Dark Mode Fix */
[data-theme="dark"] .navbar {
    background-color: #0f172a !important; /* Matches main bg */
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .navbar-toggler {
    filter: invert(1); /* Makes the "hamburger" icon white */
}

/* Specific Navbar Dark Mode Fix */
[data-theme="dark"] .navbar {
    background-color: #0f172a !important; /* Matches main bg */
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .navbar-toggler {
    filter: invert(1); /* Makes the "hamburger" icon white */
}

* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}