/* 
   emiruaiporn.site - Main Stylesheet
   Purple-Pink Circular Theme
*/

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6A11CB;
    --secondary: #E65C9C;
    --dark: #1A1A2E;
    --darker: #0F0F1A;
    --light: #FFFFFF;
    --gray: #B8B8D0;
    --light-bg: #E6E6FA;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow: 0 10px 30px rgba(106, 17, 203, 0.2);
    --border-radius: 30px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--light);
    margin-bottom: 0.5em;
}

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

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

p {
    margin-bottom: 1rem;
}

section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient);
    color: var(--light);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(106, 17, 203, 0.4);
    color: var(--light);
}

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

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    border: 2px solid rgba(230, 92, 156, 0.7);
    color: var(--secondary);
    margin-left: 15px;
    border-radius: var(--border-radius);
}

.btn-outline:hover {
    background: rgba(230, 92, 156, 0.1);
    transform: translateY(-3px);
    color: var(--secondary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 15px 0;
    background-color: rgba(15, 15, 26, 0.98);
}

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

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

.logo svg {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    color: var(--light);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gradient);
    left: 0;
    bottom: -2px;
    transition: all 0.3s ease;
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background-color: var(--darker);
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(106, 17, 203, 0.05) 0%, transparent 25%),
                radial-gradient(circle at 80% 70%, rgba(230, 92, 156, 0.05) 0%, transparent 25%);
    top: 0;
    left: 0;
}

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

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

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

.hero-text {
    color: var(--gray);
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Features Section */
.features {
    background-color: var(--dark);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.05;
    top: -150px;
    right: -150px;
}

.features::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.05;
    bottom: -100px;
    left: -100px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: rgba(230, 92, 156, 0.2);
}

.feature-icon {
    margin-bottom: 25px;
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.feature-icon::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.1;
    top: -15px;
    left: -15px;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light);
}

.feature-text {
    color: var(--gray);
}

/* Content Section */
.content {
    background-color: var(--darker);
    position: relative;
    overflow: hidden;
}

.content::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(106, 17, 203, 0.03) 0%, transparent 25%),
                radial-gradient(circle at 20% 80%, rgba(230, 92, 156, 0.03) 0%, transparent 25%);
    top: 0;
    left: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.content-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: rgba(230, 92, 156, 0.2);
}

.content-thumbnail {
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background: linear-gradient(45deg, rgba(106, 17, 203, 0.05), rgba(230, 92, 156, 0.05));
}

.content-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: var(--transition);
}

.content-card:hover .content-thumbnail::before {
    background: rgba(0, 0, 0, 0.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.play-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid white;
    margin-left: 4px;
}

.content-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.content-info {
    padding: 20px;
}

.content-title {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 10px;
}

.content-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-meta-item {
    display: flex;
    align-items: center;
    color: var(--gray);
    font-size: 0.9rem;
}

.content-meta-item svg {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    fill: var(--secondary);
}

/* Experience Section */
.experience {
    background-color: var(--dark);
    position: relative;
}

.exp-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.exp-content {
    flex: 1;
    min-width: 300px;
}

.exp-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.exp-text {
    color: var(--gray);
    margin-bottom: 30px;
}

.exp-features {
    margin-bottom: 30px;
}

.exp-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.exp-feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exp-feature-icon svg {
    width: 14px;
    height: 14px;
    fill: white;
}

.exp-feature-text {
    color: var(--light);
}

.exp-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.exp-image-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.exp-image-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Section */
.cta {
    background: var(--darker);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(106, 17, 203, 0.05) 0%, transparent 50%);
    top: 0;
    left: 0;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-text {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 40px;
}

.cta-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.05;
    z-index: 0;
}

.cta-circle.top {
    top: -150px;
    right: -150px;
}

.cta-circle.bottom {
    bottom: -150px;
    left: -150px;
}

/* Footer */
.footer {
    background-color: var(--darker);
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--gray);
    margin-bottom: 25px;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--light);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .exp-wrapper {
        flex-direction: column;
    }
    
    .exp-image {
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: auto;
        background-color: var(--darker);
        transition: all 0.3s ease;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 0 20px;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .btn-outline {
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .features-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
