/**
 * Main stylesheet for vraiporn.site
 * Using a distinct purple/blue gradient theme different from previous sites
 */

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

:root {
    /* Primary Colors - Purple/Blue Gradient */
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --dark-color: #1a1a2e;
    --light-color: #ffffff;
    --bg-color: #f8f9ff;
    --text-color: #333333;
    --accent-color: #a239ea;
    --border-radius: 10px;
    --shadow: 0 10px 30px rgba(106, 17, 203, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

.main-container {
    overflow-x: hidden;
}

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

.section-header h2 {
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.accent-text {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(106, 17, 203, 0.4);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
}

.btn-cta {
    background: var(--light-color);
    color: var(--primary-color);
    border: none;
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
    font-weight: 700;
}

.btn-cta:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo-wrapper {
    z-index: 1001;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
}

.logo-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-light {
    color: var(--dark-color);
}

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

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

.nav-menu li {
    margin-left: 2.5rem;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    font-family: 'Outfit', sans-serif;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover:after, .nav-link.active:after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(106, 17, 203, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 10rem 0 8rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7ff 0%, #e2e6ff 100%);
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 3rem;
}

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

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.vr-glasses-svg {
    filter: drop-shadow(0 10px 20px rgba(37, 117, 252, 0.2));
}

.pulse-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pulse-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(106, 17, 203, 0.2);
    animation: pulse 3s infinite;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
}

.pulse-circle:nth-child(1) {
    width: 150px;
    height: 150px;
    animation-delay: 0s;
}

.pulse-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    animation-delay: 1s;
}

.pulse-circle:nth-child(3) {
    width: 250px;
    height: 250px;
    animation-delay: 2s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

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

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

/* ===== Features Section ===== */
.features-section {
    padding: 8rem 0;
    background-color: var(--light-color);
    position: relative;
}

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

.feature-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: var(--border-radius);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(106, 17, 203, 0.2);
}

.feature-card:hover::before {
    opacity: 0.03;
}

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

.feature-card h3 {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-card p {
    color: #666;
    transition: all 0.3s ease;
}

/* ===== Experience Section ===== */
.experience-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
    position: relative;
    overflow: hidden;
}

.experience-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.experience-content {
    flex: 1;
}

.experience-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.experience-svg {
    filter: drop-shadow(0 10px 30px rgba(37, 117, 252, 0.3));
}

.experience-item {
    display: flex;
    margin-bottom: 2.5rem;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-right: 1.5rem;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

.experience-details h3 {
    margin-bottom: 0.5rem;
}

.experience-details p {
    color: #666;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 8rem 0;
    background-color: var(--light-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 15px 30px rgba(106, 17, 203, 0.1);
}

.faq-question {
    padding: 2rem;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
    padding-right: 2rem;
}

.faq-toggle {
    position: relative;
}

.faq-toggle svg .vertical {
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle svg .vertical {
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 2rem 2rem;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    color: var(--light-color);
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--light-color);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* ===== Footer ===== */
.footer {
    padding: 5rem 0 2rem;
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-logo {
    max-width: 300px;
}

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

.footer-brand svg {
    margin-right: 1rem;
}

.footer-brand span {
    color: var(--light-color);
    font-weight: 600;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
}

.footer-tagline {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
}

.footer-column {
    margin-left: 5rem;
}

.footer-column h4 {
    color: var(--light-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-size: 1.2rem;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    bottom: -8px;
    left: 0;
}

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

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

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

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

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

.disclaimer {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
    .hero-visual {
        opacity: 0.7;
    }
    
    .experience-wrapper {
        flex-direction: column;
    }
    
    .experience-visual {
        order: -1;
        margin-bottom: 3rem;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background-color: var(--light-color);
        z-index: 1000;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-wrapper.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-menu li {
        margin: 1rem 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        width: 100%;
    }
    
    .nav-cta {
        display: inline-block;
        width: auto;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        margin-top: 3rem;
    }
    
    .footer-column {
        margin-left: 0;
        margin-right: 3rem;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .experience-item {
        flex-direction: column;
    }
    
    .experience-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .footer-column {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .footer-column:last-child {
        margin-bottom: 0;
    }
}

/* ===== Animation Classes ===== */
.menu-open {
    overflow: hidden;
}

.rotate-down {
    transform: translateY(8px) rotate(45deg);
}

.rotate-up {
    transform: translateY(-8px) rotate(-45deg);
}

.fade-out {
    opacity: 0;
}
