/* Global Variables */
:root {
    --primary: #0F172A;
    /* Slate 900 */
    --primary-light: #1E293B;
    /* Slate 800 */
    --secondary: #F59E0B;
    /* Amber 500 */
    --secondary-hover: #D97706;
    /* Amber 600 */
    --accent: #64748B;
    /* Slate 500 */
    --light: #F8FAFC;
    /* Slate 50 */
    --white: #FFFFFF;
    --dark: #020617;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--accent);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--white);
}

.bg-dark {
    background-color: var(--primary);
    color: var(--white);
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--secondary);
    margin: 10px auto 30px;
    border-radius: 2px;
}

.divider.left {
    margin: 10px 0 30px;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-primary-sm {
    background-color: var(--secondary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary-sm:hover {
    background-color: var(--secondary-hover);
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a.active {
    color: var(--secondary);
    font-weight: 600;
}

.nav-links a:not(.btn-primary-sm):hover {
    color: var(--secondary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--white);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding-top: 60px;
    /* Offset fixed header */
}

.hero-content .badge {
    background-color: rgba(245, 158, 11, 0.2);
    color: #ffd166;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: #cbd5e1;
    max-width: 600px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: block;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
    /* Needed for absolute positioning */
}

/* Hover Effect Images */
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.img-work {
    opacity: 1;
    position: relative;
    z-index: 1;
}

.img-result {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;
}

.service-card:hover .img-result {
    opacity: 1;
    transform: scale(1.1);
}

.service-card:hover .img-work {
    transform: scale(1.1);
    /* Keep scale sync */
}

/* Hover Label Badge */
.hover-label {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(15, 23, 42, 0.9);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 5;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.service-card:hover .hover-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.card-content {
    padding: 25px;
    position: relative;
    z-index: 10;
}

.icon-box {
    background-color: var(--secondary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    position: absolute;
    top: -25px;
    right: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 20;
    border: 3px solid var(--white);
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.service-card:hover .read-more {
    gap: 10px;
}

/* Why Choose Us */
.feature-list {
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.f-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.f-text h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery-item {
    height: 250px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testi-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--radius);
    backdrop-filter: blur(5px);
}

.testi-card .stars {
    color: var(--secondary);
    margin-bottom: 15px;
}

.testi-card p {
    color: #cbd5e1;
    font-style: italic;
    margin-bottom: 20px;
}

.testi-card h4 {
    font-size: 1rem;
    color: var(--white);
    text-align: right;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 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");
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.cta-section p {
    color: #cbd5e1;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Page Header (Services) */
.page-header {
    background-color: var(--primary);
    padding: 140px 0 60px;
    text-align: center;
    color: var(--white);
}

.page-header p {
    color: #cbd5e1;
    font-size: 1.2rem;
}

/* Service Details */
.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.search-grid.reverse {
    direction: rtl;
    /* Quick swap for visuals */
}

.search-grid.reverse .text-content {
    direction: ltr;
    /* Reset text direction */
}

.img-content {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    /* Essential for absolute positioning of children */
}

/* Generalized hover effect for both service cards and detail images */
.service-card:hover .img-result,
.img-content:hover .img-result {
    opacity: 1;
    transform: scale(1.1);
}

.service-card:hover .img-work,
.img-content:hover .img-work {
    transform: scale(1.1);
}

.service-card:hover .hover-label,
.img-content:hover .hover-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Ensure images inside img-content transition smoothly */
.img-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.icon-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.icon-title i {
    font-size: 2rem;
    color: var(--secondary);
}

.icon-title h2 {
    margin: 0;
}

.benefits-list {
    margin: 20px 0;
}

.benefits-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
    /* Space for icon */
    line-height: 1.5;
}

.benefits-list i {
    color: var(--secondary);
    position: absolute;
    left: 0;
    top: 4px;
    /* Align with first line of text */
}

/* Footer */
footer {
    background-color: var(--dark);
    color: #94a3b8;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}

.social-links a:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.3s ease;
}

.floating-wa:hover {
    transform: scale(1.1);
}

.floating-call {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--secondary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

/* Responsive */
@media (max-width: 900px) {

    .search-grid,
    .search-grid.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 10px;
    }

    .col-text {
        text-align: center;
    }

    .feature-list li {
        text-align: left;
    }
}