/* Enhanced Home Section CSS */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

/* Animated grid background */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    opacity: 0.6;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

/* Glowing orb */
.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: orbFloat 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.1); }
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.greeting {
    font-size: 1.5rem;
    color: #60a5fa;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out;
}

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

.name {
    font-size: 4rem;
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-weight: 800;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.designation-wrapper {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    height: 30px;
    display: flex;
    align-items: center;
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.designation-text {
    color: #60a5fa;
    font-weight: 600;
}

.cursor {
    color: #60a5fa;
    animation: blink 0.7s infinite;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1.4s ease-out 0.6s both;
}

.hero-buttons .btn-primary {
    padding: 14px 32px;
    font-size: 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6);
}

.hero-buttons .btn-outline {
    padding: 14px 32px;
    font-size: 1rem;
    color: #60a5fa;
    border: 2px solid #60a5fa;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.hero-buttons .btn-outline:hover {
    background-color: #60a5fa;
    color: #0f172a;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-wrapper {
    width: 400px;
    height: auto;
    z-index: 2;
    position: relative;
    animation: imageFloat 6s ease-in-out infinite;
    transition: all 0.5s ease;
}

.image-wrapper:hover {
    transform: scale(1.05);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.4));
}

@keyframes imageFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 1;
    animation: blobMorph 10s ease-in-out infinite;
}

@keyframes blobMorph {
    0%, 100% {
        border-radius: 50%;
        transform: translate(0, 0) scale(1);
    }
    33% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #60a5fa;
    text-decoration: none;
    animation: bounce 2s infinite;
}

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

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid #60a5fa;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: #60a5fa;
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-section::after {
        width: 100%;
        opacity: 0.3;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
        padding: 0 20px;
    }

    .hero-content {
        align-items: center;
        width: 100%;
    }

    .designation-wrapper {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .image-wrapper {
        width: 280px;
        max-width: 90%;
    }

    .name {
        font-size: 2.5rem;
    }

    .hero-blob {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-container {
        gap: 2rem;
        padding: 0 15px;
    }

    .name {
        font-size: 2.2rem;
        word-break: break-word;
        margin-bottom: 1rem;
    }

    .greeting {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .designation-wrapper {
        font-size: 1.1rem;
        margin-bottom: 1.8rem;
    }

    .image-wrapper {
        width: 260px;
        max-width: 85%;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
        align-items: center;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: calc(100% - 30px);
        max-width: 300px;
        padding: 14px 24px;
        font-size: 0.95rem;
        text-align: center;
    }

    .hero-blob {
        width: 250px;
        height: 250px;
    }

    .scroll-down {
        display: none;
    }
}
