/* Custom Styles */
:root {
    --primary-color: #222831;
    --primary-dark: #222831;
    --secondary-color: #917246;
    --secondary-dark: #917246;
    --accent-color: #917246;
    --accent-dark: #917246;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* 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);
}

/* 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), var(--primary-dark));
}

.hover\:bg-gradient-primary-dark:hover {
    background: linear-gradient(to right, var(--primary-dark), 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: var(--primary-dark);
}

/* 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: var(--primary-dark);
}

/* 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;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    box-shadow: 0 8px 24px 0 rgba(79, 70, 229, 0.18);
    transform: translateY(-2px) scale(1.03);
    outline: 2px solid var(--accent-color);
}

/* 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;
}