/**
 * Layout styles - Major structural elements like navbar, sections, and footer
 */

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
    transition: transform var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--glow-subtle);
}

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

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--micro-glow);
    transform: translate(-50%, -50%);
    filter: blur(10px);
    z-index: -1;
}

.logo-text {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--pure-white);
    position: relative;
}

.logo-highlight {
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--ghost-white);
    text-shadow: 0 0 8px var(--neon-glow);
    position: relative;
    margin-left: 1px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--pure-black) 0%, var(--rich-black) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 40%, var(--soft-glow) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, var(--soft-glow) 0%, transparent 40%);
    z-index: 1;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, var(--pure-white) 0%, var(--silver) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ghost-white), transparent);
    opacity: 0.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.accent {
    color: var(--ghost-white);
    -webkit-text-fill-color: var(--ghost-white);
    text-fill-color: var(--ghost-white);
    text-shadow: 0 0 10px var(--subtle-glow);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.accent::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--micro-glow);
    border-radius: var(--radius-full);
    filter: blur(15px);
    z-index: -1;
    transform: translate(-50%, -50%);
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
    background-color: var(--bg-secondary);
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--border-light) 20%, 
        var(--border-light) 80%, 
        transparent 100%);
    opacity: 0.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    align-items: center;
    transition: all var(--transition-normal);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    pointer-events: none;
    transition: border-color var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium), var(--glow-subtle);
}

.stat-card:hover::before {
    border-color: var(--border-neon);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-elevated);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ghost-white);
    font-size: 1.15rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 0 0 1px var(--border-subtle);
    transition: all var(--transition-normal);
}

.stat-card:hover .stat-icon {
    background-color: var(--slate);
    box-shadow: inset 0 0 0 1px var(--border-light), 0 0 10px var(--subtle-glow);
    color: var(--pure-white);
    text-shadow: 0 0 5px var(--neon-glow);
}

.stat-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--pure-white) 30%, var(--platinum) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    transition: all var(--transition-normal);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ===== MAIN CONTENT AREA ===== */
.main-content {
    padding: 4rem 0 6rem;
    position: relative;
    background-color: var(--bg-primary);
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 80%, var(--soft-glow) 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, var(--soft-glow) 0%, transparent 40%);
    opacity: 0.2;
    pointer-events: none;
}

.scripts-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin: 2rem 0 3rem;
}

@media (min-width: 640px) {
    .scripts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .scripts-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-secondary);
    padding: 5rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--border-light) 20%, 
        var(--border-light) 80%, 
        transparent 100%);
    opacity: 0.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 2rem;
    }
}

.footer-about {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    background-color: var(--bg-card);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

.social-link:hover {
    color: var(--ghost-white);
    background-color: var(--bg-elevated);
    border-color: var(--border-neon);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, var(--ghost-white), transparent);
}

.footer-list li {
    margin-bottom: 0.75rem;
}

.footer-list a {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}

.footer-list a::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--ghost-white);
    transition: width var(--transition-normal);
    opacity: 0.5;
}

.footer-list a:hover {
    color: var(--ghost-white);
    transform: translateX(3px);
}

.footer-list a:hover::before {
    width: 100%;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}

.copyright {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    letter-spacing: -0.01em;
}

.credits {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    letter-spacing: -0.01em;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background-color: rgba(40, 40, 45, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 100;
    border: 1px solid var(--border-subtle);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--ghost-white);
    color: var(--pure-black);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--subtle-glow);
    border-color: transparent;
}