/* ===== Global Variables ===== */
:root {
  --main-color: #10cab7;
  --secondary-color: #2c4755;
  --section-padding: 60px;
  --section-bg: #f6f6f6;
  --text-gray: #777;
  --light-gray: #ebeced;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Work Sans", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  padding: 0 15px;
  margin: 0 auto;
  width: 100%;
}

/* Responsive Container */
@media (min-width: 768px) {
  .container { width: 750px; }
}
@media (min-width: 992px) {
  .container { width: 970px; }
}
@media (min-width: 1200px) {
  .container { width: 1170px; }
}

/* ===== Components ===== */
.special-heading {
  color: #ebeced;
  font-size: 100px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -3px;
  margin: 0 0 20px;
}

.special-heading + p {
  margin: -30px 0 0;
  font-size: 20px;
  text-align: center;
  color: #797979;
}

@media (max-width: 767px) {
  .special-heading {
    font-size: 60px;
  }
  .special-heading + p {
    margin-top: -20px;
  }
}

/* ===== Header ===== */
header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  width: 60px;
}

header .links {
  position: relative;
}

header .links .icon {
  width: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  cursor: pointer;
}

header .links .icon span {
  background: #333;
  height: 3px;
  transition: 0.3s;
}

header .links .icon span:nth-child(1),
header .links .icon span:nth-child(3) {
  width: 100%;
}

header .links .icon span:nth-child(2) {
  width: 60%;
}

header .links:hover .icon span:nth-child(2) {
  width: 100%;
}

header .links ul {
  position: absolute;
  right: 0;
  top: 60px;
  min-width: 200px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: none;
  z-index: 100;
}

header .links:hover ul {
  display: block;
}

header .links ul::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 10px;
  border: 10px solid;
  border-color: transparent transparent white transparent;
}

header .links ul li a {
  display: block;
  padding: 15px 20px;
  color: #333;
  font-weight: 500;
  transition: 0.3s;
  border-bottom: 1px solid #eee;
}

header .links ul li:last-child a {
  border-bottom: none;
}

header .links ul li a:hover {
  padding-left: 30px;
  color: var(--main-color);
}

/* Mobile Menu */
@media (max-width: 767px) {
  header .links ul {
    right: 0;
    left: 0;
    width: 100%;
    top: 60px;
    border-radius: 0;
    box-shadow: none;
    background: #1e1e1e;
  }
  header .links ul li a {
    color: white;
    border-bottom: 1px solid #333;
  }
  header .links ul li a:hover {
    color: var(--main-color);
  }
  header .links ul::before {
    display: none;
  }
}

/* ===== Landing ===== */
.landing {
  position: relative;
  height: calc(100vh - 84px);
  overflow: hidden;
}

.landing img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.landing .intro-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 400px;
  color: white;
}

.landing .intro-text h1 {
  margin: 0;
  font-size: 50px;
  color: var(--main-color);
}

.landing .intro-text p {
  font-size: 19px;
  color: #ebeced;
}

@media (max-width: 767px) {
  .landing .intro-text h1 {
    font-size: 32px;
  }
  .landing .intro-text p {
    font-size: 16px;
  }
}

/* ===== Features ===== */
.features {
  padding: var(--section-padding) 0;
  background: var(--section-bg);
}

.features .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.features .feat {
  text-align: center;
  padding: 20px;
}

.features .feat i {
  color: var(--main-color);
  font-size: 45px;
}

.features .feat h3 {
  font-weight: 800;
  margin: 25px 0;
}

.features .feat p {
  color: var(--text-gray);
  font-size: 17px;
}

/* ===== Services ===== */
.services {
  padding: var(--section-padding) 0;
}

.services .services_content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 80px;
}

.services .srv {
  display: flex;
  margin-bottom: 40px;
  gap: 20px;
}

@media (max-width: 767px) {
  .services .srv {
    flex-direction: column;
    text-align: center;
  }
}

.services .srv i {
  color: var(--main-color);
  font-size: 35px;
  flex-shrink: 0;
}

.services .srv .text h3 {
  margin: 0 0 15px;
}

.services .srv .text p {
  color: #444;
  font-size: 15px;
}

.services .image {
  position: relative;
  text-align: center;
}

.services .image::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -20px;
  width: 100px;
  height: calc(100% + 80px);
  background: var(--secondary-color);
  z-index: -1;
}

@media (max-width: 1199px) {
  .image-content {
    display: none;
  }
}

/* ===== Portfolio ===== */
.portfolio {
  padding: var(--section-padding) 0;
  background: var(--section-bg);
}

.portfolio .portfolio_content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 80px;
}

.portfolio .card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.portfolio .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.portfolio .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio .card .info {
  padding: 20px;
}

.portfolio .card h3 {
  margin: 0 0 10px;
}

.portfolio .card p {
  color: var(--text-gray);
  font-size: 14px;
}

/* ===== About ===== */
.about {
  padding: var(--section-padding) 0;
}

.about .about_content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 80px;
  gap: 40px;
}

.about .image {
  position: relative;
  width: 250px;
  height: 375px;
  margin: 0 auto;
}

.about .image::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -20px;
  width: 100px;
  height: calc(100% + 80px);
  background: #ebeced;
  z-index: -1;
}

.about .image::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -150px;
  width: 120px;
  height: 300px;
  border-left: 80px solid var(--main-color);
  border-bottom: 80px solid var(--main-color);
  z-index: -1;
}

.about .text {
  flex: 1;
  min-width: 300px;
}

.about .text p:first-of-type {
  font-weight: bold;
  line-height: 2;
  margin-bottom: 50px;
}

.about .text hr {
  width: 50%;
  border-color: var(--main-color);
  margin: 30px 0;
}

.about .text p:last-of-type {
  color: var(--text-gray);
  line-height: 2;
}

@media (max-width: 991px) {
  .about .about_content {
    flex-direction: column;
    text-align: center;
  }
  .about .image::before,
  .about .image::after {
    display: none;
  }
  .about .text hr {
    margin: 30px auto;
  }
}

/* ===== Contact ===== */
.contact {
  padding: var(--section-padding) 0;
  background: var(--section-bg);
}

.contact .info {
  text-align: center;
  margin-top: 80px;
}

.contact .label {
  font-size: 35px;
  font-weight: 800;
  color: var(--secondary-color);
  letter-spacing: -1px;
  margin-bottom: 15px;
}

.contact .link {
  display: block;
  font-size: 35px;
  font-weight: 800;
  color: var(--main-color);
  margin: 15px 0;
}

.contact .social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  font-size: 16px;
  color: var(--secondary-color);
}

.contact .social i {
  font-size: 20px;
  transition: 0.3s;
}

.contact .social i:hover {
  color: var(--main-color);
  transform: scale(1.2);
}

@media (max-width: 767px) {
  .contact .label,
  .contact .link {
    font-size: 25px;
  }
}

/* ===== Footer ===== */
footer {
  background: var(--secondary-color);
  color: white;
  text-align: center;
  padding: 30px 10px;
  font-size: 18px;
}

footer span {
  color: var(--main-color);
  font-weight: bold;
}

footer p:last-child {
  margin-top: 10px;
  font-size: 16px;
  color: var(--main-color);
  font-weight: bold;
}

/* ===== Mobile Fixes ===== */
@media (max-width: 480px) {
  .special-heading {
    font-size: 50px;
  }
  .special-heading + p {
    font-size: 16px;
  }
  footer {
    font-size: 14px;
    padding: 20px 10px;
  }
}