/*
 * AutoWorks - Premium Automotive Service Website
 * Custom Styles
 */

/* ===== Base Styles ===== */
:root {
    /* Dark Theme (Default) */
    --primary-bg: #121212;
    --secondary-bg: #1A1A1A;
    --accent-color: #D72638;
    --text-color: #CCCCCC;
    --heading-color: #FFFFFF;
    --muted-color: #999999;
    --border-color: #333333;
    --card-bg: #1A1A1A;
    --nav-bg: rgba(26, 26, 26, 0.95);
    --footer-bg: #1A1A1A;
    --input-bg: #2C2C2C;

    /* For Backwards Compatibility */
    --primary-black: #121212;
    --secondary-black: #1A1A1A;
    --accent-red: #D72638;
    --white: #FFFFFF;
    --gray: #999999;
    --light-gray: #CCCCCC;
    --dark-gray: #333333;
    
    /* Typography */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;
    
    /* Spacing */
    --section-spacing: 100px;
}

/* Light Theme */
[data-theme="light"] {
    --primary-bg: #FFFFFF;
    --secondary-bg: #F5F5F5;
    --accent-color: #D72638;
    --text-color: #333333;
    --heading-color: #121212;
    --muted-color: #666666;
    --border-color: #E0E0E0;
    --card-bg: #FFFFFF;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #F5F5F5;
    --input-bg: #F9F9F9;
    
    /* For Backwards Compatibility */
    --primary-black: #FFFFFF;
    --secondary-black: #F5F5F5;
    --white: #121212;
    --gray: #666666;
    --light-gray: #333333;
}

html, body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--primary-bg);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--heading-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-subtitle {
    font-family: var(--heading-font);
    color: var(--accent-red);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

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

a:hover {
    color: #ff3a4e;
}

/* ===== Buttons ===== */
.btn {
    font-family: var(--heading-font);
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.8rem 1.8rem;
    border-radius: 0;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
    background-color: #c0222f;
    border-color: #c0222f;
}

.btn-outline-primary {
    color: var(--accent-red);
    border-color: var(--accent-red);
}

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

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

.btn-light:hover {
    background-color: var(--light-gray);
    border-color: var(--light-gray);
    color: var(--primary-black);
}

.btn-outline-light {
    color: var(--white);
    border-color: var(--white);
}

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

/* ===== Theme Switch ===== */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: .4s;
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .theme-slider {
    background-color: var(--accent-color);
}

input:focus + .theme-slider {
    box-shadow: 0 0 1px var(--accent-color);
}

input:checked + .theme-slider:before {
    transform: translateX(24px);
}

.theme-slider.round {
    border-radius: 34px;
}

.theme-slider.round:before {
    border-radius: 50%;
}

.theme-label {
    margin-left: 8px;
    color: var(--text-color);
    font-size: 1rem;
}

/* ===== Navigation ===== */
.navbar {
    background-color: var(--nav-bg);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand span {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    margin-left: 0.5rem;
}

.logo {
    height: 40px;
    width: auto;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--light-gray);
    font-family: var(--heading-font);
    font-weight: 500;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--accent-red);
}

.nav-cta {
    margin-left: 1rem;
}

/* Navbar scroll effect */
.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== Hero Sections ===== */
.hero {
    height: 100vh;
    min-height: 700px;
    background-image: url('/images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: var(--section-spacing);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(18, 18, 18, 0.9) 30%, rgba(18, 18, 18, 0.7) 70%, rgba(18, 18, 18, 0.4) 100%);
    transition: background 0.3s ease;
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.98) 30%, rgba(255, 255, 255, 0.9) 70%, rgba(255, 255, 255, 0.8) 100%);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 0.25rem;
    animation: fadeInUp 1s ease-out;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6) !important;
    font-weight: 700 !important;
}

[data-theme="light"] .hero-title {
    color: black !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
    font-weight: 900 !important;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.hero-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
    color: var(--text-color);
}

.hero-cta {
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
}

/* Page-specific hero sections */
.about-hero,
.services-hero,
.contact-hero,
.terms-hero {
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--section-spacing);
}

.about-hero {
    background-image: url('/images/about-hero.svg');
}

.services-hero {
    background-image: url('/images/hero-bg.svg');
    background-position: bottom;
}

.contact-hero {
    background-image: url('/images/hero-bg.svg');
    background-position: center;
}

.terms-hero {
    background-image: url('/images/hero-bg.svg');
    background-position: top;
}

.about-hero-overlay,
.services-hero-overlay,
.contact-hero-overlay,
.terms-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.8);
    transition: background 0.3s ease;
}

[data-theme="light"] .about-hero-overlay,
[data-theme="light"] .services-hero-overlay,
[data-theme="light"] .contact-hero-overlay,
[data-theme="light"] .terms-hero-overlay {
    background: rgba(255, 255, 255, 0.8);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6) !important;
    font-weight: 700 !important;
}

[data-theme="light"] .page-title {
    color: black !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
    font-weight: 900 !important;
}

/* ===== Trusted Brands Section ===== */
.trusted-brands {
    background-color: var(--secondary-bg);
    padding: 3rem 0;
    margin-bottom: var(--section-spacing);
}

.brands-carousel {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.brands-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.brand-item {
    padding: 1.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-item:hover {
    opacity: 1;
}

.brand-svg {
    height: 40px;
    width: auto;
    fill: var(--light-gray);
}

/* ===== Reputation Section ===== */
.reputation {
    padding: 5rem 0;
    margin-bottom: var(--section-spacing);
}

.reputation-text {
    margin-bottom: 2rem;
}

.reputation-stats {
    display: flex;
    margin-bottom: 2rem;
}

.stat-item {
    margin-right: 2.5rem;
}

.stat-number {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-red);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--light-gray);
}

.reputation-cards {
    margin-top: 2rem;
}

.reputation-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    height: calc(100% - 1.5rem);
    transition: all 0.3s ease;
}

.reputation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.reputation-icon {
    font-size: 2rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.reputation-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ===== Services Section ===== */
.services-section {
    padding: 5rem 0;
    margin-bottom: var(--section-spacing);
    background-color: var(--secondary-bg);
}

.services-grid {
    margin-top: 3rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    height: calc(100% - 2rem);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background-color: var(--accent-red);
    transition: all 0.5s ease;
}

.service-card:hover:before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    margin-bottom: 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
}

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

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.service-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--accent-red);
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-link i {
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Services Page Specific Styles */
.services-content {
    padding: 2rem 0;
    margin-bottom: var(--section-spacing);
}

.services-sidebar {
    background-color: var(--secondary-black);
    padding: 2rem;
    border-radius: 5px;
    position: sticky;
    top: 100px;
}

.services-sidebar h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.services-nav {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.services-nav li {
    margin-bottom: 0.5rem;
}

.services-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--light-gray);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.services-nav a:hover,
.services-nav a.active {
    background-color: var(--primary-black);
    border-left-color: var(--accent-red);
    color: var(--white);
}

.sidebar-cta {
    background-color: var(--primary-black);
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
}

.sidebar-cta h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.service-category {
    margin-bottom: 4rem;
    padding-top: 1rem;
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.service-header .service-icon {
    margin-bottom: 0;
    margin-right: 1.5rem;
}

.service-title h2 {
    margin-bottom: 0.25rem;
}

.service-title p {
    margin-bottom: 0;
    color: var(--gray);
}

.service-items {
    margin-bottom: 2rem;
}

.service-item {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    height: calc(100% - 1.5rem);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.service-cta {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
    margin-top: 3rem;
}

.service-cta h3 {
    margin-bottom: 1rem;
}

/* ===== Call to Action Section ===== */
.cta-section {
    background-color: var(--accent-red);
    padding: 4rem 0;
    margin-bottom: var(--section-spacing);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 5rem 0;
    margin-bottom: var(--section-spacing);
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    height: calc(100% - 2rem);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-rating {
    color: var(--accent-red);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.author-info p {
    margin-bottom: 0;
    color: var(--gray);
}

/* ===== Team Section ===== */
.team-section {
    padding: 5rem 0;
    margin-bottom: var(--section-spacing);
}

.team-grid {
    margin-top: 3rem;
}

.team-member {
    background-color: var(--card-bg);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 2rem;
    height: calc(100% - 2rem);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.member-image {
    position: relative;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    transition: all 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.member-role {
    color: var(--accent-red);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.member-rating {
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.member-bio {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.member-social {
    display: flex;
}

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-black);
    color: var(--light-gray);
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.member-social a:hover {
    background-color: var(--accent-red);
    color: var(--white);
}

/* ===== Timeline Section ===== */
.timeline-section {
    padding: 5rem 0;
    margin-bottom: var(--section-spacing);
    background-color: var(--secondary-bg);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: var(--dark-gray);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 4rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 4rem;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-red);
    border-radius: 50%;
    top: 2.5rem;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    position: absolute;
    top: 2.2rem;
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--accent-red);
    font-size: 1.2rem;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -7rem;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -7rem;
}

.timeline-content {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 5px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin-bottom: 0;
}

/* ===== Contact Page ===== */
.contact-content {
    padding: 2rem 0;
    margin-bottom: var(--section-spacing);
}

.contact-form-container {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.contact-form-container h2,
.contact-info-container h2 {
    margin-bottom: 0.5rem;
}

.contact-form label {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    background-color: var(--primary-black);
    border: 1px solid var(--dark-gray);
    color: var(--white);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background-color: var(--primary-black);
    border-color: var(--accent-red);
    box-shadow: 0 0 0 0.25rem rgba(215, 38, 56, 0.25);
    color: var(--white);
}

.contact-form .form-check-label {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.contact-info-container {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 5px;
    height: 100%;
}

.contact-info-item {
    display: flex;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-red);
    margin-right: 1.5rem;
    min-width: 1.5rem;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0.5rem;
}

.day {
    color: var(--text-color);
}

.contact-social {
    margin-top: 2.5rem;
}

.contact-social h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-black);
    color: var(--light-gray);
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-red);
    color: var(--white);
}

.map-placeholder {
    background-color: var(--card-bg);
    height: 400px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-message {
    text-align: center;
}

.map-message i {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

/* ===== Terms Page ===== */
.terms-content {
    padding: 2rem 0;
    margin-bottom: var(--section-spacing);
}

.terms-document {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 5px;
}

.last-updated {
    margin-bottom: 2rem;
    color: var(--gray);
    font-style: italic;
}

.terms-section {
    margin-bottom: 2.5rem;
}

.terms-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.terms-section p {
    margin-bottom: 1rem;
}

.terms-section p strong {
    color: var(--text-color);
}

/* ===== 404 Error Page ===== */
.error-404 {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.error-content {
    text-align: center;
}

.error-icon {
    position: relative;
    margin-bottom: 2rem;
}

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

.error-code {
    font-size: 12rem;
    font-weight: 800;
    color: var(--accent-red);
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 20px rgba(215, 38, 56, 0.5);
}

.error-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.error-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.error-buttons {
    margin-top: 1.5rem;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--secondary-bg);
    padding: 5rem 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin: 0 0 0 0.5rem;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer h5 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
    color: var(--accent-red);
    padding-left: 5px;
}

.social-links {
    display: flex;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-black);
    border-radius: 50%;
    margin-right: 0.75rem;
    color: var(--light-gray);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-red);
    color: var(--white);
    transform: translateY(-5px);
}

.newsletter-form .input-group {
    border-radius: 0;
    overflow: hidden;
}

.newsletter-form .form-control {
    background-color: var(--primary-black);
    border: none;
    padding: 0.75rem 1rem;
    color: var(--white);
}

.newsletter-form .btn {
    padding: 0.75rem 1.25rem;
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 0.75rem;
    color: var(--accent-red);
    width: 16px;
}

.footer-divider {
    border-color: var(--dark-gray);
    margin: 3rem 0 2rem;
}

.bottom-footer {
    color: var(--gray);
    font-size: 0.9rem;
}

.bottom-footer a {
    color: var(--light-gray);
}

.bottom-footer a:hover {
    color: var(--accent-red);
}

/* ===== Modal Styles ===== */
.modal-content {
    background-color: var(--secondary-black);
    border: none;
    border-radius: 0;
}

.modal-header {
    border-bottom-color: var(--dark-gray);
}

.modal-header .modal-title {
    color: var(--white);
}

.modal-header .btn-close {
    color: var(--white);
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body {
    padding: 2rem;
}

.modal-body label {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.modal-body .form-control,
.modal-body .form-select {
    background-color: var(--primary-black);
    border: 1px solid var(--dark-gray);
    color: var(--white);
    padding: 0.75rem 1rem;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    background-color: var(--primary-black);
    border-color: var(--accent-red);
    box-shadow: 0 0 0 0.25rem rgba(215, 38, 56, 0.25);
    color: var(--white);
}

/* ===== Theme Adaptive Elements ===== */
.theme-adaptive-button {
    border-color: var(--white);
    color: var(--white);
}

[data-theme="light"] .theme-adaptive-button {
    border-color: var(--primary-black);
    color: var(--primary-black);
}

.theme-adaptive-button:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background-color: transparent;
}

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

/* ===== Media Queries ===== */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .timeline:before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 5rem;
        padding-right: 2rem;
    }
    
    .timeline-item:nth-child(odd) {
        text-align: left;
        padding-left: 5rem;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-dot {
        left: 21px !important;
    }
    
    .timeline-date {
        position: relative;
        top: 0;
        left: 0 !important;
        right: auto !important;
        margin-bottom: 1rem;
    }
}

@media (max-width: 991.98px) {
    :root {
        --section-spacing: 70px;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background-color: var(--secondary-bg);
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .nav-cta {
        margin: 1rem 0 0;
    }
    
    .reputation-stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        margin-bottom: 1.5rem;
        margin-right: 2rem;
    }
    
    .services-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-spacing: 50px;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .about-hero,
    .services-hero,
    .contact-hero,
    .terms-hero {
        min-height: 300px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .terms-document {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .service-meta {
        flex-direction: column;
    }
    
    .service-meta span {
        margin-bottom: 0.5rem;
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
    }
    
    .error-code {
        font-size: 8rem;
    }
    
    .contact-form-container,
    .contact-info-container {
        padding: 1.5rem;
    }
}
