/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== THEME ===== */
:root {
  --primary: #1a365d;
  --primary-dark: #0f2440;
  --primary-light: #ebf4ff;
  --primary-glow: rgba(26, 54, 93, 0.15);
  --black: #111111;
  --white: #ffffff;
  --gray: #6b7280;
  --light-gray: #f8f9fa;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
  transition: 0.3s;
}
nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.06); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo {
  font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--black), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--black);
  position: relative; transition: 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--primary);
  transition: 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  width: 26px; height: 2.5px; background: var(--black);
  border-radius: 4px; transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 60px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}
.hero::after {
  content: ''; position: absolute; bottom: -20%; left: -10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,54,93,0.08) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-block; padding: 6px 18px;
  background: var(--primary-light); color: var(--primary-dark);
  border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 18px; letter-spacing: 0.3px;
  animation: fadeInDown 0.8s ease;
}
.hero h1 {
  font-size: 3.2rem; font-weight: 800; line-height: 1.2;
  margin-bottom: 16px;
  animation: fadeInLeft 0.8s ease 0.1s both;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.typing-wrap {
  font-size: 1.3rem; font-weight: 500; color: var(--gray);
  margin-bottom: 24px; min-height: 2rem;
  animation: fadeInLeft 0.8s ease 0.2s both;
}
.typing-wrap .typed-text {
  color: var(--primary); font-weight: 600;
  border-right: 3px solid var(--primary);
  padding-right: 4px; animation: blink 0.8s step-end infinite;
}
@keyframes blink { 50% { border-color: transparent; } }
.hero p {
  font-size: 1.05rem; color: var(--gray); max-width: 520px;
  margin-bottom: 32px; line-height: 1.7;
  animation: fadeInLeft 0.8s ease 0.3s both;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeInLeft 0.8s ease 0.4s both; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; transition: 0.3s;
  border: none;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-3px); box-shadow: 0 8px 30px var(--primary-glow);
  background: var(--primary-dark);
}
.btn-outline {
  background: transparent; color: var(--black);
  border: 2px solid #e5e7eb;
}
.btn-outline:hover {
  border-color: var(--primary); color: var(--primary);
  transform: translateY(-3px);
}
.hero-image {
  display: flex; justify-content: center; align-items: center;
  position: relative;
  animation: fadeInRight 0.8s ease 0.2s both;
}
.hero-image .img-wrap {
  width: 380px; height: 380px; border-radius: 50%;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(26,54,93,0.2);
}
.hero-image .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-image .img-wrap:hover img {
  transform: scale(1.08);
}
.hero-image .img-wrap::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(26,54,93,0.3);
  animation: pulse-ring 2s ease-in-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.08); opacity: 0; }
}
.floating-badge {
  position: absolute; background: var(--white);
  padding: 12px 20px; border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 600;
  animation: floatBadge 5s ease-in-out infinite;
}
.floating-badge i { color: var(--primary); font-size: 1.2rem; }
.badge-1 { top: 20px; right: -10px; animation-delay: 0s; }
.badge-2 { bottom: 30px; left: -20px; animation-delay: 2s; }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(1deg); }
  75% { transform: translateY(8px) rotate(-1deg); }
}

/* ===== HERO ANIMATIONS ===== */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION COMMON ===== */
section { padding: 100px 0; }
.section-tag {
  display: inline-block; padding: 5px 16px;
  background: var(--primary-light); color: var(--primary-dark);
  border-radius: 50px; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.section-title {
  font-size: 2.4rem; font-weight: 800; margin-bottom: 14px;
}
.section-title span { color: var(--primary); }
.section-sub {
  color: var(--gray); font-size: 1.05rem; max-width: 560px;
  margin: 0 auto 50px; text-align: center;
}
.section-header { text-align: center; margin-bottom: 20px; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;
  align-items: center;
}
.about-image { position: relative; }
.about-image .img-main {
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}
.about-image .img-main img {
  width: 100%; height: 420px; object-fit: cover;
  transition: transform 0.6s ease;
}
.about-image .img-main:hover img { transform: scale(1.05); }
.about-image .exp-box {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--primary); color: #fff; padding: 20px 28px;
  border-radius: 20px; text-align: center;
  box-shadow: 0 10px 40px rgba(26,54,93,0.3);
  animation: pulse-ring 3s ease-in-out infinite;
}
.about-image .exp-box h3 { font-size: 2rem; font-weight: 800; }
.about-image .exp-box p { font-size: 0.85rem; opacity: 0.9; }
.about-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.about-text h2 span { color: var(--primary); }
.about-text p { color: var(--gray); margin-bottom: 16px; line-height: 1.7; }
.about-info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 24px 0;
}
.about-info .info-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem;
}
.about-info .info-item i { color: var(--primary); width: 20px; }
.about-info .info-item strong { font-weight: 600; }

/* ===== SKILLS ===== */
.skills { background: var(--light-gray); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}
.skill-card {
  background: var(--white); padding: 30px 20px; border-radius: 20px;
  text-align: center; transition: 0.4s; cursor: default;
  border: 1px solid rgba(0,0,0,0.04);
}
.skill-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(26,54,93,0.12);
  border-color: var(--primary);
}
.skill-card .icon {
  width: 60px; height: 60px; margin: 0 auto 16px;
  background: var(--primary-light); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--primary); transition: 0.3s;
}
.skill-card:hover .icon {
  background: var(--primary); color: #fff;
  transform: rotateY(180deg);
}
.skill-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.skill-label { font-size: 0.8rem; color: var(--gray); margin-bottom: 4px; }
.skill-card .bar {
  width: 100%; height: 6px; background: var(--light-gray);
  border-radius: 10px; overflow: hidden; margin-top: 12px;
}
.skill-card .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 10px; width: 0; transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white); padding: 36px 28px; border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.04); transition: 0.4s;
  position: relative; overflow: hidden; display: block;
  color: inherit; text-decoration: none; cursor: pointer;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 4px; background: var(--primary);
  transform: scaleX(0); transform-origin: left; transition: 0.4s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(26,54,93,0.1);
}
.service-card .icon {
  width: 56px; height: 56px; background: var(--primary-light);
  border-radius: 16px; display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; color: var(--primary);
  margin-bottom: 18px; transition: 0.3s;
}
.service-card:hover .icon {
  background: var(--primary); color: #fff;
  transform: scale(1.1) rotate(5deg);
}
.service-card h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; color: var(--gray); line-height: 1.7; }
.service-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-size: 0.85rem; font-weight: 600;
  color: var(--primary); transition: 0.3s;
}
.service-card:hover .service-cta { gap: 10px; }
.service-card:hover .service-cta i { transform: translateX(4px); }
.service-card .service-cta i { transition: 0.3s; }

/* ===== PORTFOLIO SWIPER ===== */
.portfolio { background: var(--light-gray); }
.swiper { padding: 10px 0 60px; }
.projectSwiper .swiper-slide {
  background: var(--white); border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: 0.4s; height: auto;
  transform: scale(0.92);
  opacity: 0.6;
  transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.4s;
}
.projectSwiper .swiper-slide-active {
  transform: scale(1);
  opacity: 1;
}
.projectSwiper .swiper-slide:hover {
  transform: scale(1.02) translateY(-6px);
  box-shadow: 0 16px 40px rgba(26,54,93,0.12);
}
.projectSwiper .swiper-slide img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform 0.6s ease;
}
.projectSwiper .swiper-slide:hover img {
  transform: scale(1.08);
}
.slide-content { padding: 24px; }
.slide-content h4 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 8px;
}
.slide-content p {
  font-size: 0.9rem; color: var(--gray); line-height: 1.6;
}
.slide-content .tag {
  display: inline-block; padding: 4px 12px;
  background: var(--primary-light); color: var(--primary-dark);
  border-radius: 50px; font-size: 0.75rem; font-weight: 600;
  margin-bottom: 10px;
}

/* ===== TESTIMONIALS SWIPER ===== */
.testimonial-slide {
  background: var(--white); border-radius: 20px; padding: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  text-align: center;
  transition: 0.4s;
}
.testimonial-slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26,54,93,0.12);
}
.testimonial-slide i.quote {
  font-size: 1.8rem; color: var(--primary); opacity: 0.3;
  margin-bottom: 12px; display: inline-block;
  animation: pulse-quote 2s ease-in-out infinite;
}
@keyframes pulse-quote {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 0.5; }
}
.testimonial-slide p {
  color: var(--gray); font-size: 0.95rem;
  line-height: 1.7; margin-bottom: 16px;
  font-style: italic;
}
.testimonial-slide h5 { font-weight: 700; font-size: 1rem; }
.testimonial-slide span { font-size: 0.85rem; color: var(--gray); }

/* ===== SWIPER CUSTOM ===== */
.swiper-pagination-bullet-active { background: var(--primary) !important; }
.swiper-button-next, .swiper-button-prev {
  color: var(--primary) !important;
  transition: 0.3s !important;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
  transform: scale(1.2) !important;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: 0.3s;
  animation: wa-bounce 2s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
  color: #fff;
}
.wa-tooltip {
  position: absolute;
  right: 70px;
  background: var(--black);
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid var(--black);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  right: 75px;
}

@keyframes wa-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
}
.contact-info h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.contact-info h3 span { color: var(--primary); }
.contact-info > p { color: var(--gray); margin-bottom: 28px; line-height: 1.7; }
.contact-detail {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 16px;
  background: var(--light-gray); margin-bottom: 14px;
  transition: 0.3s;
}
.contact-detail:hover {
  background: var(--primary-light); transform: translateX(6px);
}
.contact-detail .icon {
  width: 48px; height: 48px; background: var(--primary); color: #fff;
  border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact-detail .info h5 { font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.contact-detail .info p { font-size: 0.95rem; color: var(--gray); }
.contact-form {
  background: var(--white); padding: 36px; border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
}
.contact-form h4 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 18px; border: 2px solid #e5e7eb;
  border-radius: 12px; font-family: inherit; font-size: 0.95rem;
  transition: 0.3s; outline: none; background: var(--white);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow);
}
.form-group textarea { height: 130px; resize: vertical; }
.social-links {
  display: flex; gap: 12px; margin-top: 24px;
}
.social-links a {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--light-gray); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.15rem; color: var(--gray); transition: 0.3s;
}
.social-links a:hover {
  background: var(--primary); color: #fff;
  transform: translateY(-3px) rotate(8deg);
}

/* ===== FOOTER ===== */
footer {
  background: var(--black); color: rgba(255,255,255,0.7);
  padding: 50px 0 30px; text-align: center;
}
footer .logo { -webkit-text-fill-color: #fff; }
footer p { font-size: 0.9rem; margin-top: 16px; }
footer .heart { color: var(--primary); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto 32px; }
  .hero-btns { justify-content: center; }
  .hero-image .img-wrap { width: 300px; height: 300px; }
  .badge-1 { right: 10px; }
  .badge-2 { left: 0; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-info { justify-items: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column; padding: 24px 20px; gap: 20px;
    transform: translateY(-120%); transition: 0.4s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  }
  .nav-links.open { transform: translateY(0); }
  .hamburger { display: flex; }
  .hero { padding: 100px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .typing-wrap { font-size: 1.1rem; }
  .hero-image .img-wrap { width: 240px; height: 240px; }
  .section-title { font-size: 1.8rem; }
  .about-info { grid-template-columns: 1fr; }
  .floating-badge { display: none; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-card { padding: 24px 18px; }
  .btn { padding: 12px 24px; font-size: 0.85rem; }
  .contact-form { padding: 24px; }
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 16px; right: 16px; }
}
