/* Hero Container - Full Page Layout */
.hero-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    /* make hero transparent so the body background-image is fully visible */
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.hero-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    /* remove decorative overlay so background image shows only */
    display: none;
}

.hero-container::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    /* remove decorative overlay so background image shows only */
    display: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Hero Content */
.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

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

/* Large Background Photo */
.profile-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: fadeIn 1.5s ease-out 0.3s both;
    pointer-events: none;
}

.profile-photo img {
    /* make hero/profile photo smaller and responsive */
    max-width: 360px;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0.5;
    filter: grayscale(30%) blur(1px);
    transition: all 0.5s ease;
    border-radius: 20px;
    display: block;
    border: 3px solid var(--soft-turquoise);
}

.hero-container:hover .profile-photo img {
    opacity: 0.4;
    filter: grayscale(10%) blur(0px);
    transform: scale(1.02);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 0.15;
        transform: scale(1);
    }
}

/* Hero Title - Overlaying the photo */
.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 2rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.4s both;
    position: relative;
    z-index: 4;
    text-shadow: 0 2px 20px rgba(139, 95, 191, 0.3);
    filter: drop-shadow(0 4px 8px rgba(77, 208, 225, 0.2));
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray-dark);
    margin-bottom: 2rem;
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Typing cursor for hero subtitle */
.typed-cursor {
    display: inline-block;
    margin-left: 6px;
    /* deeper purple for better contrast — change to var(--dark-navy) for dark blue */
    color: var(--deep-purple);
    font-weight: 700;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Bio Section */
.bio-section {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Accessible focus styles: remove the browser default outline and add a single-color
   focus ring for keyboard users. Use :focus-visible to avoid hiding focus for mouse users. */
.btn:focus {
    outline: none;
}
.btn:focus-visible {
    /* deep purple ring that contrasts with both white and image backgrounds */
    box-shadow: 0 0 0 4px rgba(107, 70, 193, 0.18), 0 6px 18px rgba(107, 70, 193, 0.08);
    transition: box-shadow 0.15s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-soft);
    border: 2px solid var(---soft-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--deep-purple);
    border: 2px solid var(--soft-purple);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--soft-purple);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--dark-turquoise);
    border: 2px solid var(--dark-turquoise);
}

.btn-outline:hover {
    background: var(--dark-turquoise);
    color: white;
    transform: translateY(-2px);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .bio-text {
        font-size: 1rem;
        padding: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .profile-photo img {
        width: 350px;
        height: 450px;
        opacity: 0.12;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .bio-text {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .profile-photo img {
        width: 280px;
        height: 350px;
    }
}






