:root {
    /* Primary Colors - Analogous Scheme */
    --primary-color: #4e73df;
    --primary-light: #7297f7;
    --primary-dark: #3651b8;
    --secondary-color: #4eb2df;
    --tertiary-color: #4e58df;
    --accent-color: #7b4edf;
    
    /* Neutral Colors */
    --neutral-dark: #343a40;
    --neutral-medium: #6c757d;
    --neutral-light: #f8f9fa;
    
    /* Background Colors */
    --bg-gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --bg-gradient-light: linear-gradient(135deg, #f8f9fa, #e9ecef);
    --bg-overlay-dark: rgba(0, 0, 0, 0.5);
    --bg-overlay-light: rgba(255, 255, 255, 0.9);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 2rem;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease-out;
    --transition-normal: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Base Typography */
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--neutral-dark);
    overflow-x: hidden;
    background-color: #fff;
    padding-top: 0 !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

/* Responsive Typography */
@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }
    
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

/* Navbar Styles */
.navbar {
    transition: var(--transition-normal);
    padding: 1rem 0;
}

.navbar-brand h1 {
    margin-bottom: 0;
    color: var(--primary-color);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: var(--neutral-dark);
    padding: 0.5rem 1rem;
    transition: var(--transition-normal);
    position: relative;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

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

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

/* Hero Section */
.hero {
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay-dark);
    z-index: 0;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    transition: var(--transition-bounce);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(-1px);
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Section Styles */
section {
    position: relative;
    overflow: hidden;
}

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

/* Card Styles */
.card {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
    height: 100%;
}

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

.card-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* About Section */
#about .card {
    display: flex;
    flex-direction: column;
}

#about .card-image {
    max-height: 300px;
    overflow: hidden;
}

/* Insights Section */
#insights {
    background-color: var(--neutral-light);
}

#insights .card {
    display: flex;
    flex-direction: column;
}

#insights .card-image {
    height: 220px;
    overflow: hidden;
}

#insights .card-content {
    flex: 1;
}

#insights .card:hover {
    transform: translateY(-7px);
}

/* History Timeline */
.timeline-item {
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #e9ecef;
}

/* Success Stories */
#success-stories .card {
    display: flex;
    flex-direction: column;
}

#success-stories .card-image {
    height: 300px;
    overflow: hidden;
}

#success-stories .card-content {
    flex: 1;
}

/* Testimonials */
#testimonials {
    background-color: var(--neutral-light);
}

#testimonials .card {
    display: flex;
    flex-direction: column;
}

#testimonials .card-image {
    height: 200px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
}

#testimonials .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Section */
#contact .card {
    display: flex;
    flex-direction: column;
}

#contact .card-image {
    height: 300px;
    overflow: hidden;
}

#contact form .form-control {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid #ced4da;
    transition: var(--transition-normal);
}

#contact form .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
}

/* Footer */
footer {
    background-color: var(--neutral-dark);
}

footer h4 {
    position: relative;
    display: inline-block;
}

footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 2px;
    background-color: var(--primary-light);
}

footer .social-links a {
    transition: var(--transition-normal);
}

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

footer form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    color: white;
}

footer form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

footer form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
}

/* Read More Links */
a.text-decoration-none {
    color: var(--primary-color);
    position: relative;
    font-weight: 600;
    transition: var(--transition-normal);
}

a.text-decoration-none:hover {
    color: var(--primary-dark);
}

a.text-decoration-none::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition-bounce);
}

a.text-decoration-none:hover::after {
    width: 100%;
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInUp {
    animation: fadeInUp var(--transition-normal);
}

/* Success Page */
.success-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.success-page .icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* Terms and Privacy Pages */
.terms-page, .privacy-page {
    padding-top: 100px;
    padding-bottom: 50px;
}

/* Form Switch */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Media Queries */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .timeline-item {
        padding-left: 0;
    }
}

@media (max-width: 575.98px) {
    .card-image {
        height: 200px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
}

/* Utility Classes */
.bg-primary-gradient {
    background: var(--bg-gradient-primary);
}

.text-shadow {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.box-shadow {
    box-shadow: var(--shadow-md);
}

.rounded-custom {
    border-radius: var(--radius-md);
}