/* ===================================
   Header & Hero Section Styles
   =================================== */

.header-container {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    margin-bottom: 4rem;
}

.header-content {
    max-width: 700px;
}

.header-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.author {
    font-size: 1.25rem;
    margin: 1rem 0 2rem;
    opacity: 0.85;
}

.header-subtitle {
    font-style: italic;
    opacity: 0.7;
}

/* Container */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* CTA Button */
.cta {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    width: 50px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark-theme .cta {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cta i {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    font-size: 1.25rem;
}

.button-text {
    padding-right: 20px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta:hover {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body.dark-theme .cta:hover {
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.cta:hover .button-text {
    opacity: 1;
}

/* Individual button widths based on text length */
.cta:nth-child(1):hover {
    width: 115px; /* Email */
}

.cta:nth-child(2):hover {
    width: 125px; /* GitHub */
}

.cta:nth-child(3):hover {
    width: 135px; /* LinkedIn */
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    font-size: 2rem;
    opacity: 0.4;
    display: block;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Fade-in animation for header */
.fade-in {
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Header */
@media (max-width: 768px) {
    .header-container {
        min-height: 70vh;
        margin-bottom: 3rem;
    }
    
    .header-title {
        font-size: 2.5rem;
    }
    
    .author {
        font-size: 1.1rem;
    }
    
    .container {
        gap: 1.25rem;
    }
    
    .cta {
        width: 45px;
        height: 45px;
    }
    
    .cta i {
        min-width: 45px;
        height: 45px;
        font-size: 1.15rem;
    }
    
    .cta:nth-child(1):hover {
        width: 105px; /* Email */
    }
    
    .cta:nth-child(2):hover {
        width: 115px; /* GitHub */
    }
    
    .cta:nth-child(3):hover {
        width: 125px; /* LinkedIn */
    }
}

@media (max-width: 480px) {
    .header-container {
        min-height: 60vh;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    .author {
        font-size: 1rem;
    }
    
    .container {
        gap: 1rem;
    }
    
    .cta {
        width: 42px;
        height: 42px;
    }
    
    .cta i {
        min-width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    .cta:nth-child(1):hover {
        width: 100px; /* Email */
    }
    
    .cta:nth-child(2):hover {
        width: 108px; /* GitHub */
    }
    
    .cta:nth-child(3):hover {
        width: 118px; /* LinkedIn */
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
}


