/* style.css */

/* ------------------- */
/* CSS Variables       */
/* ------------------- */
:root {
    /* Light Mode Colors */
    --primary-color-light: #c00000; /* A strong, professional red */
    --secondary-color-light: #222222; /* Dark grey for text */
    --background-color-light: #f4f4f4; /* Light grey background */
    --surface-color-light: #ffffff; /* White for cards and surfaces */
    --text-color-light: #333333;
    --border-color-light: #dddddd;

    /* Dark Mode Colors */
    --primary-color-dark: #ff4747; /* A brighter red for dark mode contrast */
    --secondary-color-dark: #f0f0f0; /* Light grey for text */
    --background-color-dark: #121212; /* True black background */
    --surface-color-dark: #1e1e1e; /* Off-black for cards */
    --text-color-dark: #e0e0e0;
    --border-color-dark: #444444;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    /* Transitions & Shadows */
    --transition-speed: 0.3s ease;
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

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

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
    width: 100%;
}

/* Theme-specific body styles */
body.light-mode {
    background-color: var(--background-color-light);
    color: var(--text-color-light);
}

body.dark-mode {
    background-color: var(--background-color-dark);
    color: var(--text-color-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 600;
}

a {
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

ul {
    list-style: none;
}

/* ------------------- */
/* Header & Navbar     */
/* ------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
    padding: 1rem 0;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
}

body.light-mode .header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
}

body.light-mode .header.scrolled {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
}

body.dark-mode .header {
    background-color: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(8px);
}

body.dark-mode .header.scrolled {
    background-color: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo img {
    height: 50px;
    width: auto;
    transition: transform 0.2s ease, filter 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    shape-rendering: geometricPrecision;
}

/* Brighten logo in dark mode */
body.dark-mode .nav-logo img {
    filter: brightness(2) contrast(1.1);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

body.light-mode .nav-link { color: var(--secondary-color-light); }
body.dark-mode .nav-link { color: var(--secondary-color-dark); }
body.light-mode .nav-link:hover { color: var(--primary-color-light); }
body.dark-mode .nav-link:hover { color: var(--primary-color-dark); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.3s ease;
}
body.light-mode .nav-link::after { background-color: var(--primary-color-light); }
body.dark-mode .nav-link::after { background-color: var(--primary-color-dark); }
.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Simple CTA Button */
.header-cta {
    background-color: var(--primary-color-light);
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
}

.header-cta:hover {
    background-color: #a00000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.3);
}

body.dark-mode .header-cta {
    background-color: var(--primary-color-dark);
}

body.dark-mode .header-cta:hover {
    background-color: #ff6363;
    box-shadow: 0 4px 12px rgba(255, 71, 71, 0.3);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.theme-switcher .fas {
    font-size: 1.2rem;
    transition: color var(--transition-speed);
}
body.light-mode .theme-switcher .fa-sun { color: var(--primary-color-light); }
body.dark-mode .theme-switcher .fa-moon { color: var(--primary-color-dark); }

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { display: none; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}
input:checked + .slider { background-color: var(--primary-color-light); }
body.dark-mode input:checked + .slider { background-color: var(--primary-color-dark); }
input:checked + .slider:before {
  transform: translateX(20px);
}
.slider.round { border-radius: 24px; }
.slider.round:before { border-radius: 50%; }

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}
body.light-mode .bar { background-color: var(--secondary-color-light); }
body.dark-mode .bar { background-color: var(--secondary-color-dark); }


/* ------------------- */
/* Hero Section        */
/* ------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
    background-image: url('domestic fence/photographic fence.jpg');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-features span {
    font-weight: 500;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}
.hero-features .fas {
    margin-right: 0.5rem;
    color: #ffc107;
}

/* ------------------- */
/* Buttons             */
/* ------------------- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    transition: all var(--transition-speed);
}

.btn-primary {
    background-color: var(--primary-color-light);
    color: white;
}
.btn-primary:hover {
    background-color: #a00000;
    transform: translateY(-3px);
}
body.dark-mode .btn-primary {
    background-color: var(--primary-color-dark);
}
body.dark-mode .btn-primary:hover {
    background-color: #ff6363;
}

.btn-secondary {
    border-color: var(--primary-color-light);
    color: var(--primary-color-light);
}
.btn-secondary:hover {
    background-color: var(--primary-color-light);
    color: white;
}
body.dark-mode .btn-secondary {
    border-color: var(--primary-color-dark);
    color: var(--primary-color-dark);
}
body.dark-mode .btn-secondary:hover {
    background-color: var(--primary-color-dark);
    color: var(--surface-color-dark);
}

/* ------------------- */
/* General Sections    */
/* ------------------- */
section {
    padding: 6rem 0;
}

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

.section-title h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    /* FIX: Increased margin-bottom for more space */
    margin-bottom: 1.5rem; 
    position: relative;
    display: inline-block;
    padding-bottom: 15px; /* Added padding to push subtitle down */
}
body.light-mode .section-title h2 { color: var(--secondary-color-light); }
body.dark-mode .section-title h2 { color: var(--secondary-color-dark); }

.section-title h2::after {
    content: '';
    position: absolute;
    /* FIX: Moved divider down to be under the new padding */
    bottom: 0; 
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
}
body.light-mode .section-title h2::after { background-color: var(--primary-color-light); }
body.dark-mode .section-title h2::after { background-color: var(--primary-color-dark); }

.section-title p {
    font-size: 1.1rem;
    color: #666;
}
body.dark-mode .section-title p {
    color: #aaa;
}

/* Angled Section Divider */
.services-section {
    position: relative;
    background-color: var(--surface-color-light);
}
body.dark-mode .services-section {
    background-color: var(--surface-color-dark);
}
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: inherit;
    transform: skewY(-2deg);
    transform-origin: top left;
    z-index: 0;
}
.services-section .container {
    position: relative;
    z-index: 1;
}

/* ------------------- */
/* About Section       */
/* ------------------- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}
body.dark-mode .about-image img {
    box-shadow: var(--shadow-dark);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
body.light-mode .about-text h3 { color: var(--primary-color-light); }
body.dark-mode .about-text h3 { color: var(--primary-color-dark); }

.about-text p {
    margin-bottom: 1rem;
}

.about-list {
    margin-top: 1.5rem;
}
.about-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
.about-list .fas {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}
body.light-mode .about-list .fas { color: var(--primary-color-light); }
body.dark-mode .about-list .fas { color: var(--primary-color-dark); }

/* ------------------- */
/* Services Section    */
/* ------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 10px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid var(--border-color-light);
}
body.light-mode .service-card {
    background-color: var(--background-color-light);
}
body.dark-mode .service-card {
    background-color: var(--background-color-dark);
    border-color: var(--border-color-dark);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-light);
}
body.dark-mode .service-card:hover {
    box-shadow: var(--shadow-dark);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
body.light-mode .service-icon { color: var(--primary-color-light); }
body.dark-mode .service-icon { color: var(--primary-color-dark); }

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

/* ------------------- */
/* Gallery Section     */
/* ------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '\f00e'; /* Font Awesome search-plus icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 2rem;
    background: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.gallery-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ------------------- */
/* Testimonials Section */
/* ------------------- */
.testimonials-section {
    background-color: var(--surface-color-light);
}
body.dark-mode .testimonials-section {
    background-color: var(--surface-color-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    border: 1px solid var(--border-color-light);
}
body.light-mode .testimonial-card {
    background-color: var(--background-color-light);
}
body.dark-mode .testimonial-card {
    background-color: var(--background-color-dark);
    border-color: var(--border-color-dark);
}

.testimonial-card .fa-quote-left {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 2.5rem;
    opacity: 0.08; /* Reduced opacity */
    z-index: 0; /* Ensures it's in the background */
}

.testimonial-card p {
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative; /* Add position context */
    z-index: 1; /* Ensures text is on top of the quote icon */
}

.testimonial-author {
    text-align: right;
}
.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}
body.light-mode .testimonial-author h4 { color: var(--primary-color-light); }
body.dark-mode .testimonial-author h4 { color: var(--primary-color-dark); }

.testimonial-author span {
    font-size: 0.9rem;
    color: #777;
}

/* Styling for the new trust heading section */
.trust-heading {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}
.trust-heading p {
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 550px;
    margin: 0 auto 1rem auto;
}
.trust-heading .stars {
    color: #ffc107;
    font-size: 1.3rem;
}

/* FIX: Trust Logos Section Styling */
.trust-logos-container {
    text-align: center;
    margin-top: 4rem;
}
.trust-logos-title {
    margin-bottom: 2rem;
    font-weight: 500;
    font-size: 1.1rem;
}
.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}
.trust-logo-item {
    transition: transform var(--transition-speed);
}
.trust-logo-item:hover {
    transform: translateY(-5px);
}
.trust-logo-item img {
    height: 60px; /* Increased logo size */
    max-width: 180px;
    object-fit: contain;
    filter: none; /* Removed grayscale */
    opacity: 1; /* Full opacity */
}
body.dark-mode .trust-logo-item img {
    /* Add a background for SVG/PNGs with transparent parts in dark mode */
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
}

.trust-logo-item.google-reviews {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid #ccc;
    color: #4285F4;
    background-color: #fff;
    border-color: #E0E0E0;
}
body.dark-mode .trust-logo-item.google-reviews {
    color: #fff;
    background-color: #4285F4;
    border-color: #4285F4;
}
.trust-logo-item.google-reviews .fab {
    font-size: 1.5rem;
}


/* ------------------- */
/* Contact Section     */
/* ------------------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    background-color: var(--surface-color-light);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}
body.dark-mode .contact-wrapper {
    background-color: var(--surface-color-dark);
    box-shadow: var(--shadow-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid var(--border-color-light);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}
body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background-color: var(--background-color-light);
    color: var(--text-color-light);
}
body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: #333;
    color: var(--text-color-dark);
    border-color: var(--border-color-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color-light);
    box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.2);
}
body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: var(--primary-color-dark);
    box-shadow: 0 0 0 3px rgba(255, 71, 71, 0.3);
}

#form-result {
    margin-top: 1rem;
    font-weight: 500;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.contact-info ul {
    list-style: none;
    margin: 1.5rem 0;
}
.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.contact-info li .fas {
    margin-right: 1rem;
    width: 20px;
}
body.light-mode .contact-info li .fas { color: var(--primary-color-light); }
body.dark-mode .contact-info li .fas { color: var(--primary-color-dark); }
.contact-info a {
    color: inherit;
}
.contact-info a:hover {
    text-decoration: underline;
}

.map-container {
    margin-top: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border-color-dark);
}

/* ------------------- */
/* Footer              */
/* ------------------- */
.footer {
    padding-top: 4rem;
}
body.light-mode .footer { background-color: var(--secondary-color-light); color: #ccc; }
body.dark-mode .footer { background-color: #000; color: #aaa; }

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
    background: white;
    padding: 5px;
    border-radius: 5px;
    transition: filter 0.3s ease;
}

/* Brighten footer logo in dark mode */
body.dark-mode .footer-logo {
    filter: brightness(2) contrast(1.1);
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: #ccc;
}
.footer-links a:hover {
    color: var(--primary-color-dark);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}
.footer-contact .fas {
    margin-right: 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid #444;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-icons a {
    color: #ccc;
    font-size: 1.5rem;
    margin-left: 1rem;
}
.social-icons a:hover {
    color: var(--primary-color-dark);
}
.social-icons a[aria-label="Instagram"] {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.social-icons a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.1);
}

/* ------------------- */
/* Utility Classes     */
/* ------------------- */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}
body.light-mode .scroll-to-top { background-color: var(--primary-color-light); }
body.dark-mode .scroll-to-top { background-color: var(--primary-color-dark); }
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ------------------- */
/* Responsive Design   */
/* ------------------- */
@media (max-width: 992px) {
    .about-content, .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Tablet and smaller - Switch to hamburger earlier */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        width: 280px;
        height: 100vh;
        text-align: left;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        gap: 0;
        padding: 100px 2rem 2rem;
        backdrop-filter: blur(20px);
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    body.light-mode .nav-menu { 
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
        border-left: 1px solid rgba(192, 0, 0, 0.1);
    }
    body.dark-mode .nav-menu { 
        background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.9) 100%);
        border-left: 1px solid rgba(255, 71, 71, 0.1);
    }

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

    .nav-item {
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    body.dark-mode .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1.2rem 1rem;
        border-radius: 0;
        display: block;
        width: 100%;
        font-weight: 500;
        position: relative;
        transition: all 0.3s ease;
        background: none !important;
        border: none !important;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 3px;
        height: 100%;
        transform: scaleY(0);
        transform-origin: center;
        transition: transform 0.3s ease;
    }
    
    body.light-mode .nav-link::before {
        background: var(--primary-color-light);
    }
    
    body.dark-mode .nav-link::before {
        background: var(--primary-color-dark);
    }

    .nav-link:hover::before {
        transform: scaleY(1);
    }

    body.light-mode .nav-link:hover {
        background: rgba(192, 0, 0, 0.05) !important;
        color: var(--primary-color-light);
    }

    body.dark-mode .nav-link:hover {
        background: rgba(255, 71, 71, 0.1) !important;
        color: var(--primary-color-dark);
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hide CTA button on smaller screens to save space */
    .header-cta {
        display: none;
    }
    
    /* Add overlay when menu is open */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: calc(100vw - 280px);
        height: 100vh;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
        backdrop-filter: blur(2px);
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    
    .nav-link {
        font-size: 1.1rem;
        min-width: 180px;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .contact-wrapper {
        padding: 2rem;
    }
}

/* FAQ Section Styles */
.faq-section {
    background: var(--background-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    background: var(--surface-color);
    border: none;
    width: 100%;
    text-align: left;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: var(--surface-color-light);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
    padding-right: 1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    background: var(--surface-color);
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 500px;
    opacity: 1;
}

.faq-answer p {
    margin: 0;
    color: var(--text-color-secondary);
    line-height: 1.6;
}

/* Dark mode FAQ styles */
.dark-mode .faq-item {
    border-color: var(--border-color);
    background: var(--surface-color);
}

.dark-mode .faq-question,
.dark-mode .faq-answer {
    background: var(--surface-color);
}

.dark-mode .faq-question:hover {
    background: var(--surface-color-light);
}

.dark-mode .faq-question h3 {
    color: var(--text-color);
}

.dark-mode .faq-answer p {
    color: var(--text-color-secondary);
}

/* Responsive FAQ styles */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        padding-right: 0.5rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }
}
