/* ========================================
   India Informatics - Custom Styles
   Ultra Modern Design with Animations
======================================== */

:root {
    --primary: #0EA5E9;
    --primary-dark: #0284c7;
    --secondary: #38BDF8;
    --cta: #F97316;
    --accent: #F97316;
    --purple: #8b5cf6;
    --dark: #0C4A6E;
    --gray: #64748b;
    --light: #F0F9FF;
    --white: #ffffff;
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
}

.letter-spacing {
    letter-spacing: 0.15em;
}

/* Custom Colors */
.bg-purple-subtle {
    background-color: rgba(139, 92, 246, 0.1) !important;
}

.text-purple {
    color: var(--purple) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Navbar
======================================== */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

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

.navbar .btn-primary {
    background: var(--primary);
    border: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.navbar .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-cta {
    background: var(--cta);
    color: white !important;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========================================
   Hero Section
======================================== */
.hero-section {
    background: var(--light);
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

/* Aurora Backdrop Animation */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%,
            rgba(14, 165, 233, 0.15) 0%,
            rgba(56, 189, 248, 0.1) 25%,
            rgba(240, 249, 255, 0) 50%);
    animation: aurora 15s linear infinite;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: aurora 20s linear infinite reverse;
}

@keyframes aurora {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(5%, 5%) rotate(5deg);
    }

    66% {
        transform: translate(-5%, 2%) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.hero-section .display-3 {
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    max-width: 100%;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.02);
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: 30px;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.btn-dark {
    background: var(--dark);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-outline-dark {
    border-radius: 50px;
    font-weight: 600;
    border-width: 2px;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    transform: translateY(-2px);
    background-color: var(--dark);
    color: white;
}

/* Glass Orb */
.glass-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 30% 30%,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(14, 165, 233, 0.05) 60%,
            rgba(56, 189, 248, 0.2) 100%);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        inset 0 20px 30px rgba(255, 255, 255, 0.3),
        inset 0 -20px 30px rgba(0, 0, 0, 0.1),
        0 40px 80px rgba(14, 165, 233, 0.15);
    z-index: 1;
    animation: orbFloat 10s ease-in-out infinite;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) scale(1.05) rotate(5deg);
    }
}

/* ========================================
   Services Section
======================================== */
.service-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 96, 217, 0.1);
    border-color: transparent;
}

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

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

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

.service-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

/* ========================================
   About Section
======================================== */
.about-image {
    position: relative;
}

.about-image img {
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-stat {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-icon {
    transition: all 0.3s ease;
}

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

/* ========================================
   Contact Section
======================================== */
.contact-form-wrapper {
    background: var(--light);
    border-radius: 20px;
    padding: 2.5rem;
}

.contact-form .form-control {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 96, 217, 0.1);
}

.contact-form .btn-primary {
    background: var(--primary);
    border: none;
    border-radius: 10px;
    padding: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.contact-icon {
    transition: all 0.3s ease;
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--white);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-brand img {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-heading {
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-link {
    display: block;
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ========================================
   Buttons
======================================== */
.btn-primary {
    background: var(--primary);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }

    .hero-circle {
        width: 200px;
        height: 200px;
    }

    .hero-icon {
        font-size: 80px;
    }

    .about-stat {
        bottom: -10px;
        right: 10px;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 767px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-5,
    .display-6 {
        font-size: 1.75rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* ========================================
   Animations
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========================================
   Products Section
======================================== */
.product-image-wrapper {
    position: relative;
}

.product-showcase-img {
    transition: transform 0.5s ease;
}

.product-image-wrapper:hover .product-showcase-img {
    transform: scale(1.02);
}

.product-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 2;
    animation: float 5s ease-in-out infinite;
}

.clickable-image {
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.clickable-image:hover {
    filter: brightness(0.95);
}

/* Carousel Refinements */
.carousel-caption {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.1));
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

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

/* Selection color */
::selection {
    background: rgba(16, 96, 217, 0.2);
    color: var(--dark);
}