/* CSS Custom Properties (Color Variables) */
:root {
    /* Primary Colors - Pastel High Contrast */
    --primary-blue: #587ed3;
    --primary-green: #a3cba7;
    --primary-purple: #bfb4e5;
    --primary-coral: #e69f4c;
    --primary-teal: #43b48c;
    
    /* Light Shades */
    --light-blue: #e3edff;
    --light-green: #F0F8F0;
    --light-purple: #F5F0FF;
    --light-coral: #f8e5d3;
    --light-teal: #d6fff2;
    
    /* Dark Shades */
    --dark-blue: #4662cf;
    --dark-green: #74a26c;
    --dark-purple: #825ba2;
    --dark-coral: #fcaa53;
    --dark-teal: #3a836e;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #7b7e82;
    --dark-gray: #21262c;
    --black: #000000;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Typography - Conservative Font Sizes */
h1 {
    font-size: 2.21rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.87rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.94rem;
}

h3 {
    font-size: 1.48rem;
    font-weight: 500;
    color: var(--dark-green);
    margin-bottom: 0.83rem;
}

h4 {
    font-size: 1.23rem;
    font-weight: 500;
    color: var(--dark-purple);
    margin-bottom: 0.71rem;
}

h5 {
    font-size: 1.21rem;
    font-weight: 500;
    color: var(--dark-coral);
    margin-bottom: 0.46rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--medium-gray);
}

/* Header Styles - Conservative navbar-brand size */
.navbar-brand {
    font-size: 1.47rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue);
}

/* Navbar scrolled state */
.navbar-scrolled {
    background-color: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-teal) 100%);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: linear-gradient(45deg, var(--primary-coral), var(--primary-purple));
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 5px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Service Cards */
.card .card-body ul {
    list-style: none;
    padding-left: 0;
}

.card .card-body ul li {
    padding: 0.25rem 0;
    color: var(--medium-gray);
}

.card .card-body ul li::before {
    content: 'âœ“';
    color: var(--primary-green);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Section Backgrounds */
.bg-light {
    background-color: var(--light-gray);
}

/* Features Section */
#e9cb91tures .fas {
    color: var(--primary-teal);
}

/* Team Section */
#team img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* Reviews Section */
#reviews .card {
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--light-coral) 100%);
}

/* Process Section */
#process .bg-primary {
    background-color: var(--primary-green);
}

/* Price Plan Section */
#priceplan .border-primary {
    border-color: var(--primary-blue);
    position: relative;
}

#priceplan .border-primary::before {
    content: 'Popular';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-coral);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 1.02rem;
    font-weight: 600;
}

/* Gallery Section */
#gallery img {
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

#gallery img:hover {
    transform: scale(1.05);
}

/* FAQ Section */
#faq .card {
    background-color: var(--light-green);
    margin-bottom: 1rem;
}

/* Contact Section */
#contact .form-control {
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    transition: border-color 0.3s ease;
}

#contact .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(129, 168, 237, 0.25);
}

#contact .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    transition: border-color 0.3s ease;
}

#contact .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(130, 151, 226, 0.25);
}

.contact-info {
    background: linear-gradient(135deg, var(--light-teal) 0%, var(--light-blue) 100%);
    padding: 2rem;
    border-radius: 1rem;
    height: fit-content;
}

.contact-info h5 {
    color: var(--dark-blue);
    margin-bottom: 1.56rem;
}

.contact-info p {
    margin-bottom: 0.90rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--primary-teal);
    width: 20px;
}

/* Footer */
footer {
    background-color: var(--dark-gray);
}

footer h5 {
    color: var(--primary-blue);
}

footer p, footer ul {
    color: var(--light-gray);
}

footer a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-blue);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item img {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.breadcrumb-item img:hover {
    opacity: 1;
}

/* Animation Classes for Sal.js */
[data-sal] {
    transition-duration: 0.5s;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-blue);
}

.text-success {
    color: var(--primary-green);
}

.bg-primary {
    background-color: var(--primary-blue);
}

/* Space Page */
#space {
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-purple) 50%, var(--light-coral) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#space::before {
    content: 'This space is ready for your content';
    font-size: 1.54rem;
    color: var(--medium-gray);
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 1.90rem;
    }
    
    h2 {
        font-size: 1.63rem;
    }
    
    .navbar-brand {
        font-size: 1.28rem;
    }
    
    #hero {
        min-height: 80vh;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
}

/* Blog Grid */
#blog_grid .card-img-top {
    height: 180px;
}

/* Additional Page Specific Styles */
.additional-page-section {
    padding: 4rem 0;
}

.additional-page-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Custom decorative elements */
.decoration-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

.decoration-blob-1 {
    width: 200px;
    height: 200px;
    background: var(--primary-purple);
    top: 10%;
    left: 5%;
}

.decoration-blob-2 {
    width: 150px;
    height: 150px;
    background: var(--primary-coral);
    bottom: 15%;
    right: 8%;
}

/* Ensure no Bootstrap overrides */
.container,
.container-fluid,
.row,
[class*="col-"] {
    /* Do not override Bootstrap grid system */
}

/* Performance optimizations */
.img-fluid {
    height: auto;
    max-width: 100%;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    border: none;
    background-color: var(--primary-blue);
    color: var(--white);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
}

/* Accessibility improvements */
:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced focus states for better accessibility */
.form-control:focus,
.form-select:focus,
.btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.2rem rgba(125, 152, 229, 0.25);
}

/* Loading states */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 


/* Team Social Links - Minimal Style */
.team-social-links {
    margin-top: 16px;
    padding: 10px 0;
}

.social-icons-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    background: white;
}

.social-link:hover {
    transform: translateY(-1px);
    color: white;
}

.facebook-link:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.linkedin-link:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: white;
}

.x-link {
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 18px;
    color: inherit;
}

.x-link:hover {
    background: #000000;
    border-color: #000000;
    color: white;
}

.x-link:hover::after {
    color: white;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 15px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}
