/* =============================================
   ROOT VARIABLES - Modern Color Scheme
   ============================================= */
:root {
    /* Primary Colors */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    
    /* Secondary Colors */
    --secondary: #06b6d4;
    --secondary-dark: #0891b2;
    --secondary-light: #67e8f9;
    
    /* Accent Colors */
    --accent: #f97316;
    --accent-dark: #ea580c;
    --warning: #eab308;
    --success: #22c55e;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Text Colors - Enhanced Contrast */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    
    /* Border Colors */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    
    /* Shadow */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4rem;
    --space-8: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
}

/* =============================================
   GLOBAL STYLES
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    overflow-x: hidden;
}

/* Typography - Enhanced Readability */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-5xl);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    line-height: 1.7;
}

.lead {
    font-size: var(--text-lg);
    color: var(--text-muted);
    font-weight: 400;
}

/* =============================================
   BUTTONS - Modern & Interactive
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-weight: 600;
    font-size: var(--text-base);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 14px 40px;
    font-size: var(--text-lg);
}

.btn-sm {
    padding: 8px 20px;
    font-size: var(--text-sm);
}

/* =============================================
   CARDS - Modern Glassmorphism
   ============================================= */
.service-card,
.portfolio-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    height: 100%;
}

.service-card:hover,
.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.service-icon i {
    font-size: 32px;
    color: var(--text-white);
}

.service-card h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================
   NAVBAR - Modern & Sticky
   ============================================= */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    padding: 0.7rem 0;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.navbar-brand i {
    background: none;
    -webkit-text-fill-color: var(--primary);
}

.nav-link {
    color: var(--text-white) !important;
    font-weight: 500;
    margin: 0 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-light) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* =============================================
   HERO SECTION - Modern & Engaging
   ============================================= */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .display-3 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

.hero .display-3 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead {
    font-size: 1.2rem;
    color: var(--text-light) !important;
    margin-bottom: var(--space-5);
}

/* Hero Image Animation */
.hero-image-wrapper {
    position: relative;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    animation: floatIcon 3s ease-in-out infinite;
    backdrop-filter: blur(5px);
}

.icon-1 { top: 10%; left: -20px; animation-delay: 0s; color: #E34F26; }
.icon-2 { top: 30%; right: -20px; animation-delay: 1s; color: #1572B6; }
.icon-3 { bottom: 20%; left: -15px; animation-delay: 2s; color: #F7DF1E; }
.icon-4 { top: 50%; right: -25px; animation-delay: 1.5s; color: #61DAFB; }
.icon-5 { bottom: 10%; right: -15px; animation-delay: 0.5s; color: #777BB4; }
.icon-6 { top: 70%; left: -25px; animation-delay: 2.5s; color: #FF2D20; }

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(-15px) translateX(10px);
    }
}

/* =============================================
   STATS SECTION
   ============================================= */
.stats-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: var(--space-2);
}

.stats-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* =============================================
   REVIEWS SECTION
   ============================================= */
.review-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.star-rating i {
    font-size: 18px;
    margin: 0 2px;
}

.star-rating .filled {
    color: var(--warning);
}

.star-rating .empty {
    color: var(--border-medium);
}

.review-text {
    font-style: italic;
    color: var(--text-secondary);
    margin: var(--space-4) 0;
}

.review-author {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
}

.review-company {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--bg-darker);
    color: var(--text-light);
    padding: var(--space-7) 0 var(--space-4);
}

footer h4, footer h5 {
    color: var(--text-white);
    margin-bottom: var(--space-4);
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: var(--space-2);
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--text-white);
    transition: all 0.3s ease;
    margin-right: var(--space-2);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* =============================================
   FORM STYLES
   ============================================= */
.form-control, .form-select {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-size: var(--text-base);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

/* =============================================
   BADGES & TAGS
   ============================================= */
.badge {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
}

.badge-primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

/* =============================================
   ALERTS
   ============================================= */
.alert {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    border: none;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1200px) {
    :root {
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 140px 0 80px;
        text-align: center;
    }
    
    .hero .display-3 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
    
    .hero .d-flex {
        justify-content: center;
    }
    
    .stats-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --space-6: 2rem;
        --space-7: 3rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .service-card, .portfolio-card {
        padding: var(--space-4);
    }
    
    .floating-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .icon-1, .icon-3, .icon-5 {
        left: -10px;
    }
    
    .icon-2, .icon-4, .icon-6 {
        right: -10px;
    }
}

@media (max-width: 576px) {
    .hero .display-3 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: var(--text-sm);
    }
    
    .btn-lg {
        padding: 12px 28px;
    }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    .navbar, footer, .back-to-top, .social-icons {
        display: none;
    }
    
    body {
        padding: 0;
        margin: 0;
    }
}