.hero {
    min-height: 100vh;
    background: 
        url('../images/img12.jpg') center/cover no-repeat fixed,
        linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 147, 251, 0.1) 25%, rgba(102, 126, 234, 0.1) 75%, rgba(248, 250, 252, 0.9) 100%);
    background-blend-mode: overlay;
    background-size: cover, 400% 400%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('../images/.jpg') center/cover no-repeat fixed,
        radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 75% 75%, rgba(240, 147, 251, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 50% 10%, rgba(79, 172, 254, 0.08) 0%, transparent 70%),
        linear-gradient(45deg, transparent 20%, rgba(255, 255, 255, 0.15) 50%, transparent 80%);
    background-blend-mode: overlay, normal, normal, normal, normal;
    background-attachment: fixed;
    animation: heroOverlay 15s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.8;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="300" r="3" fill="rgba(102,126,234,0.4)" opacity="0.6"><animate attributeName="opacity" values="0.6;1;0.6" dur="3s" repeatCount="indefinite"/></circle><circle cx="800" cy="200" r="2" fill="rgba(240,147,251,0.3)" opacity="0.8"><animate attributeName="opacity" values="0.8;0.3;0.8" dur="4s" repeatCount="indefinite"/></circle><circle cx="600" cy="700" r="2.5" fill="rgba(79,172,254,0.5)" opacity="0.7"><animate attributeName="opacity" values="0.7;1;0.7" dur="5s" repeatCount="indefinite"/></circle></svg>');
    pointer-events: none;
    animation: starTwinkle 6s ease-in-out infinite;
}

@keyframes heroGradientWave {
    0%, 100% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    25% {
        background-position: 100% 0%;
        filter: hue-rotate(15deg);
    }
    50% {
        background-position: 100% 100%;
        filter: hue-rotate(30deg);
    }
    75% {
        background-position: 0% 100%;
        filter: hue-rotate(15deg);
    }
}

@keyframes heroOverlay {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(0);
    }
    50% {
        opacity: 0.8;
        transform: translateX(10px);
    }
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    color: var(--text-primary);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 35px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    opacity: 0;
    animation: slideInUp 0.8s forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.4s;
}

.title-line.accent-gradient {
    background: var(--primary-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 0.8s 0.2s forwards, gradientShift 4s ease-in-out infinite;
    font-weight: 900;
    display: block !important;
    opacity: 0;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .title-line.accent-gradient {
        background: none;
        color: #667eea;
        -webkit-text-fill-color: #667eea;
    }
}

.title-line.brand-text {
    color: #667eea;
    -webkit-text-fill-color: #667eea;
    font-weight: 900;
    animation-delay: 0.2s;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 45px;
    max-width: 550px;
    animation: fadeInUp 0.8s 0.6s forwards;
    opacity: 0;
    line-height: 1.6;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 45px;
    animation: fadeInUp 0.8s 0.8s forwards;
    opacity: 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.95);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s 1s forwards;
    opacity: 0;
}

.hero-image {
    position: relative;
    height: 500px;
    animation: fadeInRight 1s 0.5s forwards;
    opacity: 0;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: 
        rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

/* Owner profile image styling */
.owner-profile-image {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.owner-profile-image:hover {
    transform: scale(1.02);
}

.float-element {
    display: none;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-primary);
    text-align: center;
    opacity: 0.8;
    animation: bounce 2s infinite;
    z-index: 10;
}

.hero-scroll span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes heroGradientWave {
    0%, 100% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    25% {
        background-position: 100% 0%;
        filter: hue-rotate(15deg);
    }
    50% {
        background-position: 100% 100%;
        filter: hue-rotate(30deg);
    }
    75% {
        background-position: 0% 100%;
        filter: hue-rotate(15deg);
    }
}

@keyframes heroOverlay {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(0);
    }
    50% {
        opacity: 0.8;
        transform: translateX(10px);
    }
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 40px;
    }
    .hero-image {
        height: 320px;
        margin-top: 30px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .hero-image {
        height: 180px;
    }
    .hero-scroll {
        font-size: 0.8rem;
        bottom: 10px;
    }
}