/* Projects Section Styles */

.projects-section {
    position: relative;
    width: 100%;
    min-height: 200vh; /* Reduced for better fit */
    background: #1a1a1a;
}

/* Header with animated name */
.projects-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    z-index: 10;
    overflow: visible;
}

/* Background pattern matching hero section */
.projects-header::before {
    position: absolute;
    z-index: 1;
    content: '';
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: 100% 8px;
    background-image: linear-gradient(0, rgba(255,255,255,0.04) 10%, transparent 10%, transparent 50%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.04) 60%, transparent 60%, transparent);
    pointer-events: none;
}

/* Name SVG */
.name-svg {
    position: relative;
    z-index: 2;
    width: 85vw;
    max-width: 1100px;
    overflow: visible;
}

/* Letters start hidden - animated via JS */
.letter {
    scale: 0;
    translate: 20px 0;
    transform-origin: center;
    will-change: scale, translate;
}

/* Golden gradient overlay */
.header-overlay {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 150%;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.3), transparent);
    filter: blur(40px);
    z-index: 1;
    opacity: 0;
}

/* Content area */
.projects-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 0 2rem;
    z-index: 5;
    color: #f5e6c8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.content-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    font-weight: 700;
    color: #d4af37;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 4rem;
    opacity: 0;
    transform: translateY(40%);
    filter: blur(10px);
}

.content-inner {
    max-width: 64rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Profile image */
.profile-image-container {
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-40%);
    filter: blur(10px);
}

.profile-image {
    width: 375px;
    height: 375px;
    object-fit: cover;
    border-radius: 1rem;
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
}

.content-desc {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    font-size: 1.35rem;
    letter-spacing: 0.025em;
    line-height: 1.9;
    color: #e8dcc8;
    opacity: 0;
    transform: translateY(40%);
    filter: blur(10px);
}

/* Stats section */
.stats-container {
    max-width: 64rem;
    width: 100%;
    padding-top: 1.5rem;
}

.stats-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.75rem;
    font-weight: 700;
    color: #d4af37;
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(40%);
    filter: blur(10px);
}

.stats-name {
    font-family: 'Bungee', system-ui, sans-serif;
    color: white;
    font-size: 1.5rem;
}

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

.stat-card {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.12), transparent);
    opacity: 0;
    filter: blur(10px);
}

.card-1, .card-3 {
    transform: translateY(-40%);
}

.card-2, .card-4 {
    transform: translateY(40%);
}

.stat-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #c9a227;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #d4af37;
    margin-top: 0.25rem;
}

.stat-unit {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    color: #a89060;
    margin-top: 0.125rem;
}


/* Desktop */
@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
        max-width: 12ch;
    }
    
    .stat-value {
        font-size: 2.25rem;
        margin-top: 0.5rem;
    }
    
    .stat-unit {
        font-size: 0.7rem;
        margin-top: 0.25rem;
    }
    
    .content-title {
        font-size: 3.5rem;
    }
    
    .stats-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    
    .stats-name {
        font-size: 1.75rem;
    }
    
    .stats-container {
        padding-top: 2rem;
    }
    
    .profile-image {
        width: 320px;
        height: 320px;
    }
    
    .content-desc {
        font-size: 1.4rem;
    }
}

/* Mobile */
@media (max-width: 639px) {
    .name-svg {
        width: 85vw;
        max-width: 400px;
    }
    
    .projects-content {
        padding: 0 1rem;
        justify-content: flex-start;
        padding-top: 13vh;
        overflow-y: auto;
    }
    
    .content-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    .profile-image {
        width: 156px;
        height: 156px;
    }
    
    .content-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        margin-top: 0;
    }
    
    .content-desc {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .stats-container {
        padding-top: 0.75rem;
    }
    
    .stats-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .stats-name {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 0.6rem 0.5rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
        margin-top: 0.2rem;
    }
    
    .stat-unit {
        font-size: 0.55rem;
        margin-top: 0.1rem;
    }
}

/* Medium-tall screens (700-900px) */
@media (min-height: 700px) and (max-height: 900px) {
    .content-title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
        margin-top: 2rem;
    }
    
    .profile-image {
        width: 280px;
        height: 280px;
    }
    
    .content-desc {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .stats-container {
        padding-top: 1rem;
    }
    
    .stats-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .stat-card {
        padding: 0.6rem 1rem;
    }
}

/* Short screens (550-700px) */
@media (max-height: 700px) {
    .content-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .profile-image {
        width: 220px;
        height: 220px;
    }
    
    .content-desc {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .stats-container {
        padding-top: 0.75rem;
    }
    
    .stats-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 0.5rem 0.75rem;
    }
}

/* Very short screens (below 550px) */
@media (max-height: 550px) {
    .stats-container {
        display: none;
    }
    
    .content-title {
        font-size: 1.75rem;
        margin-top: 1rem;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
    }
    
    .content-desc {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}
