/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
/* Colors */
--primary-color: #2563eb;
--secondary-color: #10b981;
--accent-color: #f59e0b;
--saffron-color: #ff9933;
--text-primary: #111827;
--text-secondary: #4b5563;
--white: #ffffff;
--light-gray: #f9fafb;
--border-color: #e5e7eb;
--success-color: #10b981;
--error-color: #ef4444;
--focus-ring: rgba(37, 99, 235, 0.5);

/* Gradients */
--gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
--gradient-accent: linear-gradient(135deg, var(--accent-color), var(--saffron-color));

/* Typography */
--font-primary: 'Poppins', sans-serif;
--font-secondary: 'Inter', sans-serif;

/* Spacing */
--container-max-width: 1200px;
--section-padding: 5rem 0;
--element-spacing: 2rem;

/* Animations */
--transition: all 0.7s ease-in-out;
--bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

/* Shadows */
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
font-size: 16px;
}

body {
font-family: var(--font-primary);
font-weight: 400;
line-height: 1.6;
color: var(--text-primary);
background-color: var(--white);
overflow-x: hidden;
}

/* Skip to main content for accessibility */
.skip-link {
position: absolute;
top: -40px;
left: 6px;
background: var(--primary-color);
color: white;
padding: 8px;
text-decoration: none;
border-radius: 4px;
z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Container */
.container {
max-width: var(--container-max-width);
margin: 0 auto;
padding: 0 1rem;
}

/* Section */
.section {
padding: var(--section-padding);
}

.section__header {
text-align: center;
margin-bottom: 3rem;
}

.section__title {
font-size: clamp(1.75rem, 3vw, 2.5rem);
font-weight: 600;
margin-bottom: 1rem;
color: var(--text-primary);
}

.section__subtitle {
font-size: clamp(1rem, 2vw, 1.125rem);
color: var(--text-secondary);
max-width: 65ch;
margin: 0 auto;
line-height: 1.7;
}

/* Typography */
.text-gradient {
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.875rem 2rem;
font-size: 1rem;
font-weight: 500;
text-decoration: none;
border: none;
border-radius: 0.5rem;
cursor: pointer;
transition: var(--transition);
position: relative;
overflow: hidden;
margin-right: 1rem;
margin-bottom: 0.5rem;
}

.btn:focus {
outline: 2px solid var(--focus-ring);
outline-offset: 2px;
}

.btn:hover {
transform: translateY(-1px);
}

.btn:active {
transform: translateY(0);
}

.btn-primary {
background: var(--gradient-primary);
color: var(--white);
box-shadow: var(--shadow-md);
}

.btn-primary:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}

.btn-secondary {
background: transparent;
color: var(--primary-color);
border: 2px solid var(--primary-color);
}

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

/* Loading state */
.btn.loading {
color: transparent;
}

.btn.loading::after {
content: '';
position: absolute;
width: 16px;
height: 16px;
top: 50%;
left: 50%;
margin-left: -8px;
margin-top: -8px;
border: 2px solid #ffffff;
border-radius: 50%;
border-top-color: transparent;
animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Header */
.header {
position: fixed;
top: 0;
left: 0;
width: 100%;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
z-index: 1000;
transition: var(--transition);
border-bottom: 1px solid transparent;
}

.header.scrolled {
background: rgba(255, 255, 255, 0.98);
border-bottom-color: var(--border-color);
box-shadow: var(--shadow-sm);
}

.nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 0;
}

.nav__brand {
display: flex;
align-items: center;
gap: 0.75rem;
}

.nav__logo {
    height: clamp(40px, 5vw, 60px); /* Responsive scaling */
    width: auto;
    object-fit: contain; /* Better than cover for logos */
    border-radius: 0.5rem;
    display: block;
    transition: all 0.3s ease; /* Smooth transitions */
}

.nav__title {
font-size: 1.25rem;
font-weight: 600;
color: var(--text-primary);
}

.nav__list {
display: flex;
align-items: center;
gap: 2rem;
list-style: none;
}

.nav__link {
color: var(--text-secondary);
text-decoration: none;
font-weight: 500;
transition: var(--transition);
position: relative;
}

.nav__link:focus,
.nav__link:hover {
color: var(--primary-color);
outline: none;
}

.nav__link::after {
content: '';
position: absolute;
bottom: -4px;
left: 0;
width: 0;
height: 2px;
background: var(--gradient-primary);
transition: var(--transition);
}

.nav__link:hover::after {
width: 100%;
}

.nav__toggle {
display: none;
background: none;
border: none;
font-size: 1.25rem;
color: var(--text-primary);
cursor: pointer;
padding: 0.5rem;
}

/* Hero Section */
.hero {
padding-top: 8rem;
padding-bottom: 5rem;
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
position: relative;
overflow: hidden;
}

.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,');
opacity: 0.3;
}

.hero__container {
display: grid;
grid-template-columns: 1fr;
gap: 3rem;
align-items: center;
position: relative;
z-index: 1;
}

.hero__title {
font-size: clamp(2rem, 4vw, 3.5rem);
font-weight: 700;
line-height: 1.1;
margin-bottom: 1rem;
letter-spacing: -0.02em;
}

.hero__description {
font-size: clamp(1rem, 2vw, 1.125rem);
color: var(--text-secondary);
margin-bottom: 2rem;
line-height: 1.7;
max-width: 65ch;
}

.hero__cta {
margin-bottom: 3rem;
}

.hero__stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
}

.stat {
text-align: center;
}

.stat__number {
display: block;
font-size: 2rem;
font-weight: 700;
color: var(--primary-color);
margin-bottom: 0.25rem;
}

.stat__label {
font-size: 0.875rem;
color: var(--text-secondary);
font-weight: 500;
}

/* Hero Illustration */
.hero__illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
    z-index: 2;
}

@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
}

.chart-bars {
display: flex;
align-items: end;
gap: 0.5rem;
margin-bottom: 1rem;
}

.bar {
width: 20px;
background: var(--gradient-primary);
border-radius: 2px;
animation: growBar 2s ease-out forwards;
transform-origin: bottom;
}

.bar1 { height: 40px; animation-delay: 0.2s; }
.bar2 { height: 60px; animation-delay: 0.4s; }
.bar3 { height: 80px; animation-delay: 0.6s; }
.bar4 { height: 100px; animation-delay: 0.8s; }

@keyframes growBar {
from { transform: scaleY(0); }
to { transform: scaleY(1); }
}

.growth-arrow {
text-align: center;
color: var(--success-color);
font-size: 1.25rem;
animation: bounce 2s infinite;
}

@keyframes bounce {
0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
40% { transform: translateY(-10px); }
60% { transform: translateY(-5px); }
}

/* About Section */
.about {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.about__content {
    position: relative;
    z-index: 2;
}

.about__text {
max-width: 800px;
margin: 0 auto 3rem;
text-align: center;
}

.about__text p {
font-size: 1.125rem;
line-height: 1.8;
color: var(--text-secondary);
margin-bottom: 1.5rem;
}

.about__headline {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #2563eb, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about__intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 65ch;
}

.about__story {
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.trust-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.metric-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #10b981);
    transition: left 0.8s ease;
}

.metric-card:hover::before {
    left: 0;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    display: block;
    margin-bottom: 0.5rem;
    animation: countUp 2s ease-out forwards;
}

.metric-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@keyframes countUp {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.team-showcase {
    margin-top: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-member:hover::before {
    opacity: 1;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #2563eb, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.about__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 2rem;
    overflow: visible; /* Changed from hidden */
    z-index: 2; /* Added z-index */
}



/* Visual Content Container */
.visual-content {
    position: relative;
    z-index: 3; /* Increased z-index */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 2rem;
}

/* Investment Growth Chart */
.investment-chart {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: float 6s ease-in-out infinite;
    border: 1px solid var(--border-color); /* Added border */
    overflow: visible; /* Ensure content isn't clipped */
}

/* Fix the top border gradient */
.investment-chart::before {
    content: '';
    position: absolute;
    top: -1px; /* Adjusted position */
    left: -1px;
    right: -1px;
    background: linear-gradient(90deg, #2563eb, #10b981, #f59e0b);
    border-radius: 1rem 1rem 0 0;
    z-index: 1;
}

.chart-header {
    text-align: center;
    margin-bottom: 2rem;
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.chart-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.chart-bars {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    height: 120px;
}

.bar {
    width: 24px;
    background: linear-gradient(180deg, #2563eb 0%, #10b981 100%);
    border-radius: 4px 4px 0 0;
    position: relative;
    animation: growBar 2s ease-out forwards;
    transform-origin: bottom;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.bar::after {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeInValue 1s ease-out 1.5s forwards;
}

.bar:nth-child(1) { 
    height: 40px; 
    animation-delay: 0.2s; 
}
.bar:nth-child(2) { 
    height: 60px; 
    animation-delay: 0.4s; 
}
.bar:nth-child(3) { 
    height: 80px; 
    animation-delay: 0.6s; 
}
.bar:nth-child(4) { 
    height: 100px; 
    animation-delay: 0.8s; 
}
.bar:nth-child(5) { 
    height: 90px; 
    animation-delay: 1.0s; 
}

@keyframes growBar {
    from { 
        transform: scaleY(0);
        opacity: 0;
    }
    to { 
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes fadeInValue {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.growth-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 0.75rem;
    margin-top: 1rem;
}

.growth-arrow {
    color: var(--success-color);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

.growth-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--success-color);
}

.growth-percentage {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Floating Elements */
.floating-stats {
    position: absolute;
    top: 20%;
    left: 10%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: floatLeft 8s ease-in-out infinite;
    z-index: 2;
}

.floating-achievement {
    position: absolute;
    bottom: 20%;
    right: 10%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: floatRight 8s ease-in-out infinite reverse;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes floatLeft {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-15px) translateX(5px); }
    66% { transform: translateY(-5px) translateX(-5px); }
}

@keyframes floatRight {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-10px) translateX(-5px); }
    66% { transform: translateY(-20px) translateX(5px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive Design for About Visual */
@media (max-width: 768px) {
    .about__visual {
        min-height: 400px;
        margin: 2rem 0;
    }
    
    .investment-chart {
        padding: 2rem 1.5rem;
        min-width: 280px;
    }
    
    .floating-stats,
    .floating-achievement {
        display: none;
    }
    
    .chart-bars {
        gap: 0.5rem;
        height: 100px;
    }
    
    .bar {
        width: 20px;
    }
}


.feature {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 1rem;
background: var(--light-gray);
border-radius: 0.5rem;
transition: var(--transition);
}

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

.feature span:first-child {
font-size: 1.5rem;
}

.feature span:last-child {
font-weight: 500;
color: var(--text-primary);
}
.feature__card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: left; /* Ensure consistent alignment */
}

.feature__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.feature__card:hover::before {
    left: 0;
}

.feature__card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15);
}

.feature__card .feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature__card:hover .feature-icon {
    background: linear-gradient(135deg, #2563eb, #10b981);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.feature__card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature__card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}


/* Services Section */
.services {
background: var(--light-gray);
}

.services__grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
gap: clamp(1.5rem, 3vw, 2rem);
margin-bottom: 3rem;
}

.service__card {
background: var(--white);
padding: 2.5rem 2rem;
border-radius: 1rem;
text-align: left;
box-shadow: var(--shadow-sm);
transition: var(--transition);
position: relative;
overflow: hidden;
contain: layout style paint;
}

.service__card::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 4px;
background: var(--gradient-primary);
transition: var(--transition);
}

.service__card:hover::before {
left: 0;
}

.service__card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-lg);
will-change: transform;
}

.service__icon {
width: 60px;
height: 60px;
margin-bottom: 1.5rem;
background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(16, 185, 129, 0.2));
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
}

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

.service__description {
color: var(--text-secondary);
line-height: 1.7;
margin-bottom: 1.5rem;
}

.service__features {
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.service__features span {
font-size: 0.875rem;
color: var(--success-color);
font-weight: 500;
}

/* Related Services */
.related-services {
background: var(--white);
padding: 2rem;
border-radius: 1rem;
box-shadow: var(--shadow-sm);
}

.related-services h3 {
color: var(--text-primary);
margin-bottom: 1rem;
font-size: 1.25rem;
}

.related-services ul {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1rem;
list-style: none;
}

.related-services a {
color: var(--primary-color);
text-decoration: none;
font-weight: 500;
transition: var(--transition);
display: block;
padding: 0.5rem;
border-radius: 0.25rem;
}

.related-services a:hover {
background: var(--light-gray);
transform: translateX(5px);
}

/* Why Choose Us Section */
.why-choose {
background: var(--white);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature__card {
  padding: 2rem;
  text-align: center;
  border-radius: 1rem;
  background: var(--light-gray);
  transition: var(--transition);
  position: relative;
}

.feature__card:hover {
  transform: translateY(-3px);
}

.feature__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}

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

.feature__description {
  color: var(--text-secondary);
  line-height: 1.6;
}


/* FAQ Section */
.faq {
background: var(--light-gray);
}

.faq__grid {
display: grid;
gap: 1.5rem;
max-width: 800px;
margin: 0 auto;
}

.faq__item {
background: var(--white);
border-radius: 1rem;
overflow: hidden;
box-shadow: var(--shadow-sm);
transition: var(--transition);
}

.faq__question {
padding: 1.5rem;
font-size: 1.125rem;
font-weight: 600;
color: var(--text-primary);
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
margin: 0;
}

.faq__question:hover {
background: var(--light-gray);
}

.faq__question::after {
content: '+';
font-size: 1.5rem;
color: var(--primary-color);
transition: var(--transition);
}

.faq__item.active .faq__question::after {
transform: rotate(45deg);
}

.faq__answer {
padding: 0 1.5rem 1.5rem;
color: var(--text-secondary);
line-height: 1.7;
display: none;
}

.faq__item.active .faq__answer {
display: block;
animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}

/* Testimonials Section */
.testimonials {
background: var(--white);
}

.testimonials__grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}

.testimonial__card {
background: var(--light-gray);
padding: 2rem;
border-radius: 1rem;
box-shadow: var(--shadow-sm);
transition: var(--transition);
position: relative;
contain: layout style paint;
}

.testimonial__card::before {
content: '"';
position: absolute;
top: -10px;
left: 20px;
font-size: 4rem;
color: var(--primary-color);
opacity: 0.3;
font-family: serif;
}

.testimonial__card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
background: var(--white);
}

.testimonial__content p {
font-style: italic;
color: var(--text-secondary);
line-height: 1.7;
margin-bottom: 1.5rem;
}

.testimonial__author {
display: flex;
align-items: center;
gap: 1rem;
}

.author__avatar {
width: 50px;
height: 50px;
border-radius: 50%;
background: var(--white);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
box-shadow: var(--shadow-sm);
}

.author__info h4 {
font-weight: 600;
color: var(--text-primary);
margin-bottom: 0.25rem;
}

.author__info span {
font-size: 0.875rem;
color: var(--text-secondary);
}

/* Contact Section */
.contact {
background: var(--light-gray);
}

.contact__content {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 4rem;
align-items: start;
}

/* Form Styles */
.form {
display: grid;
gap: 1.5rem;
background: var(--white);
padding: 2.5rem;
border-radius: 1rem;
box-shadow: var(--shadow-md);
}

.form__group {
position: relative;
margin-bottom: 1.5rem;
}

.form__input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    position: relative;
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form__input:invalid {
    border-color: var(--border-color); /* Keep normal border */
}

/* Only show error styling when user has interacted and field is invalid */
.form__input.error {
    border-color: var(--error-color);
    background-color: rgba(239, 68, 68, 0.05);
}

/* Success state */
.form__input.valid {
    border-color: var(--success-color);
    background-color: rgba(16, 185, 129, 0.05);
}

.form__textarea {
min-height: 120px;
resize: vertical;
}

.form__label {
position: absolute;
top: 1rem;
left: 1rem;
color: var(--text-secondary);
font-size: 1rem;
transition: all 0.2s ease;
pointer-events: none;
background: var(--white);
padding: 0 0.5rem;
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
top: -0.5rem;
font-size: 0.875rem;
color: var(--primary-color);
}

/* .form__submit {
justify-self: start;
padding: 1rem 2.5rem;
margin: 0;
} */

.form__submit {
    position: relative;
    overflow: hidden;
}

.form__submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.form__submit:hover::before {
    left: 100%;
}

.form__disclaimer {
font-size: 0.875rem;
color: var(--text-secondary);
text-align: center;
margin-top: 1rem;
}

/* Error message styling */
.form__error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.form__error.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.form__input[type="select"],
select.form__input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Smooth animations */
.form__group {
    position: relative;
    transition: all 0.3s ease;
}

.form__group:focus-within {
    transform: translateY(-2px);
}

/* Contact Info */
.contact__info {
display: grid;
gap: 1.5rem;
}

.info__item {
display: flex;
align-items: flex-start;
gap: 1rem;
padding: 1.5rem;
background: var(--white);
border-radius: 0.75rem;
transition: var(--transition);
box-shadow: var(--shadow-sm);
}

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

.info__item span:first-child {
font-size: 1.5rem;
width: 24px;
text-align: center;
margin-top: 0.25rem;
}

.info__item h4 {
font-weight: 600;
color: var(--text-primary);
margin-bottom: 0.25rem;
}

.info__item p {
color: var(--text-secondary);
line-height: 1.5;
}

/* Contact Links Styling */
.contact-link {
color: var(--primary-color);
text-decoration: none;
transition: var(--transition);
position: relative;
font-weight: 500;
}

.contact-link:hover {
color: var(--secondary-color);
text-decoration: underline;
}

.contact-link:focus {
outline: 2px solid var(--focus-ring);
outline-offset: 2px;
border-radius: 2px;
}

.info__item:hover .contact-link {
transform: translateX(2px);
}

.contact-link::before {
content: '';
position: absolute;
bottom: -1px;
left: 0;
width: 0;
height: 1px;
background: var(--gradient-primary);
transition: width 0.3s ease;
}

.contact-link:hover::before {
width: 100%;
}

/* Footer */
.footer {
background: var(--text-primary);
color: var(--white);
padding: 3rem 0 1rem;
}

.footer__content {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr;
gap: 2rem;
margin-bottom: 2rem;
}

.footer__brand p {
color: rgba(255, 255, 255, 0.8);
margin: 1rem 0;
line-height: 1.6;
}

.footer__sebi {
background: rgba(37, 99, 235, 0.1);
padding: 1rem;
border-radius: 0.5rem;
margin-top: 1rem;
border-left: 4px solid var(--primary-color);
}

.footer__logo {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 1rem;
}

.footer__logo .nav__logo {
/* Image logo styling for footer */
 /* filter: brightness(0) invert(1);Makes logo white for dark footer */
}

.footer__logo span {
font-size: 1.25rem;
font-weight: 600;
}

.footer__links h4,
.footer__legal h4,
.footer__locations h4 {
font-weight: 600;
margin-bottom: 1rem;
color: var(--white);
}

.footer__links ul,
.footer__legal ul,
.footer__locations ul {
list-style: none;
}

.footer__links li,
.footer__legal li,
.footer__locations li {
margin-bottom: 0.5rem;
}

.footer__links a,
.footer__legal a {
color: rgba(255, 255, 255, 0.8);
text-decoration: none;
transition: var(--transition);
}

.footer__links a:hover,
.footer__legal a:hover {
color: var(--white);
transform: translateX(2px);
}

.footer__locations li {
color: rgba(255, 255, 255, 0.8);
font-size: 0.9rem;
}

.footer__bottom {
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding-top: 2rem;
text-align: center;
}

.footer__bottom p {
color: rgba(255, 255, 255, 0.7);
margin-bottom: 0.5rem;
}

.disclaimer {
font-size: 0.875rem;
font-style: italic;
max-width: 800px;
margin: 0 auto;
line-height: 1.5;
}

/* Floating Buttons */
.floating-buttons {
position: fixed;
bottom: 2rem;
right: 2rem;
display: flex;
flex-direction: column;
gap: 1rem;
z-index: 1000;
}

.whatsapp-btn,
.chatbot-toggle {
width: 60px;
height: 60px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
color: var(--white);
text-decoration: none;
transition: var(--transition);
box-shadow: var(--shadow-lg);
animation: pulse 2s infinite;
}

.whatsapp-btn {
background: #25d366;
}

.whatsapp-btn:hover {
background: #128c7e;
transform: scale(1.05);
}

.chatbot-toggle {
background: var(--gradient-primary);
border: none;
cursor: pointer;
}

.chatbot-toggle:hover {
transform: scale(1.05);
}

@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Chatbot Widget */
.chatbot-widget {
position: fixed;
bottom: 9rem;
right: 2rem;
width: 350px;
max-height: 500px;
background: var(--white);
border-radius: 1rem;
box-shadow: var(--shadow-xl);
display: none;
flex-direction: column;
z-index: 1001;
animation: slideUp 0.3s var(--bounce);
}

.chatbot-widget.active {
display: flex;
}

@keyframes slideUp {
from {
opacity: 0;
transform: translateY(20px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}

.chatbot-header {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem;
background: var(--gradient-primary);
color: var(--white);
border-radius: 1rem 1rem 0 0;
}

.chatbot-avatar {
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.25rem;
}

.chatbot-info h4 {
font-weight: 600;
margin-bottom: 0.25rem;
}

.chatbot-info span {
font-size: 0.875rem;
opacity: 0.9;
}

.chatbot-close {
margin-left: auto;
background: none;
border: none;
color: var(--white);
font-size: 1.25rem;
cursor: pointer;
padding: 0.25rem;
border-radius: 0.25rem;
transition: var(--transition);
}

.chatbot-close:hover {
background: rgba(255, 255, 255, 0.1);
}

.chatbot-messages {
flex: 1;
padding: 1rem;
max-height: 300px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 1rem;
}

.message {
display: flex;
animation: fadeIn 0.3s ease-out;
}

.message-content {
max-width: 80%;
padding: 0.75rem 1rem;
border-radius: 1rem;
font-size: 0.875rem;
line-height: 1.5;
}

.bot-message .message-content {
background: var(--light-gray);
color: var(--text-primary);
border-bottom-left-radius: 0.25rem;
}

.user-message {
justify-content: flex-end;
}

.user-message .message-content {
background: var(--gradient-primary);
color: var(--white);
border-bottom-right-radius: 0.25rem;
}

.typing-indicator {
opacity: 0.7;
}

.typing-indicator .message-content {
padding: 1rem;
animation: pulse 1.5s infinite ease-in-out;
}

.chatbot-input {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 1rem;
border-top: 1px solid var(--border-color);
}

.chatbot-input input {
flex: 1;
padding: 0.75rem;
border: 1px solid var(--border-color);
border-radius: 1.5rem;
font-size: 0.875rem;
outline: none;
transition: var(--transition);
}

.chatbot-input input:focus {
border-color: var(--primary-color);
}

.chatbot-input button {
width: 40px;
height: 40px;
background: var(--gradient-primary);
color: var(--white);
border: none;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.875rem;
transition: var(--transition);
}

.chatbot-input button:hover {
transform: scale(1.05);
}

.chatbot-input button:disabled {
opacity: 0.5;
cursor: not-allowed;
}

/* Scrollbar Styles */
.chatbot-messages::-webkit-scrollbar {
width: 4px;
}

.chatbot-messages::-webkit-scrollbar-track {
background: var(--light-gray);
border-radius: 2px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 2px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
background: var(--text-secondary);
}

/* Responsive Design */
@media (min-width: 768px) {
.hero__container {
grid-template-columns: 1.2fr 1fr;
gap: 4rem;
}

.hero__stats {
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
}
}

@media (max-width: 1024px) {
.contact__content {
grid-template-columns: 1fr;
gap: 3rem;
}

.footer__content {
grid-template-columns: 1fr 1fr;
gap: 2rem;
}
}

@media (max-width: 768px) {
:root {
--section-padding: 3rem 0;
}

.nav__menu {
position: fixed;
top: 0;
left: -100%;
width: 100%;
height: 100vh;
background: rgba(255, 255, 255, 0.98);
backdrop-filter: blur(10px);
padding-top: 80px;
transition: left 0.3s ease-in-out;
}

.nav__menu.active {
left: 0;
}

.nav__list {
flex-direction: column;
gap: 2rem;
padding: 2rem;
}

.nav__link {
font-size: 1.25rem;
}

.nav__toggle {
display: block;
}

.hero {
padding-top: 6rem;
}

.hero__stats {
grid-template-columns: 1fr;
gap: 1.5rem;
}

.about__container {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: auto;
    }
    
    
    
    .trust-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .metric-card {
        padding: 1.5rem;
    }
    
    
.chatbot-widget {
width: calc(100vw - 2rem);
left: 1rem;
right: 1rem;
}

.floating-buttons {
bottom: 1rem;
right: 1rem;
}

.footer__content {
grid-template-columns: 1fr;
text-align: center;
}

.contact__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form {
        padding: 1.5rem;
    }
    
    .form__input {
        padding: 0.875rem;
    }

}

@media (max-width: 480px) {
.container {
padding: 0 0.75rem;
}

.btn {
padding: 0.75rem 1.5rem;
font-size: 0.875rem;
}

.service__card,
.feature__card,
.testimonial__card {
padding: 1.5rem;
}

.chatbot-widget {
position: fixed;
bottom: 0;
left: 0;
right: 0;
width: 100%;
max-height: 70vh;
border-radius: 1rem 1rem 0 0;
margin: 0;
}

.floating-buttons {
bottom: 1rem;
right: 1rem;
}
}

/* Utility Classes */
.hidden {
display: none !important;
}

.visible {
display: block !important;
}

.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;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}

/* Print Styles */
@media print {
.header,
.floating-buttons,
.chatbot-widget,
.faq {
    display: none !important;
}

.hero {
padding-top: 2rem;
}

* {
background: transparent !important;
color: black !important;
box-shadow: none !important;
}
}
@media (max-width: 600px) {
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* Footer logo with proper dark theme support */
.footer__logo .nav__logo {
    height: clamp(35px, 4vw, 50px); /* Slightly smaller in footer */
}

/* Specific breakpoints for precise control */
@media (max-width: 480px) {
    .nav__logo {
        height: 40px;
        border-radius: 0.25rem; /* Smaller radius for mobile */
    }
}

@media (max-width: 768px) {
    .nav__logo {
        height: 45px;
    }
}

@media (max-width: 1024px) {
    .nav__logo {
        height: 55px;
    }
}
