/* Main Site CSS - Modular Architecture Following GUIDE.MD */
/* 
 * This file imports focused, single-purpose CSS modules for the main site
 * Each module handles one specific aspect of the main site
 * Blog-specific styles are handled separately in blog.css
 * Organized by: base -> layout -> components -> pages -> themes
 */

/* Base Styles */
@import url('./base/reset.css');
@import url('./base/typography.css');
@import url('./base/variables.css');
@import url('./base/utilities.css');
@import url('./base/animations.css');

/* Layout Styles */
@import url('./layout/header.css');
@import url('./layout/footer.css');
@import url('./layout/spatial-menu.css');

/* Component Styles */
@import url('./components/buttons.css');

/* Page Styles */
@import url('./pages/home.css');
@import url('./pages/about.css');

/* Main site specific styles extracted from style.css */
/* These are the core styles that the main site needs */

/* Global Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    overflow-x: hidden;
    background-color: #0d1117;
}

/* Header Component */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(48, 54, 61, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    display: flex;
    align-items: center;
    padding: 0 40px;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(125, 133, 144, 0.3);
}

.header.hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f0f6fc;
    text-decoration: none;
    margin-right: auto;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    background: linear-gradient(45deg, rgba(240, 246, 252, 0.7), rgba(125, 133, 144, 0.8), rgba(240, 246, 252, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 10px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    height: 40px;
    box-sizing: border-box;
}

.nav-link:hover {
    background: linear-gradient(45deg, rgba(88, 166, 255, 0.9), rgba(56, 139, 253, 0.8), rgba(31, 111, 235, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-1px);
    backdrop-filter: blur(8px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #58a6ff, #388bfd);
    transition: width 0.3s ease;
}

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

/* Navigation icons styling for main site */
.nav-icon {
    /* Hide icons on desktop by default */
    display: none;
}

.nav-text {
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

/* Language Switcher - Main site specific */
.language-switcher-nav {
    position: relative;
}

.language-switcher-dropdown {
    position: relative;
    display: inline-block;
}

.language-toggle {
    background: rgba(13, 17, 23, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(48, 54, 61, 0.4);
    color: rgba(240, 246, 252, 0.9);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    height: 40px;
    box-sizing: border-box;
}

.language-toggle:hover {
    background: rgba(13, 17, 23, 0.8);
    border-color: rgba(88, 166, 255, 0.3);
    color: #f0f6fc;
    box-shadow: 0 4px 16px rgba(88, 166, 255, 0.15);
    transform: translateY(-1px);
}

/* Hero Section - Main site specific */
.hero-section {
    min-height: 100vh;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background-image: url('../placeholder.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px);
    z-index: 1;
    transform: scale(1.2);
    opacity: 0.3;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 17, 23, 0) 0%,
        rgba(13, 17, 23, 0.1) 40%,
        rgba(13, 17, 23, 0.3) 60%,
        rgba(13, 17, 23, 0.7) 80%,
        rgba(13, 17, 23, 1) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.main-title {
    font-size: 7rem;
    font-weight: 500;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.5rem;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.7), rgba(173, 216, 230, 0.8), rgba(255, 255, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0px 0.5px 1px rgba(0, 0, 0, 0.1);
}

/* Carousel Section - Main site specific */
.carousel-section {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1s forwards;
}

.carousel-container {
    position: relative;
    width: 600px;
    height: 160px;
    margin-bottom: 40px;
}

.carousel-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    border-radius: 30px;
    border: 1px solid #30363d;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateZ(-300px) translateY(40px) scale(0.7);
    visibility: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.carousel-card.active {
    opacity: 1;
    transform: translateZ(0) translateY(0) scale(1);
    z-index: 10;
    visibility: visible;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.card-image {
    width: 190px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: #333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    flex: 1;
}

.card-category {
    font-size: 0.75rem;
    color: #7d8590;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.card-title {
    font-size: 1rem;
    color: #f0f6fc;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
}

.card-arrow {
    font-size: 1.5rem;
    color: #7d8590;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-card:hover .card-arrow {
    color: #58a6ff;
    transform: translateX(4px);
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    text-decoration: none;
    border-radius: 30px;
}

.card-link:hover {
    background: rgba(88, 166, 255, 0.05);
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 0 20px;
    }
    
    .nav-links {
        gap: 16px;
    }
    
    .main-title {
        font-size: 4rem;
    }
    
    .carousel-container {
        width: 90%;
        max-width: 400px;
    }
}

@media (max-width: 580px) {
    .nav-links {
        gap: 14px;
    }
    
    .nav-link {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 12px;
        height: 56px;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .nav-link {
        padding: 8px;
        min-width: 40px;
        justify-content: center;
    }
    
    /* Hide text labels on mobile, show only icons */
    .nav-text {
        display: none;
    }
    
    .nav-icon {
        display: block;
        flex-shrink: 0;
        opacity: 0.9;
        width: 20px;
        height: 20px;
        color: rgba(240, 246, 252, 0.8);
        transition: all 0.3s ease;
    }
    
    .nav-link:hover .nav-icon {
        opacity: 1;
        transform: scale(1.1);
        color: rgba(88, 166, 255, 1);
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .carousel-container {
        width: 340px;
        height: 160px;
        min-height: 120px;
    }
    
    .card-title {
        font-size: 1.1rem;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .header {
        padding: 0 8px;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 6px;
    }
    
    .nav-link {
        padding: 6px;
        min-width: 36px;
    }
    
    .nav-icon {
        display: block;
        width: 18px;
        height: 18px;
    }
}