/* CSS Variables for Color Palette */
:root {
    /* Primary Colors */
    --primary-color: #5e46e7;
    --primary-light: #8791e3;
    --primary-dark: #343fa1;
    
    /* Secondary Colors */
    --secondary-color: #ee4ca5;
    --secondary-light: #dc6698;
    --secondary-dark: #b5275b;
    
    /* Accent Colors */
    --accent-color: #14a7c4;
    --accent-light: #51e8ff;
    --accent-dark: #137da0;
    
    /* Success Color */
    --success-color: #02c770;
    --success-light: #55d59a;
    --success-dark: #00715a;
    
    /* Warning Color */
    --warning-color: #ef7c10;
    --warning-light: #f3b331;
    --warning-dark: #dc8d00;
    
    /* Text Colors */
    --text-dark: #1e2330;
    --text-muted: #747787;
    --text-light: #f9fafb;
    
    /* Background Colors */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #141d31;
}

/* Typography Override - Conservative Font Sizes */
.navbar-brand {
    font-size: 1.15rem !important;
}

h1, .display-4 {
    font-size: 2.5rem;
}

h2, .h3 {
    font-size: 1.8rem;
}

.lead {
    font-size: 1.1rem;
}

p {
    font-size: 0.95rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"></path></svg>') no-repeat;
    background-size: 100% 120px;
    background-position: bottom;
}

/* Custom Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

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

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

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

/* Card Enhancements */
.card {
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Navigation Enhancements */
.navbar {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.navbar-nav .nav-link {
    transition: color 0.3s ease;
    font-weight: 500;
}

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

/* Section Spacing */
section {
    padding: 4rem 0;
}

/* Team Member Images */
.team-member img {
    transition: transform 0.3s ease;
}

.team-member img:hover {
    transform: scale(1.05);
}

/* Form Enhancements */
.form-control {
    border: 2px solid #dde3f1;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(85, 100, 241, 0.25);
}

/* Footer Styling */
footer {
    background-color: var(--bg-dark) !important;
}

footer a {
    transition: color 0.3s ease;
}

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

/* Gallery Section */
.gallery img {
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Text Color Classes */
.text-primary {
    color: var(--primary-color) !important;
}

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

/* Background Classes */
.bg-light {
    background-color: var(--bg-light) !important;
}

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

/* Animation Classes for Sal.js */
[data-sal] {
    transition-duration: 0.5s;
}

/* Accessibility - Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .team-member img:hover {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
    }
}

/* Price Plan Special Styling */
.price-plan .card.border-primary {
    border-width: 3px !important;
    position: relative;
}

.price-plan .card.border-primary::before {
    content: 'Most Popular';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Breadcrumb Section */
.breadcrumb-section {
    border-bottom: 1px solid #cfd7e6;
}

/* Process Steps */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -15px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.process-step:last-child::after {
    display: none;
}

/* Feature Icons */
.feature-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Custom Spacing */
.section-padding {
    padding: 5rem 0;
}

/* Loading Animation for Images */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

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

/* Custom List Styling */
.list-unstyled li {
    margin-bottom: 0.5rem;
}

/* FAQ Cards */
.faq-card {
    margin-bottom: 1rem;
}

/* Blog Grid */
#blog_grid .card {
    height: 100%;
}

#blog_grid .card-img-top {
    height: 250px;
    object-fit: cover;
}

/* Team Grid */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Contact Info Icons */
.contact-info i {
    color: var(--primary-color);
}

/* Space Page */
#space {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Service Items Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Reviews Section */
.reviews-section .card {
    height: 100%;
    border-left: 4px solid var(--primary-color);
}

/* Timeline Items */
.timeline-item {
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Gallery Lightbox Integration */
.gallery a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

/* Form Validation States */
.form-control.is-valid {
    border-color: var(--success-color);
}

.form-control.is-invalid {
    border-color: #f53146;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
} 

.hero-section h1 {
    padding-top: 125px;
}


/* Team Social Links - Rounded Style */
.team-social-links {
    margin-top: 20px;
    padding: 15px 0;
}

.social-icons-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::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.6s;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.facebook-link:hover {
    background: linear-gradient(135deg, #0d6efd, #1877f2);
}

.linkedin-link {
    background: linear-gradient(135deg, #0a66c2, #2196f3);
}

.linkedin-link:hover {
    background: linear-gradient(135deg, #084a8a, #0a66c2);
}

.instagram-link {
    background: linear-gradient(135deg, #e4405f, #f77737, #fcaf45);
}

.instagram-link:hover {
    background: linear-gradient(135deg, #d62976, #e4405f, #f77737);
}

.x-link {
    background: linear-gradient(135deg, #000000, #333333);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 20px;
}

.x-link:hover {
    background: linear-gradient(135deg, #1a1a1a, #000000);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
