/* Animated StrokeSense Landing Page - Filipino Cultural Theme */

:root {
    --primary-brown: #8B4513;
    --secondary-gold: #D4AF37;
    --accent-green: #228B22;
    --accent-blue: #1E90FF;
    --background-cream: #FFF8DC;
    --text-dark: #5D4037;
    --white: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-cream);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

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

/* Navigation */
.navbar {
    background-color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.nav-brand h1 {
    color: var(--primary-brown);
    font-size: 1.5rem;
    font-weight: 800;
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    font-weight: 600;
}

.lang-btn.active {
    color: var(--primary-brown);
    border-bottom: 2px solid var(--primary-brown);
}

.theme-toggle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid var(--primary-brown);
    background-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.theme-icon {
    font-size: 1rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-brown);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--text-dark);
}

/* Hero */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--background-cream) 0%, #F5EDDC 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-title {
    font-size: 2.75rem;
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.hero-background {
    position: relative;
}

.baybayin-characters {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0.08;
    font-size: 5rem;
    color: var(--primary-brown);
}

.baybayin-characters .char {
    animation: floatChar 6s ease-in-out infinite;
}

.baybayin-characters .char:nth-child(2) { animation-delay: 1s; }
.baybayin-characters .char:nth-child(3) { animation-delay: 2s; }
.baybayin-characters .char:nth-child(4) { animation-delay: 1.5s; }
.baybayin-characters .char:nth-child(5) { animation-delay: 0.5s; }
.baybayin-characters .char:nth-child(6) { animation-delay: 2.5s; }

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.hero-animated-svg {
    width: 260px;
    height: 260px;
    animation: rotateSlow 30s linear infinite;
}

.sun-ring {
    animation: pulseSun 3s ease-in-out infinite;
}

.sun-center {
    animation: pulseSun 2.5s ease-in-out infinite;
}

.sun-rays .ray {
    animation: glowRay 3s ease-in-out infinite;
}

.sun-rays .ray:nth-child(2),
.sun-rays .ray:nth-child(4) {
    animation-delay: 0.7s;
}

.baybayin-text {
    animation: floatChar 5s ease-in-out infinite;
}

.baybayin-text:nth-of-type(2) { animation-delay: 1s; }
.baybayin-text:nth-of-type(3) { animation-delay: 2s; }
.baybayin-text:nth-of-type(4) { animation-delay: 1.5s; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 0.6rem;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-brown);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #6B3410;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-brown);
    border-color: var(--primary-brown);
}

.btn-outline:hover {
    background-color: var(--primary-brown);
    color: var(--white);
}

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

.btn-demo:hover {
    background-color: var(--secondary-gold);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2.4rem;
    font-size: 1.05rem;
}

/* Sections common */
.section-title {
    text-align: center;
    font-size: 2.25rem;
    color: var(--primary-brown);
    margin-bottom: 2.5rem;
}

/* Features */
.features {
    background-color: var(--white);
    padding: 4rem 0;
}

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

.feature-card {
    background-color: var(--background-cream);
    border-radius: 0.9rem;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 2px solid transparent;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.feature-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-brown);
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.96rem;
}

.feature-image {
    width: 100%;
    height: 150px;
    margin-bottom: 1rem;
}

.cultural-animated-svg {
    width: 100%;
    height: 100%;
}

.weave-bg {
    animation: weaveMove 4s linear infinite;
}

.bounce-char {
    animation: bounceChar 2.2s ease-in-out infinite;
}

.bounce-char:nth-of-type(2) {
    animation-delay: 0.3s;
}

.bounce-char:nth-of-type(3) {
    animation-delay: 0.6s;
}

/* Banig Divider */
.banig-divider {
    width: 100%;
    height: 40px;
    background: repeating-linear-gradient(
        45deg,
        var(--secondary-gold) 0px,
        var(--secondary-gold) 8px,
        var(--primary-brown) 8px,
        var(--primary-brown) 16px
    );
}

/* Visual Section */
.visual-section {
    background-color: var(--background-cream);
    padding: 4rem 0;
}

.visual-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    align-items: center;
}

.handwriting-mockup {
    background-color: var(--white);
    border-radius: 0.9rem;
    border: 3px solid var(--primary-brown);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.mockup-header {
    background-color: var(--primary-brown);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
}

.mockup-dots {
    display: flex;
    gap: 0.4rem;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--white);
    opacity: 0.8;
}

.mockup-canvas {
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #f5f5f5 0%, #e2e8f0 100%);
}

.stroke-svg {
    width: 100%;
    max-width: 380px;
    height: auto;
}

.animated-stroke {
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: drawStroke 2.5s ease-in-out infinite;
}

.animated-stroke-delay {
    stroke-dasharray: 140;
    stroke-dashoffset: 140;
    animation: drawStroke 2.5s ease-in-out infinite;
    animation-delay: 0.8s;
}

.feedback-text {
    margin-top: 1.4rem;
    font-weight: 600;
    color: var(--accent-green);
    font-size: 1.1rem;
}

.characters-showcase h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-brown);
    font-size: 1.5rem;
}

.baybayin-heritage-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.heritage-animated-svg {
    width: 100%;
    height: auto;
}

.scroll-bg {
    animation: paperShake 6s ease-in-out infinite;
}

.paper-line {
    animation: fadeInOut 3s ease-in-out infinite;
}

.paper-line:nth-of-type(2) { animation-delay: 0.4s; }
.paper-line:nth-of-type(3) { animation-delay: 0.8s; }
.paper-line:nth-of-type(4) { animation-delay: 1.2s; }

.script-char {
    animation: writeChar 2.2s ease-in-out infinite;
}

.script-char:nth-of-type(2) { animation-delay: 0.7s; }
.script-char:nth-of-type(3) { animation-delay: 1.4s; }

.decor-dot {
    animation: pulseSun 2.4s ease-in-out infinite;
}

.decor-line {
    animation: drawLine 2.4s ease-in-out infinite;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.char-item {
    background-color: var(--white);
    border-radius: 0.8rem;
    padding: 1.4rem 1rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.char-item:hover {
    border-color: var(--secondary-gold);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.char-display {
    font-size: 3rem;
    color: var(--primary-brown);
    margin-bottom: 0.4rem;
}

.char-translation {
    font-weight: 600;
    color: var(--accent-green);
}

/* Cultural Gallery */
.cultural-gallery {
    background-color: var(--white);
    padding: 4rem 0;
}

.gallery-subtitle {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 2.2rem;
    opacity: 0.8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 0.9rem;
    overflow: hidden;
    height: 240px;
    border: 3px solid var(--primary-brown);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.gallery-svg {
    width: 100%;
    height: 100%;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 0.85rem 1rem;
    color: var(--white);
    text-align: center;
}

.gallery-overlay p {
    font-weight: 600;
    font-size: 1.05rem;
}

/* Info Section */
.info-section {
    background-color: var(--white);
    padding: 4rem 0;
}

.info-subsection {
    margin-bottom: 3.5rem;
}

.info-image-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem;
    border-radius: 0.9rem;
    overflow: hidden;
    border: 3px solid var(--primary-brown);
}

.info-animated-svg {
    width: 100%;
    height: auto;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-brown);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
}

.step-content h3 {
    margin-bottom: 0.35rem;
    color: var(--primary-brown);
}

.benefits {
    background-color: var(--background-cream);
    padding: 2.5rem 2rem;
    border-radius: 0.9rem;
    border: 2px solid rgba(139, 69, 19, 0.2);
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.checkmark {
    color: var(--accent-green);
    font-size: 1.4rem;
    font-weight: 700;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}

.audience-card {
    background-color: var(--background-cream);
    border-radius: 0.9rem;
    padding: 1.5rem 1.2rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}

.audience-card:hover {
    border-color: var(--secondary-gold);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}

.audience-card h3 {
    margin-bottom: 0.4rem;
    color: var(--primary-brown);
}

/* About Section */
.about-section {
    background-color: var(--white);
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    align-items: start;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.about-intro h3,
.about-mission h3,
.about-values h3 {
    color: var(--primary-brown);
    margin-bottom: 0.6rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.value-item {
    background-color: var(--background-cream);
    border-radius: 0.8rem;
    padding: 1.3rem 1rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}

.value-item:hover {
    border-color: var(--secondary-gold);
    transform: translateY(-3px);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.about-visual {
    width: 100%;
}

.about-animated-svg {
    width: 100%;
    height: auto;
    border-radius: 0.9rem;
    border: 3px solid var(--primary-brown);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.about-sun {
    animation: pulseSun 3s ease-in-out infinite;
}

.about-char {
    animation: floatChar 5s ease-in-out infinite;
}

.about-char-delay {
    animation: floatChar 5s ease-in-out infinite;
    animation-delay: 1.5s;
}

.wave,
.wave-delay {
    animation: waveMove 4s ease-in-out infinite;
}

.wave-delay {
    animation-delay: 1.5s;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--accent-green) 100%);
    padding: 4rem 0;
    text-align: center;
    color: var(--white);
}

.cta-title {
    font-size: 2.4rem;
    margin-bottom: 0.7rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-section .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-section .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-brown);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 1.8rem;
}

.footer-brand h3 {
    color: var(--secondary-gold);
    margin-bottom: 0.5rem;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

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

.footer-links a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--secondary-gold);
}

.social-icons {
    display: flex;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.social-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-svg {
    width: 22px;
    height: 22px;
    fill: var(--white);
}

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

/* Quote Section */
.quote-section {
    background-color: var(--background-cream);
    padding: 4rem 0 3rem;
}

.quote-wrapper {
    position: relative;
    border-radius: 1.5rem;
    border: 6px solid var(--primary-brown);
    padding: 2.5rem 2rem;
    background: repeating-linear-gradient(
        45deg,
        rgba(212, 175, 55, 0.08) 0,
        rgba(212, 175, 55, 0.08) 10px,
        rgba(255, 248, 220, 0.9) 10px,
        rgba(255, 248, 220, 0.9) 20px
    );
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.quote-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.9;
    text-align: center;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
}

.quote-parols {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.parol {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--secondary-gold);
    position: absolute;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.7);
    animation: pulseSun 3s ease-in-out infinite;
}

.parol-left {
    top: -20px;
    left: -20px;
}

.parol-right {
    top: -20px;
    right: -20px;
}

/* Keyframe Animations */
@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseSun {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.1); }
}

@keyframes glowRay {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes floatChar {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-15px); opacity: 1; }
}

@keyframes weaveMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

@keyframes bounceChar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes drawStroke {
    0% { stroke-dashoffset: 220; opacity: 0; }
    50% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -220; opacity: 0.8; }
}

@keyframes paperShake {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

@keyframes writeChar {
    0% { opacity: 0; transform: translateY(10px) scale(0.9); }
    50% { opacity: 1; transform: translateY(0) scale(1.05); }
    100% { opacity: 0.9; transform: translateY(0) scale(1); }
}

@keyframes drawLine {
    0% { stroke-dasharray: 0 100; }
    50% { stroke-dasharray: 100 0; }
    100% { stroke-dasharray: 0 100; }
}

@keyframes waveMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-background {
        margin-top: 2rem;
    }

    .visual-content,
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 64px;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        padding: 1.5rem 0;
        gap: 1rem;
        text-align: center;
        transition: left 0.25s ease;
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .characters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
