/* 
   teenaiporn.love - Main Stylesheet
   Modern, sleek design with teal/turquoise color scheme
*/

/* Base Styles & Variables */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #16A085;
    --accent-color: #1ABC9C;
    --light-color: #ECF0F1;
    --dark-color: #1A252F;
    --text-color: #333333;
    --text-light: #FFFFFF;
    --text-muted: #7F8C8D;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #F5F7FA;
    overflow-x: hidden;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

section {
    padding: 5rem 0;
}

.accent {
    color: var(--secondary-color);
}

/* Header Styles */
header {
    background-color: #FFFFFF;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.site-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.site-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.domain {
    color: var(--secondary-color);
    font-weight: 500;
}

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

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

.nav-links a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    gap: 6px;
    padding: 5px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background-color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(22, 160, 133, 0.05);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

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

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

.abstract-graphic {
    width: 100%;
    height: auto;
    max-height: 400px;
}

.cta-btn {
    display: inline-block;
    background: var(--gradient);
    color: white;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
    color: white;
}

.cta-btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.cta-btn.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* About Section */
.about {
    background-color: #F5F7FA;
    padding: 5rem 0;
}

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

.feature {
    background-color: #FFFFFF;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.feature h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Technology Section */
.technology {
    background-color: #FFFFFF;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.tech-info h3 {
    margin-bottom: 1.5rem;
}

.tech-info p {
    margin-bottom: 2rem;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    margin-bottom: 1.5rem;
}

.tech-point {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.tech-diagram {
    width: 100%;
    max-width: 500px;
}

/* Gallery Section */
.gallery {
    background-color: #F5F7FA;
}

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

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-color: #FFFFFF;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.placeholder {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.placeholder-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(44, 62, 80, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.gallery-caption {
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    margin-bottom: 0;
}

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

.cta-section h2,
.cta-section p {
    color: var(--text-light);
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.footer-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.footer-site-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
}

.footer-tagline {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-nav h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

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

.footer-nav ul li a {
    color: var(--text-muted);
}

.footer-nav ul li a:hover {
    color: var(--accent-color);
}

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

/* Responsive Design */
@media (max-width: 992px) {
    h1, .hero-text h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-visual {
        margin-top: 2rem;
    }
    
    .tech-diagram {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    h1, .hero-text h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .abstract-graphic {
        max-height: 250px;
        margin: 0 auto;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #FFFFFF;
        padding: 1rem 0;
        gap: 0;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}
