/* 
   Main CSS for barbaraedenainudeporn.site
   Mobile-first, responsive design
*/

:root {
    --primary-color: #2E3B55;
    --accent-color: #E57373;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --background-light: #FFFFFF;
    --background-dark: #1A1A1A;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 6px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

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

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

ul {
    list-style: none;
}

/* Page Container */
.page-container {
    max-width: 100%;
    overflow-x: hidden;
}

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

h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    color: var(--primary-color);
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

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

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
}

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

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

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.cta-nav a {
    background-color: var(--primary-color);
    color: var(--text-light) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.cta-nav a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.cta-nav a::after {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 5%;
    background: linear-gradient(135deg, rgba(46, 59, 85, 0.05) 0%, rgba(229, 115, 115, 0.05) 100%);
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.hero h2:after {
    left: 0;
    transform: none;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-svg {
    width: 100%;
    max-width: 400px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(229, 115, 115, 0.3);
}

/* About Section */
.about {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.about-column {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow);
}

.about-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.about-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

/* Gallery Section */
.gallery {
    padding: 5rem 5%;
    background-color: rgba(46, 59, 85, 0.03);
    max-width: 1200px;
    margin: 0 auto;
}

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

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

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

.gallery-svg {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    border-radius: var(--border-radius);
}

.gallery-item p {
    margin-top: 0.8rem;
    font-weight: 500;
}

.gallery-cta {
    text-align: center;
    margin-top: 3rem;
}

.gallery-cta p {
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Technology Section */
.technology {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.technology-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.technology-text {
    flex: 1;
}

.technology-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tech-svg {
    width: 100%;
    max-width: 400px;
}

/* Call to Action Section */
.call-to-action {
    padding: 5rem 5%;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--text-light);
}

.call-to-action h2 {
    color: var(--text-light);
}

.call-to-action h2:after {
    background-color: var(--text-light);
}

.call-to-action p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.call-to-action .cta-button {
    background-color: var(--text-light);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.call-to-action .cta-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 5% 1.5rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

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

.footer-logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
}

.footer-links ul li {
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--text-light);
    opacity: 0.8;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 5% 5rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .hero h2 {
        text-align: center;
        font-size: 2.2rem;
    }
    
    .hero h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .technology-content {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        padding: 0.8rem 5%;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background-light);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }
    
    nav.active {
        max-height: 300px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    nav ul li {
        margin: 0.8rem 0;
        width: 100%;
        text-align: center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .about-columns,
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    h2 {
        font-size: 1.6rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.5rem;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links ul {
        justify-content: center;
    }
}
