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

:root {
    /* Color Palette from image */
    --color-dark-gray: #58595B;
    --color-light-gray: #AFB0B6;
    --color-blue: #889DFF;
    --color-purple: #8945FF;
    --color-yellow: #F7D74D;
    --color-pale: #E8EDF7;
    
    /* Light Mode */
    --primary-color: #8945FF;
    --secondary-color: #889DFF;
    --accent-color: #F7D74D;
    --text-color: #58595B;
    --text-light: #AFB0B6;
    --bg-primary: #ffffff;
    --bg-secondary: #E8EDF7;
    --bg-alternate: #f8f9fc;
    --border-color: #E8EDF7;
    --shadow: 0 0.125rem 0.5rem rgba(137, 69, 255, 0.1);
    --shadow-lg: 0 0.5rem 1.5rem rgba(137, 69, 255, 0.15);
    --header-bg: #ffffff;
    --card-bg: #ffffff;
}

[data-theme="dark"] {
    /* Dark Mode */
    --primary-color: #889DFF;
    --secondary-color: #8945FF;
    --accent-color: #F7D74D;
    --text-color: #E8EDF7;
    --text-light: #AFB0B6;
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-alternate: #0f1419;
    --border-color: #2d3748;
    --shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.5);
    --header-bg: #16213e;
    --card-bg: #16213e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.o_container_small {
    max-width: 800px;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-6,
.col-lg-12 {
    padding: 0 15px;
    width: 100%;
}

@media (min-width: 992px) {
    .col-lg-2 { width: 16.666%; }
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.333%; }
    .col-lg-6 { width: 50%; }
    .col-lg-12 { width: 100%; }
    .offset-lg-5 { margin-left: 41.666%; }
}

/* Header and Navigation */
header {
    background: var(--header-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-lg);
    height: 60px;
}

header.scrolled .navbar {
    padding: 0.5rem 0;
}

header.scrolled .navbar-brand img {
    width: 54px;
    height: 44px;
}

header.scrolled .nav-link,
header.scrolled .nav-phone,
header.scrolled .btn {
    font-size: 0.9rem;
}

header.scrolled .btn {
    padding: 0.4rem 1rem;
}

/* Theme Toggle Button - Floating */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1e3a5f;
    border: none;
    color: #fff0c7;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    box-shadow: 0 0.5rem 1.5rem rgba(30, 58, 95, 0.4);
    z-index: 999;
}

.theme-toggle:hover {
    background: #2d4a6f;
    transform: scale(1.1) rotate(20deg);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Dark mode - show sun icon with day colors */
[data-theme="dark"] .theme-toggle {
    background: #6BA3D4;
    color: #F5C842;
    box-shadow: 0 0.5rem 1.5rem rgba(107, 163, 212, 0.3);
}

[data-theme="dark"] .theme-toggle:hover {
    background: #7DB3E0;
    color: #FFD966;
    box-shadow: 0 0.75rem 2rem rgba(107, 163, 212, 0.4);
}

[data-theme="dark"] .theme-toggle i::before {
    content: "\f185";
}

/* Hide theme toggle from nav */
.nav-actions .theme-toggle,
.mobile-nav-menu .theme-toggle {
    display: none;
}

.navbar {
    padding: 1rem 0;
}

.navbar-desktop {
    display: none;
}

.navbar-mobile {
    display: block;
}

@media (min-width: 992px) {
    .navbar-desktop {
        display: block;
    }
    .navbar-mobile {
        display: none;
    }
}

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

.navbar-brand img {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-item {
    list-style: none;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
}

.nav-phone {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Mobile Navigation */
.nav-container-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--header-bg);
    box-shadow: var(--shadow-lg);
    transition: right 0.3s, background-color 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-nav-menu {
    list-style: none;
    padding: 4rem 2rem 2rem;
}

.mobile-nav-menu .nav-item {
    margin-bottom: 1rem;
}

.mobile-nav-menu .nav-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.1rem;
}

.mobile-nav-menu .nav-phone {
    display: block;
    padding: 1rem 0;
    border-top: 1px solid var(--bg-gray);
    margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s;
}

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

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

.btn-outline-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-outline-secondary:hover {
    background-color: var(--bg-secondary);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Carousel */
.carousel-section {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.carousel {
    position: relative;
    height: 500px;
}

@media (min-width: 768px) {
    .carousel {
        height: 600px;
    }
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: center;
    padding: 8rem 1rem;
}

.carousel-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.carousel-content .lead {
    font-size: 1.25rem;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
}

@media (min-width: 768px) {
    .carousel-content h2 {
        font-size: 3rem;
    }
}

.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-indicators button.active {
    background: var(--white);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: background 0.3s;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-control.prev {
    left: 1rem;
}

.carousel-control.next {
    right: 1rem;
}

.carousel-control-icon {
    display: block;
    width: 20px;
    height: 20px;
    border-top: 3px solid var(--white);
    border-right: 3px solid var(--white);
}

.carousel-control-icon.prev-icon {
    transform: rotate(-135deg);
    margin-left: 5px;
}

.carousel-control-icon.next-icon {
    transform: rotate(45deg);
    margin-right: 5px;
}

/* Sections */
section {
    padding: 3rem 0;
    transition: background-color 0.3s ease;
}

@media (min-width: 768px) {
    section {
        padding: 5rem 0;
    }
}

.title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    padding: 5rem 0 2.5rem;
}

.section-gray {
    background-color: var(--bg-secondary);
}

/* Alternating Section Colors */
section:nth-child(even) {
    background-color: var(--bg-primary);
}

section:nth-child(odd) {
    background-color: var(--bg-secondary);
}

.carousel-section {
    background-color: transparent !important;
}

.display-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .display-title {
        font-size: 3rem;
    }
}

.section-title-center {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

/* Features Grid */
.features-grid {
    padding: 3rem 0;
}

.feature-box {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-content p {
    color: var(--text-light);
}

/* Font Awesome icons are now used instead of emoji */

/* Image Gallery */
.image-gallery {
    padding: 3rem 0;
}

.gallery-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.gallery-col {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

/* Comparisons */
.comparisons {
    padding: 2rem 0;
}

.comparison-card {
    background: var(--card-bg);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid darkgray;
}

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

.comparison-card .card-header {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.comparison-card.card-highlighted .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
}

.comparison-card .card-body {
    padding: 2rem;
}

.comparison-card .card-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.comparison-card .card-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.comparison-card .card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-card .card-list li {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Timeline */
.timeline {
    padding: 1.5rem 0 3rem;
}

.timeline-container {
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    display: none;
}

[data-theme="light"] .timeline-container::before {
    background: #c0c4d0;
}

@media (min-width: 768px) {
    .timeline-container::before {
        display: block;
    }
}

.timeline-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    position: relative;
}

@media (min-width: 768px) {
    .timeline-row {
        flex-direction: row;
        gap: 2rem;
    }
    
    .timeline-row-reverse {
        flex-direction: row-reverse;
    }
}

.timeline-date {
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .timeline-date {
        width: calc(50% - 2rem);
        text-align: right;
    }
    
    .timeline-row-reverse .timeline-date {
        text-align: left;
    }
}

.timeline-date h3 {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

[data-theme="dark"] .timeline-date h3 {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(136, 157, 255, 0.3);
}

.timeline-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

@media (min-width: 768px) {
    .timeline-content {
        width: calc(50% - 2rem);
    }
}

.timeline-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .timeline-card {
    background: #1f2937;
    border: 1px solid #374151;
}

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

.timeline-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.timeline-card p {
    color: var(--text-light);
    margin: 0;
}

[data-theme="dark"] .timeline-card p {
    color: #d1d5db;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.timeline-row:hover .timeline-icon {
    transform: scale(1.15) rotate(360deg);
}

/* References */
.references {
    padding: 4.5rem;
}

.references-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.reference-col {
    flex: 0 0 auto;
    width: 150px;
    text-align: center;
}

.reference-img {
    max-width: 100%;
    height: auto;
    transition: all 0.3s;
}

/* Contact Section */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.contact-hero .display-title {
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-hero .lead {
    font-size: 1.25rem;
}

.contact-section {
    padding: 3rem 0;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

[data-theme="light"] .contact-form {
    background: var(--bg-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    transition: border-color 0.3s, background-color 0.3s;
    background-color: var(--bg-primary);
    color: var(--text-color);
}

[data-theme="light"] .form-control {
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
}

.form-submit {
    text-align: left;
    margin-top: 2rem;
}

.contact-info {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-details {
    list-style: none;
    padding: 0;
}

.contact-details li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
}

.contact-details i {
    margin-right: 0.5rem;
}

/* Footer */
footer {
    background: var(--header-bg);
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.footer-content {
    padding-top: 3.5rem;
}

.footer-logo-container {
    padding: 2rem 1.5rem;
}

.footer-copyright {
    background: var(--bg-secondary);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-light);
}

.contact-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    padding: 1rem 0;
}

.footer-logo-link {
    display: flex;
    justify-content: center;
}

.footer-logo-img {
    max-width: 150px;
    height: auto;
}

.footer-copyright {
    background: var(--bg-secondary);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-light);
}

.footer-copyright p {
    margin: 0;
}

/* Visually hidden — accessible to screen readers & crawlers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.pt-5 {
    padding-top: 3rem;
}

.pb-5 {
    padding-bottom: 3rem;
}

/* Contact Form States */
.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.form-message {
    margin-top: 1rem;
    padding: 0.875rem 1.25rem;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 991px) {
    .nav-actions {
        display: none;
    }
}

@media (max-width: 767px) {
    .gallery-col {
        min-width: 100%;
    }
    
    .reference-col {
        width: 120px;
    }
}
