/* ===== ROOT VARIABLES ===== */
:root {
    /* Primary Color Palette - 5 Colors with High Contrast Pastels */
    --primary-color: #4A90E2;        /* Soft Blue */
    --secondary-color: #F39C12;      /* Warm Orange */
    --accent-color: #E67E22;         /* Deep Orange */
    --highlight-color: #2ECC71;      /* Fresh Green */
    --neutral-color: #9B59B6;        /* Purple */
    
    /* Light and Dark Shades */
    --primary-light: #6BB6FF;
    --primary-dark: #2C5282;
    --secondary-light: #FFB74D;
    --secondary-dark: #E65100;
    --accent-light: #FF8A65;
    --accent-dark: #D84315;
    --highlight-light: #66BB6A;
    --highlight-dark: #1B5E20;
    --neutral-light: #BA68C8;
    --neutral-dark: #4A148C;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-secondary: linear-gradient(135deg, var(--highlight-color), var(--neutral-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    
    /* Text Colors */
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --text-white: #FFFFFF;
    
    /* Background Colors */
    --bg-light: #F8F9FA;
    --bg-dark: #2C3E50;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    /* Conservative Font Sizes */
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
}

/* ===== GLOBAL STYLES ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: var(--font-size-base);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== TYPOGRAPHY ===== */
h1, .h1 { font-size: var(--font-size-3xl); font-weight: 600; }
h2, .h2 { font-size: var(--font-size-2xl); font-weight: 600; }
h3, .h3 { font-size: var(--font-size-xl); font-weight: 600; }
h4, .h4 { font-size: var(--font-size-lg); font-weight: 600; }
h5, .h5 { font-size: var(--font-size-base); font-weight: 600; }
h6, .h6 { font-size: var(--font-size-sm); font-weight: 600; }

.display-1 { font-size: var(--font-size-4xl); }
.display-2 { font-size: var(--font-size-3xl); }
.display-3 { font-size: var(--font-size-2xl); }
.display-4 { font-size: var(--font-size-xl); }

.lead {
    font-size: var(--font-size-lg);
    font-weight: 300;
}

/* Conservative navbar-brand sizing */
.navbar-brand {
    font-size: var(--font-size-lg) !important;
    font-weight: 600;
    color: var(--primary-color) !important;
}

/* ===== HEADER/NAVIGATION ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--gradient-primary);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../SEN_images/hero-bg.webp') center/cover;
    opacity: 0.2;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: var(--font-size-xl);
    margin-bottom: 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--gradient-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    border-bottom: none;
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    border-top: none;
    background: transparent;
    padding: 1.5rem;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* ===== SECTIONS ===== */
section {
    padding: 4rem 0;
}

.section-title {
    margin-bottom: 3rem;
}

/* ===== BACKGROUND PATTERNS ===== */
.bg-pattern {
    position: relative;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../SEN_images/pattern.webp') repeat;
    opacity: 0.05;
    z-index: 1;
}

.bg-pattern > * {
    position: relative;
    z-index: 2;
}

/* ===== ANIMATIONS & TRANSITIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== FORMS ===== */
.form-control {
    border: 2px solid #E9ECEF;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ===== TESTIMONIALS/REVIEWS ===== */
.testimonial-card {
    background: var(--text-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===== TEAM SECTION ===== */
.team-member img {
    transition: all 0.3s ease;
    border: 4px solid var(--text-white);
    box-shadow: var(--shadow-md);
}

.team-member:hover img {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

/* ===== GALLERY ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===== ACCORDION/FAQ ===== */
.accordion-button {
    background: var(--bg-light);
    border: none;
    font-weight: 500;
    color: var(--text-dark);
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: var(--text-white);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.5rem;
    background: var(--text-white);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-dark) !important;
    color: var(--text-white);
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-light);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.breadcrumb-icon:hover {
    opacity: 1;
}

/* ===== PRICING TABLES ===== */
.pricing-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
}

.pricing-card .card-header {
    background: var(--gradient-primary);
    color: var(--text-white);
    text-align: center;
    padding: 2rem 1.5rem;
}

.pricing-featured {
    border-color: var(--highlight-color);
    transform: scale(1.05);
}

/* ===== UTILITIES ===== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient-primary);
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

/* ===== IMAGE HANDLING ===== */
img {
    max-width: 100%;
    height: auto;
    image-rendering: optimizequality;
}

/* Ensure images maintain aspect ratio with specified dimensions */
.img-hero {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.img-service {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.img-team {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.img-gallery {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* ===== SPECIAL EFFECTS ===== */
.blob-shape {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob 7s ease-in-out infinite;
}

@keyframes blob {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    * {
        color: #000 !important;
        background: transparent !important;
    }
}

/* ===== NANOBAR STYLING ===== */
#nanobar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 9999;
    pointer-events: none;
}

/* ===== LAZY LOADING IMAGES ===== */
.lozad {
    opacity: 0;
    transition: opacity 0.3s;
}

.lozad.loaded {
    opacity: 1;
}

/* ===== SCROLL REVEAL CLASSES ===== */
.sr-reveal {
    visibility: hidden;
}

.sr-reveal-left {
    visibility: hidden;
}

.sr-reveal-right {
    visibility: hidden;
}

.sr-reveal-top {
    visibility: hidden;
} 


/* 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);
}

.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;
    }
}
