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

:root {
  /* Light Theme Colors */
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --background: #ffffff;
  --surface: #f8fafc;
  --border: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.1);

  /* Typography - Restored Google Fonts */
  --font-primary: "Poppins", sans-serif;
  --font-logo: "Orbitron", monospace; /* For main logo text, keep this */
  --font-signature: "Birthstone Bounce", cursive; /* For "V M C" logo text */

  /* Spacing */
  --container-padding: 2rem;
  --section-padding: 5rem 0;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

/* Dark Theme */
[data-theme="dark"] {
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --background: #111827;
  --surface: #1f2937;
  --border: #374151;
  --shadow: rgba(0, 0, 0, 0.3);
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  transition: var(--transition);
}

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

/* Navigation Styles */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background: rgba(17, 24, 39, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-signature); 
  font-weight: 700;
  font-size: 1.25rem;
  color: orange;
  position: relative;
  z-index: 1001;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

/* 1. Removed blurry background effect on navigation items */
.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: transparent; /* Removed the gradient */
  transition: left 0.5s;
}

.nav-link:hover::before {
  left: 100%;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1001;
}

.theme-toggle {
  background: none;
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition-fast);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  background: var(--surface);
}
[data-theme="dark"] .theme-toggle {
    background: var(--background);
}

.theme-toggle:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.theme-toggle i {
    font-size: 1.2rem;
}

/* 4. Corrected hamburger and theme toggle overlapping and added new styling */
.hamburger {
  display: none; /* Hidden on desktop, shown on mobile via media query */
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  z-index: 1000;

  /* New styles for size, border, and background */
  width: 40px;
  height: 40px;
  border: 2px solid gold; /* Gold border */
  border-radius: 8px; /* Slightly rounded corners */
  align-items: center; /* Center bars horizontally */
  justify-content: center; /* Center bars vertically */
  background: var(--surface); /* Match theme toggle background */
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow */
  transition: var(--transition-fast);
}
[data-theme="dark"] .hamburger {
    background: var(--background);
}

.hamburger:hover {
    border-color: var(--primary-color); /* Hover effect for border */
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


.bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -2;
    transform: translateZ(0);
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(30, 64, 175, 0.6));
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    color: white;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    padding-right: 2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
    transform: translateY(0); /* For parallax, keep this */
}

/* Corrected hero image sizing */
.hero-img {
    width: 100%; /* Make it fill its container */
    max-width: 600px; /* But don't let it grow too large on desktop */
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fbbf24;
    text-align: left;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    /* Added subtle text shadow for buttons */
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-2px);
}

.contact-icons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

.contact-icon:hover {
    background: white;
    color: #2563eb;
    transform: scale(1.1);
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* 3. Home image on mobile (portrait) */
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 5rem; /* More space for fixed header */
        padding-bottom: 5rem;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 2rem; /* Spacing below text */
        order: 1; /* Place text after image */
    }
    
    .hero-image {
        order: 0; /* Place image before text content */
        margin-bottom: 2rem; /* Spacing below image */
        width: 90%; /* Constrain width for better look */
        max-width: 400px; /* Ensure it doesn't get too big */
        margin-left: auto; /* Center image */
        margin-right: auto; /* Center image */
        transform: translateY(0) !important; /* Disable parallax on mobile */
    }
    
    .hero-img {
        width: 100%; /* Ensure it fills its new constrained parent */
        height: auto; /* Maintain aspect ratio */
        max-width: none; /* Override desktop max-width if it's too restrictive for new mobile width */
    }

    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-icons {
        justify-content: center;
    }
    
    .hero-description {
        text-align: center;
    }
}
/* Marquee Section */
.marquee-container {
  background: var(--primary-color);
  color: white;
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  /* Added some subtle shadow for depth */
  box-shadow: inset 0 5px 10px rgba(0,0,0,0.1), inset 0 -5px 10px rgba(0,0,0,0.1);
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--primary-color), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--primary-color), transparent);
}

.marquee {
  display: flex;
  animation: scroll 30s linear infinite;
}

.marquee-content {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Section Styles */
section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

/* Enhanced section title with a subtle underline effect */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: inline-block;
  position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.4s ease-out;
}
.section-header:hover .section-title::after {
    transform: scaleX(1);
}


.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about {
  background: var(--surface);
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.about-text p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--background);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(37, 99, 235, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.feature-card:hover::before {
  transform: translateX(100%);
}

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

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}
.feature-card:hover i {
    transform: scale(1.1);
    animation: iconPulse 0.8s infinite alternate;
}
@keyframes iconPulse {
    from { transform: scale(1.1); }
    to { transform: scale(1.2); }
}

.feature-card h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

.service-card {
  background: var(--background);
  border-radius: 15px;
  box-shadow: 0 5px 15px var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}
.service-card:hover {
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
    transform: translateY(-5px);
}


.service-img {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-header {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.service-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.3));
  transition: var(--transition);
  flex-shrink: 0;
}

.service-header:hover .service-icon {
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
  transform: scale(1.1);
}

.service-header h3 {
  flex: 1;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.expand-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.service-content {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.service-content.expanded {
  padding: 2rem;
  max-height: 1000px;
}

.service-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Service Item with new button */
.service-item {
  display: flex;
  align-items: center; /* Changed from flex-start to center for vertical alignment with button */
  justify-content: space-between; /* To push the button to the right */
  gap: 0.8rem; /* Adjusted gap to accommodate button */
  padding: 1rem;
  background: var(--surface);
  border-radius: 10px;
  transition: var(--transition-fast);
}

/* New: Wrapper for the text content within service-item */
.service-item-content-wrapper {
  flex-grow: 1; /* Allows this wrapper to take up available space */
  margin-right: 0.5rem; /* Small space before the button */
}

/* Adjust spacing for text within the new wrapper */
.service-item-content-wrapper h4 {
  margin-bottom: 0.25rem; /* Reduce bottom margin */
}

.service-item-content-wrapper p {
  margin: 0; /* Ensure no extra margin */
}

/* New: Style for the "Get Quote" buttons */
.btn-small {
  padding: 0.6rem 1.2rem; /* Smaller padding */
  font-size: 0.85rem; /* Smaller font size */
  border-radius: 25px; /* More rounded corners */
  flex-shrink: 0; /* Prevent the button from shrinking on small screens */
  white-space: nowrap; /* Keep button text on a single line */
  background: var(--accent-color); /* Use accent color for these buttons */
  color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.btn-small:hover {
  background: var(--secondary-color); /* Darker blue on hover */
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* Ensure icons maintain their size/color within new button */
.btn-small i {
    font-size: 0.9em; /* Adjust icon size relative to button text */
    margin-right: 0.4rem;
}

/* Dark theme adjustments for the new button */
[data-theme="dark"] .btn-small {
  background: var(--primary-color);
  box-shadow: 0 2px 5px rgba(255,255,255,0.05);
}
[data-theme="dark"] .btn-small:hover {
  background: var(--accent-color);
  box-shadow: 0 5px 10px rgba(255,255,255,0.1);
}

/* Testimonials Section */
.testimonials {
  background: var(--surface);
}

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

.testimonial-card {
  background: var(--background);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(37, 99, 235, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.testimonial-card:hover::before {
  transform: translateX(100%);
}

.testimonial-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px var(--shadow);
}

.testimonial-card:hover .stars i {
  animation: starGlow 0.5s ease-in-out;
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.stars i {
  color: #fbbf24;
  font-size: 1.2rem;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

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

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.testimonial-author h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.testimonial-author span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@keyframes starGlow {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

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

.contact-items {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  width: 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(5px);
  box-shadow: 0 5px 10px rgba(37, 99, 235, 0.2);
}

.contact-link i {
  font-size: 1.2rem;
  width: 20px;
}

.address {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.address h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--background);
  color: var(--text-primary);
  transition: var(--transition-fast);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), inset 0 1px 3px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: rgba(10, 10, 10, 0.8);
  font-weight: bold;
  padding: 3rem 0 1rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.footer-section p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(10, 10, 10, 0.8);
  font-weight: bold;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.back-to-top:hover {
  background: var(--secondary-color);
  transform: scale(1.1) rotate(360deg);
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  /* 2. Mobile navigation as a side menu */
  .nav-menu {
    position: fixed;
    right: -75%; /* Start off-screen to the right */
    top: 0; /* Align with top of viewport */
    flex-direction: column;
    background-color: var(--background);
    width: 75%; /* Take 75% of screen width */
    max-width: 300px; /* Optional: cap maximum width for larger mobiles */
    height: 100vh; /* Full viewport height */
    text-align: left; /* Align text within the side menu */
    transition: right 0.3s ease-in-out; /* Slide in/out animation */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1); /* Shadow for depth */
    padding: 70px 2rem 2rem; /* Padding to clear fixed navbar + general padding */
    border-left: 1px solid var(--border); /* A subtle border */
    gap: 1.5rem; /* Space out links more */
  }

  .nav-menu.active {
    right: 0; /* Slide in */
  }

  .nav-menu .nav-item {
    width: 100%; /* Make list items take full width */
  }

  .nav-menu .nav-link {
    display: block; /* Make links block level */
    padding: 0.75rem 0; /* Add padding for easier tapping */
    border-radius: 5px;
  }
  .nav-menu .nav-link::after {
      left: 50%;
      transform: translateX(-50%);
  }
  .nav-menu .nav-link:hover::after,
  .nav-menu .nav-link.active::after {
      width: 80%; /* Shorter underline for mobile links */
  }


  /* 4. Corrected hamburger and theme toggle overlapping */
  .hamburger {
    display: flex; /* Show hamburger on mobile */
  }
  /* On mobile, ensure theme toggle button is also visible and correctly spaced */
  .nav-controls {
      display: flex;
      align-items: center;
      gap: 1rem;
  }
  /* This ensures both elements within nav-controls are side-by-side */

  /* Media query to stack button on very small screens if necessary for service items */
  .service-item {
    flex-wrap: wrap; /* Allow items to wrap */
    justify-content: flex-start; /* Align to start when wrapped */
    gap: 0.5rem;
  }
  .service-item-content-wrapper {
    flex-basis: 100%; /* Text takes full width when wrapped */
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  .service-item .btn-small {
    width: 100%; /* Button takes full width when wrapped */
    text-align: center;
    justify-content: center; /* Center content within button */
    padding: 0.8rem 1.2rem;
  }


  /* Hero animations are managed by JS reveal */

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .container {
    padding: 0 1rem;
  }

  .section-title {
    font-size: 2rem;
  }
  .section-title::after {
      width: 40px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Selection color */
::selection {
  background: var(--primary-color);
  color: white;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Base styles for scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}