/* Layout components - header, navigation, footer */

/* Scroll Progress Indicator */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-neon-cyan), var(--accent-neon-purple));
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Layout Components - Minimalist Modern Structure */

/* Section Layout - Refined Spacing */
section {
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

section.hero {
    padding: 0;
}

section.alt {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Grid Layouts - Clean and Responsive */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Auto-fill grid for dynamic content */
.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

/* Flex Layouts - Versatile and Modern */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.flex-wrap {
    flex-wrap: wrap;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

/* Equal height cards in grid/flex layouts */
.equal-height {
    height: 100%;
}

/* Header Layout - Clean and Minimal */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all var(--transition-speed);
    backdrop-filter: blur(0);
}

.header.scrolled {
    padding: 15px 0;
    background-color: var(--header-bg);
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

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

/* Hero Section Layout */
.hero-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: var(--spacing-lg);
}

/* Project Gallery Layout */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Skills Layout */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 30px 10px;
    margin: 0 auto;
    justify-content: center;
    max-width: 900px;
}

/* Timeline Layout */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, rgba(34, 227, 235, 0), rgba(34, 227, 235, 0.5), rgba(34, 227, 235, 0));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: calc(50% - 40px);
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    padding: 25px;
    box-shadow: var(--card-shadow);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.timeline-date {
    position: absolute;
    top: 0;
    width: 80px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: var(--bg-dark);
    font-weight: 600;
    border-radius: 4px;
    font-size: 0.9rem;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -110px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -110px;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gradient-accent);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(34, 227, 235, 0.4);
}

/* Contact Layout */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Footer Layout */
.footer {
    padding: var(--spacing-md) 0;
    background-color: var(--bg-dark);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: var(--spacing-sm);
}

/* Spacers - Clean Whitespace Management */
.spacer-xs {
    height: var(--spacing-xs);
}

.spacer-sm {
    height: var(--spacing-sm);
}

.spacer-md {
    height: var(--spacing-md);
}

.spacer-lg {
    height: var(--spacing-lg);
}

.spacer-xl {
    height: var(--spacing-xl);
}

/* Full Width Section */
.full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Card Container */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-sm {
    padding: var(--spacing-sm);
}

.card-lg {
    padding: var(--spacing-lg);
}

/* Glass Card - Modern Frosted Glass Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Response Media Queries */
@media screen and (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-split {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item, .timeline-item:nth-child(even) {
        flex-direction: row;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: 0;
        top: -40px;
    }
}

@media screen and (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .project-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .skills-container {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .footer-content, .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .footer-links, .footer-social {
        justify-content: center;
    }
}