:root {
    /* Color scheme */
    --primary-color: #3e64ff;
    --primary-dark: #2a4cc9;
    --primary-light: #698eff;
    --secondary-color: #ff7e3e;
    --secondary-dark: #e6632d;
    --secondary-light: #ff9a67;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --gray-light: #e9ecef;
    --gray-dark: #343a40;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    
    /* Shadow */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Border radius */
    --border-radius-sm: 0.25rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 2rem;

    /* Transitions */
    --transition-fast: 0.2s ease-out;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 0 !important; 
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--primary-dark);
}

p {
    margin-bottom: 1.5rem;
}

/* ===== UTILITY CLASSES ===== */
.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

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

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

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

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

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

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

/* ===== BUTTONS ===== */
.btn {
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: scale(0);
    transition: transform var(--transition-normal);
    border-radius: 50%;
}

.btn:hover:before {
    transform: scale(2);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-3px);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.btn-outline-light {
    border-color: var(--light-color);
    color: var(--light-color);
}

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

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* ===== HEADER ===== */
.header-area {
    z-index: 1000;
    background: linear-gradient(to right, rgba(30, 30, 60, 0.9), rgba(30, 30, 60, 0.7));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.header-area.scrolled {
    background: rgba(26, 26, 46, 0.95);
    box-shadow: var(--shadow-lg);
}

.navbar {
    padding: 1.5rem 0;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    position: relative;
    font-weight: 600;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background-color: var(--light-color);
    transition: transform var(--transition-normal);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.6));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: backwards;
}

.hero-section .btn {
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: backwards;
}

.hero-shape {
    height: 150px;
    background: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23f8f9fa" fill-opacity="1" d="M0,160L48,176C96,192,192,224,288,218.7C384,213,480,171,576,165.3C672,160,768,192,864,197.3C960,203,1056,181,1152,170.7C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E') no-repeat bottom;
    background-size: cover;
}

/* ===== SECTION STYLES ===== */
.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
}

/* ===== SERVICES SECTION ===== */
.service-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-normal);
}

.service-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card .card-title {
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.service-card .card-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

/* ===== PRICING SECTION ===== */
.price-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.price-card.featured {
    border: 2px solid var(--primary-color);
    z-index: 1;
    transform: scale(1.05);
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.price-card .card-header {
    background-color: transparent;
    border-bottom: none;
    width: 100%;
    text-align: center;
}

.price-card .price-value {
    color: var(--primary-color);
}

.price-card .list-unstyled li {
    padding: 0.5rem 0;
}

.price-card .icon-check {
    color: var(--success-color);
    font-weight: bold;
}

.price-card .card-footer {
    background-color: transparent;
    width: 100%;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin: 0.5rem 0;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card:before {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 5rem;
    font-family: serif;
    line-height: 1;
    color: rgba(62, 100, 255, 0.1);
    z-index: 0;
}

.testimonial-avatar img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.testimonial-text {
    position: relative;
    z-index: 1;
}

.rating {
    font-size: 1.2rem;
}

/* ===== BLOG SECTION ===== */
.blog-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-card .card-image {
    height: 200px;
    width: 100%;
}

.blog-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.blog-card:hover .card-image img {
    transform: scale(1.1);
}

.blog-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    padding: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-normal);
}

.btn-link span {
    display: inline-block;
    transition: transform var(--transition-normal);
    margin-left: 0.3rem;
}

.btn-link:hover {
    color: var(--primary-dark);
}

.btn-link:hover span {
    transform: translateX(5px);
}

/* ===== GALLERY SECTION ===== */
.gallery-item {
    position: relative;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(30, 30, 60, 0.2), rgba(30, 30, 60, 0.8));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-normal);
}

.gallery-info {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
    padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

/* ===== CONTACT SECTION ===== */
.contact-form-wrapper {
    border-radius: var(--border-radius);
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
}

.form-floating > label {
    padding: 1rem 0.75rem;
}

.form-control:focus, 
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(62, 100, 255, 0.25);
    border-color: var(--primary-color);
}

.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    border-radius: 50%;
    margin-right: 1rem;
}

/* ===== MISSION SECTION ===== */
.mission-section {
    position: relative;
}

.mission-section .image-container {
    position: relative;
}

.mission-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 20px;
    left: 20px;
    background-color: rgba(62, 100, 255, 0.1);
    z-index: -1;
    border-radius: var(--border-radius);
}

/* ===== TIMELINE SECTION ===== */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-light);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -10px;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.timeline-content .date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ===== PARTNERS SECTION ===== */
.partner-link {
    display: block;
    text-decoration: none;
    color: var(--gray-color);
    transition: transform var(--transition-normal);
}

.partner-link:hover {
    transform: translateY(-5px);
}

.partner-logo {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

/* ===== FOOTER ===== */
.footer-section {
    background-color: var(--dark-color);
    padding: 4rem 0 2rem;
}

.footer-info, .footer-links, .footer-newsletter {
    margin-bottom: 2rem;
}

.social-links a {
    display: inline-block;
    transition: color var(--transition-normal);
}

.social-links a:hover {
    color: var(--primary-light) !important;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== PAGES STYLES ===== */
/* About page */
.about-page {
    padding-top: 100px;
}

.team-member {
    margin-bottom: 2rem;
    text-align: center;
}

.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 5px solid var(--light-color);
    box-shadow: var(--shadow-md);
}

/* Contact page */
.contact-page {
    padding-top: 100px;
}

/* Success page */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.success-container {
    max-width: 600px;
    padding: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Privacy & Terms pages */
.privacy-page, .terms-page {
    padding-top: 120px;
    padding-bottom: 3rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .left::after, .right::after {
        left: 21px;
    }

    .right {
        left: 0;
    }
}

@media (max-width: 767.98px) {
    html {
        font-size: 14px;
    }
    
    .py-6 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

html,body{
    overflow-x: hidden;
}