/* CodeWave BD - Corporate Portfolio & Software Showcase Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Dark Theme Colors (Default) */
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #a0aec0;
    --text-muted: #8a99ad;
    
    /* Glowing Accents */
    --accent-indigo: #6366f1;
    --accent-cyan: #06b6d4;
    --accent-purple: #a855f7;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --accent-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #0891b2 100%);
    --glow-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
    --glass-blur: blur(16px);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.7);
    --border-color: rgba(0, 0, 0, 0.06);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --glow-shadow: 0 10px 30px rgba(99, 102, 241, 0.12);
}

/* Global Reset & Typography */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

/* Core color utility mapping for perfect theme support */
.text-primary {
    color: var(--text-primary) !important;
}
.text-secondary {
    color: var(--text-secondary) !important;
}
.text-muted {
    color: var(--text-muted) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Glassmorphism Styles */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--glow-shadow);
}

/* Custom Navbar */
.navbar-custom {
    background: rgba(11, 15, 25, 0.8) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

[data-theme="light"] .navbar-custom {
    background: rgba(248, 250, 252, 0.8) !important;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.2s ease;
}

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

/* Hero Section & Animated BG */
.hero-wrapper {
    position: relative;
    padding: 180px 0 120px;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero_tech_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
    transition: filter 0.4s ease, opacity 0.4s ease;
}

[data-theme="light"] .hero-wrapper::before {
    filter: invert(0.95) brightness(1.05) contrast(1.1);
    opacity: 0.18;
}

/* Glowing background dots */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
    background-image: radial-gradient(var(--accent-indigo) 1px, transparent 1px);
    background-size: 24px 24px;
}

.hero-glow-1 {
    position: absolute;
    top: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(0,0,0,0) 70%);
    z-index: 2;
    filter: blur(80px);
}

.hero-glow-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(0,0,0,0) 70%);
    z-index: 2;
    filter: blur(80px);
}

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

.hero-title {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Premium Buttons */
.btn-primary-glow {
    background: var(--accent-gradient);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    background: var(--accent-gradient-hover);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: #ffffff;
}

.btn-secondary-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

[data-theme="light"] .btn-secondary-outline:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
    color: #ffffff;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.4;
    z-index: -1;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Services Icons */
.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

/* Portfolio Filters */
.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 50px;
    margin: 5px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--glow-shadow);
}

/* FAQ Accordion Styling */
.accordion-custom .accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-custom .accordion-header .accordion-button {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-family: var(--font-heading);
    box-shadow: none;
    border: none;
    padding: 20px;
}

.accordion-custom .accordion-header .accordion-button:not(.collapsed) {
    color: var(--accent-cyan);
}

.accordion-custom .accordion-button::after {
    filter: invert(1);
}

[data-theme="light"] .accordion-custom .accordion-button::after {
    filter: none;
}

.accordion-custom .accordion-body {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Stats Counter */
.stat-box {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Testimonial slider */
.testimonial-card {
    padding: 40px;
}

.testimonial-text {
    font-style: italic;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.client-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--accent-indigo);
}

/* Tech Icon Stack */
.tech-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    margin: 5px;
    display: inline-block;
}

[data-theme="light"] .tech-badge {
    background: rgba(0,0,0,0.02);
}

/* Form Styles */
.form-custom .form-control {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
}

[data-theme="light"] .form-custom .form-control {
    background: rgba(0, 0, 0, 0.01);
}

.form-custom .form-control:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-indigo);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
    color: var(--text-primary);
}

/* Live Search Modal */
.search-modal-box {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.search-modal-box .modal-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

[data-theme="light"] .search-modal-box .modal-content {
    background: rgba(255, 255, 255, 0.98);
}

/* Detail Case Study layout */
.case-study-hero {
    padding: 160px 0 80px;
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.case-study-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Light / Dark Mode Toggle button in header */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

/* Premium Section Layout & Shading Styles */
.section-premium {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
    transition: background-color 0.4s ease, background 0.4s ease;
}

/* Elegant visual separators between sections */
.section-separator-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    z-index: 5;
}

.section-separator-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    z-index: 5;
}

/* Custom background shade definitions using extremely subtle radial accent glows */
.shade-bg-primary {
    background-color: var(--bg-primary);
    background-image: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 60%);
}

.shade-bg-secondary {
    background-color: var(--bg-secondary);
    background-image: radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 60%);
}

.shade-bg-gradient-accent {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    background-image: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.02) 0%, transparent 70%);
}

[data-theme="light"] .shade-bg-primary {
    background-image: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.015) 0%, transparent 60%);
}

[data-theme="light"] .shade-bg-secondary {
    background-image: radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.015) 0%, transparent 60%);
}

[data-theme="light"] .shade-bg-gradient-accent {
    background-image: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.01) 0%, transparent 70%);
}
