/* 
   Main Stylesheet for teenaiporn.site
   Created: 2025-07-04
   Mobile-responsive and SEO optimized
*/

:root {
    --primary: #2196F3;
    --primary-light: #BBDEFB;
    --primary-dark: #0D47A1;
    --secondary: #FF9800;
    --dark: #212121;
    --medium: #757575;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --gradient: linear-gradient(135deg, var(--primary) 0%, #03A9F4 100%);
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--white);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

section h2 {
    text-align: center;
}

section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--medium);
}

/* Buttons */
.primary-btn, .secondary-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.primary-btn {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.5);
}

.secondary-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    margin-left: 1rem;
}

.secondary-btn:hover {
    background: rgba(33, 150, 243, 0.1);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo span {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: var(--gradient);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 100%, 100% 30%, 0 100%);
}

.hero-content {
    color: var(--white);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2.5rem;
}

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

.hero-visual {
    max-width: 500px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    text-align: center;
}

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

.feature-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    text-align: left;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--light);
    text-align: center;
}

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

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    text-align: left;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    background: var(--primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

/* Showcase Section */
.showcase-section {
    padding: 5rem 0;
    text-align: center;
}

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

.showcase-item {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-5px);
}

.showcase-visual {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(rgba(33, 150, 243, 0.9), rgba(33, 150, 243, 0.9)),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="40" stroke="white" stroke-width="0.5" fill="none" opacity="0.2"/></svg>');
    text-align: center;
    color: var(--white);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    color: var(--white);
}

.cta-section h2::after {
    background: var(--white);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 4rem 0 1rem;
}

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

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

.site-info .site-name {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.site-info .tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-links h3 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Media Queries */
@media (max-width: 768px) {
    .menu-button {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        background: var(--white);
        width: 80%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        padding: 3rem 2rem;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-section {
        padding: 6rem 0 4rem;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto 3rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-logo {
        margin-bottom: 1.5rem;
    }

    .step {
        flex-direction: column;
    }

    .step-number {
        margin-bottom: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 3rem;
    }

    .hero-content {
        padding: 0 1rem;
    }
}

@media (min-width: 1025px) {
    .hero-section .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
}
