/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    line-height: 1.6;
    background-color: #fff;
    color: #333;
}

/* Hero Container */
.hero {
    position: relative;
    width: 97%;
    height: 97vh;
    min-height: 400px;
    aspect-ratio: 16 / 9;
    margin: auto;
    margin-top: 5px;
    border-radius: 50px;
    overflow: hidden;
    contain: layout style paint;
}

/* Hamburger styles */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #005a56;
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  top: 1.5rem;
  right: 2rem;
}


.nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
/* Nav Links */
.nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: #00a19b;
}

.nav li.active a {
    color: #007173;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 0.8;
}

/* Slider */
.slider {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 5;
}

.slider-dots span {
    width: 20vw;
    height: 5px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots .active {
    background: white;
}

.slider-dots span {
    position: relative;
    overflow: hidden;
}

.slider-dots span::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: white;
    border-radius: 20px;
    transform: scaleX(0);
    transform-origin: left;
    will-change: transform;
}

.slider-dots span.loading::after {
    animation: fillBar 5s linear forwards;
}

.slider-dots span.past {
    background: white; /* geçmiş slaytlar dolu beyaz */
    will-change: background-color;
}

@keyframes fillBar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
.slider-dots span.active {
    background: rgba(255,255,255,0.2); /* arka planı beyaz yapma! */
}
/* Overlay */
.overlay {
    position: absolute;
    bottom: 60px;
    left: 60px;
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    color: white;
    text-align: left;
    max-width: 600px;
    z-index: 5;
    background-color: #005a56;
    border-radius: 50px;
}

.overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.overlay p {
    font-size: 1rem;
    font-weight: 300;
    color: #e0e0e0;
}

/* About */
.about {
    padding: 4rem 2rem;
    background: #fff;
    display: flex;
    justify-content: center;
}

.about {
  padding: 5rem 3rem;
  background: #fff;
  display: flex;
  justify-content: center;
}

.about-content {
  max-width: 1400px;
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.about .text {
  flex: 1;
  min-width: 320px;
}

.about .section-title {
  color: #444;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.about .text h2 {
  font-size: 6rem;
  color: #005a56;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.about .text p {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: #444;
  max-width: 95%;
  font-weight: lighter;
}

.about .btn {
  background-color: #005a56;
  color: white;
  padding: 1rem 3rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 1rem;
  border: 2px solid transparent;
}

.about .btn:hover {
  background: white;
  color: #005a56;
  border-color: #005a56;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 5 / 4; /* optional: maintain shape */
  overflow: hidden;
  border-radius: 2rem; /* outer rounding */
}

.cut-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Create the inverted curve using ::after */
.image-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;       /* controls curve size */
  height: 100px;
  background: white;  /* same as page bg */
  border-radius: 0 50px 0 0;
  z-index: 2;
}

/* Button nested into the "cut" */
.hakkimizda-btn {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background-color: #005a56;
  color: white;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 2rem;
  text-decoration: none;
  z-index: 3;
}

.news-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    height: -webkit-fill-available;
    padding: 1.5vw;
}
/*Soltech Hero*/

.soltech-hero {
  width: 100%;
  padding-top: 6rem;
  padding-bottom: 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.soltech-hero h2 {
  font-size: 6.15vw;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.soltech-hero .primary {
  color: #005e5e;
}

.soltech-hero .secondary {
  color: rgba(0, 0, 0, 0.15);
}

/*Services*/
.services {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.services a {
  text-decoration: none;
  color: #005a56;
}
.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 30px;
  padding: 2rem;
  background-color: white;
  transition: background 0.3s ease;
  cursor: pointer;
}

.service-item.active {
  background-color: #f5f5f5;
}

.service-number {
  font-weight: bold;
  font-size: 1.2rem;
  color: #000;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.service-content {
  flex-grow: 1;
  margin-left: 8vw;
}

.service-content small {
  display: block;
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.2rem;
}

.service-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #111;
}

.service-icon {
  font-size: 1.8rem;
  color: #000;
  flex-shrink: 0;
}

.service-item:hover {
  background-color: #f0f0f0;
}

/* Sectors */

.sectors {
  padding: 4rem 2rem;
  margin: 0 auto;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.sector-card {
  background: #f5fbfb;
  border-radius: 24px;
  padding: 2.25rem 1.75rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border: 1px solid rgba(0, 90, 86, 0.08);
  box-shadow: 0 12px 28px rgba(0, 90, 86, 0.08);
}

.sector-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 90, 86, 0.16);
  background: #005a56;
}

.sector-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  width: 100%;
}

.sector-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sector-text small {
  color: #4b6462;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sector-text h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #1c2a29;
  margin: 0;
  line-height: 1.2;
}

.sector-card:hover .sector-text small,
.sector-card:hover .sector-text h3 {
  color: #ffffff;
}

.sector-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(0, 90, 86, 0.12);
  transition: transform 0.3s ease, background 0.3s ease;
}

.sector-card:hover .sector-icon {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.sector-icon i {
  font-size: 3rem;
  color: #005a56;
  transition: color 0.3s ease;
}

.sector-card:hover .sector-icon i {
  color: #ffffff;
}

.news-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4rem 2rem;
    gap: 3rem;
    flex-wrap: wrap;
}

.news-left {
    flex: 1;
    min-width: 260px;
    margin-left: 5vw;
}

.news-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.read-more {
    color: #005e5e;
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
}

.news-title .line {
    width: 4px;
    height: 40px;
    background-color: #006e6d;
    border-radius: 10px;
}

.news-title p {
    margin: 0;
    font-size: 2vw;
    color: #666;
}

.news-title h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}
.news-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.all-news-link {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.all-news-link i {
    margin-left: 5px;
    font-size: 0.85rem;
}

.news-right {
    flex: 3;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.news-card {
    background-color: #ddd;
    width: 15vw;
    height: 15vw;
    border-radius: 10px;
}

.projects-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem 2rem;
    gap: 3rem;
    background-color: #f9f9f9;
    border-radius: 30px;
    margin: 3rem auto;
    max-width: 1400px;
}

.projects-left {
    flex: 1;
    min-width: 260px;
    margin-left: 5vw;
}

.projects-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.projects-title .line {
    width: 4px;
    height: 40px;
    background-color: #005e5e;
    border-radius: 10px;
}

.projects-title p {
    margin: 0;
    font-size: 2vw;
    color: #666;
}

.projects-title h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #111;
}

.all-projects-link {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.all-projects-link i {
    margin-left: 5px;
    font-size: 0.85rem;
}

.all-projects-link:hover {
    color: #005e5e;
}

.projects-right {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    justify-content: flex-start;
}

.project-card-home {
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card-home:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.project-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 1rem 1.2rem;
}

.project-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111;
}

.read-more {
    color: #005e5e;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #007c7c;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .overlay{
    left: auto;
  }
  .nav {
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    padding: 1rem 2rem;
    border-radius: 0 0 12px 12px;
  }

  .nav.show {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .nav li {
    width: 100%;
  }

  .nav .dropdown {
    position: static;
    display: none;
    background-color: #222;
    margin-top: 0.5rem;
    border-radius: 8px;
    padding: 0.5rem 1rem;
  }

  .nav li:hover .dropdown {
    display: block;
  }

  .nav a {
    color: white;
    font-size: 1.1rem;
  }

  .dropdown a {
    font-size: 0.95rem;
  }

  .overlay h1 {
    font-size: 2rem;
  }

  .about-content {
      flex-direction: column;
  }

  .nav ul {
      flex-direction: column;
      padding: 1rem;
      position: absolute;
      right: 2rem;
      top: 80px;
      display: none;
  }

  .header {
      flex-direction: column;
      align-items: flex-start;
  }

  .service-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
  }

  .service-icon {
      align-self: flex-end;
  }

  .sectors {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
  }

  .sector-card {
    padding: 1.85rem 1.25rem;
    min-height: 190px;
  }

  .sector-icon {
    width: 72px;
    height: 72px;
  }

  .sector-icon i {
    font-size: 2.5rem;
  }

  .sector-text h3 {
    font-size: 1.6rem;
  }

  .news-left{
    margin: auto auto;
  }

  .news-right {
    justify-content: space-around;
  }

  .news-card {
    width: 35vw;
    font-size: 4vw;
    height: auto;
  }

  .news-card-title {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
    .projects-section {
      flex-direction: column;
      padding: 2rem 1rem;
    }

    .projects-left {
      margin: 0;
      text-align: center;
    }

    .projects-title {
      justify-content: center;
    }

    .projects-title p {
      font-size: 4vw;
    }

    .projects-title h2 {
      font-size: 1.6rem;
    }

    .projects-right {
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 1rem;
    }

    .project-card-home {
      border-radius: 15px;
    }

    .project-thumb img {
      height: 140px;
    }
}
