/* =====================
   Hero Section
   ===================== */
.hero-section {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    flex: 0 1 auto;
}

/* Hero Slideshow */
.hero-slideshow {
    /* Allow slideshow to size naturally and be responsive */
    flex: 0 0 auto;
    width: 100%;
    max-width: 420px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: rgba(249, 249, 251, 0.92);
    border-radius: 18px;
    border: 1px solid rgba(190, 190, 198, 0.45);
    box-shadow: 0 24px 50px rgba(28, 28, 35, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

[data-theme="dark"] .slideshow-container {
    background: rgba(42, 42, 47, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38);
}

.window-toolbar {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(239, 239, 244, 0.96) 0%, rgba(225, 225, 232, 0.9) 100%);
    border-bottom: 1px solid rgba(186, 186, 194, 0.65);
    position: relative;
    flex-shrink: 0;
}

[data-theme="dark"] .window-toolbar {
    background: linear-gradient(180deg, rgba(78, 78, 86, 0.95) 0%, rgba(62, 62, 70, 0.9) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.window-controls {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    gap: 8px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.control-dot.close {
    background: #ff5f57;
}

.control-dot.minimize {
    background: #ffbd2e;
}

.control-dot.maximize {
    background: #28c840;
}

.window-title {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(40, 40, 45, 0.75);
}

[data-theme="dark"] .window-title {
    color: rgba(242, 242, 247, 0.75);
}

.window-content {
    position: relative;
    flex: 1;
    background: radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.8), rgba(241, 242, 246, 0.45));
}

[data-theme="dark"] .window-content {
    background: radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.12), rgba(20, 20, 24, 0.45));
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    padding: 1rem;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    opacity: 0;
    transform: translateX(-30px);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.hero-greeting {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

/* Glass CTA block - internship line + button */
.hero-cta-glass {
    display: inline-block;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

[data-theme="dark"] .hero-cta-glass {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.hero-cta-glass .hero-internship-line {
    margin-bottom: 1rem;
}

.hero-internship-line {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    margin-top: 0;
    line-height: 1.5;
    max-width: 420px;
}

.hero-internship-line strong {
    color: var(--primary-dark);
    font-weight: 600;
}

[data-theme="dark"] .hero-internship-line strong {
    color: var(--primary-light);
}

.hero-projects-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hero-projects-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.hero-projects-btn i {
    font-size: 1.2rem;
}

/* Hero Responsive */
@media (max-width: 991px) {
    .hero-wrapper {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-slideshow {
        max-width: 400px;
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .hero-name {
        font-size: clamp(3rem, 15vw, 5rem);
    }
    
    .hero-section {
        padding-bottom: 10vh;
    }
}

@media (max-width: 767.98px) {
    .hero-name {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    
    .hero-greeting {
        font-size: 1rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-cta-glass {
        width: 100%;
        max-width: 100%;
        padding: 1rem 1.25rem;
    }
    
    .hero-internship-line {
        font-size: 0.95rem;
        max-width: 100%;
    }
    
    .hero-projects-btn {
        font-size: 0.95rem;
        padding: 0.65rem 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .hero-name {
        font-size: clamp(2rem, 15vw, 3rem);
    }
}

/* Additional responsive tweaks to improve landing layout */
@media (max-width: 1199.98px) {
    .hero-wrapper {
        gap: 4rem;
        padding: 0 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-wrapper {
        padding: 0 1.25rem;
    }

    .hero-section {
        min-height: 75vh;
        padding-top: 6rem; /* space for fixed navbar */
        padding-bottom: 4rem;
    }

    .slideshow-container {
        max-width: 340px;
        border-radius: 16px;
    }
}

@media (max-width: 479.98px) {
    .slideshow-container {
        max-width: 280px;
    }
}
