/*
 * Homepage Advanced Animations & Styles
 * مكتب غرس القانوني - Ghars Law
 * تحسينات متقدمة للصفحة الرئيسية
 */

/* ===== CSS Variables - Advanced ===== */
:root {
    --gold-glow: 0 0 30px rgba(212, 175, 55, 0.4);
    --primary-glow: 0 0 30px rgba(26, 54, 93, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    /* Premium Metallic Gold Gradient */
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f7e98d 50%, #d4af37 100%);
    --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    --gradient-dark: linear-gradient(180deg, rgba(26, 54, 93, 0.95) 0%, rgba(26, 32, 44, 0.98) 100%);
}

html {
    scroll-behavior: smooth;
}

/* ===== Advanced Keyframes ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(201, 162, 39, 0.6);
    }
}

@keyframes text-shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes border-dance {

    0%,
    100% {
        border-color: var(--secondary);
    }

    50% {
        border-color: var(--primary-light);
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes scale-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes slide-up-fade {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===== Navigation - Advanced ===== */
.site-header,
.main-navigation {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 20px 0;
}

.site-header.scrolled,
.main-navigation.scrolled {
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before {
    width: 100%;
}

/* ===== Hero Slider - Advanced ===== */
.hero-slider-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-slider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    z-index: 1;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 3;
}

/* Hero Logo Header */
.hero-logo-header {
    position: absolute;
    top: 30px;
    right: 50px;
    z-index: 100;
}

.hero-logo-img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
    transition: all 0.4s ease;
}

.hero-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 30px rgba(201, 162, 39, 0.4));
}

/* Hero Slider */
.hero-slider {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

.slide-content {
    text-align: center;
    color: white;
    padding: 40px 20px;
}

/* Slide Lottie Animation */
.slide-lottie {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.lottie-container {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 0 30px rgba(201, 162, 39, 0.5));
}

/* Slide Title - Advanced Text Effect */
.slide-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #c9a227 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 4s linear infinite;
    text-shadow: none;
}

.slide-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--secondary);
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 1px;
}

.slide-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 35px;
    line-height: 1.8;
}

/* Slide CTA Buttons */
.slide-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-gold {
    background: var(--gradient-gold);
    background-size: 200% auto;
    color: var(--dark);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

.btn-gold:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: var(--gold-glow);
}

.btn-gold.pulse-glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

.btn-gold.pulse-glow:hover {
    animation: none;
}

.btn-outline-gold {
    background: transparent;
    color: var(--secondary);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--secondary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-outline-gold:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: var(--gold-glow);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 20;
    pointer-events: none;
}

.slider-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.slider-arrow:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: scale(1.1);
    box-shadow: var(--gold-glow);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.slider-dot {
    width: 50px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.slider-dot.active {
    background: rgba(255, 255, 255, 0.5);
}

.dot-progress {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: var(--secondary);
    border-radius: 3px;
    transition: width 6s linear;
}

.slider-dot.active .dot-progress {
    width: 100%;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: float 2s ease-in-out infinite;
}

.hero-scroll-indicator:hover {
    color: var(--secondary);
}

.hero-scroll-indicator svg {
    animation: float 1.5s ease-in-out infinite;
}

/* Contact Bar */
.hero-contact-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    gap: 40px;
    z-index: 20;
    flex-wrap: wrap;
}

.hero-contact-bar .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.hero-contact-bar .contact-item:hover {
    color: var(--secondary);
}

.hero-contact-bar .contact-item svg {
    color: var(--secondary);
}

/* ===== Services Section - Advanced ===== */
.services-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: rotate-slow 30s linear infinite;
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 54, 93, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: rotate-slow 25s linear infinite reverse;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.services-grid-6 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Service Card - Advanced 3D */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Service Icon */
.service-icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.1) 0%, rgba(201, 162, 39, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    position: relative;
}

.service-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px dashed var(--secondary);
    opacity: 0;
    transition: all 0.5s ease;
    animation: rotate-slow 10s linear infinite paused;
}

.service-card:hover .service-icon-wrapper::after {
    opacity: 1;
    animation-play-state: running;
}

.service-card:hover .service-icon-wrapper {
    background: var(--gradient-gold);
    transform: scale(1.1) rotateY(180deg);
}

.service-icon-wrapper svg {
    color: var(--primary);
    transition: all 0.5s ease;
}

.service-card:hover .service-icon-wrapper svg {
    color: var(--dark);
    transform: rotateY(180deg);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary);
}

.service-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Service Badge */
.service-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(26, 54, 93, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 15px;
}

.service-badge.new {
    background: var(--gradient-gold);
    color: var(--dark);
    animation: scale-pulse 2s ease-in-out infinite;
}

/* Premium & Highlight Cards */
.service-card-premium {
    border: 2px solid var(--secondary);
    background: linear-gradient(135deg, white 0%, rgba(201, 162, 39, 0.05) 100%);
}

.service-card-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.service-card-highlight h3,
.service-card-highlight p {
    color: white;
}

.service-card-highlight .service-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
}

.service-card-highlight .service-icon-wrapper svg {
    color: var(--secondary);
}

.service-card-cta {
    background: var(--gradient-gold);
}

.service-card-cta h3,
.service-card-cta p {
    color: var(--dark);
}

.service-card-cta .btn-gold {
    background: var(--primary);
    color: white;
}

/* ===== Stats Section - Advanced ===== */
.stats-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: white;
    padding: 30px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: all 0.5s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: var(--gold-glow);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary);
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(201, 162, 39, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ===== About Section - Advanced ===== */
.about-section {
    padding: 100px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-gold);
    color: var(--dark);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-text .section-title {
    text-align: right;
}

.about-text .section-title::after {
    right: 0;
    transform: none;
}

.about-description {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 30px;
}


/* ===== Blog Section - Advanced ===== */
.blog-section {
    padding: 100px 0;
    background: #f7fafc;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    /* For clickable overlay */
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    /* Aspect Ratio 16:9 */
    overflow: hidden;
}

.blog-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-gold);
    color: var(--dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.blog-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-date {
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 0 0 15px;
    line-height: 1.5;
}

.blog-card-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title a {
    color: var(--primary);
}

/* Make entire card clickable via pseudo-element on the title link */
.blog-card-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.blog-card-excerpt {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: auto;
    border-top: 1px solid #edf2f7;
    padding-top: 20px;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
    /* Ensure this button appears above the card link overlay if needed, 
       though the overlay strategy on title usually covers everything effectively. 
       We'll keep z-index relative to allow distinct hover if desired, 
       but strictly speaking the overlay covers clicks. */
    position: relative;
    z-index: 2;
}

.blog-card:hover .read-more {
    gap: 12px;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
    transition: all 0.3s ease;
}

.about-features li:hover {
    padding-right: 10px;
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.1) 0%, transparent 100%);
}

.check-icon {
    width: 30px;
    height: 30px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon svg {
    color: var(--dark);
}

/* About CTA */
.about-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* About Image */
.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.about-image:hover .about-image-wrapper img {
    transform: scale(1.05);
}

.about-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(26, 54, 93, 0.9));
}

.experience-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--gradient-gold);
    padding: 20px 30px;
    border-radius: 15px;
    color: var(--dark);
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== Blog Section - Advanced ===== */
.blog-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f7fafc 0%, white 100%);
}

.blog-more {
    text-align: center;
    margin-top: 50px;
}

/* ===== Contact Section - Advanced ===== */
.contact-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: white;
}

.contact-section .section-title::after {
    background: var(--secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    margin-top: 50px;
}

/* Contact Info Card */
.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--secondary);
}

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-info .contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--dark);
}

.contact-text h4 {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-text p,
.contact-text a {
    color: white;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--secondary);
}

/* Contact Social Links */
.contact-social {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-social h4 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.4s ease;
}

.social-link.whatsapp {
    background: #25d366;
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.contact-form .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.1);
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn-block {
    width: 100%;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-logo-header {
        right: 20px;
        top: 20px;
    }

    .hero-logo-img {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .hero-slider-section {
        min-height: 100svh;
    }

    .slide-content {
        padding: 20px 15px;
    }

    .lottie-container {
        width: 100px;
        height: 100px;
    }

    .slide-cta {
        flex-direction: column;
        gap: 15px;
    }

    .btn-gold,
    .btn-outline-gold {
        width: 100%;
        justify-content: center;
    }

    .slider-nav {
        padding: 0 15px;
    }

    .slider-arrow {
        width: 45px;
        height: 45px;
    }

    .slider-dots {
        bottom: 80px;
    }

    .hero-contact-bar {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .services-section,
    .about-section,
    .blog-section,
    .contact-section {
        padding: 60px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-card,
    .contact-form-wrapper {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .services-grid-6 {
        grid-template-columns: 1fr;
    }
}

/* ===== Smooth Scroll & Scroll Effects ===== */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.4s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 998;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-5px);
}

/* ===== Loading Animation ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-logo {
    width: 100px;
    margin-bottom: 20px;
    animation: scale-pulse 1.5s ease-in-out infinite;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== Text Split Animation Classes ===== */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(-90deg);
}

.split-text.animated .char {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reveal Animation Classes ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ===== Glassmorphism Effects ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.glass-dark {
    background: rgba(26, 54, 93, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-animated {
    background: linear-gradient(135deg, #c9a227 0%, #f4d03f 25%, #c9a227 50%, #f4d03f 75%, #c9a227 100%);
    background-size: 400% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

/* ===== Hover Glow Effects ===== */
.hover-glow {
    transition: all 0.4s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.4);
}

.hover-glow-primary:hover {
    box-shadow: 0 0 30px rgba(26, 54, 93, 0.4);
}

/* ===== Cursor Effects ===== */
.cursor-pointer {
    cursor: pointer;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Button Sizes ===== */
.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 18px 45px;
    font-size: 1.2rem;
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .page-loader {
        display: none !important;
    }
}

/* Focus States */
.btn:focus,
.form-control:focus,
.slider-arrow:focus,
.slider-dot:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {

    .hero-slider-section,
    .particles-container,
    .whatsapp-float,
    .back-to-top,
    .page-loader {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
    :root {
        --primary: #000080;
        --secondary: #FFD700;
    }

    .btn-gold {
        border: 2px solid black;
    }
}


/* ===== Animation Initial States ===== */
/* GSAP will animate FROM these states TO normal */
/* Using will-change for better performance */

.slide-in-right,
.slide-in-left {
    will-change: transform, opacity;
}

.service-card,
.stat-item,
.blog-card {
    will-change: transform, opacity;
}

/* Ensure smooth animations */
.about-section,
.services-section,
.stats-section,
.contact-section,
.blog-section {
    overflow: hidden;
}



/* ===== Service Card Links - Clickable Services ===== */
.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.service-card-link h3,
.service-card-link p {
    transition: color 0.3s ease;
}

.service-card-link:hover h3 {
    color: var(--secondary, #c9a227);
}

.service-card-link::after {
    content: '←';
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 1.2rem;
    color: var(--secondary, #c9a227);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.service-card-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Premium card link adjustments */
.service-card-premium.service-card-link:hover h3 {
    color: var(--secondary, #c9a227);
}

/* Highlight card link adjustments */
.service-card-highlight.service-card-link::after {
    color: white;
}

.service-card-highlight.service-card-link:hover h3 {
    color: var(--secondary, #c9a227);
}

/* Focus states for accessibility */
.service-card-link:focus {
    outline: 3px solid var(--secondary, #c9a227);
    outline-offset: 3px;
}

.service-card-link:focus-visible {
    outline: 3px solid var(--secondary, #c9a227);
    outline-offset: 3px;
}


/* ===== FIXES: Hero Contact Bar & Mobile Responsiveness ===== */

/* Fix Contact Bar Text Visibility */
.hero-contact-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 18px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 50;
    flex-wrap: wrap;
    border-top: 1px solid rgba(201, 162, 39, 0.3);
}

.hero-contact-bar .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-contact-bar .contact-item span {
    color: #ffffff !important;
    display: inline-block;
}

.hero-contact-bar .contact-item:hover {
    color: #c9a227 !important;
}

.hero-contact-bar .contact-item:hover span {
    color: #c9a227 !important;
}

.hero-contact-bar .contact-item svg {
    color: #c9a227;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Fix Slider Dots Position - Above Contact Bar */
.slider-dots {
    position: absolute;
    bottom: 100px !important;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
}

/* Fix Scroll Indicator Position */
.hero-scroll-indicator {
    position: absolute;
    bottom: 80px !important;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
}

/* YouTube Social Link */
.social-link.youtube {
    background: #FF0000;
}

.social-link.youtube:hover {
    background: #cc0000;
}

/* ===== Mobile Responsive Fixes ===== */
@media (max-width: 992px) {
    .hero-contact-bar {
        gap: 25px;
        padding: 15px 20px;
    }
    
    .hero-contact-bar .contact-item {
        font-size: 0.9rem;
    }
    
    .slider-dots {
        bottom: 90px !important;
    }
}

@media (max-width: 768px) {
    /* Hero Section Mobile Fix */
    .hero-slider-section {
        min-height: 100vh;
        padding-bottom: 120px;
    }
    
    /* Contact Bar Mobile */
    .hero-contact-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 12px 15px;
        border-radius: 0;
        background: rgba(10, 22, 40, 0.98) !important;
    }
    
    .hero-contact-bar .contact-item {
        font-size: 0.8rem;
        gap: 6px;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 20px;
    }
    
    .hero-contact-bar .contact-item svg {
        width: 16px;
        height: 16px;
    }
    
    /* Hide location text on mobile, show only icon */
    .hero-contact-bar .contact-item.location span {
        display: none;
    }
    
    /* Slider Dots Mobile */
    .slider-dots {
        bottom: 140px !important;
    }
    
    /* Hide Scroll Indicator on Mobile */
    .hero-scroll-indicator {
        display: none !important;
    }
    
    /* Slide Content Mobile */
    .slide-content {
        padding: 20px;
        padding-bottom: 80px;
    }
    
    .slide-title {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }
    
    .slide-subtitle {
        font-size: 1rem !important;
    }
    
    .slide-description {
        font-size: 0.9rem !important;
    }
    
    /* Slider Navigation Arrows Mobile */
    .slider-nav {
        display: none;
    }
    
    /* Services Grid Mobile */
    .services-grid-6 {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    /* SEO Content Section Mobile */
    .seo-content-wrapper {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .seo-text-content h1 {
        font-size: 1.8rem !important;
    }
    
    .seo-text-content h2 {
        font-size: 1.4rem !important;
    }
    
    .seo-image-content {
        order: -1;
    }
}

@media (max-width: 480px) {
    /* Extra Small Screens */
    .hero-contact-bar {
        padding: 10px;
        gap: 8px;
    }
    
    .hero-contact-bar .contact-item {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    /* Hide email text on very small screens */
    .hero-contact-bar .contact-item:nth-child(2) span {
        display: none;
    }
    
    .slide-title {
        font-size: 1.5rem !important;
    }
    
    .slide-cta {
        flex-direction: column;
        gap: 10px;
    }
    
    .slide-cta .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .slider-dots {
        bottom: 130px !important;
    }
    
    .slider-dot {
        width: 25px;
        height: 4px;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .hero-contact-bar {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}
