/* --- Variables & Reset --- */
:root {
  --bg-main: #191d28;
  --bg-card: #020617;
  --bg-darker: #080618;
  --accent: #f0a93e;
  --accent-alt: #f3ae4b;
  --text-white: #ffffff;
  --text-black: #000009;
  --text-muted: #cccccc;
  --transition: 0.3s ease;
  --font-weight-h1: 600;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-white);
}

/* navbar */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 8%;
  background-color: var(--bg-darker);
}

.logo {
  font-size: 28px;
  font-weight: var(--font-weight-h1);
  color: var(--text-white);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--accent);
  z-index: 1001;
}

.nav-links {
  list-style-type: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: var(--font-weight-h1);
  letter-spacing: 1px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-white);
}
.nav-links a:hover {
  border-bottom: 2px solid var(--accent);
  font-size: 16px;
}

/* head hero-section  */
.hero-container {
  height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 0 8%;
  background-color: var(--bg-main);
}

.hero-text {
  max-width: 800px;
}

.welcome-msg {
  color: var(--accent);
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.hero-text h1 {
  font-size: 60px;
  font-weight: var(--font-weight-h1);
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 16px;
  color: var(--text-white);
  line-height: 1.6;
  margin-bottom: 35px;
}

.btn-contact {
  display: inline-block;
  background-color: var(--accent-alt);
  color: var(--text-black);
  padding: 12px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: var(--font-weight-h1);
  font-size: 15px;
  transition: var(--transition);
}

#contact {
  scroll-margin-top: 100px;
}

.btn-contact:hover {
  background-color: var(--text-white);
  transform: translateY(-3px);
}

/* about-section */

.about-section {
  padding: clamp(100px, 15vh, 200px) 8%;
  background-color: var(--bg-darker);
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.about-image {
  display: flex;
  flex: 1;
  justify-content: center;
}

.frame {
  width: 350px;
  height: 380px;
  border: 2px solid var(--accent);
  border-radius: 15px;
  position: relative;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.about-content {
  flex: 1.2;
}

.about-content h2 {
  font-size: 42px;
  font-weight: var(--font-weight-h1);
  margin-bottom: 25px;
}

.about-content h2 span {
  color: var(--accent);
}

.about-content p {
  color: var(--text-white);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 14px;
}

.btn-contact-small {
  display: inline-block;
  background-color: var(--accent-alt);
  color: var(--text-black);
  padding: 16px 14px;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  margin-top: 16px;
  transform: var(--transition);
}

.btn-contact-small:hover {
  background-color: var(--text-muted);
  color: var(--text-black);
}

/* services-sectio */

.services-section {
  padding: 150px 8%;
  background-color: var(--bg-main);
  text-align: left;
}

.section-header {
  max-width: 600px;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: var(--font-weight-h1);
  margin-bottom: 20px;
  color: var(--text-white);
  letter-spacing: -0.5px;
}

.section-header h2 span {
  color: var(--accent);
}

.section-header p {
  font-size: 14px;
  color: var(--text-white);
  line-height: 1.7;
  opacity: 0.9;
}

/* services-sectio grid layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--bg-card);
  padding: 50px 30px;
  border-radius: 10px;
  text-align: center;
  transition:
    var(--transition),
    var(--transition) box-shadow;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.icon-box {
  margin-bottom: 25px;
}

.icon-box img {
  width: 50px;
  filter: invert(85%) sepia(50%) saturate(1000%) hue-rotate(350deg);
}

.service-card h3 {
  font-size: 22px;
  font-weight: var(--font-weight-h1);
  color: var(--text-white);
  margin-bottom: 20px;
  line-height: 1.3;
}
.service-card h3 span {
  display: block;
  margin-top: 14px;
}

.service-card p {
  font-size: 14px;
  text-align: left;
  color: var(--text-white);
  line-height: 1.7;
  opacity: 0.9;
}

.icon-box i {
  color: var(--accent);
  -webkit-text-stroke: 1.5px #050510;
  transition: var(--transition);
  paint-order: stroke fill;
}

.service-card:hover .icon-box i {
  transform: scale(1.1);
  text-shadow: 0 0 12px rgba(249, 212, 35, 0.3);
}

/* portfolio-section */

.portfolio-section {
  padding: 100px 8%;
  background-color: var(--bg-darker);
}

.center-text {
  text-align: center;
  margin: 0 auto 60px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 600px;
}

.portfolio-item {
  overflow: hidden;
  border-radius: 20px;
}

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

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

.portfolio-item.large {
  grid-row: span 2;
}

.experience-section {
  padding: 100px 8%;
  background-color: var(--bg-main);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.exp-card {
  background-color: var(--bg-card);
  padding: 40px 30px;
  border-radius: 12px;
  transition: 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.exp-card:hover {
  transform: translateY(-5px);
  background-color: #0a0a1a;
}

.exp-card .date {
  display: block;
  color: var(--text-white);
  font-size: 14px;
  margin-bottom: 15px;
  opacity: 0.8;
}

.exp-card h3 {
  color: var(--accent);
  font-size: 24px;
  font-weight: var(--font-weight-h1);
  margin-bottom: 8px;
}

.exp-card .company {
  color: var(--text-white);
  font-size: 16px;
  font-weight: var(--font-weight-h1);
  margin-bottom: 20px;
}

.exp-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Contact Section Styles */

.contact-section {
  padding: 100px 8% 50px;
  background-color: var(--bg-darker);
}

.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 80px;
}

.contact-info {
  flex: 1;
}

.info-item {
  margin-bottom: 25px;
  color: var(--text-white);
  font-size: 14px;
}

.info-item span {
  color: var(--accent);
  font-weight: var(--font-weight-h1);
  margin-right: 10px;
}

.contact-form {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  background-color: #1a1f2e;
  border: none;
  padding: 15px 20px;
  color: var(--text-white);
  border-radius: 4px;
  font-family: inherit;
}

.contact-form button {
  width: fit-content;
  border: none;
  cursor: pointer;
}

/* main-footer */

.main-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 60px;
  text-align: center;
}

.main-footer .logo {
  margin-bottom: 20px;
}

.main-footer p {
  max-width: 500px;
  margin: 0 auto 30px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

.social-links i {
  color: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.social-links a.active-social i {
  color: #0a051a;
  background-color: var(--accent);
  border-radius: 4px;
  -webkit-text-stroke: 0;
  opacity: 1;
}

.social-links a.active-social i:hover {
  background-color: var(--accent-alt);
  transform: scale(1.1);
}

.social-links a:not(.active-social):hover i {
  color: var(--accent);
  opacity: 1;
  transform: scale(1.1);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
}

.visit-popup {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  text-align: center;
  transition: bottom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.visit-popup.show {
  bottom: 50px;
}

.popup-content i {
  color: #0077b5;
  font-size: 2rem;
  margin-bottom: 10px;
}

.popup-content h3 {
  margin-bottom: 10px;
  color: #222;
}

.popup-content p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.popup-content button {
  background: #0077b5;
  color: white;
  border: none;
  padding: 8px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

/* --- 1. TABLET & SMALL LAPTOPS (Max 992px) --- */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }
  .frame {
    width: 280px;
    height: 300px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }
  .portfolio-item.large {
    grid-column: span 2;
    height: 300px;
  }
}

/* --- 2. MOBILE PHONES (Max 768px) --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 75%;
    background-color: var(--bg-darker);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
    z-index: 1000;
  }
  .hero-text {
    font-size: 12px;
  }
  .nav-links.active {
    right: 0;
  }

  .about-content {
    text-align: left;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 15px;
  }

  .about-content p {
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.3px;
    text-align: left;
  }
  .nav-links a {
    font-size: 16px;
    width: 100%;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 28px;
    line-height: 1.6;
    white-space: normal;
  }

  .section-header {
    text-align: left;
    margin: 0 auto 50px;
  }

  .experience-grid,
  .contact-container {
    display: flex;
    flex-direction: column;
  }
  .contact-form {
    order: -1;
  }
  .visit-popup {
    width: 85%;
    padding: 20px;
  }
}

/* --- 3. EXTRA SMALL PHONES (Max 600px) --- */
@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    height: auto;
  }
  .portfolio-item.large {
    grid-column: span 1 !important;
    height: 250px;
  }
  .portfolio-item {
    height: 250px;
  }
}
