html {
    scroll-behavior: smooth;
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

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

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

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

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

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scroll Reveal Classes - Disabled Animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: none;
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: none;
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 1;
    transform: scale(1);
    transition: none;
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.card-hover:hover::before {
    left: 100%;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.card-hover>* {
    position: relative;
    z-index: 2;
}

/* Gradient Border */
.gradient-border {
    position: relative;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Animated Gradient Background */
.animated-gradient {
    background: linear-gradient(-45deg, #1f2937, #111827, #1e3a8a, #7c3aed);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Navbar Scroll Effect */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(17, 24, 39, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Button Hover Effects */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    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.5s ease, height 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.btn-glow:hover::after {
    width: 250px;
    height: 250px;
}

.btn-glow>* {
    position: relative;
    z-index: 1;
}

/* Text Gradient Animation */
.text-gradient-animated {
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #f472b6, #60a5fa);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s ease infinite;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: rotate 1s linear infinite;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

/* Stagger Animation Delay */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #14B8A6, #06B6D4);
    color: #F8FAFC;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
    background: linear-gradient(135deg, #0D9488, #0891B2);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: #F8FAFC;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(20, 184, 166, 0.5);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(20, 184, 166, 0.1);
    border-color: #14B8A6;
    transform: translateY(-2px);
}

/* Tech Card Styles */
.tech-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tech-card:hover {
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.15);
    transform: translateY(-4px);
}

.tech-card-bordered {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.tech-card-bordered:hover {
    border-color: rgba(20, 184, 166, 0.5);
    background: rgba(30, 41, 59, 0.6);
}

.tech-diagram {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
}

/* Text Gradient */
.text-gradient-teal {
    background: linear-gradient(135deg, #14B8A6, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stat Number */
.stat-number {
    font-weight: 700;
    background: linear-gradient(135deg, #14B8A6, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tech Background */
.tech-background {
    position: relative;
    overflow: hidden;
}

/* Section Divider Angle */
.section-divider-angle {
    height: 60px;
    background: linear-gradient(to bottom right, transparent 50%, #1E293B 50%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 60px));
}

.section-divider-angle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.3), transparent);
}

/* Tab Button Styles */
.tab-button {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #CBD5E1;
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.tab-button:hover {
    color: #14B8A6;
    background: rgba(20, 184, 166, 0.1);
}

.tab-button.active {
    color: #14B8A6;
    border-bottom-color: #14B8A6;
    background: rgba(20, 184, 166, 0.1);
}

/* Platform Tab Content */
.platform-tab-content {
    display: block;
}

.platform-tab-content.hidden {
    display: none;
}

/* Accordion Styles */
.accordion-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(20, 184, 166, 0.4);
}

.accordion-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: rgba(20, 184, 166, 0.1);
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-content.active {
    max-height: 500px;
    padding: 1rem 1.5rem 1.5rem;
}

.accordion-body {
    color: #CBD5E1;
    line-height: 1.6;
}

/* Timeline Item */
.timeline-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid #14B8A6;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.1);
    transform: translateX(4px);
}

/* Navigation Background */
nav {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
}

nav.scrolled {
    background: rgba(10, 22, 40, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu Fix */
#mobile-menu-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

#mobile-menu {
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(10px);
}

/* Platform Support Refactored Styles */
.tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.tab-button-icon {
    font-size: 1.25rem;
}

.platform-feature {
    padding: 1rem;
    background: rgba(20, 184, 166, 0.05);
    border-left: 3px solid #14B8A6;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.platform-feature:hover {
    background: rgba(20, 184, 166, 0.1);
    transform: translateX(4px);
}

.platform-feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.platform-check {
    color: #14B8A6;
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

.platform-feature-title {
    color: #F8FAFC;
    font-weight: 600;
    font-size: 0.9375rem;
}

.platform-feature-desc {
    color: #94A3B8;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-left: 2rem;
}

.platform-spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

.platform-spec:last-child {
    border-bottom: none;
}

.platform-spec-label {
    color: #CBD5E1;
    font-size: 0.875rem;
    font-weight: 500;
}

.platform-spec-value {
    color: #14B8A6;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: right;
}

/* Tech Diagram Header */
.tech-diagram h4 {
    color: #14B8A6;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

/* Button Improvements */
.btn-primary span:last-child {
    transition: transform 0.3s ease;
}

.btn-primary:hover span:last-child {
    transform: translateX(4px);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .platform-feature-desc {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Image Styles */
.tech-diagram img,
.tech-card img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-diagram img:hover,
.tech-card img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.2);
}

@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }

    .tech-card {
        padding: 1rem;
    }

    .accordion-header {
        padding: 0.875rem 1rem;
    }

    .accordion-content.active {
        padding: 0.875rem 1rem 1rem;
    }

    .tab-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .tab-button-icon {
        font-size: 1.125rem;
    }

    .platform-feature {
        padding: 0.875rem;
    }

    .tech-diagram {
        padding: 1.5rem !important;
    }

    .platform-spec {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .platform-spec-value {
        text-align: left;
    }
    
}
