/* Base Styles & Variables */
:root {
    --primary-white: #ffffff;
    --off-white: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
    --accent-amber: #ffbf00;
    --accent-cyan: #00bcd4;
    --accent-cyan-light: #e0f7fa;
    --gradient-soft: linear-gradient(135deg, #ffffff 0%, #fdfbf7 50%, #f0fbfc 100%);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --font-main: 'Outfit', sans-serif;
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--primary-white);
    color: var(--text-dark);
    line-height: 1.6;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 191, 0, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 188, 212, 0.03) 0%, transparent 20%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent-amber);
    color: var(--text-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 191, 0, 0.3);
}

.btn-outline {
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-cyan);
    color: white;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-cyan);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Header */
header {
    background: #ffffff;
    /* distinct from body gradient */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Stronger elevation */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo span {
    color: var(--accent-amber);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-cyan);
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        background: var(--primary-white);
        /* Solid background */
        height: 100vh;
        width: 280px;
        /* Fixed width drawer, not 100% */
        top: 0;
        right: 0;
        /* Align to right */
        left: auto;
        /* Reset left */
        flex-direction: column;
        align-items: center;
        /* Center items */
        justify-content: center;
        gap: 40px;
        /* More space between links */
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        /* Above header */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        /* Shadow for drawer depth */
    }

    .nav-links.open {
        transform: translateX(0%);
    }

    .hamburger {
        display: block;
        z-index: 1002;
        /* Ensure clickable above drawer if it overlaps, though drawer is side-aligned */
        position: relative;
    }

    .hero h1 {
        font-size: 2.2rem !important;
        /* Slightly smaller for mobile */
    }
}

/* Fix for horizontal scroll/zoom issues */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Carousel */
.carousel-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}

/* Services Page Styles */
.services-grid-large {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-card-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.service-card-large:nth-child(even) .service-img-holder {
    order: 2;
}

.service-card-large:nth-child(even) .service-content {
    order: 1;
}

.service-img-holder img {
    border-radius: var(--radius-md);
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.service-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-cyan);
}

.service-features {
    list-style: disc;
    margin-left: 20px;
    margin-top: 15px;
    color: var(--text-light);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background: var(--off-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Grid & Cards (Index Page) */
.service-card,
.review-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.review-card {
    background: var(--off-white);
    border-left: 5px solid var(--accent-amber);
}

.icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .service-card-large {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card-large:nth-child(even) .service-img-holder,
    .service-card-large:nth-child(even) .service-content {
        order: unset;
    }

    .carousel-slide img {
        height: 300px;
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    transition: opacity 0.3s, transform 0.2s, background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
    /* Mobile: remove square tap highlight */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    user-select: none;
}

.scroll-top-btn:active {
    transform: scale(0.9);
    background: rgba(0, 0, 0, 0.8);
}

.scroll-top-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}