/* ----------------------------------- */
/* 1. General & Setup
/* ----------------------------------- */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700&display=swap');

/* Base Body & Font Styles */
body {
    font-family: 'Heebo', sans-serif;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb);
}

/* Layout Padding */
.section-padding {
    padding: 80px 0;
}

/* ----------------------------------- */
/* 2. Navigation
/* ----------------------------------- */

/* Desktop Navigation Link */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

/* Underline effect for hover */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 0;
    background: #3b82f6;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Active Navigation Link Style */
nav a.nav-link.active {
    color: #2563eb; /* blue-600 */
    font-weight: 700;
}

/* Underline for active desktop link */
nav a.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: #2563eb; /* blue-600 */
    border-radius: 2px;
}

/* ----------------------------------- */
/* 3. Components & Cards
/* ----------------------------------- */

/* General Card Style */
.card-shadow {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.card-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Shimmer effect for cards on hover */
.card-shadow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}
.card-shadow:hover::before {
    left: 100%;
}

/* Button Styles */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* Ripple effect for buttons */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Contact Form Style */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Floating Action Button (FAB) */
.fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}
.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

/* Testimonials Section Styling */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 30px;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 30px;
    font-size: 60px;
    color: #3b82f6;
    font-family: serif;
}

/* Achievement Badges */
.badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin: 4px;
}

/* ----------------------------------- */
/* 4. Gradients & Effects
/* ----------------------------------- */

.hero-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----------------------------------- */
/* 5. Animations & Transitions
/* ----------------------------------- */

/* Fade in for entire body on load */
body.loaded {
    animation: fadeInBody 0.5s ease-in;
}
@keyframes fadeInBody {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fade in on scroll for sections */
.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.animate-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation screen */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.loading.hide {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

/* Scroll indicator bar */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* ----------------------------------- */
/* 6. Responsive Design
/* ----------------------------------- */

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    .text-4xl {
        font-size: 2rem;
    }
    .text-5xl {
        font-size: 2.8rem;
    }
    .hero-gradient h2 {
        font-size: 2.5rem;
    }
}

/* ----------------------------------- */
/* 2. Navigation (Updates)
/* ----------------------------------- */

/* Styling for the header padding transition */
#main-header nav {
    padding-top: 1.5rem; /* py-6 */
    padding-bottom: 1.5rem; /* py-6 */
    transition: padding 0.3s ease-in-out;
}

/* Scrolled state for the header */
#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}
#main-header.scrolled nav {
    padding-top: 0.75rem; /* py-3 */
    padding-bottom: 0.75rem; /* py-3 */
}

/* Base Nav Link Style (Pill Design) */
.nav-link {
    font-weight: 500;
    color: #4b5563; /* text-gray-600 */
    padding: 8px 16px;
    border-radius: 9999px; /* rounded-full for pill shape */
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.nav-link:hover {
    color: #2563eb; /* text-blue-600 */
    background-color: #eff6ff; /* blue-50 */
}
.nav-link.active {
    font-weight: 700;
    color: #1d4ed8; /* blue-800 */
    background-color: #dbeafe; /* blue-100 */
    border-color: #bfdbfe; /* blue-200 */
}


/* Dropdown Menu Styles */
.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.dropdown-menu {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
    border-top: 3px solid #3b82f6; /* Accent color */
}
.dropdown-item {
    display: block;
    padding: 0.5rem 1rem; /* py-2 px-4 */
    color: #374151; /* text-gray-700 */
    transition: all 0.2s ease-in-out;
}
.dropdown-item:hover {
    background-color: #eff6ff; /* blue-50 */
    padding-right: 1.5rem; /* Indent on hover */
}


/* Navigation CTA Button */
.btn-nav {
    background-color: #3b82f6;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-nav:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Mobile Nav Links */
.nav-link-mobile {
    display: block;
    padding: 0.75rem; /* py-3 */
    font-size: 1.125rem; /* text-lg */
    color: #374151; /* text-gray-700 */
    border-radius: 8px;
}
.nav-link-mobile:hover {
    background-color: #f3f4f6; /* gray-100 */
    color: #1d4ed8; /* blue-800 */
}

/* FAB Visibility */
.fab {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.fab.visible {
    opacity: 1;
    visibility: visible;
}

/* ----------------------------------- */
/* Hero Section Styles
/* ----------------------------------- */

.hero-section {
    /* Gradient background with a subtle pattern */
    background-color: #1e3a8a;
    background-image: 
        linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(59, 130, 246, 0.95) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Primary Hero Button */
.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem; /* space-x-3 */
    background-color: #ffffff;
    color: #1e3a8a;
    font-weight: 700; /* font-bold */
    padding: 0.875rem 2rem; /* py-3.5 px-8 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    transition: all 0.3s ease;
}
.btn-primary-hero:hover {
    background-color: #f0f4ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}

/* Secondary Hero Button */
.btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #ffffff;
    font-weight: 600; /* font-semibold */
    padding: 0.875rem 2rem; /* py-3.5 px-8 */
    border-radius: 0.5rem; /* rounded-lg */
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}
.btn-secondary-hero:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}
/* ----------------------------------- */
/* About Section Styles
/* ----------------------------------- */

.about-image-container {
    position: relative;
    overflow: hidden;
    /* Using a taller aspect ratio (3:4) that better suits a portrait image */
    aspect-ratio: 3 / 4; 
    border-radius: 0.75rem; /* rounded-xl for a softer look */
    margin: 0 auto; /* Centers the container if the column is wider */
}

.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills the container, looks more integrated */
    object-position: center top; /* Prioritizes the top of the image */
    transition: transform 0.5s ease;
}

.about-image-container:hover img {
    transform: scale(1.05);
}

.stat-card {
    background-color: #ffffff;
    padding: 1.5rem 1rem;
    border-radius: 0.75rem; /* rounded-xl */
    border: 1px solid #e5e7eb; /* border-gray-200 */
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.07), 0 4px 6px -4px rgba(0,0,0,.07);
    border-color: #dbeafe; /* border-blue-100 */
}
/* ----------------------------------- */
/* Services Section Styles
/* ----------------------------------- */

.service-tab {
    display: flex;
    align-items: center;
    gap: 1rem; /* space-x-4 */
    width: 100%;
    text-align: right;
    padding: 1.25rem; /* p-5 */
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    color: #374151; /* text-gray-700 */
    background-color: #ffffff;
    border-radius: 0.75rem; /* rounded-xl */
    border: 1px solid #e5e7eb; /* border-gray-200 */
    transition: all 0.3s ease;
}

.service-tab:hover {
    background-color: #f9fafb; /* gray-50 */
    border-color: #d1d5db; /* gray-300 */
    transform: translateX(-5px);
}

.service-tab.active {
    background-color: #3b82f6; /* bg-blue-600 */
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2), 0 4px 6px -4px rgba(59, 130, 246, 0.2);
    transform: translateX(-10px);
}

.service-content {
    display: none;
    background-color: #ffffff;
    padding: 2.5rem; /* p-10 */
    border-radius: 0.75rem; /* rounded-xl */
    animation: contentFadeIn 0.5s ease;
}

.service-content.active {
    display: block;
}

@keyframes contentFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------- */
/* Experience Section Styles
/* ----------------------------------- */

/* Timeline Styles */
.timeline-container {
    position: relative;
    padding-right: 30px; /* Space for the line and icons */
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 0;
    bottom: 10px;
    width: 3px;
    background-color: #e5e7eb; /* gray-200 */
    border-radius: 9999px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem; /* space-y-10 */
}

.timeline-icon {
    position: absolute;
    right: -15px; /* Center on the line */
    top: 0;
    transform: translateX(50%);
    width: 30px;
    height: 30px;
    background-color: #3b82f6; /* blue-600 */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
}

.timeline-content {
    background-color: #f9fafb; /* gray-50 */
    padding: 1.25rem; /* p-5 */
    border-radius: 0.75rem; /* rounded-xl */
    border: 1px solid #e5e7eb; /* gray-200 */
}
/* Accordion Styles */
.accordion-item {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    text-align: right;
    font-weight: 600;
    color: #1f2937; /* gray-800 */
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #f9fafb;
}

.accordion-header .accordion-icon {
    margin-right: auto;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 1.25rem;
    font-size: 0.9rem;
    color: #4b5563; /* gray-600 */
}


/* ----------------------------------- */
/* WebLite Teaser Styles
/* ----------------------------------- */

.btn-teaser {
    display: inline-flex;
    align-items: center;
    background-color: #ecfeff; /* cyan-50 */
    color: #0e7490; /* cyan-700 */
    padding: 0.5rem 1rem; /* py-2 px-4 */
    border-radius: 9999px; /* rounded-full */
    font-weight: 700; /* font-bold */
    font-size: 0.875rem; /* text-sm */
    line-height: 1.25rem;
    flex-shrink: 0; /* Prevents the button from shrinking on small screens */
    transition: all 0.3s ease;
}

.btn-teaser:hover {
    background-color: #ffffff;
    color: #155e75; /* cyan-800 */
    box-shadow: 0 4px 10px rgba(100, 255, 255, 0.1);
    transform: scale(1.05);
}
/* ----------------------------------- */
/* Contact Section Styles
/* ----------------------------------- */

#contact {
    background-color: #f9fafb; /* Tailwind's gray-50 */
    border-top: 1px solid #e5e7eb; /* Add a subtle top border */
}

/* Updated for a more dynamic, card-like feel */
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 0.75rem; /* rounded-xl */
    border: 1px solid #e5e7eb; /* border-gray-200 */
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.05), 0 4px 6px -4px rgba(0,0,0,.05);
    border-color: #dbeafe; /* border-blue-100 */
}

/* Updated with a gradient background */
.contact-info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-image: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem; /* text-xl */
}

.map-container {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}
.map-container:hover {
    filter: grayscale(0%);
}

/* Enhanced form container style */
.contact-form-container {
    background-color: #ffffff;
    border: 1px solid #e5e7eb; /* border-gray-200 */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.03), 0 2px 4px -2px rgba(0,0,0,.03);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: #374151; /* text-gray-700 */
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem; /* py-3 px-4 */
    background-color: #ffffff;
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.5rem; /* rounded-lg */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6; /* blue-600 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-submit {
    background-color: #2563eb; /* blue-600 */
    color: #ffffff;
    font-weight: 600;
    padding: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #1d4ed8; /* blue-800 */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* ----------------------------------- */
/* Footer Styles
/* ----------------------------------- */

.footer-link {
    position: relative;
    color: #9ca3af; /* gray-400 */
    transition: color 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    right: 0;
    background-color: #60a5fa; /* blue-400 */
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-link:hover::after {
    width: 100%;
}
.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #d1d5db; /* gray-300 */
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Fix for social icon visibility */
.social-icon .fab {
    line-height: 1; 
}

.social-icon:hover {
    background-color: #3b82f6; /* blue-600 */
    color: #ffffff;
    transform: translateY(-3px);
}