/* Custom Styles */
:root {
    /* Modern Color Palette - 4 Main Variables */
    --primary-color: #4CAF50;           /* Vibrant Green - Primary brand color */
    --secondary-color: #222831;        /* Dark Gray/Black - Text and contrast */
    --accent-color: #F0D97C;           /* Muted Yellow - Highlights and accents */
    --background-color: #FFFFFF;       /* Pure White - Clean background */
    
    /* Extended Color System */
    --text-primary: #222831;           /* Dark gray for main text */
    --text-secondary: #6B7280;         /* Light gray for secondary text */
    --text-light: #9CA3AF;             /* Very light gray for subtle text */
    --border-light: #E5E7EB;           /* Light border color */
    --shadow-color: rgba(0, 0, 0, 0.08); /* Subtle shadow */
    --gradient-start: #E0F2F7;         /* Light blue-green */
    --gradient-end: #F7FCE0;           /* Light yellow-green */
    
    /* Button Colors */
    --button-primary-bg: #000000;      /* Black for primary buttons */
    --button-primary-text: #FFFFFF;    /* White text on primary buttons */
    --button-secondary-bg: #4CAF50;    /* Green for secondary buttons */
    --button-secondary-text: #FFFFFF;  /* White text on secondary buttons */
    
    /* Spacing and Layout */
    --border-radius: 12px;             /* Modern rounded corners */
    --border-radius-lg: 16px;           /* Large rounded corners */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
}

h3 {
    font-size: 2rem;
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

/* Modern Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    gap: var(--spacing-xs);
}

.btn-primary {
    background-color: var(--button-primary-bg);
    color: var(--button-primary-text);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: #333333;
    transform: translateY(-1px);
    border-color: var(--primary-color);
    color: var(--button-primary-text);
}

.btn-primary:focus {
    background-color: #333333;
    transform: translateY(-1px);
    border-color: var(--primary-color);
    color: var(--button-primary-text);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-secondary {
    background-color: var(--button-secondary-bg);
    color: var(--button-secondary-text);
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    border-color: var(--accent-color);
    color: var(--button-secondary-text);
}

.btn-secondary:focus {
    background-color: #45a049;
    transform: translateY(-1px);
    border-color: var(--accent-color);
    color: var(--button-secondary-text);
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-outline:focus {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Feature Card Hover Animation */
.feature-card {
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

/* Form Input Styles */
input::placeholder {
    opacity: 0.8;
}

/* Button Hover Effects */
button,
a {
    transition: all 0.3s ease;
}

button:hover,
a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hero Section Animations */
@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.hero-dashed-line {
    animation: rotate-slow 15s linear infinite;
}

.hero-star {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Modern Animations */
@keyframes float {

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

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulse-slow {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 2.5s infinite;
}

/* Wave Animation */
.wave-container {
    position: relative;
    height: 150px;
    width: 100%;
    overflow: hidden;
}

.waves {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
}

.parallax>use {
    animation: wave 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes wave {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* Tech Stack Icons */
.tech-icon {
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tech-icon:hover {
    transform: translateY(-5px);
    opacity: 1;
}

/* Countdown Timer Hover Effects */
.countdown-box {
    transition: all 0.3s ease;
}

.countdown-box:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
}

/* CTA Button Animation */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Glassmorphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom Animation for Hero Section */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Blob Animation */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Slow Bounce Animation */
@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(-5%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s infinite;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.bg-gradient-primary {
    background: linear-gradient(to right, var(--primary-color), #2e7d32);
}

.hover\:bg-gradient-primary-dark:hover {
    background: linear-gradient(to right, #2e7d32, var(--primary-color));
}

.tech-stack i {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.tech-stack i:hover {
    color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2e7d32;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .feature-card {
        margin-bottom: 2rem;
    }
}

/* Loading animation for form submission */
.loading {
    position: relative;
    opacity: 0.8;
}

.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 0;
    right: 16px;
    bottom: 0;
    margin: auto;
    border: 4px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: loading 1s ease infinite;
}

@keyframes loading {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

/* Tab Button Styles */
.tab-button {
    transition: all 0.3s ease;
}

.tab-button.active {
    color: var(--primary-color);
    background-color: rgba(237, 233, 254, 0.5);
}

.tab-button:hover:not(.active) {
    background-color: rgba(237, 233, 254, 0.2);
}

.demo-category {
    transition: opacity 0.3s ease;
}

.demo-category.hidden {
    display: none;
    opacity: 0;
}

/* Demo Item Image Animations */
.demo-item img {
    transition: all 0.5s ease;
}

.demo-item:hover img {
    transform: scale(1.05);
}

/* Ensure rounded corners everywhere */
.rounded-full {
    border-radius: 9999px;
}

/* Testimonial Card Hover Effect */
.testimonial-card {
    transition: all 0.3s ease;
}

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

/* Star Rating Color */
.text-yellow-400 i {
    color: var(--accent-color);
}

/* Header sticky behavior */
header {
    transition: all 0.3s ease;
}

header.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.text-primary {
    color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.hover\:bg-primary-dark:hover {
    background-color: #2e7d32;
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
}

/* Footer styles */
footer {
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 10px 10px 0 0;
}

footer a {
    transition: all 0.3s ease;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero section animation elements */
.hero-float-1 {
    animation: hero-float-1 13s ease-in-out infinite;
    transform-origin: center;
}

.hero-float-2 {
    animation: hero-float-2 11s ease-in-out infinite;
    transform-origin: center;
}

.hero-float-3 {
    animation: hero-float-3 9s ease-in-out infinite;
    transform-origin: center;
}

.hero-float-4 {
    animation: hero-float-4 17s ease-in-out infinite;
    transform-origin: center;
}

.hero-float-5 {
    animation: hero-float-5 15s ease-in-out infinite;
    transform-origin: center;
}

@keyframes hero-float-1 {

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

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

    40% {
        transform: translateY(15px) rotate(-3deg);
    }

    60% {
        transform: translateY(-10px) rotate(2deg);
    }

    80% {
        transform: translateY(5px) rotate(-1deg);
    }
}

@keyframes hero-float-2 {

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

    25% {
        transform: translateY(-15px) rotate(-5deg);
    }

    50% {
        transform: translateY(10px) rotate(3deg);
    }

    75% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

@keyframes hero-float-3 {

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

    33% {
        transform: translateY(-20px) translateX(15px);
    }

    66% {
        transform: translateY(15px) translateX(-10px);
    }
}

@keyframes hero-float-4 {

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

    25% {
        transform: translateY(-10px) scale(1.05);
    }

    50% {
        transform: translateY(15px) scale(0.95);
    }

    75% {
        transform: translateY(-5px) scale(1.02);
    }
}

@keyframes hero-float-5 {

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

    20% {
        transform: translateY(-15px) translateX(10px) rotate(5deg);
    }

    40% {
        transform: translateY(10px) translateX(-15px) rotate(-3deg);
    }

    60% {
        transform: translateY(-5px) translateX(5px) rotate(2deg);
    }

    80% {
        transform: translateY(10px) translateX(-5px) rotate(-1deg);
    }
}

.hero-glow {
    filter: drop-shadow(0 0 8px rgba(79, 70, 229, 0.6));
}

.hero-globe-shadow {
    filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.3));
}

@media (max-width: 900px) {
    .hero-globe {
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 600px) {
    .hero-globe {
        opacity: 0.6;
    }
}

/* Additional consistent styling classes */
.text-secondary {
    color: var(--secondary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.hover\:bg-secondary-dark:hover {
    background-color: var(--secondary-dark);
}

.text-accent {
    color: var(--accent-color);
}

.bg-accent {
    background-color: var(--accent-color);
}

.hover\:bg-accent-dark:hover {
    background-color: var(--accent-dark);
}

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

.border-secondary {
    border-color: var(--secondary-color);
}

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

.shadow-primary {
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.4);
}

.shadow-secondary {
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.4);
}

.shadow-accent {
    box-shadow: 0 4px 14px 0 rgba(252, 211, 77, 0.4);
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Card Consistency */
.card {
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 4px 24px 0 rgba(80, 80, 200, 0.10);
    padding: 2.5rem;
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    box-shadow: 0 8px 32px 0 rgba(80, 80, 200, 0.18);
    transform: translateY(-8px) scale(1.02);
}

/* Button Consistency */
.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.15);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    border: none;
    outline: none;
}


/* Tag Consistency */
.tag {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--primary-color);
    color: #fff;
    margin: 0 0.25rem 0.25rem 0;
}

/* Input Consistency */
input,
textarea {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    transition: border 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color, #4F46E5, 0.15);
    outline: none;
}

/* Pricing Section Styles */
#pricing-toggle:checked + label .w-16 {
    background-color: var(--secondary-color);
}

#pricing-toggle:checked + label #toggle-button {
    transform: translateX(2rem);
}

#pricing-toggle:checked ~ #yearly-label {
    color: var(--primary-color);
}

#pricing-toggle:not(:checked) ~ #monthly-label {
    color: var(--primary-color);
}

/* Pricing Card Hover Effects */
.pricing-card {
    transition: all 0.3s ease;
}

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

/* Pricing Toggle Animation */
.pricing-toggle-container {
    transition: all 0.3s ease;
}

/* Mobile Responsive Pricing */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-features {
        font-size: 0.875rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Modern Card Effects */
.bg-gradient-to-br {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.border {
    border-width: 1px;
}

.hover\:border-green-400:hover {
    border-color: #4ade80;
}

/* Show More/Less Functionality */
.hidden-feature {
    display: none !important;
}

.hidden-feature.show {
    display: flex !important;
}

.show-more-btn {
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    transform: translateY(-1px);
}

/* Modern Hover Effects */
.hover\:-translate-y-1:hover {
    transform: translateY(-4px);
}

/* Clean Modern Transitions */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}