:root {
    --primary-color: #1a237e;
    --primary-dark: #0d1a42;
    --secondary-color: #3949ab;
    --accent-color: #64b5f6;
    --text-color: #2c3e50;
    --text-light: #6c757d;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1f2e;
    --card-bg: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* Typography System */
h1, .display-4 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-bg);
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-bg);
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    box-shadow: var(--shadow-sm);
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow-md);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-color) !important;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

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

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 40vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

header .container {
    text-align: center;
}

/* Services Section */
.card {
    border: none;
    border-radius: 12px;
    background: var(--card-bg);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.card-body {
    padding: 2rem;
}

.card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.card:hover i {
    color: var(--secondary-color);
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

/* Footer */
/* Footer Styles */
footer {
    background: var(--dark-bg);
    color: #ffffff;
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.1));
}

footer h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

footer p {
    color: var(--text-light);
    line-height: 1.6;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer a {
    color: var(--text-light) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

footer .social-links a {
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    transform: translateY(-2px);
    color: var(--primary-color) !important;
}

footer .social-links a:not(:last-child) {
    margin-right: 1rem;
}

footer .newsletter-form {
    max-width: 300px;
    margin: 0 auto;
}

footer .newsletter-form .form-control {
    background-color: rgba(255,255,255,0.1);
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #ffffff;
}

footer .newsletter-form .btn {
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
}

footer hr {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0;
}

/* Footer Responsive Design */
@media (max-width: 991.98px) {
    footer {
        padding: 3rem 0 2rem;
    }
    
    footer .newsletter-form {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    footer {
        padding: 2rem 0 1rem;
    }
    
    footer .social-links {
        justify-content: center;
        margin-top: 2rem;
    }
    
    footer .social-links a {
        margin: 0 0.5rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        min-height: 30vh;
        padding: 2rem 0;
    }
    
    h1, .display-4 {
        font-size: 2rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .contact-info {
        text-align: center;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
section {
    padding: 6rem 0;
    scroll-margin-top: 80px;
}

/* Button Styles */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}