/* 
   Main Stylesheet for bestaipornsite.love
   Created: July 16, 2023
*/

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

:root {
    /* Color Palette - Gold and Dark theme */
    --primary: #FFD700;
    --primary-dark: #FFA500;
    --accent: #FF4500;
    --dark: #1A1A1A;
    --dark-gray: #222222;
    --light-gray: #333333;
    --text-light: #FFFFFF;
    --text-gold: #FFD700;
    --gradient: linear-gradient(135deg, var(--primary), var(--primary-dark));
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 20px;
}

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

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

.main-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

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

h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-gold);
}

h4 {
    font-size: 1.2rem;
    color: var(--text-gold);
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

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

section {
    padding: 5rem 0;
    position: relative;
}

/* Header Styles */
header {
    background-color: rgba(26, 26, 26, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

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

.logo {
    flex: 0 0 auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Button Styles */
.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.button.primary {
    background: var(--gradient);
    color: var(--dark);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

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

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

.button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.5);
}

.button.secondary:hover {
    background: rgba(255, 215, 0, 0.1);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    background-color: var(--dark-gray);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(26,26,26,0.7) 100%);
    z-index: 1;
}

.hero .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1 1 500px;
    padding: 2rem 0;
}

.hero-visual {
    flex: 0 0 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

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

.feature-card {
    background: var(--light-gray);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

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

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    opacity: 0.8;
}

/* Categories Section */
.categories {
    background-color: var(--dark-gray);
}

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

.category-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: scale(1.05);
}

.category-item h3 {
    margin-top: 1rem;
    font-size: 1.3rem;
}

.categories-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Why Us Section */
.why-us {
    background-color: var(--dark);
}

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

.reason {
    background: var(--light-gray);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    position: relative;
}

.reason-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.3;
}

.reason h3 {
    margin-bottom: 1rem;
}

.reason p {
    color: var(--text-light);
    opacity: 0.8;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(26,26,26,0.95) 100%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23222" /><path d="M0,0L100,100M100,0L0,100" stroke="%23FFD700" stroke-width="0.5" stroke-opacity="0.1" /></svg>');
    text-align: center;
    padding: 6rem 0;
}

.cta-section h2 {
    color: var(--text-gold);
}

.cta-section p {
    color: var(--text-light);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
}

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

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

.footer-logo {
    flex: 0 0 120px;
}

.footer-links {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4rem;
}

.footer-column {
    flex: 0 1 180px;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

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

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

.footer-column ul li a {
    color: var(--text-light);
    opacity: 0.7;
    transition: all 0.3s ease;
}

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

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

.copyright p {
    color: var(--text-light);
    opacity: 0.5;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-visual {
        flex: 1 1 100%;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .cta-group {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dark);
        height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    nav.active {
        height: auto;
        visibility: visible;
        opacity: 1;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .feature-card, .reason {
        padding: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 2rem;
    }
    
    .footer-column h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    html {
        font-size: 13px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .button {
        padding: 0.7rem 1.2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
