/* Hero Section */
.hero {
    background: linear-gradient(135deg, #000000 0%, #2d1b3d 50%, #1a1a1a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Safari-specific fixes */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero::before {
    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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 3;
    min-height: 100vh;
    gap: 1.5rem;
    width: 100%;
    /* Safari flexbox fixes */
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    max-width: 550px;
    text-align: left;
    /* Safari flex fixes */
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #d4af37; /* Fallback for Safari */
    border: 1px solid var(--gold-accent);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #d4af37; /* Fallback for Safari */
    color: var(--gold-accent);
    font-weight: 500;
    /* Safari display fixes */
    -webkit-box-align: center;
    -webkit-box-pack: center;
}

.hero-badge i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: white; /* Fallback for Safari */
    margin-bottom: 1.5rem;
    line-height: 1.1;
    /* Safari text gradient with fallbacks */
    background: linear-gradient(135deg, #ffffff 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Safari-specific text rendering */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Safari fallback for text gradient */
@supports not (-webkit-background-clip: text) {
    .hero-title {
        color: white;
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-accent);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    /* Safari transform fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.hero-buttons .btn-primary i,
.hero-buttons .btn-secondary i {
    font-size: 1rem;
}

/* Hero Images Arrangement */
.hero-images {
    flex: 1;
    position: relative;
    max-width: 450px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.6s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    animation: heroImageReveal 1s ease forwards;
    /* Safari transform fixes */
    -webkit-transform: translateY(50px) scale(0.8);
    transform: translateY(50px) scale(0.8);
}

.hero-image-container:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 10;
    /* Safari transform fixes */
    -webkit-transform: scale(1.05) translateY(-10px);
    transform: scale(1.05) translateY(-10px);
}

.main-image {
    width: 240px;
    height: 240px;
    top: 10%;
    left: 10%;
    z-index: 3;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
    border: 3px solid rgba(212, 175, 55, 0.5);
    animation-delay: 0.2s;
}

.secondary-image {
    width: 160px;
    height: 160px;
    top: 10%;
    right: 10%;
    z-index: 2;
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation-delay: 0.4s;
}

.accent-image {
    width: 140px;
    height: 140px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 15px 40px rgba(192, 192, 192, 0.2);
    border: 2px solid rgba(192, 192, 192, 0.4);
    animation-delay: 0.6s;
}

.image-frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    /* Safari transform fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.hero-image-container:hover .image-frame img {
    transform: scale(1.1);
    /* Safari transform fixes */
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(45, 27, 61, 0.4) 50%,
        rgba(212, 175, 55, 0.2) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    /* Safari backdrop-filter fixes */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero-image-container:hover .image-overlay {
    opacity: 1;
}

.luxury-badge {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.3);
    /* Safari backdrop-filter fixes */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.luxury-badge i {
    color: var(--gold-accent);
    font-size: 1rem;
}

/* Hero Decorative Elements */
.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    opacity: 0.6;
    animation: heroFloat 6s ease-in-out infinite;
    /* Safari transform fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.gold-ring {
    top: 10%;
    left: 20%;
    color: var(--gold-accent);
    font-size: 2rem;
    animation-delay: 0s;
}

.silver-dot {
    bottom: 20%;
    right: 20%;
    width: 12px;
    height: 12px;
    background: var(--silver);
    border-radius: 50%;
    animation-delay: 2s;
}

.gold-sparkle {
    top: 70%;
    left: 10%;
    color: var(--gold-accent);
    font-size: 1.5rem;
    animation-delay: 4s;
}

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

@keyframes heroImageReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Floating Gold Coins - Hero Only */
.floating-coins {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.gold-coin {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold-accent) 0%, #f4d03f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    animation: float 6s ease-in-out infinite;
    /* Safari transform fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.gold-coin.small {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.gold-coin.large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
}

.gold-coin:nth-child(1) {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.gold-coin:nth-child(3) {
    top: 60%;
    right: 25%;
    animation-delay: 3s;
}

.gold-coin:nth-child(6) {
    bottom: 30%;
    right: 20%;
    animation-delay: 5s;
}

/* Floating Pet Images */
.floating-pet-images {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-pet {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    animation: petFloat 8s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Safari transform fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.floating-pet:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.4);
    border-color: var(--gold-accent);
    /* Safari transform fixes */
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.floating-pet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    /* Safari transform fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.floating-pet:hover img {
    transform: scale(1.05);
    /* Safari transform fixes */
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

/* Different sizes for floating pets */
.floating-pet.small {
    width: 80px;
    height: 80px;
}

.floating-pet.medium {
    width: 120px;
    height: 120px;
}

.floating-pet.large {
    width: 160px;
    height: 160px;
}

.floating-pet.extra-large {
    width: 200px;
    height: 200px;
}

/* Positioning for floating pets - Right side only */
.floating-pet:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-pet:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 1.5s;
}

.floating-pet:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 3s;
}

.floating-pet:nth-child(4) {
    top: 60%;
    left: 5%;
    animation-delay: 4.5s;
}

.floating-pet:nth-child(5) {
    bottom: 40%;
    right: 10%;
    animation-delay: 6s;
}

.floating-pet:nth-child(6) {
    top: 80%;
    right: 30%;
    animation-delay: 7.5s;
}

/* Floating animations */
@keyframes petFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(2deg);
    }
    50% {
        transform: translateY(-25px) translateX(-5px) rotate(-1deg);
    }
    75% {
        transform: translateY(-10px) translateX(15px) rotate(1deg);
    }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-images {
        max-width: 350px;
        height: 400px;
        margin: 0 auto;
    }
    
    .main-image {
        width: 200px;
        height: 200px;
    }
    
    .secondary-image {
        width: 140px;
        height: 140px;
    }
    
    .accent-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
        min-height: auto;
    }
    
    .hero-content {
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 1rem;
        justify-content: center;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .floating-coins {
        display: none;
    }
    
    .floating-pet-images {
        display: none; /* Hide floating pets on mobile for cleaner look */
    }
    
    .hero-images {
        max-width: 300px;
        height: 300px;
    }
    
    .main-image {
        width: 180px;
        height: 180px;
        top: 10%;
        left: 10%;
    }
    
    .secondary-image {
        width: 120px;
        height: 120px;
        top: 10%;
        right: 10%;
    }
    
    .accent-image {
        width: 100px;
        height: 100px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .luxury-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .floating-element {
        display: none; /* Hide decorative elements on mobile */
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    /* Reduce floating pets on tablet */
    .floating-pet.extra-large {
        width: 150px;
        height: 150px;
    }
    
    .floating-pet.large {
        width: 120px;
        height: 120px;
    }
    
    .floating-pet.medium {
        width: 100px;
        height: 100px;
    }
    
    .floating-pet.small {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .hero-images {
        max-width: 250px;
        height: 250px;
    }
    
    .main-image {
        width: 150px;
        height: 150px;
    }
    
    .secondary-image {
        width: 100px;
        height: 100px;
    }
    
    .accent-image {
        width: 80px;
        height: 80px;
    }
    
    .hero-image-container:hover {
        transform: scale(1.02) translateY(-5px);
    }
}
