/* --- 1. CORE VARIABLES & RESET --- */
:root {
    --primary: #0a2540;
    /* Deep Legal Blue */
    --primary-light: #183b61;
    --accent: #cfa355;
    /* Gold - Premium/Freedom */
    --accent-glow: #f5e4c3;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --bg-body: #ffffff;
    --bg-light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-body);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- 2. UTILITY CLASSES --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    color: #8a6a2a;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(10, 37, 64, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(10, 37, 64, 0.3);
    background-color: var(--primary-light);
}

.btn-secondary:hover{
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(10, 37, 64, 0.3);
}

/* --- 3. BACKGROUND BLOBS (Advanced Feel) --- */
.blob-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #e0f2fe;
    top: -100px;
    right: -50px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-glow);
    bottom: 10%;
    left: -50px;
}

/* --- 4. HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 10px 0;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    /* Glassmorphism */
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 120px;
}

.logo img {
    width: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- 5. HERO SECTION --- */
.hero {
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 150px;
    padding-bottom: 90px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-content .hero-btn {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-content .achivments {
    margin-top: 40px;
    display: flex;
    gap: 40px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.hero-content .achivments h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.hero-content .achivments span {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.hero-image-wrapper {
    position: relative;
}

.hero-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

/* Floating Badge in Hero */
.float-card {
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.float-card i {
    font-size: 2rem;
    color: var(--accent);
}

.float-card div h4 {
    font-family: 'Plus Jakarta Sans';
    font-size: 1rem;
    margin-bottom: 0;
}

.float-card div span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.fc-1 {
    bottom: -30px;
    left: -30px;
}

.fc-2 {
    top: 40px;
    right: -30px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- Why Choose Us --- */
.problem-section {
    background: #fff;
    position: relative;
}

.badge {
    background: #fee2e2;
    color: #b91c1c;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.problem-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.problem-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #e74c3c;
    opacity: 0;
    transition: 0.3s;
}

.problem-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #d40000;
    margin-bottom: 24px;
}

/* ---  ABOUT & VALUES --- */
.about-wrapper {
    background-color: var(--primary);
    color: white;
    border-radius: 30px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.about-content {
    padding: 80px 60px;
}

.about-content .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.about-content h2 {
    color: white;
    margin-bottom: 30px;
}

.about-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.about-content h4 {
    color: white;
    margin-bottom: 20px;
    font-family: 'Plus Jakarta Sans';
}

.about-image {
    background: url(assets/about-us.png);
    background-position: center center;
    min-height: 400px;
    background-size: cover;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.value-item i {
    color: var(--accent);
}

/* services */
.problem-grid-services {
    color: white;
}

.problem-grid-services .service-card {
    background: var(--primary);
    border-radius: 16px;
    transition: 0.4s;
    cursor: pointer;
    background-size: cover;
    background-position: center center;
}

#services .image{
    width: 100%;
    max-height: 266px;
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}
#services .image img{
    width: 100%;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    scale: 106%;
    transition: 0.3s;
}
#services .image .dark-oly{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px 16px 0 0;
    background-color: rgba(0, 0, 0, 0);
}

#services .text{
    padding: 10px 30px 30px 30px;
}

.problem-grid-services .service-card .dark-oly{
    padding: 30px;
    border-radius: 16px;
}

.problem-grid-services .service-card ul{
    list-style: circle;
    margin-left: 17px;
}

.problem-grid-services .service-card:hover .image img {
    transform: scale(1.03);
}

.problem-grid-services .service-card h3 {
    transition: 0.3s;
    color: white;
    margin-bottom: 12px;
}

.problem-grid-services .service-card:hover h3 {
    color: var(--accent);
}

.problem-grid-services .service-card p {
    transition: 0.3s;
}

.problem-grid-services .service-card:hover p {
    color: rgba(255, 255, 255, 0.8);
}

.problem-grid-services .service-card .icon-box {
    transition: 0.3s;
    background: white;
    color: #d40000;
}

.problem-grid-services .service-card:hover .icon-box {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

/* =========================================
   EXPERT TEAM SECTION (Desktop Base)
   ========================================= */
.expert-team-section {
    background: #ffffff;
    position: relative;
    z-index: 1;
    padding: 20px 0px;
}

.expert-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.expert-card {
    background: white;
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Gold Line Animation on Hover */
.expert-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: 0.4s ease;
    transform-origin: center;
}

.expert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.expert-card:hover::after {
    transform: scaleX(1);
}

.expert-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.8rem;
    transition: 0.3s;
}

.expert-card .wrapper1 , .expert-card .wrapper2 {
    padding: 12px;
} 

.expert-card .icon-wrapper svg{
    width: 100%;
    height: 100%;
    object-fit: contain;
    fill: red;
}

.expert-card:hover .icon-wrapper {
    background: var(--primary);
}

.expert-card:hover .icon-wrapper svg{
    fill: var(--accent);
}

.expert-card h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 5px;
    line-height: 1;
    font-weight: 700;
}

.expert-card p {
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    margin: 0;
}

/* --- PROCESS --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

.process-steps::after {
    content: '';
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: -1;
}

.step-item {
    background: white;
    padding: 20px;
    text-align: center;
}

.step-num {
    width: 50px;
    height: 50px;
    background: #d40000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 700;
    border: 4px solid white;
    /* breaks the line */
}


/* --- 10. TESTIMONIALS (Swiper) --- */
#testimonials{
    position: relative;
}
.swiper{
    position: unset;
}

.swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal{
    bottom: var(--swiper-pagination-bottom, 20px);
}
.testimonial-slide {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.testimonial-slide h4 {
    margin-top: 20px;
}

.testimonial-slide span {
    font-size: 0.9rem;
    color: #666;
}

.stars {
    color: #f59e0b;
    margin-bottom: 20px;
}

.quote-icon {
    font-size: 3rem;
    color: var(--bg-light);
    margin-bottom: -20px;
    display: block;
}

/* video section */
.video-promo {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    text-align: center;
}

.video-container {
    position: relative;
    max-width: 300px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.video-container video {
  max-width: 100%;
  height: auto;
}


#promo-video {
    display: block;
    border-radius: 20px;
    width: 100%;
    height: auto;
    z-index: 1;
}

#promo-video[controls] {
    border-radius: 20px;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #0a2540;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(10, 37, 64, 0.723);
    transition: all 0.3s ease;
    z-index: 3;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 20px 45px rgb(18, 78, 139);
}

.play-btn i {
    margin-left: 4px;
}

.video-playing .play-overlay,
.video-playing .play-btn {
    opacity: 0;
    pointer-events: none;
}

.video-playing #promo-video {
    cursor: pointer;
}

/* --- 11. CONTACT & FORM --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-top: -50px;
    /* Overlap effect */
}

.contact-info {
    background: var(--primary);
    background-image: url(assets/contact-form.jpeg);
    background-size: cover;
    background-position: center center;

}

.gradient {
    padding: 60px;
    color: white;
    background-color: rgb(10 37 64 / 71%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-wrapper {
    padding: 60px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.form-label {
    position: absolute;
    top: 15px;
    left: 0;
    color: #94a3b8;
    pointer-events: none;
    transition: 0.3s;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    top: -10px;
    font-size: 0.85rem;
    color: var(--primary);
}

/* --- FOOTER --- */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: block;
    font-family: 'Playfair Display';
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-family: 'Plus Jakarta Sans';
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--accent);
}

.copy-right{
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

footer .social-icon {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

footer .social-icon a {
    text-decoration: none;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
}

footer .social-icon a svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    fill: #94a3b8;
}

footer .social-icon a svg:hover {
    fill: var(--accent);
}



/* ===== 3. PREMIUM SMOOTH ANIMATIONS (GPU Accelerated) ===== */

/* Base State */
[data-animate] {
    opacity: 0;
    /* Use 3D transform to force GPU rendering */
    transform: translate3d(0, 40px, 0) scale(0.98); 
    
    /* The "Luxury" Curve: Fast start, very slow soft landing */
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Hint to browser to optimize rendering */
    will-change: opacity, transform;
}

/* Directional Variations */
[data-animate="fade-right"] {
    transform: translate3d(-50px, 0, 0);
}

[data-animate="fade-left"] {
    transform: translate3d(50px, 0, 0);
}

[data-animate="fade-up"] {
    transform: translate3d(0, 50px, 0);
}

/* Active State (Triggered by JS) */
[data-animate].animate {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/* Staggered Delays (Handled via CSS for 60fps performance) */
[data-animate].delay-1 { transition-delay: 0.1s; }
[data-animate].delay-2 { transition-delay: 0.2s; }
[data-animate].delay-3 { transition-delay: 0.3s; }
[data-animate].delay-4 { transition-delay: 0.4s; }
[data-animate].delay-5 { transition-delay: 0.5s; }
[data-animate].delay-6 { transition-delay: 0.6s; }

/* Mobile Optimization: Reduce movement on small screens to prevent scroll lag */
@media (max-width: 768px) {
    [data-animate] {
        transform: translate3d(0, 20px, 0);
        transition-duration: 0.8s;
    }
    [data-animate="fade-right"], 
    [data-animate="fade-left"] {
        transform: translate3d(0, 20px, 0); /* Reset horizontal moves to vertical on mobile */
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 35px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 45px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    margin-top: 2px;
}
