/**
 * Layout Styles
 * Header, navigation, hero section, main content, and footer
 */

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

.header_section {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    gap: 2rem;
}

.header_section > * {
    flex-shrink: 0;
}

.header_section.scrolled {
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
}

/* Logo */
.header_logo {
    font-size: 0;
}

.header_logo img {
    width: auto;
    height: auto;
    max-height: var(--header-height-desktop);
    transition: var(--transition);
}

/* Desktop Menu */
.header_menu_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.header_menu_list li {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-color);
    margin: 0 0.3rem;
}

.header_menu_list li a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.header_menu_list li::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
    opacity: 0;
}

.header_menu_list li:hover,
.header_menu_list li a:hover {
    color: var(--primary-color);
}

.header_menu_list li:hover::after {
    width: 100%;
    opacity: 1;
}

/* Mobile Menu Container */
.header_mobile_menu {
    display: none;
    position: relative;
    z-index: 1001;
    margin-left: auto;
}

/* Hide the checkbox */
.menu-toggle {
    display: none;
}

/* Hamburger icon */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 45px;
    height: 40px;
    cursor: pointer;
    padding: 6px;
    border-radius: 5px;
    transition: var(--transition);
}

.hamburger:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 5px;
    background-color: var(--text-color);
    border-radius: 4px;
    margin: 0.5rem;
    transition: var(--transition);
}

/* Hamburger animation when menu is open */
.menu-toggle:checked + .hamburger .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--primary-color);
}

.menu-toggle:checked + .hamburger .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle:checked + .hamburger .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--primary-color);
}

/* Mobile Menu Overlay */
.mobile_menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: var(--dark-color);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), visibility 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    z-index: 1000;
    visibility: hidden;
    backdrop-filter: blur(8px);
    background-color: rgba(33, 37, 41, 0.95);
    overflow-y: auto;
}

.menu-toggle:checked ~ .mobile_menu {
    transform: translateX(0);
    visibility: visible;
}

/* Prevent body scrolling when mobile menu is open */
html:has(.menu-toggle:checked) {
    overflow: hidden;
}

.mobile_menu_logo {
    margin-bottom: 2rem;
}

.mobile_menu_logo img {
    width: auto;
    height: auto;
    max-height: 80px;
    transition: var(--transition);
    filter: invert(1) brightness(1.2);
}

.mobile_menu_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile_menu_list li {
    padding: 1rem;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.mobile_menu_list li a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.mobile_menu_list li::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.mobile_menu_list li:hover,
.mobile_menu_list li a:hover {
    color: var(--primary-color);
}

.mobile_menu_list li:hover::after {
    width: 70%;
}

/* Close button */
.close-button {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button::before,
.close-button::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: var(--transition);
}

.close-button::before {
    transform: rotate(45deg);
}

.close-button::after {
    transform: rotate(-45deg);
}

.close-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.close-button:hover::before,
.close-button:hover::after {
    background-color: var(--primary-color);
}


/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero_section {
    background-image: url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    background-repeat: no-repeat;
}

.hero_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
/*    background: var(--gradient-hero-overlay); */
    pointer-events: none;
}

.hero_section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.15), transparent 50%);
    pointer-events: none;
}

.hero_content {
    position: relative;
    color: white;
    text-align: center;
    padding: 0 2rem;
    max-width: 1000px;
}

.hero_content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero_content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */

.content_section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    background-color: var(--bg-color);
    z-index: 10;
}

/* Section Spacing & Titles */
.section-spacing {
    margin: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Intro Section */
.intro-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 2rem;
}

.intro-section h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    width: 100%;
}

/* Lists */
.content_section ul {
    padding-left: 0;
    list-style-type: none;
}

.content_section li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.content_section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer_section {
    padding: 5rem 2rem 3rem;
    background: linear-gradient(180deg, var(--dark-color) 0%, #020617 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    background-size: 200% 100%;
}

.footer_content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.footer_content > div {
    text-align: left;
}

.footer_section h3 {
    color: var(--light-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer_section h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    bottom: -8px;
    left: 0;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.footer_section p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer_section a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    display: inline-block;
}

.footer_section a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width var(--transition);
}

.footer_section a:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

.footer_section a:hover::after {
    width: 100%;
}

.footer_bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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