:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --light: #f8f9fa;
  --dark: #002244;
  --white: #ffffff;
  --gray: #6c757d;
  --border-radius: 8px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  font-size: 16px;
  overflow-x: hidden;
}

/* HEADER & NAVIGATION */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

nav h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* HERO SECTION */
.hero-wrapper {
  overflow: hidden;
  width: 100%;
}

.hero {
  min-height: 70vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem;
  background-image: url('images/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  animation: fadeInUp 1s ease;
}

.hero-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.hero-text span {
  color: var(--primary);
  font-weight: 700;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* SECTIONS */
.section {
  padding: 4rem 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.section.light {
  background-color: var(--light);
  margin: 0;
  max-width: 100%;
  padding: 4rem 0;
}

.section h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--dark);
  position: relative;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
}

/* ABOUT SECTION */
.about-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.8;
}

.about-text {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 2rem;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.about-text:nth-child(2) { animation-delay: 0.2s; }
.about-text:nth-child(3) { animation-delay: 0.4s; }

.highlight {
  color: var(--primary);
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 0 1rem;
}

.card {
  background: var(--white);
  border: none;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.card:hover::before {
  background: rgba(0, 0, 0, 0.3);
}

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

.card h3 {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.card p {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  line-height: 1.4;
}

/* Background untuk setiap card */
#card1 {
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/olsop.jpg');
}

#card2 {
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/edit.jpg');
}

#card3 {
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/sosmed.jpg');
}

/* MARKETPLACE IMAGES */
.market-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.market-img:hover {
  transform: scale(1.05);
}

/* SKILLS */
.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin-top: 2rem;
  padding: 0 1rem;
}

.skills-list li {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
}

.skills-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  color: var(--primary);
}

/* CONTACT FORM */
form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

form input,
form textarea {
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

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

form button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* SOCIAL MEDIA LINKS */
.social-media-section {
  margin-top: 3rem;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  color: var(--dark);
  min-width: 120px;
}

.social-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.social-link img {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 50%;
  transition: var(--transition);
}

.social-link:hover img {
  transform: scale(1.1);
}

.social-link span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

/* FOOTER */
footer {
  background: linear-gradient(135deg, var(--dark) 0%, #001122 100%);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  font-weight: 500;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* RESPONSIVE DESIGN */

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
  .section {
    padding: 5rem 2rem;
  }
  
  .hero-text {
    padding: 3rem;
  }
  
  .cards {
    gap: 3rem;
  }
}

/* Desktop (1024px to 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  nav {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 3rem 1.5rem;
  }
  
  .section {
    padding: 3.5rem 1.5rem;
  }
}

/* Tablet (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-links {
    gap: 1.5rem;
  }
  
  .nav-links li a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .hero {
    padding: 2.5rem 1.5rem;
    min-height: 60vh;
    background-attachment: scroll;
  }
  
  .hero-text {
    padding: 2rem;
    max-width: 500px;
  }
  
  .hero-text h2 {
    font-size: 2.2rem;
  }
  
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .skills-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }
  
  .social-links {
    gap: 1.5rem;
  }
  
  form {
    max-width: 500px;
  }
}

/* Mobile Large (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  header {
    padding: 1rem 1.5rem;
  }
  
  nav {
    flex-direction: row;
  }
  
  nav h1 {
    font-size: 1.3rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .nav-links li a {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
    min-height: 50vh;
    background-attachment: scroll;
  }
  
  .hero-text {
    padding: 1.5rem;
    max-width: 100%;
    margin: 0;
  }
  
  .hero-text h2 {
    font-size: 1.8rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .section {
    padding: 2.5rem 1rem;
  }
  
  .cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }
  
  .card {
    height: 250px;
  }
  
  .skills-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .social-links {
    gap: 1rem;
  }
  
  .social-link {
    min-width: 100px;
    padding: 1rem;
  }
  
  form {
    max-width: 100%;
  }
  
  .about-text {
    text-align: center;
    font-size: 1rem;
  }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
  body {
    font-size: 14px;
  }
  
  header {
    padding: 0.8rem 1rem;
  }
  
  nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav h1 {
    font-size: 1.2rem;
  }
  
  .nav-links {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-links li a {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 0.5rem;
    min-height: 40vh;
    background-attachment: scroll;
  }
  
  .hero-text {
    padding: 1.2rem;
    max-width: 100%;
    margin: 0;
    border-radius: 15px;
  }
  
  .hero-text h2 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  
  .hero-text p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 25px;
  }
  
  .section {
    padding: 2rem 0.5rem;
  }
  
  .section h2 {
    font-size: 1.8rem;
  }
  
  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }
  
  .card {
    height: 220px;
    padding: 1.5rem;
  }
  
  .card h3 {
    font-size: 1.3rem;
  }
  
  .card p {
    font-size: 0.9rem;
  }
  
  .skills-list {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .skills-list li {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .social-links {
    gap: 0.8rem;
  }
  
  .social-link {
    min-width: 90px;
    padding: 1rem 0.5rem;
  }
  
  .social-link img {
    width: 35px;
    height: 35px;
  }
  
  .social-link span {
    font-size: 0.9rem;
  }
  
  form {
    gap: 1rem;
  }
  
  form input,
  form textarea {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  form button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .about-container {
    padding: 1rem;
  }
  
  .about-text {
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  footer {
    padding: 1.5rem 0.5rem;
    font-size: 0.9rem;
  }
}

/* Very Small Mobile (up to 320px) */
@media (max-width: 320px) {
  .nav-links li a {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  .hero-text h2 {
    font-size: 1.3rem;
  }
  
  .hero-text p {
    font-size: 0.8rem;
  }
  
  .card {
    height: 200px;
    padding: 1rem;
  }
  
  .card h3 {
    font-size: 1.2rem;
  }
  
  .card p {
    font-size: 0.8rem;
  }
}