/* header-hero.css - Kiểu dáng phần header và hero section */

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all var(--duration-normal);
    backdrop-filter: blur(10px);
}

header.scrolled {
    padding: 0.5rem 5%;
    background-color: rgba(255, 255, 255, 0.98);
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo-container h1 {
    margin: 0;
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.5px;
}

.logo-container p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--medium-gray);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
}

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

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

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 250, 0.9)), 
                url('https://via.placeholder.com/1920x1080') no-repeat center center/cover;
    padding-top: 120px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-left: 5%;
    padding-right: 5%;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(var(--primary-light), transparent 70%);
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding-right: var(--spacing-xl);
}

.hero-content h2 {
    font-size: 2.8rem;
    text-align: left;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content h2::after {
    display: none;
}

.hero-content h3 {
    font-weight: 500;
    color: var(--text-medium);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-lg);
}

.hero-image {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform var(--duration-slow);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--primary-light);
    border-radius: var(--border-radius-lg);
    z-index: -1;
    opacity: 0.5;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.3rem;
    }
    
    .hero-content, .hero-image {
        max-width: 100%;
    }
    
    #hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-content h2 {
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        box-shadow: var(--shadow-xl);
        padding: 120px var(--spacing-lg) var(--spacing-lg);
        transition: right var(--duration-normal);
        z-index: 100;
    }
    
    nav.open {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 200;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .logo-container h1 {
        font-size: 1.5rem;
    }
    
    .logo-container p {
        font-size: 0.7rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h3 {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    #hero {
        padding-top: 80px;
    }
}