/* Enago-inspired Modern Theme with Custom Color Palette */
:root {
    --color-dark: #14110F;
    --color-dark-secondary: #34312D;
    --color-medium: #7E7F83;
    --color-light: #D9C5B2;
    --color-lightest: #F3F3F4;
    --primary-color: var(--color-dark);
    --secondary-color: var(--color-dark-secondary);
    --accent-color: var(--color-light);
    --text-dark: var(--color-dark);
    --text-medium: var(--color-medium);
    --text-light: var(--color-light);
    --bg-light: var(--color-lightest);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: #ffffff;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1.5rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-medium);
}

/* Modern Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 20px rgba(20, 17, 15, 0.06);
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(217, 197, 178, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    transition: var(--transition);
    position: relative;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    margin: 0 0.25rem;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-light) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-light), transparent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    box-shadow: 0 2px 10px rgba(217, 197, 178, 0.5);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
}

/* Modern Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-secondary) 50%, #1a1614 100%);
    color: white;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-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;
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217, 197, 178, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.hero-section .container::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(126, 127, 131, 0.1) 0%, transparent 60%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: white;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 40px rgba(217, 197, 178, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero-section .lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Modern Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--color-light) 0%, #c9b5a3 100%);
    border: none;
    color: var(--color-dark);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(217, 197, 178, 0.4), 0 0 20px rgba(217, 197, 178, 0.2);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #c9b5a3 0%, var(--color-light) 100%);
    color: var(--color-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(217, 197, 178, 0.6), 0 0 30px rgba(217, 197, 178, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--color-dark);
    color: var(--color-dark);
    padding: 12px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-transform: uppercase;
}

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

/* Stats Section */
.stats-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.stats-card {
    text-align: center;
    padding: 2rem;
}

.stats-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
    transition: all 0.3s;
}

.stats-card:hover .stats-number {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.stats-label {
    color: var(--text-medium);
    font-size: 1rem;
    font-weight: 500;
}

/* Modern Service Cards */
.service-card {
    background: white;
    border: 1px solid rgba(126, 127, 131, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-light) 0%, var(--color-dark) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(217, 197, 178, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(20, 17, 15, 0.12), 0 0 30px rgba(217, 197, 178, 0.1);
    border-color: var(--color-light);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
    animation: shimmer 2s infinite;
}

.service-card h4 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    margin-bottom: 0;
    line-height: 1.7;
}

/* Feature Icons */
.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-dark-secondary) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(217, 197, 178, 0.3);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--color-light), var(--color-dark-secondary), var(--color-light));
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

.service-card:hover .feature-icon {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 8px 25px rgba(217, 197, 178, 0.5), 0 0 30px rgba(217, 197, 178, 0.3);
}

.service-card:hover .feature-icon::before {
    opacity: 1;
}

/* Testimonial Cards */
.testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(126, 127, 131, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(20, 17, 15, 0.05);
    margin: 15px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 5rem;
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-dark-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
    transition: all 0.4s;
}

.testimonial-card:hover {
    box-shadow: 0 20px 50px rgba(20, 17, 15, 0.15), 0 0 40px rgba(217, 197, 178, 0.2);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--color-light);
}

.testimonial-card:hover::before {
    opacity: 0.5;
    transform: scale(1.1) rotate(-5deg);
}

.testimonial-card p {
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Expert Cards */
.expert-card {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.expert-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--color-light);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(20, 17, 15, 0.15);
    position: relative;
    filter: grayscale(20%);
}

.expert-card:hover .expert-avatar {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--color-dark);
    box-shadow: 0 12px 30px rgba(217, 197, 178, 0.4), 0 0 40px rgba(217, 197, 178, 0.2);
    filter: grayscale(0%);
}

.expert-card {
    position: relative;
    overflow: hidden;
}

.expert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(217, 197, 178, 0.1), transparent);
    transition: left 0.6s;
}

.expert-card:hover::before {
    left: 100%;
}

/* Modern Footer */
.footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 20px;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    padding: 0.4rem 0;
    position: relative;
}

.footer a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-light), transparent);
    transition: width 0.3s;
}

.footer a:hover {
    color: var(--color-light);
    padding-left: 10px;
    text-shadow: 0 0 10px rgba(217, 197, 178, 0.5);
}

.footer a:hover::before {
    width: 50%;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 3rem;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

section.bg-light {
    background: var(--bg-light) !important;
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.badge:hover::before {
    width: 200px;
    height: 200px;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-secondary) 100%) !important;
    box-shadow: 0 4px 15px rgba(20, 17, 15, 0.3);
}

.badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(20, 17, 15, 0.4);
}

/* Lists */
.list-unstyled li {
    padding: 0.5rem 0;
}

/* Quote Form Styling */
.form-control {
    border: 2px solid rgba(126, 127, 131, 0.15);
    border-radius: 12px;
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
}

.form-control:hover {
    border-color: rgba(217, 197, 178, 0.4);
    background: #ffffff;
}

.form-control:focus {
    border-color: var(--color-light);
    box-shadow: 0 0 0 4px rgba(217, 197, 178, 0.15), 0 8px 20px rgba(217, 197, 178, 0.2);
    background: #ffffff;
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-15px) translateX(5px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.25;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(217, 197, 178, 0.5), 0 0 10px rgba(217, 197, 178, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(217, 197, 178, 0.8), 0 0 30px rgba(217, 197, 178, 0.5);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    section {
        padding: 60px 0;
    }

    .stats-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 60px 0 40px;
    }

    section {
        padding: 40px 0;
    }

    .service-card {
        margin-bottom: 2rem;
    }
}

/* Utility Classes */
.text-primary-custom {
    color: var(--color-dark) !important;
}

.bg-primary-custom {
    background: var(--color-dark) !important;
}

.text-accent {
    color: var(--color-light) !important;
}

.bg-accent {
    background: var(--color-light) !important;
}

/* Shadows */
.shadow-sm-custom {
    box-shadow: 0 2px 10px rgba(20, 17, 15, 0.05);
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(20, 17, 15, 0.1);
}

.shadow-lg-custom {
    box-shadow: 0 20px 50px rgba(20, 17, 15, 0.15);
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: 1px solid rgba(217, 197, 178, 0.2);
    box-shadow: 0 15px 50px rgba(20, 17, 15, 0.15), 0 0 30px rgba(217, 197, 178, 0.1);
    border-radius: 16px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
    animation: fadeInUp 0.3s ease-out;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    color: var(--text-dark);
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--color-dark);
    padding-left: 1.25rem;
}

.dropdown-item i {
    opacity: 0.7;
}

/* Top Bar Styling */
.bg-dark {
    background: var(--color-dark) !important;
}

.bg-dark a {
    transition: var(--transition);
}

.bg-dark a:hover {
    color: var(--color-light) !important;
}
