/* ========== ROOT VARIABLES ========== */
:root {
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --text: #101426;
  --muted: #5c6a82;
  --brand: #3b82f6;
  --brand-2: #06b6d4;
  --ring: #3b82f644;
  --shadow: 0 10px 24px rgba(16, 20, 38, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
}

/* ========== GENERAL ========== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1000px, 92%);
  margin: 0 auto;
}

.container-full {
  width: 80%;
  margin: 0 auto;
}

.section {
  padding: 130px 0;
}

.section h2 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  letter-spacing: 0.4px;
  margin: 0 0 100px;
  text-align: center;
}

.sub-text {
  color: var(--muted);
  margin: 4px 0 24px;
  font-size: 0.98rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== NAVIGATION ========== */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg-soft) 75%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 6px var(--ring);
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  opacity: 0.9;
  font-size: 0.98rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.nav-links a:hover {
  transform: scale(1.15);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #000;
  font-weight: 600;
}

#mobileToggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

/* ========== HERO / HEADER ========== */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 8%;
  min-height: 70vh;
  width: 95%;
  box-sizing: border-box;
}

.hero h1 {
  font-size: clamp(2.8rem, 2rem + 3vw, 4rem);
  margin: 14px 0 8px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: typing 1s steps(20, end) forwards, blink 0.7s infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent }
}

.hero h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 60ch;
}

.cta {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--text) 14%, transparent);
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg-soft) 40%, transparent), color-mix(in oklab, var(--bg-soft) 10%, transparent));
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.08s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
  font-weight: 700;
}

.btn[href="#contact"]:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 600;
}

.profile-img img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 1;
  animation: fadeIn 1s ease forwards 0.8s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.profile-img img:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

/* ========== SKILLS SECTION ========== */
.skills-header {
  text-align: center;
  margin-bottom: 100px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #6b7280;
  background: white;
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: none;
}

.skills-header h2 {
  font-size: clamp(2.2rem, 1.8rem + 1.5vw, 3rem);
  margin: 0;
  color: #111;
}

.skills-header p {
  color: #6b7280;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 12px auto 0;
  line-height: 1.6;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(100px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.skill-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  cursor: default;
  width: 100%;
}

.skill-card:hover {
  transform: translateY(-6px) scale(1.05);
  background-color: #f8f8f9;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  background: #f9fafb;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.icon-wrapper i,
.icon-wrapper img {
  font-size: 1.8rem;
  color: #374151;
}

.skill-card span {
  font-size: clamp(0.9rem, 1.1rem + 0.2vw, 1rem);
  color: #111;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

/* ========== SERVICES SECTION ========== */
.services-header {
  text-align: center;
  margin-bottom: 100px;
}

.services-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #6b7280;
  background: white;
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.services-header .badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a956f7;
  box-shadow: none;
}

.services-header h2 {
  font-size: clamp(2.8rem, 2.2rem + 1.5vw, 3.6rem);
  margin: 0;
  color: #111;
  font-weight: 700;
}

.services-header p {
  color: #6b7280;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 12px auto 0;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(350px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin: 40px auto 0;
}

.service-box {
  width: 100%;
  background: #fff;
  padding: 48px 32px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.service-box:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.service-box h3 {
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.3rem);
  margin-bottom: 16px;
}

.service-box p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.service-box .icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 18px;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.service-box:nth-child(1):hover {
  background-color: #fee49a;
}
.service-box:nth-child(1):hover .icon {
  transform: scale(1.2);
  filter: brightness(1.1);
}

.service-box:nth-child(2):hover {
  background-color: #8bccf4;
}
.service-box:nth-child(2):hover .icon {
  transform: scale(1.2);
  filter: brightness(1.1);
}

.service-box:nth-child(3):hover {
  background-color: #bccfe3;
}
.service-box:nth-child(3):hover .icon {
  transform: scale(1.2);
  filter: brightness(1.1);
}

/* ========== PROJECTS ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 85%;
  margin: 50px auto 0;
}

.projects-header {
  text-align: center;
  margin-bottom: 100px;
}

.prjects-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #6b7280;
  background: white;
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.projects-header .badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1dbd88;
  box-shadow: none;
}


.projects-header h2 {
  font-size: clamp(2.8rem, 2.2rem + 1.5vw, 3.6rem);
  margin: 0;
  color: #111;
  font-weight: 700;
}

.projects-header p {
  color: #6b7280;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 12px auto 0;
  line-height: 1.7;
}

.project-box {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-box:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.project-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-box:hover .project-image {
  transform: scale(1.15);
}

.project-content {
  padding: 20px;
  flex-grow: 1;
  color: #111;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #101426;
}

.project-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #5c6a82;
  margin-bottom: 16px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  background: #f0f0f0;
  color: #333;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

.tag:hover {
  background: #e0e0e0;
  cursor: pointer;
}

.project-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 12px;
}

.repo-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  background-color: #000;
  font-size: 0.9rem;
  text-decoration: none;
  font-style: italic;
  padding: 8px 14px;
  border-radius: 12px;
  transition: all 0.3s ease;
  margin-right: 8px;
}

.repo-link:hover {
  background-color: #000000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 57, 59, 0.3);
}

.demo-btn {
  background: #111;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.demo-btn:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========== CONTACT ========== */
#contact {
  width: 100%;
  padding: 50px 0;
  background: #f3f4f6;
}

#contact .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.left-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}

.contact-info-card {
  width: 100%;
  padding: 25px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.social-icons-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

.contact-info-card h2 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.social-icons-card h3 {
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.4rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.contact-item-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.contact-item-card:hover {
  transform: translateY(-4px);
}

.contact-item-card i {
  font-size: 1.2rem;
  padding: 14px;
  border-radius: 12px;
  color: #fff;
}

.contact-item-card h4 {
  margin: 0;
  font-size: 1rem;
  color: #555;
}

.contact-item-card p {
  margin: 4px 0 0;
  font-weight: 600;
  color: #111;
}

.social-icons-grid {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #f9f9f9;
  border-radius: 14px;
  color: #111;
  font-size: 1.4rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.social-icon-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

.social-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.social-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.social-box {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 15px;
  padding: 35px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.social-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: #eaeaea;
}

.social-box .icon {
  width: 65px;
  height: 65px;
  margin-bottom: 15px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.social-box h3 {
  margin: 8px 0;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
}

.social-box p {
  margin: 0;
  font-size: 1rem;
  color: #555;
  text-align: center;
  word-wrap: break-word;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-box.whatsapp:hover {
  background: #e7f7ed;
}
.social-box.whatsapp:hover .icon {
  transform: scale(1.15);
}


.social-box.telegram:hover {
  background:#eaf1fd;;
}
.social-box.telegram:hover .icon {
  transform: scale(1.15);
}


.social-box.email:hover {
  background: #f4eafc;
}
.social-box.email:hover .icon {
  transform: scale(1.15);
}

.social-box.email {
  grid-column: 1 / -1;
  margin-top: 16px;
  margin-bottom: 16px;
}

.social-box.whatsapp:hover .icon { transform: scale(1.15); }
.social-box.telegram:hover .icon { transform: scale(1.15); }
.social-box.email:hover .icon { transform: scale(1.15); }

.contact-header {
  text-align: center;
  margin-top: 100px;
  margin-bottom: 100px;
}

.connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fefefe;
  color: #52525b;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.connect-btn:hover {
  transform: translateY(-2px);
  background: #fefefe;
}

.dot.online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
}

.contact-header h2 {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  margin: 20px 0 10px;
  letter-spacing: 0.4px;
}

.contact-header .sub-text {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 60ch;
  margin: 0 auto;
}

.status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #22C55E;
  font-size: 0.95rem;
  margin-top: 8px;
  font-weight: 500;
}

/* ========== FOOTER ========== */
.footer {
  background: #fff;
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid #eee;
  margin-top: 60px;
}

.footer-content {
  max-width: 600px;
  margin: auto;
}

.footer-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111;
}

.footer-name a {
  display: inline-block;
  text-decoration: none;
  color: #111;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-name a:hover {
  transform: scale(1.03);
  color: #000;
}

.footer-role {
  color: #555;
  margin: 6px 0 20px;
  font-size: 1.1rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0 30px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #f9f9f9;
  border-radius: 12px;
  font-size: 1.3rem;
  color: #111;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
  text-decoration: none;
}

.footer-socials a:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

.footer-copy {
  font-size: 0.9rem;
  color: #666;
  margin-top: 15px;
}

.footer-made {
  font-size: 0.85rem;
  color: #777;
  margin-top: 6px;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 980px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .profile-img {
    margin-left: 0;
    margin-top: 30px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  #mobileToggle {
    display: block;
  }

  .hero {
    padding: 2rem 5%;
  }

  .profile-img img {
    width: 300px;
    height: 300px;
  }

  .cta {
    justify-content: center;
  }

  .projects-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .social-inner {
    grid-template-columns: 1fr;
  }

  .social-box.email {
    grid-column: auto;
  }

  .project-box {
    margin-bottom: 20px;
  }

  .project-image-wrapper {
    height: 180px;
  }

  .project-content h3 {
    font-size: 1.4rem;
  }

  .repo-link {
    font-size: 0.85rem;
    padding: 8px 14px;
  }
}