/* =============================================================================
   BASE STYLES - Reset, Typography, and Global Styles
   ============================================================================= */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables for Colors */
:root {
    --primary-color: #1E3A8A;
    --secondary-color: #10B981;
    --accent-color: #FF4040;
    --text-color: #000000;
    --text-muted: #6B7280;
    --background-light: #F9FAFB;
    --background-white: #FFFFFF;
    --border-color: rgba(30, 58, 138, 0.1);
    --shadow-light: rgba(30, 58, 138, 0.08);
    --shadow-medium: rgba(30, 58, 138, 0.15);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
    letter-spacing: 0.2px;
    position: relative;
    background: linear-gradient(135deg, 
        var(--background-light) 0%, 
        var(--background-white) 50%, 
        var(--background-light) 100%);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* Section Styles */
section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 70px;
    letter-spacing: -0.5px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

/* Main Content */
main {
    padding-top: 70px;
}

/* Base Animations - ALL KEYFRAMES */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes gradient-shift {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

@keyframes shimmer {
    0% { 
        left: -100%; 
    }
    100% { 
        left: 100%; 
    }
}

@keyframes flow {
    0% { 
        stroke-dashoffset: 0; 
    }
    100% { 
        stroke-dashoffset: -100; 
    }
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes popular-pulse {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(16, 185, 129, 0.15);
    }
    50% {
        box-shadow: 0 25px 70px rgba(16, 185, 129, 0.25);
    }
}

@keyframes badge-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    }
}

/* Ripple Effect for Buttons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animation States */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Force initial hidden state for animated elements */
.section-title,
.stat-card,
.service-card,
.portfolio-item,
.benefit-item,
.hosting-card,
.pricing-card-standalone,
.contact-form-card,
.demo-content,
.about-text,
.top-pricing-row,
.hosting-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Hero Click Ripple Effect */
.hero-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(16, 185, 129, 0.3) 0%, 
        rgba(30, 58, 138, 0.2) 30%, 
        rgba(255, 64, 64, 0.1) 60%, 
        transparent 100%);
    transform: scale(0);
    animation: hero-ripple-animation 1s ease-out;
    pointer-events: none;
    width: 200px;
    height: 200px;
    margin-left: -100px;
    margin-top: -100px;
    z-index: 6;
}

@keyframes hero-ripple-animation {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Mouse Trail Effect */
.hero::after {
    opacity: var(--trail-opacity, 0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 2.2rem;
    }
}