/* Main Stylesheet for IndMon Website */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Root Variables */
:root {
    --color-orange: #FF9933;
    --color-green: #138808;
    --color-blue: #000080;
    --color-white: #FFFFFF;
    --transition-speed: 300ms;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    overflow-x: hidden;
}

/* Custom Scrollbar - Modern Thin Design */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.6);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Modern Navigation Animations */
.nav-link-modern {
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Futuristic Glow Effect */
.nav-link-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link-modern:hover::before {
    left: 100%;
}

/* Morphing Underline */
.nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #000000, #333333, #000000);
    transform: translateX(-50%);
    transition: width 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* Hover State with Scale */
.nav-link-modern:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Active State with Enhanced Glow and Scale */
.nav-link-modern.active,
.nav-link-modern.nav-active {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
    transform: translateY(-2px) scale(1.08);
    font-weight: 600;
    color: #000000 !important;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: activeNavPulse 3s infinite, activeGlow 2s infinite alternate;
}

.nav-link-modern.active::after,
.nav-link-modern.nav-active::after {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #000000, #333333, #000000);
    animation: activeShimmer 2s infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Enhanced Active State Animations */
@keyframes activeNavPulse {
    0%, 100% {
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.15),
            0 0 20px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.25),
            0 0 30px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes activeGlow {
    0% {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
    }
    100% {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.08));
    }
}

@keyframes activeShimmer {
    0% {
        background: linear-gradient(90deg, #000000, #333333, #000000);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        background: linear-gradient(90deg, #333333, #000000, #333333);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    }
    100% {
        background: linear-gradient(90deg, #000000, #333333, #000000);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Mobile Nav Active State */
.mobile-nav-link.active,
.mobile-nav-link.nav-active {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05)) !important;
    border-left: 4px solid #000000 !important;
    font-weight: 600 !important;
    transform: translateX(8px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: mobileNavPulse 2s infinite;
}

@keyframes mobileNavPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    }
}

/* Magnetic Effect on Hover */
.nav-link-modern {
    cursor: pointer;
}

.nav-link-modern:hover {
    color: #000000 !important;
}

/* Remove old navigation styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-orange);
    transition: width var(--transition-speed);
}

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

/* Scroll to Top Button */
#scrollToTop {
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

#scrollToTop.show {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Flash Messages Auto-dismiss */
.flash-message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    transition: all var(--transition-speed);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

/* Button Hover Effects */
button,
.btn {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed);
}

button::before,
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before,
.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Card Hover Effects */
.card-hover {
    transition: all var(--transition-speed);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-orange), var(--color-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--color-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Section Spacing */
section {
    position: relative;
}

/* Navbar Scroll Effect */
#navbar.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Animation - Enhanced */
#mobileMenu {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
}

#mobileMenu.show {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Button Animation */
#mobileMenuBtn {
    position: relative;
    z-index: 1000;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#mobileMenuBtn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

#mobileMenuBtn:active {
    transform: scale(0.95);
}

/* Mobile Menu Items Animation */
#mobileMenu a {
    opacity: 0;
    transform: translateX(-20px);
    animation: none;
}

#mobileMenu.show a {
    animation: slideInLeft 0.3s ease forwards;
}

#mobileMenu.show a:nth-child(1) { animation-delay: 0.1s; }
#mobileMenu.show a:nth-child(2) { animation-delay: 0.15s; }
#mobileMenu.show a:nth-child(3) { animation-delay: 0.2s; }
#mobileMenu.show a:nth-child(4) { animation-delay: 0.25s; }
#mobileMenu.show a:nth-child(5) { animation-delay: 0.3s; }
#mobileMenu.show a:nth-child(6) { animation-delay: 0.35s; }
#mobileMenu.show a:nth-child(7) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pricing Card Featured */
.pricing-featured {
    border: 3px solid var(--color-orange);
    transform: scale(1.05);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-orange {
    background-color: #fff7ed;
    color: var(--color-orange);
}

.badge-green {
    background-color: #f0fdf4;
    color: var(--color-green);
}

/* Timeline Styles */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-orange);
}

/* Testimonial Styles */
.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
}

.testimonial-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Stats Counter Animation */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

/* Feature Icon Styles */
.feature-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

/* Blog Card Styles */
.blog-card {
    overflow: hidden;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
}

.blog-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    transition: transform var(--transition-speed);
}

.blog-card:hover img {
    transform: scale(1.1);
}

/* Contact Form Styles */
.contact-form {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
footer a {
    transition: color var(--transition-speed);
}

footer a:hover {
    color: var(--color-orange);
}

/* Utility Classes */
.text-balance {
    text-wrap: balance;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* Print Styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

/* Comprehensive Responsive Design */

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .max-w-7xl {
        padding: 0 1rem;
    }
    
    /* Navigation adjustments */
    #navbar .h-16 {
        height: 4rem;
    }
    
    #navbar .text-2xl {
        font-size: 1.25rem;
    }
    
    /* Hero section mobile */
    .text-5xl {
        font-size: 2rem !important;
    }
    
    .text-7xl {
        font-size: 2.5rem !important;
    }
    
    .text-2xl {
        font-size: 1rem !important;
    }
    
    .text-3xl {
        font-size: 1.25rem !important;
    }
    
    /* Grid adjustments */
    .grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    
    /* Spacing adjustments */
    .py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Cards spacing */
    .p-8 {
        padding: 1rem !important;
    }
    
    .gap-8 {
        gap: 1rem !important;
    }
}

/* Large Mobile (480px - 768px) */
@media (min-width: 480px) and (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .text-5xl {
        font-size: 2.5rem !important;
    }
    
    .text-7xl {
        font-size: 3rem !important;
    }
    
    .py-20 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    html {
        font-size: 16px;
    }
    
    .max-w-7xl {
        padding: 0 2rem;
    }
    
    .text-5xl {
        font-size: 3rem !important;
    }
    
    .text-7xl {
        font-size: 4rem !important;
    }
    
    /* Grid optimizations for tablet */
    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    
    .lg\\:grid-cols-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Small Desktop (1024px - 1440px) */
@media (min-width: 1024px) and (max-width: 1440px) {
    html {
        font-size: 16px;
    }
    
    .max-w-7xl {
        max-width: 1200px;
    }
}

/* Large Desktop (1440px - 1920px) */
@media (min-width: 1440px) and (max-width: 1920px) {
    html {
        font-size: 17px;
    }
    
    .max-w-7xl {
        max-width: 1400px;
    }
}

/* 4K/Large Screens (1920px - 2560px) */
@media (min-width: 1920px) and (max-width: 2560px) {
    html {
        font-size: 18px;
    }
    
    .max-w-7xl {
        max-width: 1600px;
    }
    
    /* Larger text for 4K */
    .text-5xl {
        font-size: 4rem !important;
    }
    
    .text-7xl {
        font-size: 5.5rem !important;
    }
    
    .py-20 {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
    }
}

/* TV/Ultra Wide (2560px+) */
@media (min-width: 2560px) {
    html {
        font-size: 20px;
    }
    
    .max-w-7xl {
        max-width: 1800px;
    }
    
    /* TV optimized text */
    .text-5xl {
        font-size: 4.5rem !important;
    }
    
    .text-7xl {
        font-size: 6rem !important;
    }
    
    .py-20 {
        padding-top: 8rem !important;
        padding-bottom: 8rem !important;
    }
    
    /* Better spacing for large screens */
    .gap-8 {
        gap: 3rem !important;
    }
    
    .p-8 {
        padding: 3rem !important;
    }
}

/* Landscape Mobile Specific */
@media (max-height: 500px) and (orientation: landscape) {
    .min-h-screen {
        min-height: auto !important;
        height: auto !important;
    }
    
    .py-20 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .text-5xl, .text-7xl {
        font-size: 2rem !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-link-modern::after {
        height: 1px;
        transform: translateX(-50%) scaleY(2);
    }
}

/* Responsive Typography */
@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }
}
