/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 10px;
}

/* Header Styles */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
  display: fixed;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e40af; /* Match logo text color */
  text-decoration: none;
}

.nav-brand i {
  font-size: 2rem;
  color: #1e40af; /* Match "Easy Tax Advisor" text color */
}

#header.scrolled .nav-brand {
  color: #f8fafc; /* light gray/white when scrolled */
}


#header.scrolled .nav-brand {
    color: #1e40af;
}

.nav-brand i {
    font-size: 2rem;
    color: #06b6d4;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

#header.scrolled .nav-link {
    color: #374151;
}

.nav-link:hover {
    color: #06b6d4;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #06b6d4;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

#header.scrolled .mobile-menu-btn {
    color: #1e40af;
}

/* Hero Section */
.hero {
  position: relative;
  color: white;
  text-align: left;
  padding: 120px 20px;
  background: 
    linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.0)), /* dark overlay */
    url('images/dark-finance-bg.jpg') center/cover no-repeat; /* your image */
}
 
.hero {
  position: relative;
  color: white;
  text-align: left;
  padding: 120px 20px;
  background: 
    url('https://www.shutterstock.com/image-photo/global-investing-stock-market-growth-600nw-2160149153.jpg') center/cover no-repeat; /* accounting image */
}

/* Light transparent black overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0.005, 0.005, 0.005); /* 35% black transparency */
  z-index: 1;
}

/* Ensure text sits above overlay */
.hero > * {
  position: relative;
  z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(30, 64, 175, 0.7) 50%, rgba(13, 148, 136, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.hero-title {
     font-size: clamp(1.5rem, 6vw, 4rem);
       font-weight: bold;
       margin-top: 2.5rem;
       margin-bottom: 1.5rem;
       line-height: 1.1;
}

.gradient-text {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #ffffff;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #bfdbfe;
    font-weight: 500;
}

.feature-item i {
    color: #5eead4;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #1d4ed8 0%, #0d9488 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #0f766e 100%);
    box-shadow: 0 15px 35px rgba(29, 78, 216, 0.4);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-secondary:hover {
    background: white;
    color: #1e40af;
}

.btn-outline {
    border: 2px solid #e5e7eb;
    color: #374151;
    background: transparent;
}

.btn-outline:hover {
    border-color: #1d4ed8;
    color: #1d4ed8;
}

.btn-white {
    background: white;
    color: #1d4ed8;
}

.btn-white:hover {
    background: #f8fafc;
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Services Section */
.services {
    padding: 2rem 0;
    background: #f9fafb;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: bold;
    color: #111827;
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #1d4ed8 0%, #0d9488 100%);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #0d9488 100%);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #1d4ed8;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #0d9488;
    border-radius: 50%;
    flex-shrink: 0;
}

.services-cta {
    background: linear-gradient(135deg, #1d4ed8 0%, #0d9488 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    color: white;
}

.cta-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.badge i {
    color: #bfdbfe;
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cta-content p {
    color: #bfdbfe;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f9fafb 0%, #eff6ff 100%);
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.toggle-label {
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-label.active {
    color: #1d4ed8;
}

.toggle-switch {
    position: relative;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    display: block;
    width: 50px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
}

.toggle-switch label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch input:checked + label {
    background: #1d4ed8;
}

.toggle-switch input:checked + label::after {
    transform: translateX(26px);
}

.save-badge {
    background: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    border: 2px solid #1d4ed8;
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1d4ed8 0%, #0d9488 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #0d9488 100%);
    border-radius: 1rem;
    margin: 0 auto 1.5rem;
}

.pricing-icon i {
    font-size: 2rem;
    color: white;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
}

.pricing-card > p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.price {
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.5rem;
    color: #6b7280;
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    font-weight: bold;
    color: #111827;
}

.period {
    color: #6b7280;
    font-size: 1.1rem;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.features i {
    color: #10b981;
    font-size: 1.1rem;
}

.additional-services {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 4rem;
}

.additional-services h3 {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 2rem;
}

.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.additional-card {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.additional-card:hover {
    border-color: #1d4ed8;
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.1);
}

.additional-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #0d9488 100%);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.additional-icon i {
    font-size: 1.5rem;
    color: white;
}

.additional-card h4 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
}

.additional-card p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.additional-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1d4ed8;
    margin-bottom: 1rem;
}

.learn-more {
    background: none;
    border: none;
    color: #1d4ed8;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.learn-more:hover {
    text-decoration: underline;
}

.custom-solution {
    background: linear-gradient(135deg, #1d4ed8 0%, #0d9488 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    color: white;
}

.custom-solution h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.custom-solution p {
    color: #bfdbfe;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    color: #111827;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #1d4ed8;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6b7280;
    font-weight: 600;
}

.achievements {
    display: grid;
    gap: 0.75rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.achievement-item i {
    color: #0d9488;
    font-size: 1.25rem;
}

.achievement-item span {
    color: #374151;
    font-weight: 500;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-width: 200px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.floating-card.left {
    bottom: -24px;
    left: -24px;
}

.floating-card.right {
    top: -24px;
    right: -24px;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #0d9488 100%);
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.card-icon i {
    color: white;
    font-size: 1.25rem;
}

.card-title {
    font-weight: bold;
    color: #111827;
    font-size: 0.9rem;
}

.card-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
}

.mission-section {
    background: linear-gradient(135deg, #f9fafb 0%, #eff6ff 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
}

.mission-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: #1d4ed8;
    border-radius: 1rem;
    margin: 0 auto 1.5rem;
}

.mission-icon i {
    font-size: 2rem;
    color: white;
}

.mission-section h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

.mission-section p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdfa 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #0d9488 100%);
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.25rem;
}

.contact-details h4 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: #374151;
    font-weight: 500;
}

.contact-details span {
    font-size: 0.875rem;
    color: #6b7280;
}

.consultation-card {
    background: linear-gradient(135deg, #1d4ed8 0%, #0d9488 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    color: white;
    margin-top: 2rem;
}

.consultation-card h4 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.consultation-card p {
    font-size: 0.875rem;
    color: #bfdbfe;
}

.contact-form {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 2rem;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #166534;
    font-weight: 500;
}

.success-message i {
    color: #10b981;
}

.success-message.hidden {
    display: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group select,
.form-group textarea {
    padding-left: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .brand-logo {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff; /* Match header blue color */
}

.footer-brand .brand-logo i {
    font-size: 2rem;
    color: #ffffff; /* Match header icon color */
}

.footer-brand p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #374151;
    border-radius: 0.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #1d4ed8;
    transform: scale(1.1);
}

.footer-links h4 {
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact h4 {
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact-item i {
    color: #06b6d4;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-contact-item span {
    color: #9ca3af;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #9ca3af;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(25, 118, 210, 0.12);
    display: none; /* default hidden */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius:16px
}
.modal-overlay.active {
    display: flex !important;
}
.modal-content {
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.18);
    border: 1px solid #e3eaf3;
    max-width: 800px;
    width: 90vw;
    position: relative;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    color: #1a237e;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: 0;
    scrollbar-color: #1976d2 #e3eaf3;
}
.modal-content::-webkit-scrollbar {
    width: 8px;
    background: #e3eaf3;
    border-radius: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #1976d2;
    border-radius: 8px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}
.modal-header {
    /* Use footer background for modal header */
    background: #111827;
    padding: 1.2em 0;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    text-align: center;
    margin: -2rem -2.5rem 1.5em -2.5rem;
}
.modal-header h2 {
    color: #fff !important;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #1976d2;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    color: #fff;
    background: #1976d2;
}
.modal-body {
    margin-top: 0.5rem;
    color: #222;
    font-size: 1.05rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
}
.modal-body h2, .modal-body h3 {
    color: #1976d2;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    font-weight: 600;
}
.modal-body ul {
    padding-left: 1.2em;
    margin-bottom: 1em;
}
.modal-body p {
    margin-bottom: 1em;
}
/*@media (max-width: 900px) {
    .modal-content {
        max-width: 98vw;
        width: 98vw;
        padding: 1rem;
        font-size: 1rem;
        border-radius: 12px;
        max-height: 95vh;
    }
    .modal-header {
        margin: -1rem -1rem 1em -1rem;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        font-size: 1.2rem;
    }
    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.5rem;
        width: 2rem;
        height: 2rem;
    }
    .modal-body {
        font-size: 0.98rem;
        padding-bottom: 1rem;
    }
    .mobile-menu-btn {
        display: none !important;
    }
}
@media (max-width: 600px) {
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    .container {
        max-width: 100vw;
        padding: 0 6px;
        overflow-x: hidden;
    }
    .modal-content {
        max-width: 100vw;
        width: 100vw;
        min-width: 0;
        padding: 0.5rem;
        border-radius: 8px;
        font-size: 0.95rem;
        box-shadow: 0 2px 12px rgba(25, 118, 210, 0.10);
        overflow-x: hidden;
    }
    .modal-header {
        margin: -0.5rem -0.5rem 1em -0.5rem;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        font-size: 1rem;
        padding: 0.7em 0;
    }
    .modal-close {
        top: 0.3rem;
        right: 0.3rem;
        font-size: 1.2rem;
        width: 1.5rem;
        height: 1.5rem;
    }
    .modal-body {
        font-size: 0.92rem;
        padding-bottom: 0.5rem;
        overflow-x: hidden;
    }
    .gallery,
    .services-grid,
    .pricing-grid,
    .additional-grid {
        grid-template-columns: 1fr !important;
        overflow-x: hidden;
    }
    .carousel-card,
    .service-card,
    .pricing-card,
    .additional-card {
        max-width: 98vw;
        min-width: 0;
        margin: 0 auto;
        overflow-x: hidden;
    }
    .mobile-menu-btn {
        display: none !important;
    }
}*/
/* End Modal Styles */

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    #header .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: auto;
        padding: 0.7rem 0;
        position: relative;
    }
    .nav-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1.3rem;
        font-weight: 800;
        color: #1e40af;
        margin-bottom: 0;
        width: auto;
        justify-content: flex-start;
        flex: 1 1 auto;
    }
    .nav-brand i {
        font-size: 1.7rem;
        color: #06b6d4;
    }
    .logo-text {
        font-size: 1.2rem;
        font-weight: 700;
        color: #1e40af;
        letter-spacing: 0.02em;
    }
    .mobile-menu-btn {
        display: none;
        align-self: center;
        margin-left: auto;
        margin-right: 0;
        z-index: 1001;
        background: none;
        border: none;
        font-size: 2rem;
        color: #1e40af;
        position: relative;
    }
    .nav-menu {
        position: absolute;
        top: 70px; /* Place menu directly below header */
        left: 0;
        width: 100vw;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        flex-direction: column;
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        z-index: 1002;
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-menu .nav-link {
        color: #374151;
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid #f3f4f6;
        width: 100%;
        display: block;
    }
    .nav-menu .nav-link:hover {
        background: #f9fafb;
    }
    .nav-brand {
        flex: 0 0 auto;
        margin-bottom: 0;
        font-size: 1.3rem;
        gap: 8px;
        color: #1e40af;
        justify-content: flex-start;
        align-items: center;
        width: auto;
    }
}

@media (max-width: 600px) {
    #header .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 0.5rem;
    }
    .nav-brand {
        font-size: 1.05rem;
        gap: 6px;
        margin-bottom: 0;
        width: auto;
        justify-content: flex-start;
        align-items: center;
    }
    .nav-brand i {
        font-size: 1.2rem;
    }
    .logo-text {
        font-size: 1rem;
    }
    .mobile-menu-btn {
        font-size: 1.5rem;
        margin-left: auto;
        margin-right: 0;
    }
    .nav-menu {
        position: absolute;
        top: 60px; /* Place menu directly below header for mobile */
        left: 0;
        width: 100vw;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        flex-direction: column;
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        z-index: 1002;
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-menu .nav-link {
        color: #374151;
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid #f3f4f6;
        width: 100%;
        display: block;
    }
    .nav-menu .nav-link:hover {
        background: #f9fafb;
    }
    .gallery {
        display: none !important;
    }
}

/* Default: header is blue, logo and name are white */
.nav-brand,
.nav-brand i,
.logo-text {
    color: #ffffff;
}

/* When header is white (scrolled), logo and name are blue */
#header.scrolled .nav-brand,
#header.scrolled .nav-brand i,
#header.scrolled .logo-text {
    color: #1e40af;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.pricing-card,
.contact-item {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.3s; }
.service-card:nth-child(5) { animation-delay: 0.4s; }
.service-card:nth-child(6) { animation-delay: 0.5s; }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for buttons */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}




///////////////////////////////////////////////////////////
* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body { font-family: sans-serif; }

.gallery {
  background: #00000000;
  display: block; /* Ensure Flickity uses block layout for horizontal scrolling */
  white-space: nowrap; /* Prevent wrapping to new line */
}

.gallery-cell img, .hero-carousel-slide img {
  display: none;
}

.gallery-cell {

  display: inline-block; /* Make each card inline for horizontal layout */
  vertical-align: top;
  margin: 0 12px; /* Add horizontal margin between each card */
  white-space: normal; /* Allow content to wrap inside the card */
}

.carousel-card {
background: #00000070;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
cursor: pointer;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem 2rem 2rem; /* Increased padding for more space inside */
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s, transform 0.3s;
  height: 220px;
  max-width: 340px;
  margin: 0 auto; /* Remove vertical margin, spacing is now handled by .gallery-cell */
}
.carousel-card:hover {

}
.carousel-card-icon {
  font-size: 2.2rem;
  color: #38bdf8;
  margin-bottom: 1rem;
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-align: center;
}
.carousel-card-desc {
  font-size: 1rem;
  color: #b5bac1;
  text-align: center;
  margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
  .hero-carousel-container {
    max-width: 98vw;
  }
  .hero-carousel {
    min-height: 140px;
  }
  .hero-carousel-title {
    font-size: 1rem;
    width: 98%;
    border-radius: 0 0 1rem 1rem;
  }
  .gallery-cell {
    margin: 0 5px;
  }
  .carousel-card {
    padding: 1.5rem 0.9rem 1.2rem 0.9rem; /* More padding for mobile */
    min-height: 120px;
    height: 140px;
    max-width: 95vw;
    margin: 0 auto; /* Slight margin for mobile */
  }
  .carousel-card-title {
    font-size: 1.05rem;
  }
  .carousel-card-desc {
    font-size: 0.92rem;
  }
  .carousel-card-icon {
    font-size: 1.5rem;
    width: 2.2rem;
    height: 2.2rem;
  }
}
.footer-content.no-grid-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    padding-bottom: 32px;
}
.footer-section {
    min-width: 200px;
    flex: 1 1 220px;
    margin-bottom: 0;
}
@media (max-width: 1100px) {
    .footer-content.no-grid-footer {
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }
    .footer-section {
        min-width: 0;
        flex: 1 1 100%;
        margin-bottom: 24px;
    }
}
/* Remove grid styles for .custom-footer-grid */
.custom-footer-grid {
    display: block !important;
}

.footer-service-features {
    margin: 8px 0 0 0;
    padding-left: 18px;
    list-style-type: disc;
    color: #b5bac1;
    font-size: 0.92rem;
    text-align: left;
}
.footer-service-features li {
    margin-bottom: 2px;
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: 0.01em;
}
.footer-service-card ul.footer-service-features {
    background: none;
    border-radius: 0;
    box-shadow: none;
}
@media (max-width: 700px) {
    .footer-service-features {
        font-size: 0.85rem;
        padding-left: 12px;
    }
}

.footer-service-features.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 18px;
    padding-left: 0;
    list-style-type: disc;
    color: #b5bac1;
    font-size: 0.92rem;
    text-align: left;
}
.footer-service-features.grid-2 li {
    margin-bottom: 2px;
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: 0.01em;
    list-style-position: inside;
}
@media (max-width: 700px) {
    .footer-service-features.grid-2 {
        grid-template-columns: 1fr;
        font-size: 0.85rem;
        gap: 2px 8px;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 2rem;
}
.footer-section {
    color: #b5bac1;
    font-size: 1rem;
    text-align: left;
}
.footer-section h4 {
    color: #e5e7eb;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 4px;
    letter-spacing: 0.01em;
}
.footer-section ul {
    list-style: none;
    margin-bottom: 0.5rem;
    padding-left: 0;
}
.footer-section ul li {
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.2;
    display: flex;
    align-items: center;
}
.footer-section ul li i {
    color: #b5bac1;
    margin-right: 8px;
    font-size: 1.1em;
    min-width: 18px;
    text-align: center;
}
.footer-section ul li a {
    color: #b5bac1;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-section ul li a:hover {
    color: #fff;
}
.footer-brand-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px;
    margin-top: 0;
}
.footer-brand-section .brand-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: #e5e7eb;
    margin-bottom: 0.5rem;
}
.footer-brand-section .brand-logo i {
    font-size: 2rem;
    color: #e5e7eb;
}
.footer-brand-section .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}
.footer-brand-section .social-links a {
    background: #23272b;
    color: #b5bac1;
    border-radius: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: background 0.2s, color 0.2s;
}
.footer-brand-section .social-links a:hover {
    background: #1d4ed8;
    color: #fff;
}
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .footer-section {
        font-size: 0.98rem;
    }
    .footer-section h4 {
        font-size: 1.08rem;
        margin-top: 18px;
    }
}


@media (max-width: 768px) {
   .mobile-menu-btn {
      display: block !important;
      font-size: 2rem;
      cursor: pointer;
      color: #1e40af;
      z-index: 2000;
   }

   .nav-menu {
      display: none;
   }

   .nav-menu.active {
      display: flex !important;
   }
}

