/* ═══════════════════════════════════════════════════════════════════
   Hero Modern - CityStone Theme
   An elegant, minimal, and serene hero section
   ═══════════════════════════════════════════════════════════════════ */

/* CSS Variables */
:root {
    --hero-bg-primary: #0f172a;
    --hero-bg-secondary: #1e293b;
    --hero-accent: var(--secondary-color, #d4af37);
    --hero-text: #f8fafc;
    --hero-text-muted: rgba(255, 255, 255, 0.7);
}

/* ═══════════════════════════════════════════════════════════════════
   Main Hero Container
   ═══════════════════════════════════════════════════════════════════ */

.hero-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--hero-bg-primary) 0%, var(--hero-bg-secondary) 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

/* Background Image with Overlay */
.hero-modern .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.2;
    z-index: 0;
}

/* Gradient Overlay */
.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    z-index: 1;
}

/* Decorative Elements */
.hero-modern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--hero-accent) 0%, transparent 70%);
    opacity: 0.05;
    z-index: 1;
}

/* Floating Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hero-accent) 0%, transparent 100%);
    opacity: 0.08;
    z-index: 1;
    animation: float-slow 15s ease-in-out infinite;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.hero-shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Hero Content
   ═══════════════════════════════════════════════════════════════════ */

.hero-modern .container {
    position: relative;
    z-index: 2;
}

.hero-modern-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Content Column */
.hero-content {
    text-align: right;
}

/* Badge / Label */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--hero-accent);
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge i {
    font-size: 0.9rem;
}

/* Title */
.hero-modern-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--hero-text);
    margin: 0 0 25px 0;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-modern-title span {
    background: linear-gradient(135deg, var(--hero-accent) 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.hero-modern-subtitle {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--hero-text-muted);
    margin: 0 0 40px 0;
    max-width: 550px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

/* Buttons */
.hero-buttons-modern {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a5f 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.3);
}

.hero-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.4);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-btn-secondary:hover {
    background: var(--hero-accent);
    color: #000;
    border-color: var(--hero-accent);
    transform: translateY(-4px);
}

.hero-btn-secondary i {
    font-size: 1.2rem;
}

/* ═══════════════════════════════════════════════════════════════════
   Hero Image Column
   ═══════════════════════════════════════════════════════════════════ */

.hero-image-modern {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

/* Main Image */
.hero-main-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-img-wrapper:hover .hero-main-img {
    transform: perspective(1000px) rotateY(0deg);
}

/* Decorative Frame */
.hero-img-frame {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--hero-accent);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
}

/* Floating Badge on Image */
.hero-img-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a5f 100%);
    padding: 20px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid #fff;
}

.hero-img-badge .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--hero-accent);
    line-height: 1;
}

.hero-img-badge .text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
}

/* Placeholder when no image */
.hero-img-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.hero-img-placeholder i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════
   Features Strip
   ═══════════════════════════════════════════════════════════════════ */

.hero-features-strip {
    position: relative;
    z-index: 2;
    margin-top: 60px;
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hero-feature-item {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.hero-feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.hero-feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--hero-accent) 0%, #ffd700 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-feature-icon i {
    font-size: 1.3rem;
    color: #000;
}

.hero-feature-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px 0;
}

.hero-feature-text span {
    font-size: 0.85rem;
    color: var(--hero-text-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Responsive Design
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .hero-modern-wrapper {
        gap: 50px;
    }

    .hero-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .hero-modern {
        padding: 100px 0 60px;
    }

    .hero-modern-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-modern-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons-modern {
        justify-content: center;
    }

    .hero-image-modern {
        order: -1;
    }

    .hero-img-wrapper {
        max-width: 400px;
    }

    .hero-img-badge {
        left: auto;
        right: -20px;
    }
}

@media (max-width: 768px) {
    .hero-modern {
        min-height: auto;
        padding: 100px 0 50px;
    }

    .hero-modern-title {
        font-size: 2rem;
    }

    .hero-modern-subtitle {
        font-size: 1rem;
    }

    .hero-features-grid {
        grid-template-columns: 1fr;
    }

    .hero-feature-item {
        padding: 20px 15px;
    }

    .hero-img-wrapper {
        max-width: 300px;
    }

    .hero-main-img {
        transform: none;
    }

    .hero-img-badge {
        bottom: -20px;
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 576px) {
    .hero-buttons-modern {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }
}