/* filename: static/css/style.css */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&family=Lato:wght@400;700&display=swap');

/* --- CSS Variables --- */
:root {
    /* Color Palette */
    --primary-color: #3a0ca3; /* Deep Blue/Purple */
    --secondary-color: #f77f00; /* Vibrant Orange */
    --accent-color: #00b4d8; /* Bright Cyan/Light Blue */
    --success-color: #2a9d8f; /* Teal Green */
    --error-color: #e76f51; /* Salmon Red */
    --warning-color: #e9c46a; /* Sandy Yellow */
    --info-color: #219ebc; /* Cerulean Blue */

    /* Neutral Shades */
    --text-color: #343a40; /* Dark Grey */
    --text-light: #6c757d; /* Medium Grey */
    --bg-color: #ffffff; /* White */
    --bg-alt-color: #f8f9fa; /* Very Light Grey */
    --border-color: #dee2e6; /* Light Grey Border */

    /* Fonts */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Lato', sans-serif;

    /* Layout */
    --navbar-height: 70px;
    --container-max-width: 1140px;
    --border-radius: 5px;

    /* RGB versions for opacity */
    --primary-color-rgb: 58, 12, 163;
    --secondary-color-rgb: 247, 127, 0;
    --accent-color-rgb: 0, 180, 216;
    --success-color-rgb: 42, 157, 143;
    --error-color-rgb: 231, 111, 81;
    --warning-color-rgb: 233, 196, 106;
    --info-color-rgb: 33, 158, 188;
}

[data-theme="dark"] {
    /* Dark Theme Color Palette */
    --primary-color: #4cc9f0; /* Light Cyan */
    --secondary-color: #fca311; /* Brighter Orange */
    --accent-color: #f77f00; /* Original Orange as Accent */
    --success-color: #60d394; /* Lighter Green */
    --error-color: #f28482; /* Lighter Red */
    --warning-color: #f5d98e; /* Lighter Yellow */
    --info-color: #73d2f0; /* Lighter Blue */

    /* Dark Theme Neutral Shades */
    --text-color: #e9ecef; /* Light Grey */
    --text-light: #adb5bd; /* Medium Light Grey */
    --bg-color: #121212; /* Very Dark Grey/Black */
    --bg-alt-color: #1e1e1e; /* Slightly Lighter Dark */
    --border-color: #495057; /* Darker Border */

    /* Dark Theme RGB versions */
    --primary-color-rgb: 76, 201, 240;
    --secondary-color-rgb: 252, 163, 17;
    --accent-color-rgb: 247, 127, 0;
    --success-color-rgb: 96, 211, 148;
    --error-color-rgb: 242, 132, 130;
    --warning-color-rgb: 245, 217, 142;
    --info-color-rgb: 115, 210, 240;
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* Base font size (usually 16px) */
}

body {
    font-family: var(--body-font), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; /* System font stack fallback */
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    font-size: 1rem; /* Equivalent to 16px if base is 100% */
    padding-top: var(--navbar-height);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased; /* Smoother fonts on WebKit */
    -moz-osx-font-smoothing: grayscale; /* Smoother fonts on Firefox */
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font), sans-serif;
    color: var(--primary-color);
    margin-bottom: 0.75em;
    line-height: 1.3;
    font-weight: 700;
}
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
    color: var(--primary-color);
}

/* Responsive Heading Sizes using clamp() */
h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1.1rem, 2vw, 1.25rem); }
h6 { font-size: clamp(1rem, 1.8vw, 1.1rem); }


p {
    margin-bottom: 1.2em;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--primary-color);
    text-decoration: underline; /* Add underline on hover for clarity */
}
[data-theme="dark"] a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: middle; /* Better alignment */
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75em 1.5em;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-family: var(--heading-font);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out; /* Smooth transition for all properties */
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none !important; /* Ensure buttons don't get underlines from link styles */
    vertical-align: middle; /* Align buttons properly with text */
}
.btn:hover {
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.btn:active {
    transform: scale(0.98) translateY(0); /* Press down effect */
    box-shadow: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: #e07000; /* Slightly darker orange */
    border-color: #e07000;
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color); /* Ensure border color remains */
}
[data-theme="dark"] .btn-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
[data-theme="dark"] .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

.btn-lg {
    padding: 1em 2em;
    font-size: 1.1rem;
}
.btn-sm {
    padding: 0.5em 1em;
    font-size: 0.9rem;
}
.btn-block {
    display: block;
    width: 100%;
}


/* --- Navbar --- */
.navbar {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--navbar-height);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .navbar {
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: max-content;
    max-height: calc(var(--navbar-height) - 5px); /* Adjust based on actual logo height */
    width: auto; /* Maintain aspect ratio */
}
.nav-logo span { /* Style for text logo */
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 25px;
}
.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    font-size: 0.95rem;
    text-decoration: none; /* Remove underline */
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}
[data-theme="dark"] .nav-links a {
    color: var(--text-color);
}
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
    color: var(--secondary-color);
}


.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.nav-actions .btn-sm { /* Use smaller buttons in nav */
    padding: 0.4em 0.8em;
}
.nav-actions span a { /* Link for username */
    font-weight: bold;
    text-decoration: none;
    color: inherit; /* Inherit color from span */
}
.nav-actions span a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* --- Theme Toggle Button --- */
.theme-toggle-btn {
    background: none;
    border: none;
    font-size: 1.5rem; /* Adjust size as needed */
    cursor: pointer;
    color: var(--text-color);
    padding: 5px;
    line-height: 1;
    transition: color 0.3s ease, transform 0.2s ease;
}
.theme-toggle-btn:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* --- Mobile Nav --- */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 1001; /* Above mobile menu */
}
[data-theme="dark"] .mobile-nav-toggle {
    color: var(--primary-color);
}

.mobile-nav-menu {
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--navbar-height); /* Position below navbar */
    left: 0;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    background-color: var(--bg-color);
    padding: 30px 20px;
    border-top: 1px solid var(--border-color);
    z-index: 999;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%); /* Off-screen to the left */
}
.mobile-nav-menu.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide in */
}
.mobile-nav-menu a {
    color: var(--text-color);
    font-size: 1.2rem;
    display: block;
    padding: 10px 0;
    font-weight: 500;
    text-decoration: none;
}
.mobile-nav-menu a:hover {
    color: var(--secondary-color);
}
.mobile-nav-menu hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 15px 0;
}
.mobile-nav-menu .theme-toggle-btn {
    font-size: 1.1rem;
    text-align: left;
    padding: 10px 0;
    width: 100%;
    margin-top: 10px;
    color: var(--text-color); /* Ensure visibility */
}
.mobile-nav-menu .theme-toggle-btn:hover {
    color: var(--secondary-color);
    transform: none; /* Disable scaling */
}

/* --- Main Content Area --- */
.main-content {
   flex-grow: 1; /* Allow main content to grow and push footer down */
}

/* ================================== */
/* === SECTION STYLES START HERE === */
/* ================================== */

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: clamp(60px, 10vh, 80px) 0 clamp(80px, 12vh, 100px) 0; /* Responsive padding */
    text-align: center;
}
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #023e8a, #001233); /* Darker gradient */
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 0.5em;
    color: #fff;
    font-weight: 700;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    margin-bottom: 2em;
    opacity: 0.9;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: #fff;
}
[data-theme="dark"] .hero .subtitle {
    color: #e0e0e0;
}

.hero .btn {
    margin: 10px;
}

/* --- Shared Section Styles --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: clamp(2rem, 5vw, 2.5rem);
    position: relative;
    padding-bottom: 15px;
    color: var(--primary-color);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}
[data-theme="dark"] .section-title {
    color: var(--primary-color);
}

section { /* Default section padding */
    padding: 70px 0;
}
section.bg-alt { /* Alternating background */
    background-color: var(--bg-alt-color);
}

/* --- Features Section --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-item {
     text-align: center;
     padding: 15px; /* Add some padding */
}
.feature-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    padding: 15px;
    background-color: rgba(var(--primary-color-rgb), 0.08);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.feature-item:hover .feature-icon { /* Animate icon on feature item hover */
    transform: scale(1.05) translateY(-3px);
}
.feature-item h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--primary-color);
}
[data-theme="dark"] .feature-item h3 {
     color: var(--primary-color);
}
.feature-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 10px;
    color: var(--text-light); /* Use lighter text for description */
}
[data-theme="dark"] .feature-icon {
    background-color: var(--border-color);
}

/* --- How it Works Section --- */
.steps-list {
    list-style: none;
    counter-reset: steps-counter;
    max-width: 700px;
    margin: 40px auto 0 auto;
    padding-left: 0;
}
.steps-list li {
    counter-increment: steps-counter;
    margin-bottom: 25px;
    position: relative;
    padding-left: 55px;
    font-size: 1.1rem;
    line-height: 1.5;
}
.steps-list li::before {
    content: counter(steps-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-family: var(--heading-font);
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.steps-list li strong {
    color: var(--primary-color);
    font-weight: 700;
}
[data-theme="dark"] .steps-list li strong {
    color: var(--primary-color);
}

/* --- Pricing Section --- DELETED --- */
/* Removed styles for .pricing-plans, .pricing-grid, .pricing-card, .popular-badge */

/* --- Page Header (About, Contact, etc.) --- */
.page-header {
    background-color: var(--bg-alt-color);
    padding: 50px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 50px;
}
.page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 0.3em;
    color: var(--primary-color);
}
.page-header .subtitle {
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    color: var(--text-light); /* Use lighter text */
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}
[data-theme="dark"] .page-header h1 {
    color: var(--primary-color);
}
[data-theme="dark"] .page-header .subtitle {
    color: var(--text-light);
}


/* --- Call to Action Section --- */
.cta-section {
    /* Ensure img path is relative to css file location */
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.9), rgba(var(--accent-color-rgb), 0.85)), url('../img/cta-background.jpeg') center center/cover no-repeat fixed; /* Added fixed for parallax effect */
    background-color: var(--primary-color); /* Fallback */
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin-top: 60px; /* Space above CTA */
}
[data-theme="dark"] .cta-section {
     background: linear-gradient(135deg, rgba(2, 62, 138, 0.9), rgba(0, 18, 51, 0.9)), url('../img/cta-background.jpeg') center center/cover no-repeat fixed;
     background-color: #023e8a;
}
.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 0.5em;
    color: #fff;
}
.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 1.8em;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
     color: #fff;
}
.cta-section .btn-primary {
     padding: 0.9em 2.2em;
     font-size: 1.1rem;
     background-color: var(--secondary-color);
     box-shadow: 0 4px 10px rgba(0,0,0, 0.2);
     border-color: var(--secondary-color);
}
.cta-section .btn-primary:hover {
    background-color: #fff;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0, 0.25);
    border-color: #fff;
}


/* --- Form Styles --- */
.form-section, .auth-section {
     padding: 60px 0;
}

.form-container, .auth-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 40px;
    background-color: var(--bg-alt-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.auth-container {
    max-width: 450px;
}

[data-theme="dark"] .form-container,
[data-theme="dark"] .auth-container {
    background-color: var(--bg-alt-color);
    box-shadow: 0 4px 10px rgba(255,255,255,0.05);
}

.form-container h2, .auth-container h2 {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label, .form-label { /* Added .form-label for WTForms */
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--text-color); /* Ensure label color */
}

/* General input/textarea styling */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group textarea,
.form-control { /* Added .form-control for WTForms */
    display: block; /* Ensure block display */
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--body-font);
    line-height: 1.5; /* Match line height */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input[type="file"] { /* Specific file input styles */
    padding: 8px 10px;
    cursor: pointer;
}
.form-group input[type="file"]::file-selector-button {
    padding: 8px 15px;
    margin-right: 10px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.form-group input[type="file"]::file-selector-button:hover {
    background-color: var(--secondary-color);
}

/* Dark theme inputs */
[data-theme="dark"] .form-group input[type="text"],
[data-theme="dark"] .form-group input[type="email"],
[data-theme="dark"] .form-group input[type="password"],
[data-theme="dark"] .form-group input[type="file"],
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-control {
    background-color: #2b2b2b; /* Darker input background */
    border-color: var(--border-color);
    color: var(--text-color);
}
[data-theme="dark"] .form-group input[type="file"]::file-selector-button {
     background-color: var(--primary-color);
     color: #121212; /* Text color for button */
}
[data-theme="dark"] .form-group input[type="file"]::file-selector-button:hover {
     background-color: var(--secondary-color);
}

/* Input focus styles */
.form-group input:focus,
.form-group textarea:focus,
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.15);
}
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

/* Style for WTForms error messages */
.error-messages {
    margin-top: 5px;
}
.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    display: block; /* Ensure each error is on a new line */
}

/* Auth form specific */
.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Contact form specific */
.contact-info {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}
.contact-info h3 {
    margin-bottom: 20px;
}
.contact-info p {
    margin-bottom: 0.5em;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Alert Message Styling */
.alert {
    padding: 15px 20px;
    margin-bottom: 25px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    position: relative; /* For close button positioning */
    font-size: 0.95rem;
}
/* Close button for alerts */
.close-alert {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    color: inherit; /* Inherit color from alert type */
    opacity: 0.5;
    cursor: pointer;
    padding: 5px;
}
.close-alert:hover {
    opacity: 1;
}

/* Success Alert */
.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}
[data-theme="dark"] .alert-success {
    color: #a3cfbb;
    background-color: #0a3622;
    border-color: #1a4d38;
}

/* Danger/Error Alert */
.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}
[data-theme="dark"] .alert-danger {
    color: #f0b4ba;
    background-color: #58151c;
    border-color: #80242d;
}

/* Info Alert */
.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}
[data-theme="dark"] .alert-info {
    color: #6edff6;
    background-color: #032830;
    border-color: #084251;
}

/* Warning Alert */
.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}
[data-theme="dark"] .alert-warning {
    color: #ffda6a;
    background-color: #332701;
    border-color: #594602;
}


/* --- Footer --- */
.footer {
    background-color: var(--bg-alt-color);
    color: var(--text-light); /* Use lighter text in footer */
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    margin-top: auto; /* Push footer to bottom */
}
[data-theme="dark"] .footer {
    background-color: #1e1e1e;
    color: var(--text-light);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px; /* Row gap, Column gap */
}

.footer p.footer-copyright {
    margin-bottom: 0;
    text-align: left; /* Default left */
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow links to wrap */
    justify-content: flex-start; /* Default left */
}
.footer-links a {
    margin: 0;
    color: inherit; /* Inherit color from footer */
    opacity: 0.8;
    font-size: 0.85rem;
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--secondary-color);
    opacity: 1;
    text-decoration: underline;
}

/* --- AOS Base Styles --- */
/* Removed default opacity: 0; relying on AOS library defaults */

/* =========================== */
/* === RESPONSIVE DESIGN === */
/* =========================== */
@media (max-width: 992px) {
    .container { max-width: 960px; }
    /* Removed .team-bio stacking rules as they are handled by .about-content-section rules now */
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 65px;
    }
    body {
        padding-top: var(--navbar-height);
        font-size: 15px;
    }

    /* Mobile Nav Adjustments */
    .nav-links { display: none; }
    .nav-actions .btn { display: none; }
    .nav-actions .theme-toggle-btn { display: block; }
    .mobile-nav-toggle { display: block; }

    /* Section Padding Adjustments */
    section { padding: 50px 0; }
    .hero { padding: 60px 0 80px 0; }
    .page-header { padding: 40px 0; margin-bottom: 40px; }
    .cta-section { padding: 60px 0;}

    /* Footer Stacking */
    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .footer p.footer-copyright {
        text-align: center;
        order: 2;
    }
    .footer-links {
        order: 1;
        justify-content: center;
    }

    /* Form Padding */
    .form-container, .auth-container {
        padding: 25px 20px;
    }
}

@media (max-width: 576px) {
    /* Further Typography Adjustments */
    h1 { font-size: clamp(1.8rem, 7vw, 2.2rem); }
    h2 { font-size: clamp(1.6rem, 6vw, 2rem); }
    h3 { font-size: clamp(1.3rem, 5vw, 1.5rem); }

    /* Removed old .team-bio stacking rules */

    /* Footer Adjustments */
    .footer { font-size: 0.85rem; padding: 25px 0;}
    .footer-links { gap: 10px; }
    .footer-links a { margin: 0 5px; font-size: 0.8rem;}

    /* Removed pricing grid rule as pricing section is deleted */

} /* <<< THIS IS THE MISSING BRACE */

/* ======================================== */
/* === About Page - Alternating Sections === */
/* ======================================== */
.about-content-section {
    padding: 70px 0;
    overflow: hidden; /* Prevent AOS overflow issues */
}
.about-content-section.bg-alt {
    background-color: var(--bg-alt-color);
}

.about-section-container {
    display: flex;
    align-items: center; /* Vertically align items */
    gap: 60px; /* Space between image and text */
    flex-wrap: wrap; /* Allow wrapping on smaller screens initially */
}

.about-image-column,
.about-text-column {
    flex: 1; /* Each column tries to take up equal space */
    min-width: 300px; /* Minimum width before wrapping/stacking */
}

/* Styling for the images */
.about-section-image { /* Style applies to the <img> tag */
    width: 100%;
    max-width: 550px; /* Limit max image width */
    height: auto;
    border-radius: var(--border-radius); /* Keep rounded corners if desired */
    /* box-shadow: 0 6px 18px rgba(0,0,0,0.1); */ /* Shadow commented out */
    display: block;
    margin: 0 auto; /* Center image within its column */
}

[data-theme="dark"] .about-section-image {
    /* box-shadow: 0 6px 18px rgba(255,255,255,0.07); */ /* Shadow commented out */
}
/* Specific style for founder headshot */
.founder-headshot {
    border-radius: 50%; /* Make founder image circular */
    max-width: 350px; /* Adjust size as needed */
}


/* Style for the Section Title when inside a column */
.section-title-inline {
    text-align: left; /* Always left-align title within its column */
    margin-bottom: 20px;
    padding-bottom: 0;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    position: relative;
    color: var(--primary-color);
}
.section-title-inline::after {
    display: none; /* Hide the centered underline */
}

/* Sub-heading within text column */
.about-text-column h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.about-text-column p {
    max-width: none; /* Ensure paragraphs take available width */
    margin-left: 0;
    margin-right: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: left; /* Ensure paragraph text is always left-aligned */
}
[data-theme="dark"] .about-text-column p {
    color: var(--text-light);
}


/* --- Alternating Layout Logic --- */
/* Apply alternating layout only on screens wider than mobile */
@media (min-width: 769px) {
    .about-section-container {
         flex-wrap: nowrap; /* Prevent wrapping */
    }
    /* Reverse the order for sections marked image-right */
    /* This moves the image column (which comes first in HTML) to the right */
    .about-content-section.image-right .about-section-container {
        flex-direction: row-reverse;
    }
} /* <<< This brace closes @media (min-width: 769px) */

/* --- Responsive Stacking on Mobile --- */
@media (max-width: 768px) {
    .about-section-container {
        flex-direction: column !important; /* Force stacking, important overrides row-reverse */
        gap: 30px;
    }
    .about-image-column,
    .about-text-column {
        flex-basis: auto;
        width: 100%;
        min-width: unset;
    }
    /* Consistent stacking order: Image first, then Text */
    .about-content-section .about-image-column {
         order: 1;
    }
    .about-content-section .about-text-column {
         order: 2;
         text-align: center; /* Center align text block */
    }
     .about-text-column p {
         text-align: left; /* Keep paragraphs left-aligned for readability */
     }
    .section-title-inline,
    .about-text-column h3 {
         text-align: center; /* Center headings */
    }
    .about-section-image {
         max-width: 90%;
         margin: 0 auto 20px auto; /* Add bottom margin when stacked */
    }
     .founder-headshot {
         max-width: 250px;
     }
} /* <<< This brace closes @media (max-width: 768px) */