/* Hero Section Redesign */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.05), transparent),
        var(--bg-color);
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
    /* Override center text */
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border: none;
    animation: none;
    /* Disable legacy CSS animation */
    opacity: 1;
    /* Let AOS handle opacity */
    transform: none;
}

.hero p {
    font-size: 1.25rem;
    margin: 0 0 35px 0;
    /* Align left */
    max-width: 100%;
    animation: none;
    opacity: 1;
    transform: none;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1/1.1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    position: relative;
    z-index: 2;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1),
        -20px -20px 60px rgba(255, 255, 255, 0.8);
    transition: transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 20px;
    right: -20px;
    border-radius: 30px;
    border: 2px solid var(--primary);
    z-index: 1;
    opacity: 0.5;
    transition: all 0.5s ease;
}

.hero-visual::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
}

.hero-visual:hover .hero-img {
    transform: translateY(-10px) scale(1.02);
}

.hero-visual:hover::before {
    top: 30px;
    right: -30px;
    opacity: 0.8;
}

/* Outline Button */
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 15px;
    box-shadow: none;
}

.btn-outline::after {
    background: var(--primary);
}

.btn-outline:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2);
}

body.dark-theme .hero-img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .btn-outline {
    border-color: var(--primary);
    color: var(--light);
}

body.dark-theme .btn-outline:hover {
    color: white;
}

/* Tablet & Mobile Responsiveness for Hero */
@media (max-width: 992px) {
    .hero-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

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

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        margin: 0 auto 30px;
    }

    .hero-visual {
        max-width: 350px;
    }
}