/* ===== CSS VARIABLES ===== */
:root {
    --primary: #1874CD;
    --primary-hover: #1562AD;
    --accent: #0ea5e9;
    --dark: #0B1220;
    --light-bg: #F6FAFF;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ===== TAILWIND OVERRIDES ===== */
.bg-primary { background-color: var(--primary); }
.bg-primary-hover { background-color: var(--primary-hover); }
.bg-accent { background-color: var(--accent); }
.bg-dark { background-color: var(--dark); }
.bg-light-bg { background-color: var(--light-bg); }

.text-primary { color: var(--primary); }
.text-primary-hover { color: var(--primary-hover); }
.text-accent { color: var(--accent); }
.text-dark { color: var(--dark); }
.text-light-bg { color: var(--light-bg); }

.border-primary { border-color: var(--primary); }
.border-accent { border-color: var(--accent); }

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 1.25rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 1.25rem;
}

/* ===== NAVIGATION ===== */
.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--primary/5);
}

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

.nav-link:hover::after {
    width: 80%;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--gray-700);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

.mobile-menu {
    transition: all 0.3s ease;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background-color: var(--primary/5);
    color: var(--primary);
}



.slider-control:hover {
    transform: scale(1.1);
}

.slider-play-pause {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-play-pause:hover {
    transform: scale(1.1);
}

/* ===== HERO SECTION ===== */
#home {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-bg), white, var(--light-bg));
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== STATS CARDS ===== */
.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
    text-shadow: 0 2px 4px rgba(24, 116, 205, 0.1);
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary/20);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ===== TECHNOLOGY ITEMS ===== */
.tech-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary/20);
}

.tech-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.tech-item:hover .tech-icon {
    transform: scale(1.1);
}

.tech-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* ===== CONTACT FORM ===== */
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary/10);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}

/* ===== CONTACT INFO CARDS ===== */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer-link {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gray-700);
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.back-to-top-btn.show {
    display: flex;
}

/* ===== UTILITY CLASSES ===== */
.text-primary-100 {
    color: rgba(255, 255, 255, 0.9);
}

.bg-primary\/5 {
    background-color: rgba(24, 116, 205, 0.05);
}

.bg-primary\/10 {
    background-color: rgba(24, 116, 205, 0.1);
}

.bg-primary\/20 {
    background-color: rgba(24, 116, 205, 0.2);
}

.bg-accent\/10 {
    background-color: rgba(14, 165, 233, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Hero Section */
    #home {
        height: 100vh;
        min-height: 500px;
    }
    
    #home h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    #home p {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Section Spacing */
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    /* About Section */
    .grid.grid-cols-1.lg\\:grid-cols-2 {
        gap: 2rem;
    }
    
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        gap: 1.5rem;
    }
    
    /* Testimonials */
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
        gap: 1.5rem;
    }
    
    .testimonial-card .bg-white {
        padding: 1.5rem;
    }
    
    .testimonial-card p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    /* Contact */
    .tech-item {
        padding: 1rem;
    }
    
    .contact-info-card {
        padding: 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Partners Grid */
    .grid.grid-cols-2.md\\:grid-cols-3.lg\\:grid-cols-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .partner-logo div {
        height: 3rem;
        font-size: 0.75rem;
    }
    
    .back-to-top-btn {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    /* Hero Section */
    #home h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    #home p {
        font-size: 0.9rem;
    }
    
    .btn-primary.btn-large,
    .btn-secondary.btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Section Spacing */
    .py-20 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Stats */
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.25rem;
    }
    
    .service-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .service-icon i {
        font-size: 1.25rem;
    }
    
    /* About Section */
    .grid.grid-cols-1.lg\\:grid-cols-2 {
        gap: 1.5rem;
    }
    
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        gap: 1rem;
    }
    
    /* Testimonials */
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
        gap: 1rem;
    }
    
    .testimonial-card .bg-white {
        padding: 1rem;
    }
    
    .testimonial-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .testimonial-card h4 {
        font-size: 0.9rem;
    }
    
    .testimonial-card .text-sm {
        font-size: 0.75rem;
    }
    
    /* Contact */
    .tech-item {
        padding: 0.75rem;
    }
    
    .contact-info-card {
        padding: 0.75rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .mobile-menu-btn {
        width: 2rem;
        height: 2rem;
    }
    
    .mobile-menu-btn i {
        font-size: 1rem;
    }
    
    /* Partners Grid - Mobile */
    .grid.grid-cols-2.md\\:grid-cols-3.lg\\:grid-cols-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .partner-logo div {
        height: 2.5rem;
        font-size: 0.7rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.slide-in-up {
    animation: slideInUp 1s ease-out;
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    margin: -0.75rem 0 0 -0.75rem;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== FOCUS STYLES ===== */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== PARTNERS GRID ===== */
.partner-logo {
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-2px);
}

.partner-logo div {
    transition: all 0.3s ease;
}

.partner-logo:hover div {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card .bg-white {
    transition: all 0.3s ease;
}

.testimonial-card:hover .bg-white {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ===== PROJECT CARDS ===== */
.project-card {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.project-card .badge {
    transition: all 0.3s ease;
}

.project-card:hover .badge {
    background-color: var(--primary/10);
    color: var(--primary);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--dark), var(--gray-800));
}

/* ===== RESPONSIVE SLIDER ===== */
@media (max-width: 768px) {
    .hero-slider {
        height: 100vh;
        min-height: 500px;
    }
    
    #home {
        height: 100vh;
        min-height: 500px;
    }
    
    .slider-control {
        display: none;
    }
    
    .slider-play-pause {
        top: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .slider-dot {
        width: 12px;
        height: 12px;
        margin: 0 4px;
    }
    
    .hero-slide h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-slide p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .hero-slide {
        padding: 1.5rem 1rem;
    }
    
    /* Adjust dots position for mobile */
    .slider-dot {
        bottom: 40px;
    }
    
    /* Ensure dots are visible above stats */
    .slider-dot {
        z-index: 50 !important;
    }
}

@media (max-width: 640px) {
    .hero-slider {
        height: 100vh;
        min-height: 500px;
    }
    
    #home {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-slide h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-slide p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
    
    /* Adjust dots position for small mobile */
    .slider-dot {
        bottom: 36px;
    }
    
    /* Ensure dots are visible above stats */
    .slider-dot {
        z-index: 50 !important;
    }
    
    /* Adjust button sizes for small mobile */
    .hero-slide .btn-primary.btn-large,
    .hero-slide .btn-secondary.btn-large {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .back-to-top-btn,
    .mobile-menu-btn,
    .btn-primary,
    .btn-secondary,
    .slider-control,
    .slider-play-pause,
    .slider-dot {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .service-card,
    .tech-item,
    .contact-info-card,
    .testimonial-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .hero-slide {
        position: relative !important;
        opacity: 1 !important;
    }
}

/* ===== FEATURED CONTENT ===== */
/* Floating cards positioning and animations */
.relative .absolute {
    transition: all 0.3s ease;
    z-index: 10;
}

.relative .absolute:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
    z-index: 20;
}

/* Specific card hover effects */
.relative .absolute.-bottom-6.-right-6:hover {
    transform: translateY(-8px) scale(1.02);
}

.relative .absolute.-top-6.-left-6:hover {
    transform: translateY(-8px) scale(1.02);
}

.relative .absolute.top-1\/2.-left-8:hover {
    transform: translateY(-8px) scale(1.02);
}

.relative .absolute.top-1\/2.-right-8:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Card content styling */
.relative .absolute h5 {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.relative .absolute p {
    color: var(--gray-600);
    line-height: 1.4;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.relative .absolute i {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

/* Card styling improvements */
.relative .absolute {
    border: 1px solid var(--gray-100);
    background: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.relative .absolute:hover {
    border-color: var(--primary/20);
    background: linear-gradient(135deg, white, var(--light-bg));
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px) scale(1.02);
}

.relative .absolute:hover h5 {
    color: var(--primary);
}

.relative .absolute:hover i {
    transform: scale(1.1);
}

/* Responsive adjustments for technology cards */
@media (max-width: 768px) {
    .grid.grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
