/* 
* Time Well Served - Main Stylesheet
* A modern, responsive design for community service platform
*/

/* ===== Base Styles ===== */
:root {
    /* Color Palette */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #f59e0b;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    /* 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* Enhanced buttons */
.btn-glow {
    position: relative;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.25), 0 6px 8px rgba(59, 130, 246, 0.15);
}

.btn-glow:hover {
    box-shadow: 0 16px 32px rgba(59, 130, 246, 0.35), 0 8px 14px rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: var(--spacing-md) 0;
}

.header.scrolled {
    padding: var(--spacing-sm) 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    height: 40px;
    margin-right: var(--spacing-sm);
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-lg);
}

.main-nav a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0) 70%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0) 70%);
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

/* Pill badge */
.pill {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.pill-success {
    color: #065f46;
    background: linear-gradient(90deg, rgba(16,185,129,0.18), rgba(59,130,246,0.12));
    border: 1px solid rgba(16,185,129,0.25);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--dark);
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--gray);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
}

/* Hero metrics */
.hero-metrics {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    margin-top: var(--spacing-lg);
    color: var(--gray);
}
.hero-metrics li {
    position: relative;
    font-weight: 500;
}
.hero-metrics li strong {
    color: var(--dark);
    font-size: 1.1rem;
    margin-right: 0.25rem;
}
.hero-metrics li + li::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-light);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 90%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.2s ease-out;
}

/* Trust bar */
.trust-bar {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid rgba(31,41,55,0.06);
    background: rgba(255,255,255,0.6);
    backdrop-filter: saturate(150%) blur(6px);
    justify-content: center;
    flex-wrap: wrap;
}
.trust-bar span { color: var(--gray); font-weight: 500; text-align: center; }
.trust-bar ul { display: flex; gap: var(--spacing-xl); color: var(--dark); justify-content: center; flex-wrap: wrap; }
.trust-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); margin-right: 0.4rem; }

/* ===== About Section ===== */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--primary);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background-color: rgba(255,255,255,0.85);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(31,41,55,0.06);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card .icon {
    width: 60px;
    height: 60px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.feature-card .icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-card h4 {
    margin-bottom: var(--spacing-sm);
}

.about-images {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.about-images img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.about-images img:first-child {
    transform: translateY(-20px);
}

.about-images img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* ===== Solutions Section ===== */
.solutions {
    background-color: #f8fafc;
}

.solutions-content {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.solutions-text {
    flex: 1;
}

.solutions-text h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.solutions-image {
    flex: 1;
}

.solutions-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.solutions-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* ===== User Types Section ===== */
.user-types {
    background-color: white;
}

.user-types-tabs {
    margin-top: var(--spacing-xl);
}

.tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-light);
}

.tab-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.tab-image {
    flex: 1;
}

.tab-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Sticky mobile CTA */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(env(safe-area-inset-bottom) + 12px);
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    z-index: 1100;
    pointer-events: none; /* buttons remain clickable */
}
.sticky-cta a { pointer-events: auto; }
.sticky-cta.hidden { transform: translateY(120%); opacity: 0; transition: all 0.3s ease; }

@media (min-width: 768px) {
    .sticky-cta { display: none; }
}

@media (max-width: 767px) {
    .hero-metrics { gap: var(--spacing-md); font-size: 0.95rem; }
    .trust-bar ul { gap: var(--spacing-md); font-size: 0.95rem; }
}

.tab-text {
    flex: 1;
}

/* ===== Testimonials ===== */
.testimonials {
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}
.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.testimonial-slider .slides {
    position: relative;
    overflow: hidden;
}
.testimonial-slider .slide {
    display: none;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(31,41,55,0.06);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(6px);
}
.testimonial-slider .slide.active { display: block; animation: fadeIn 400ms ease; }
.testimonial-slider .quote { font-size: 1.125rem; color: var(--dark); margin-bottom: var(--spacing-lg); }
.testimonial-slider .author { display: flex; align-items: center; gap: var(--spacing-md); }
.testimonial-slider .author img { width: 36px; height: 36px; border-radius: 50%; opacity: 0.8; }
.testimonial-slider .author strong { display: block; }
.testimonial-slider .author span { color: var(--gray); font-size: 0.95rem; }

.slider-controls { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.slider-controls button { pointer-events: auto; width: 40px; height: 40px; border: none; border-radius: var(--radius-full); background: rgba(255,255,255,0.9); box-shadow: var(--shadow-md); cursor: pointer; color: var(--dark); }
.slider-controls button:hover { background: white; }

.dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--spacing-md); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: #cfe0ff; border: none; cursor: pointer; transition: all 0.2s ease; }
.dot.active { width: 20px; background: var(--primary); }

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

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; display: none; z-index: 1200; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(2px); }
.modal-content { position: relative; max-width: 720px; margin: 6vh auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow-xl); border: 1px solid rgba(31,41,55,0.06); }
.modal-body { padding: clamp(1rem, 2vw + 1rem, 2rem); }
.modal-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(0,0,0,0.04); cursor: pointer; }
.modal-sub { color: var(--gray); margin-bottom: var(--spacing-lg); }

.quick-form { display: flex; flex-direction: column; gap: var(--spacing-md); }
.quick-form .form-row { display: grid; grid-template-columns: 1fr; gap: var(--spacing-md); }
.quick-form input, .quick-form select, .quick-form textarea { width: 100%; padding: 0.85rem 0.9rem; border: 1px solid var(--gray-light); border-radius: 10px; font-family: var(--font-primary); }
.quick-form input:focus, .quick-form select:focus, .quick-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
.modal-fineprint { color: var(--gray); font-size: 0.85rem; margin-top: var(--spacing-sm); }

@media (min-width: 768px) {
  .quick-form .form-row { grid-template-columns: 1fr 1fr; }
}

/* Calendly embed + modal extras */
.modal-divider { height: 1px; background: rgba(31,41,55,0.08); margin: var(--spacing-lg) 0; }
.modal-alt { margin-bottom: var(--spacing-md); }
.calendly-container { border: 1px solid rgba(31,41,55,0.06); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.tab-text h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.feature-list {
    margin-top: var(--spacing-lg);
}

.feature-list li {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: var(--success);
    margin-right: var(--spacing-sm);
    font-size: 1.2rem;
}

/* ===== How It Works Section ===== */
.how-it-works {
    background-color: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xxl);
}

.feature {
    background-color: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--primary);
}

.advanced-features {
    margin-top: var(--spacing-xxl);
}

.advanced-feature {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    background-color: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.advanced-feature:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.advanced-feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.advanced-feature-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.advanced-feature-content h3 {
    margin-bottom: var(--spacing-sm);
}

/* ===== Impact Section ===== */
.impact {
    background-color: white;
}

.impact-content {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.impact-image {
    flex: 1;
}

.impact-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.impact-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.impact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.impact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.impact-icon i {
    font-size: 1.2rem;
    color: var(--primary);
}

/* ===== CTA Section ===== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: var(--spacing-xxl) 0;
}

.cta h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background-color: white;
    color: var(--primary);
}

.cta .btn-primary:hover {
    background-color: var(--light);
    color: var(--primary-dark);
}

/* ===== Contact Section ===== */
.contact {
    background-color: #f8fafc;
}

.contact-content {
    display: flex;
    gap: var(--spacing-xl);
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-card {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.contact-icon i {
    font-size: 1.2rem;
    color: var(--primary);
}

.contact-card h3 {
    margin-bottom: var(--spacing-sm);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 40px;
    margin-bottom: var(--spacing-sm);
}

.footer-logo p {
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-xxl);
}

.footer-column h4 {
    color: white;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-column a {
    color: var(--gray-light);
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Media Queries ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container,
    .about-content,
    .solutions-content,
    .tab-content.active,
    .impact-content,
    .contact-content {
        flex-direction: column;
    }
    
    .hero-image {
        margin-top: var(--spacing-xl);
        justify-content: center;
    }
    
    .about-images {
        margin-top: var(--spacing-lg);
    }
    
    .solutions-image {
        margin-top: var(--spacing-lg);
        order: -1;
    }
    
    .tab-image {
        margin-bottom: var(--spacing-lg);
    }
    
    .impact-image {
        margin-bottom: var(--spacing-lg);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .feature-cards,
    .features-grid,
    .impact-list {
        grid-template-columns: 1fr;
    }
    
    .advanced-feature {
        flex-direction: column;
    }
    
    .advanced-feature-icon {
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 576px) {
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 7rem 0 3rem;
    }
    
    .tabs-nav {
        flex-direction: column;
        gap: var(--spacing-xs);
        border-bottom: none;
    }
    
    .tab-btn {
        border-bottom: 1px solid var(--gray-light);
        width: 100%;
    }
}
