/* 
* animatedaiporn.pw - Modern Animation-Focused Styling
* Animation-inspired design with fluid motion elements
*/

/* Base Styles & Reset */
:root {
    --primary: #00BCD4;
    --primary-dark: #0097A7;
    --secondary: #673AB7;
    --secondary-dark: #512DA8;
    --accent: #FFC107;
    --dark: #111133;
    --light: #FFFFFF;
    --gray: #757575;
    --light-gray: #E0E0E0;
    --bg: #F8F9FA;
    --text: #212121;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utilities */
.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: var(--primary);
    opacity: 0.2;
    z-index: -1;
}

/* Animation Background Elements */
.animation-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, rgba(103, 58, 183, 0.1) 100%);
    z-index: -1;
}

.animation-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: var(--light);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.btn-nav {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--light);
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.btn-cta {
    background: linear-gradient(45deg, var(--accent), var(--primary));
    color: var(--dark);
    font-weight: 700;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-svg {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.logo h1 span {
    color: var(--primary);
    font-weight: 800;
}

/* Navigation */
.main-nav {
    position: relative;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text);
    font-weight: 600;
    position: relative;
}

.nav-menu a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-menu a:not(.btn-nav):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background-color: var(--text);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, rgba(103, 58, 183, 0.1) 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    max-width: 600px;
}

.hero-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.animated-heading {
    position: relative;
}

.animated-heading::before {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 0;
    width: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: -1;
    animation: line-animation 2s forwards 0.5s;
}

@keyframes line-animation {
    to {
        width: 100%;
    }
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
}

.animation-frame {
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.animation-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2) 0%, rgba(103, 58, 183, 0.2) 100%);
    z-index: 1;
}

.timeline {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    z-index: 2;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 35%;
    background: var(--primary);
    border-radius: 3px;
}

.timeline-handle {
    position: absolute;
    top: 50%;
    left: 35%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--light);
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.5);
}

.keyframe {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--light);
    bottom: 19px;
    z-index: 3;
}

.keyframe-1 {
    left: 20%;
}

.keyframe-2 {
    left: 50%;
}

.keyframe-3 {
    left: 80%;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 188, 212, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.8);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.hero-wave svg {
    width: 100%;
    height: 70px;
}

/* Section Styling */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.section-wave {
    position: absolute;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.section-wave.top {
    top: -1px;
}

.section-wave.bottom {
    bottom: -1px;
}

.section-wave svg {
    width: 100%;
    height: 70px;
}

/* Features Section */
.features {
    background-color: var(--light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(0, 188, 212, 0.2);
    transform: rotate(10deg);
}

.feature-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Showcase Section */
.showcase {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, rgba(103, 58, 183, 0.1) 100%);
    padding: 8rem 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.showcase-item {
    background: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.showcase-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.preview-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.showcase-item:hover .play-overlay {
    opacity: 1;
}

.showcase-info {
    padding: 1.5rem;
}

.showcase-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.showcase-info p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works {
    background-color: var(--light);
    position: relative;
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 60px;
    left: 29px;
    width: 2px;
    height: calc(100% + 10px);
    background: linear-gradient(var(--primary), var(--secondary));
    z-index: 0;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 2rem;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-content {
    flex: 1;
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    margin-bottom: 0;
    color: var(--gray);
    font-size: 0.95rem;
}

.animation-timeline {
    max-width: 800px;
    margin: 4rem auto 0;
    position: relative;
}

.timeline-track {
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    position: relative;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.timeline-nodes {
    display: flex;
    justify-content: space-between;
    margin-top: -10px;
    position: relative;
}

.timeline-node {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--light-gray);
    transition: all 0.3s ease;
}

.timeline-node.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.3);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--light);
    padding: 6rem 0;
}

.cta .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 3rem;
}

.cta-content {
    max-width: 600px;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-svg {
    max-width: 100%;
}

.animate-circle {
    stroke-dashoffset: 565;
    animation: circle-animation 4s linear infinite;
}

@keyframes circle-animation {
    to {
        stroke-dashoffset: 0;
    }
}

.animate-circle-reverse {
    stroke-dashoffset: 0;
    animation: circle-animation-reverse 4s linear infinite;
}

@keyframes circle-animation-reverse {
    to {
        stroke-dashoffset: 440;
    }
}

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

@keyframes pulse-play {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Footer */
.main-footer {
    background-color: var(--dark);
    color: var(--light);
    position: relative;
    padding: 6rem 0 2rem;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    width: 100%;
    height: 70px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-title h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.footer-title h3 span {
    color: var(--primary);
}

.footer-title p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--light-gray);
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content,
    .cta .container {
        grid-template-columns: 1fr;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .cta-visual {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .menu-toggle {
        display: block;
        z-index: 101;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: var(--light);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem;
        transition: all 0.4s ease;
        z-index: 100;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 0.7rem 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    section {
        padding: 4rem 0;
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero-text h2 {
        font-size: 2.2rem;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .step-item:not(:last-child)::after {
        left: 50%;
        top: 60px;
        transform: translateX(-50%);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}
