/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease-in-out infinite;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 70px 0 0 0 !important;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
    box-sizing: border-box;
    z-index: 1;
}

#hero-plexus-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind .hero-container (z-index: 2) but above base gradient */
    pointer-events: none;
}

/* Animated background gradient */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating geometric shapes */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: floatingShapes 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatingShapes {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(120deg);
    }

    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-image {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.profile-photo:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Floating animation for profile photo */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.8s both;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 1.1s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    max-width: 600px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 1.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease-out 1.7s both;
}

/* Enhanced fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-bg-shapes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Important if shapes drift outside */
    pointer-events: none;
    z-index: -1;
    /* Behind plexus (z-index:0) and hero content (z-index:2) */
}

.hero-bg-shape {
    position: absolute;
    opacity: 0.07;
    /* Very subtle */
    transform-origin: center center;
}

.hero-bg-shape path {
    fill: rgba(255, 255, 255, 0.3);
    /* Soft white, complements plexus */
    /* stroke: rgba(255, 255, 255, 0.2); */
    /* Optional stroke */
    /* stroke-width: 1px; */
}

@keyframes morphAndDriftShape {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.05;
    }

    25% {
        transform: translate(20px, -30px) rotate(45deg) scale(1.1);
        opacity: 0.08;
    }

    50% {
        transform: translate(-10px, 15px) rotate(90deg) scale(0.95);
        opacity: 0.06;
    }

    75% {
        transform: translate(30px, 25px) rotate(135deg) scale(1.05);
        opacity: 0.09;
    }

    100% {
        transform: translate(0, 0) rotate(180deg) scale(1);
        /* Half rotation to make it look different on loop */
        opacity: 0.05;
    }
}

/* Apply to individual shapes with variation */
#bg-shape-1 {
    animation: morphAndDriftShape 35s infinite linear alternate;
}

#bg-shape-2 {
    animation: morphAndDriftShape 45s infinite linear alternate;
    animation-delay: -5s;
}

#bg-shape-3 {
    animation: morphAndDriftShape 40s infinite linear alternate;
    animation-delay: -10s;
}