/* ========================================
   Digital Mizen - Modern CSS
   ======================================== */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-soft: rgba(13, 110, 253, 0.1);
    --secondary: #1a1a2e;
    --accent: #00d4ff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --gradient: linear-gradient(135deg, #0d6efd 0%, #00d4ff 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Top Bar */
.top-bar {
    background: var(--secondary);
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
}

.top-bar a {
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
}

.top-bar a:hover {
    color: #fff;
}

.bg-primary-soft {
    background: rgba(13, 110, 253, 0.2) !important;
    color: #93c5fd !important;
    font-weight: 500;
    font-size: 0.75rem;
}

/* Navbar */
.navbar {
    padding: 0.75rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md) !important;
}

.navbar-brand img {
    transition: var(--transition);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

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

/* Hero */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 40%, #0a3d62 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(13, 110, 253, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.min-vh-75 {
    min-height: 75vh;
}

.text-gradient {
    background: linear-gradient(90deg, #00d4ff, #0d6efd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: #00d4ff;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* Brand badges */
.brand-badge {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    display: inline-block;
    transition: var(--transition);
}

.brand-badge:hover {
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.letter-spacing {
    letter-spacing: 1.5px;
}

/* Sections */
.py-lg-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 560px;
    font-size: 1.05rem;
}

/* Service Cards */
.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.service-card:hover .service-icon {
    background: var(--primary);
}

.service-card:hover .service-icon i {
    color: #fff;
}

.service-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Product Cards */
.product-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.25);
}

.product-icon-wrap i {
    font-size: 1.75rem;
    color: #fff;
}

.product-card h5 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

/* About */
.about-list li {
    padding: 0.4rem 0;
    font-weight: 500;
}

.about-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.about-stat {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.about-stat:hover {
    box-shadow: var(--shadow-md);
}

.about-stat i {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.about-stat h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.about-stat p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* CTA Banner */
.cta-banner {
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

/* Contact */
.contact-info-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--primary);
    font-size: 1.15rem;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.04);
}

.form-control, .form-select {
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

/* Footer */
.footer {
    background: var(--secondary);
}

.footer-logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-links li {
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.35);
}

.btn-outline-primary {
    font-weight: 500;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0 6rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .display-4 {
        font-size: 2.25rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 3rem 0 5rem;
    }
    
    .display-4 {
        font-size: 1.85rem;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 1.5rem;
    }
}

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

/* Selection */
::selection {
    background: rgba(13, 110, 253, 0.2);
    color: var(--text-dark);
}
