/* ===== Variables ===== */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --accent: #e94560;
    --light-bg: #f8f9fc;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

/* ===== Base ===== */
body {
    font-family: var(--font-body);
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
}

.tracking-wide {
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* ===== Navbar ===== */
#mainNav {
    background: transparent;
    transition: background 0.3s, box-shadow 0.3s;
    padding: 1rem 0;
}

#mainNav.scrolled {
    background: var(--dark) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 0.5rem 0;
}

#mainNav .navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

#mainNav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

#mainNav .nav-link:hover {
    color: var(--primary) !important;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, #0f3460 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(108,92,231,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(233,69,96,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-subtitle {
    color: var(--primary);
    font-family: var(--font-body);
    font-weight: 600;
}

.hero-title {
    color: #fff;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108,92,231,0.3);
}

.btn-outline-light {
    border-radius: 50px;
    font-weight: 600;
    border-width: 2px;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ===== Service Cards ===== */
.service-card {
    border-radius: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108,92,231,0.08);
    border-radius: 1rem;
}

.service-icon-lg {
    display: inline-block;
}

/* ===== Testimonials ===== */
.testimonial-card {
    max-width: 700px;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto;
}

.avatar-placeholder-sm {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108,92,231,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    color: #fff;
    padding-top: 120px;
    padding-bottom: 60px;
    margin-bottom: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,.6);
}

.page-header .breadcrumb-item.active {
    color: rgba(255,255,255,.4);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,.3);
}

/* ===== Contact ===== */
.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(108,92,231,0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-form .form-control {
    border-radius: 0.75rem;
    border-color: #e0e0e0;
    padding: 0.75rem 1rem;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(108,92,231,0.15);
}

/* ===== Footer ===== */
footer a:hover {
    color: var(--primary) !important;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .py-6 {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    #mainNav {
        background: var(--dark);
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .page-header {
        padding-top: 100px;
        padding-bottom: 40px;
    }
}
