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

/* Global Styles */
body { 
    font-family: 'Roboto', sans-serif; 
}

html { 
    scroll-behavior: smooth; 
}

/* Gradient and Design Elements */
.gradient-line {
    background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 50%, #EC4899 100%);
    height: 1px;
}

.text-gradient {
    background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 50%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-gradient {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.section-gradient-bg {
    background: linear-gradient(to bottom right, rgba(103, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Custom checkbox styling */
.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.custom-checkbox:hover .checkmark {
    border-color: #3B82F6;
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkmark {
    background-color: #3B82F6;
    border-color: #3B82F6;
}

.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkmark:after {
    display: block;
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

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

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

@keyframes rotate3d {
    0% { transform: rotate(0deg) rotateX(0deg) rotateY(0deg); }
    100% { transform: rotate(360deg) rotateX(360deg) rotateY(360deg); }
}

@keyframes rotate3d-reverse {
    0% { transform: rotate(0deg) rotateX(0deg) rotateY(0deg); }
    100% { transform: rotate(-360deg) rotateX(-360deg) rotateY(-360deg); }
}

@keyframes particle-1 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(200px, 100px); }
    50% { transform: translate(100px, 300px); }
    75% { transform: translate(300px, 200px); }
    100% { transform: translate(0, 0); }
}

@keyframes particle-2 {
    0% { transform: translate(100vw, 0); }
    100% { transform: translate(-100px, 100vh); }
}

@keyframes particle-3 {
    0% { transform: translate(50vw, 0); }
    100% { transform: translate(50vw, 100vh); }
}

@keyframes particle-4 {
    0% { transform: translate(0, 50vh); }
    100% { transform: translate(100vw, 50vh); }
}

@keyframes particle-5 {
    0% { transform: translate(80vw, 80vh); }
    100% { transform: translate(20vw, 20vh); }
}

@keyframes particle-6 {
    0% { transform: translate(20vw, 80vh); }
    100% { transform: translate(80vw, 20vh); }
}

@keyframes particle-7 {
    0% { transform: translate(10vw, 10vh); }
    100% { transform: translate(90vw, 90vh); }
}

@keyframes particle-8 {
    0% { transform: translate(90vw, 10vh); }
    100% { transform: translate(10vw, 90vh); }
}

@keyframes flow-down {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(256px); opacity: 0; }
}

@keyframes flow-right {
    0% { transform: translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(256px); opacity: 0; }
}

@keyframes flow-up {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-256px); opacity: 0; }
}

.animate-flow-down { animation: flow-down 3s linear infinite; }
.animate-flow-right { animation: flow-right 3s linear infinite; }
.animate-flow-up { animation: flow-up 3s linear infinite; }

.animate-spin-slow { animation: spin 20s linear infinite; }
.animate-spin-slow-reverse { animation: spin 25s linear infinite reverse; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ripple {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

@keyframes water-drop {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) scale(1.1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
}

.animate-ripple {
    animation: ripple 3s ease-out infinite;
}

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

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
    z-index: 60;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(10px);
    z-index: 50;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 5rem 1rem 3rem 1rem;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu a {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

/* Reduce spacing in landscape mode */
@media (max-height: 500px) {
    .mobile-menu {
        padding: 3rem 1rem 2rem 1rem;
    }
    
    .mobile-menu a {
        font-size: 1.2rem;
        margin: 1rem 0;
    }
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.5s; }
.mobile-menu.active a:nth-child(6) { transition-delay: 0.6s; }

/* Mobile and landscape responsive fixes */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}

/* Mobile landscape fixes */
@media (max-width: 768px) and (orientation: landscape) {
    nav {
        height: auto;
    }
    
    nav .flex {
        min-height: 60px;
        height: auto;
        padding: 0.5rem 0;
    }
    
    nav h1 {
        font-size: 1.25rem;
    }
    
    nav img {
        height: 2rem;
    }
}

/* Fix Hero section overlap in landscape mode */
@media (max-width: 768px) and (orientation: landscape) {
    #hero {
        padding-top: 6rem; /* Add extra padding to account for fixed nav */
    }
}

@media (max-width: 640px) and (orientation: landscape) {
    #hero {
        padding-top: 5rem;
    }
    
    /* Reduce Hero text size in landscape to prevent overlap */
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
}

/* Hero title responsive breaks */
@media (max-width: 640px) {
    .hero-title {
        line-height: 1.1;
    }
}

/* Scroll animations - Improved based on ICS Media best practices */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}


.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.animate {
    opacity: 1;
}

.scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

/* Enhanced staggered animation delays */
.delay-0 { transition-delay: 0s; }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }

/* Hero section initial animation */
.hero-animate {
    animation: hero-fade-in 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes hero-fade-in {
    0% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
}

/* Hero subtitle fade-in */
.hero-subtitle {
    opacity: 0;
}

.hero-subtitle.animate {
    animation: subtitle-fade-in 1.5s 0.5s forwards;
}

@keyframes subtitle-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}


