/* === Geetva Tech - Modern & Professional CSS === */
/* --- 1. Theming, Root Variables & Fonts --- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #0d6efd; /* A vibrant blue */
  --primary-hover: #0a58ca;
  --dark-bg: #111827; /* Charcoal black */
  --light-bg: #f9fafb; /* Off-white */
  --text-dark: #1f2937;
  --text-light: #f9fafb;
  --text-muted: #6b7280;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
  --nav-height: 75px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -2px rgb(0 0 0 / 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- 2. Header, Navigation & Glassmorphism Effect --- */
/* ... (This section remains unchanged) ... */
header {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background-color 0.3s ease;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
}
nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
.nav-links a:hover {
  color: var(--primary-color);
}
.nav-links a:hover::after {
  width: 100%;
}
.hamburger {
  display: none;
  cursor: pointer;
}
.hamburger .line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}
@media (max-width: 800px) {
  nav {
    padding: 0 1.5rem;
  }
  .hamburger {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    height: calc(100vh - var(--nav-height));
    width: 70%;
    max-width: 320px;
    background-color: var(--dark-bg);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3rem;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.3s;
    opacity: 0;
    display: none; /*hidden overflow */
    will-change: transform, opacity;
  }
  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
    display: flex;
    animation: slideInNav 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  }

  @keyframes slideInNav {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  .nav-links a {
    color: var(--text-light);
  }
  .nav-links a:hover {
    color: var(--primary-color);
  }
  .hamburger.toggle .line {
    background-color: var(--text-dark);
  }
  .hamburger.toggle .line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .hamburger.toggle .line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.toggle .line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* --- 3. General Section & Content Styling --- */
/* ... (This section remains unchanged) ... */
main section {
  padding: 2.5rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-dark);
}
.loading-text {
  font-style: italic;
  color: var(--text-muted);
}
.cta-button {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  display: inline-block;
}
.cta-button:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* --- 4. Hero Section with Gradient Background --- */
/* ... (This section remains unchanged) ... */
#hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  overflow: hidden;
}
.hero-background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  transform: scale(1.1);
}
.hero-bg.active {
  opacity: 1;
}
#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(17, 24, 39, 0.8),
    rgba(13, 110, 253, 0.4)
  );
  z-index: -1;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}
.hero-content h1 {
  color: var(--text-light);
}
#hero-subheadline {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.9);
}
#dynamic-text {
  color: var(--primary-color);
  border-right: 3px solid var(--primary-color);
  animation: blink-caret 0.75s step-end infinite;
  min-height: 1.2em;
  display: inline-block;
}
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--primary-color);
  }
}

/* --- 5. Services Section --- */
/* ... (This section remains unchanged) ... */
.service-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  text-align: left;
}
.service-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}
.service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  background: #e7f0ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg {
  width: 60%;
  height: 60%;
}
.service-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 600;
}
.service-card p {
  color: var(--text-muted);
}
.learn-more-btn {
  margin-top: auto;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  transition: color 0.3s ease;
}
.learn-more-btn:hover {
  color: var(--primary-hover);
}

/* --- Add this new block to your style.css --- */

/* NEW Projects Section */
#projects {
  background-color: var(--white);
}

.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* medium size */
  gap: 1rem;
}

.project-card {
  background: var(--white);
  border-radius: 12px; /* match service-card */
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease; /* match service-card */
  max-width: 340px; /* medium width */
  margin: 0 auto;
  border: 1px solid var(--border-color); /* match service-card */
}

.project-card:hover {
  transform: translateY(-10px); /* match service-card */
  box-shadow: var(--shadow-lg); /* match service-card */
  border-color: var(--primary-color); /* match service-card */
}

.project-image {
  height: 160px; /* medium height */
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 1rem 1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h3 {
  margin-top: 0;
  font-size: 1.15rem;
  font-weight: 600; /* match service-card */
}

.project-content p {
  color: var(--text-muted); /* match service-card */
  flex-grow: 1;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.project-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.55rem 1.1rem;
  border-radius: 8px; /* match service-card */
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.2s ease;
  align-self: flex-start;
  font-size: 0.98rem;
}

.project-button:hover {
  background-color: var(--primary-hover);
}

/* 
=====================================================
--- 6. About & Reviews Sections (REVIEWS MODIFIED) ---
=====================================================
*/
#about {
  background-color: var(--white);
}
.about-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  text-align: left;
}
.about-image {
  flex: 1;
}
.about-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.about-content {
  flex: 1;
}
@media (max-width: 800px) {
  .about-container {
    flex-direction: column;
    gap: 2rem;
  }
}

/* Our Team Section */
#team {
  background-color: var(--gray-100); /* A slightly different background */
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-medium);
  max-width: 600px;
  margin: -1.5rem auto 3rem auto;
}

.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: 2rem 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: -4.5rem auto 1.5rem auto; /* Creates the overlap effect */
  position: relative;
  overflow: hidden;
  background-color: var(--medium-gray);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 1.4rem;
  color: var(--text-color);
}

.team-card p {
  margin: 0;
  color: var(--primary-color);
  font-weight: 500;
}

/* Tech Marquee Section */
#tech-marquee-section {
  background-color: var(--white);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

#tech-marquee-section h2 {
  margin-bottom: 3rem;
}

.marquee-container {
  display: flex;
  overflow: hidden;
  /* Optional: add a subtle fade effect at the edges */
  -webkit-mask-image: linear-gradient(
    to right,
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 20%,
    hsl(0 0% 0% / 1) 80%,
    hsl(0 0% 0% / 0)
  );
}

.marquee-content {
  display: flex;
  align-items: center;
  flex-shrink: 0; /* Prevents content from shrinking */
  gap: 5rem;
  padding: 1rem 0;
  animation: marquee-scroll 30s linear infinite;
  min-width: 100%; /* Important for the animation */
}

.tech-logo {
  height: 70px; /* You can adjust this value to make logos bigger or smaller */
  opacity: 0.85; /* Slight opacity makes it look clean, set to 1 for full color */
  transition: opacity 0.3s, transform 0.3s;
}

.tech-logo:hover {
  opacity: 1;
  transform: scale(
    1.1
  ); /* Adds a slight zoom effect on hover for interactivity */
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Pause animation on hover for better UX */
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* === START OF MODIFIED REVIEWS CSS === */

#reviews {
  background-color: var(
    --light-bg
  ); /* Use the main light background for this section */
}

.review-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--card-bg);
  padding: 2.5rem 2rem 2rem 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  text-align: left;
  position: relative;
  overflow: hidden; /* Important for the pseudo-element */
  border-top: 4px solid var(--primary-color); /* Modern accent border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* The large, decorative background quotation mark */
.review-card::before {
  content: "“";
  position: absolute;
  top: -15px;
  left: 10px;
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.05; /* Very faint */
  line-height: 1;
  z-index: 1;
}

/* Styles for the actual comment text */
.review-card p {
  font-style: italic;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2; /* Ensures text is on top of the background quote */
}

/* Styles for the client's name */
.review-card span {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* New styles for the star rating container */
.rating {
  margin-bottom: 0.5rem;
  color: #facc15; /* Golden yellow for stars */
  display: flex;
  gap: 4px;
  position: relative;
  z-index: 2;
}
.rating .star {
  display: inline-block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.rating .star.empty {
  color: var(--border-color); /* This class is still useful from your JS */
}

/* === END OF MODIFIED REVIEWS CSS === */

/* --- 7. Contact & Footer --- */
/* ... (This section remains unchanged) ... */
#contact {
  background: var(--dark-bg);
  color: var(--text-light);
}
#contact h2 {
  color: var(--text-light);
}
#contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#contact-form input,
#contact-form textarea {
  background: #1f2937;
  border: 1px solid #4b5563;
  color: var(--text-light);
  border-radius: 5px;
  padding: 0.8rem;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
}
#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: var(--text-muted);
}
#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}
#contact-form button {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#contact-form button:hover {
  background: var(--primary-hover);
}
#form-status {
  margin-top: 1rem;
  font-weight: 500;
  height: 20px;
}
/* Add to the end of style.css */

footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allows stacking on small screens */
  gap: 1rem;
}

footer .footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: text-decoration 0.2s;
}

footer .footer-links a:hover {
  text-decoration: underline;
}

footer .footer-links span {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  footer .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* === REVISED STICKY SOCIAL LINKS STYLES === */

.sticky-social-bar {
  position: fixed; /* This is the key property */
  top: 50%; /* Position it vertically in the middle */
  left: 0; /* Attach it to the left side of the screen */
  transform: translateY(-50%); /* This perfectly centers it vertically */
  z-index: 999; /* Ensure it's above most content but below modals/chat */

  background-color: rgba(
    255,
    255,
    255,
    0.9
  ); /* A semi-transparent white background */
  backdrop-filter: blur(5px); /* Frosted glass effect for modern browsers */
  -webkit-backdrop-filter: blur(5px);

  padding: 1rem 0.75rem;
  border-radius: 0 10px 10px 0; /* Rounded corners on the right side */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  display: flex;
  flex-direction: column; /* Stack icons vertically */
  gap: 1.5rem; /* Space between icons */
}

.social-icon-link {
  color: var(--gray-medium); /* A neutral icon color */
  transition: all 0.3s ease;
}

.social-icon-link:hover {
  color: var(--primary-color); /* Change to primary color on hover */
  transform: scale(1.2); /* Make the icon slightly larger on hover */
}

.social-icon-link svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* --- Responsive Adjustments for the Social Bar --- */
@media (max-width: 768px) {
  .sticky-social-bar {
    /* On mobile, un-stick it and move it to the bottom */
    position: static; /* Un-fix it */
    transform: none; /* Reset the transform */

    flex-direction: row; /* Lay out icons horizontally */
    justify-content: center; /* Center them */

    width: 100%;
    padding: 1rem 0;
    border-radius: 0;
    box-shadow: none;

    /* We will inject this into the footer area with JavaScript */
    display: none; /* Hide the bar itself */
  }
}
