/* 
 * Website Style for aidealraysporn.love
 * Modern, clean design with blue-red gradient theme
 */

:root {
    --primary: #3498db;
    --secondary: #e74c3c;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --gray: #95a5a6;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

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

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

p {
    margin-bottom: 1.5rem;
}

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

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

ul {
    list-style: none;
}

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

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

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

/* Buttons */
.button {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.button.primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.button.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.button.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
}

.button.secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
}

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

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

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    margin-left: 0.8rem;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 2rem;
}

.main-nav ul li a {
    color: var(--dark);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.main-nav ul li a:hover {
    color: var(--primary);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.menu-toggle span:first-child {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:last-child {
    bottom: 0;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 12rem;
    background-color: var(--light);
    overflow: hidden;
}

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

.hero-text h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

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

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

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

/* About Section */
.about {
    background-color: var(--white);
}

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

.info-card {
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
}

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

.card-icon {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Benefits Section */
.benefits {
    background-color: #f8fafc;
}

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

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.benefit-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-right: 1.5rem;
    line-height: 1;
    min-width: 40px;
}

.benefit-content h3 {
    margin-bottom: 0.5rem;
}

/* Technology Section */
.technology {
    background-color: var(--white);
}

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

.tech-card {
    padding: 2rem;
    border-radius: 15px;
    background-color: var(--light);
    transition: var(--transition);
    height: 100%;
}

.tech-card:hover {
    transform: scale(1.03);
    box-shadow: var(--box-shadow);
}

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

.cta-block {
    text-align: center;
    padding: 3rem;
    border-radius: 15px;
    background: var(--gradient);
    color: var(--white);
    margin-top: 4rem;
}

.cta-block h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-block p {
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-block .button {
    background: var(--white);
    color: var(--primary);
}

.cta-block .button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

/* Contact Section */
.contact {
    background-color: #f8fafc;
}

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

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

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

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

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

.footer-logo h3 {
    margin-top: 1rem;
    color: var(--white);
}

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

.link-group h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.link-group ul li {
    margin-bottom: 0.8rem;
}

.link-group ul li a {
    color: #bdc3c7;
    transition: var(--transition);
}

.link-group ul li a:hover {
    color: var(--white);
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .hero-text h2 {
        font-size: 2.8rem;
    }
    
    .benefits-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .benefits-image,
    .contact-image {
        display: flex;
        justify-content: center;
        order: -1;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 0 2rem;
    }
    
    .main-nav ul li {
        margin: 0;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .main-nav ul li:last-child {
        border-bottom: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text p {
        margin: 0 auto 2rem;
    }
    
    .hero-image {
        display: flex;
        justify-content: center;
        margin-top: 2rem;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 2rem;
        width: 100%;
        justify-content: space-around;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 6rem 0 10rem;
    }
    
    .hero-text h2 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}
