* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
  scrollbar-width: thin;
  scrollbar-color: #38bdf8 #0f172a;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(#050b1a, #0a1430);
  color: white;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===================== NAVBAR ===================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8%;
  background: rgba(5, 11, 30, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-size: 26px;
  font-weight: bold;
  background: linear-gradient(90deg, #00f5ff, #007bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav a {
  color: #ccc;
  text-decoration: none;
  margin-left: 28px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(#1e90ff, #7f3cff);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover,
nav a.active {
  color: linear-gradient(#1e90ff, #7f3cff);
}

/* ===== SIDEBAR STYLES ===== */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    z-index: 1100;
    margin-top: -10vh;
    margin-left: 80vw;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 260px;
    height: 100vh;
    background: linear-gradient(145deg, #0B1E33 0%, #0A2A44 100%);
    border-left: 2px solid rgba(0, 191, 255, 0.2);
    z-index: 2000;
    padding: 100px 25px 30px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}

.sidebar.active {
    right: 0;
}

.close-sidebar {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    color: #00bfff;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: 0.3s;
}

.close-sidebar:hover {
    transform: rotate(90deg);
    color: #ff4d4d;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
}

.sidebar-nav a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active-sidebar {
    background: rgba(0, 191, 255, 0.1);
    border-left-color: #00bfff;
    color: #00bfff;
    transform: translateX(5px);
}

.sidebar-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 191, 255, 0.2);
}

.sidebar-socials a {
    color: #94a3b8;
    font-size: 22px;
    transition: 0.3s;
}

.sidebar-socials a:hover {
    color: #00bfff;
    transform: translateY(-3px);
}

body.no-scroll {
    overflow: hidden;
}
/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding-top: 120px;
  padding: 100px 8% 100px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

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

.hero-text h1 {
  font-size: 45px;
}

.hero-text span {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  background-clip: text;
  color: transparent;
}

.hero-text h2 {
  font-size: 36px;
  margin: 15px 0;
  color: #ddd;
}

.hero-text p {
  color: #bbb;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Buttons */
.buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

.primary {
  background: #1e90ff;
  border: none;
  color: white;
}

.primary:hover {
  transform: translateY(-3px);
}

.outline {
  background: transparent;
  border: 2px solid #1e90ff;
  color: #1e90ff;
}

.outline:hover {
  background: #1e90ff;
  color: white;
}

/* Social */
.socials {
  margin-top: 25px;
}
.socials a{
  text-decoration: none;
}

.socials i {
  margin-right: 12px;
  padding: 15px;
  border-radius: 10px;
  background: #0f1c3f;
  transition: 0.3s;
}


.socials i:hover {
  background: linear-gradient(#1e90ff, #7f3cff);
  box-shadow: 0 10px 50px rgba(59, 130, 246, 0.6);
  transform: scale(1.1) translateY(-3px);
}

/* Hero Right */
.hero-right {
  position: relative;
  width: clamp(280px, 35vw, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Code Window */
.code-window {
  position: relative;
  background: #111827;
  border-radius: 18px;
  border: 1px solid rgba(30, 144, 255, 0.2);
  box-shadow: 0 20px 60px rgba(30, 144, 255, 0.15);
  width: 100%;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Soft Hover Effect */
.code-window:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(30, 144, 255, 0.25);
  border: 1px solid #1e90ff;
}

/* Header */
.code-window-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(30, 144, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dots */
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f56;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.code-filename {
  margin-left: auto;
  font-size: 12px;
  color: #94a3b8;
  font-family: monospace;
}

/* Code Area */
.code-card {
  font-family: monospace;
  font-size: clamp(12px, 1.2vw, 16px);
  padding: 28px;
  color: #e2e8f0;
}

/* Syntax Theme Matching */
.key {
  color: #1e90ff;
}

.prop {
  color: #60a5fa;
}

.val {
  color: #a7f3d0;
}

.bool {
  color: #f472b6;
}

.indent {
  margin-left: 28px;
}

/* Line Animation */
.code-line {
  margin: 10px 0;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.6s ease forwards;
}

.code-line:nth-child(1) {
  animation-delay: 0.2s;
}

.code-line:nth-child(2) {
  animation-delay: 0.4s;
}

.code-line:nth-child(3) {
  animation-delay: 0.6s;
}

.code-line:nth-child(4) {
  animation-delay: 0.8s;
}

.code-line:nth-child(5) {
  animation-delay: 1s;
}

.code-line:nth-child(6) {
  animation-delay: 1.2s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section */
.about {
    
  padding: 100px 10vw;
  background: linear-gradient(#050b1a, #0a1430);
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 70px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #1e90ff;
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
}

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

/* ================= CLEAR IMAGE FIX ================= */
.about-img {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 50px;
}

.about-img::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 330px;
  background: rgba(30, 144, 255, 0.08);
  border-radius: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  transition: 0.4s ease;
}

.about-img img {
  width: 260px;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
  background:
    linear-gradient(#0a1430, #0a1430) padding-box,
    linear-gradient(45deg, #1e90ff, #7a5cff) border-box;
  border: 3px solid rgba(30, 144, 255, 0.2);
  box-shadow: 0 20px 60px rgba(30, 144, 255, 0.15);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  image-rendering: auto;
}

.about-img img:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(30, 144, 255, 0.25);
}

.about-content h3 {
  font-size: 26px;
  margin-bottom: 15px;
}

.about-content p {
  color: #bbb;
  line-height: 1.7;
  margin-bottom: 25px;
}

.about-info {
  display: flex;
  gap: 80px;
  margin-bottom: 30px;
}

.about-info p {
  margin-bottom: 10px;
  color: #ddd;
}

.about-buttons {
  display: flex;
  height: 50px;
  gap: 15px;
}

/* ===================== SKILLS SECTION ===================== */
.skills {
  padding: clamp(60px, 8vw, 120px) clamp(20px, 8%, 120px);
  background: linear-gradient(#050b1a, #0a1430);
}

.skills-subtitle {
  text-align: center;
  color: #9aa3b2;
  margin-top: 10px;
  margin-bottom: 60px;
  font-size: clamp(13px, 1.2vw, 16px);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-category-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px;
  transition: all 0.3s ease;
}

.skill-category-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
  transform: translateY(-4px);
}

.skill-category-card h3 {
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 13px;
  font-size: clamp(11px, 1vw, 14px);
  color: #ccd;
  transition: 0.25s;
  cursor: default;
}

.skill-tag:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
}

.skill-tag i {
  font-size: 15px;
}

/* =========================
   PROJECTS SECTION
   ========================= */
.projects {
  padding: 60px 8%;
  text-align: center;
}

.projects h2 {
  font-size: 2.6rem;
  margin-bottom: 35px;
}

.projects h2 span {
  color: #38bdf8;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Card */
.project-card {
  background: linear-gradient(180deg, #0f172a, #020617);
  border-radius: 16px;
  overflow: hidden;
  transition: 0.4s ease;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.35);
}

/* Image */
.project-image {
  position: relative;
  height: 170px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%; 
  object-fit: contain;
  transform: scale(1.1);
  transition: 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.25);
}

/* Featured badge */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #1a75ec;
  color: #fff;
  font-size: 12px;
  font-weight: bolder;
  padding: 3px 10px;
  border-radius: 8px;
  z-index: 2;
}

/* Overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* Buttons */
.demo-btn {
  background: #fff;
  color: #2563eb;
  padding: 4px 14px;
  border: 1px solid #2563eb;
  border-radius: 30px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.arrow-btn {
  text-decoration: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-btn:hover {
  background: #fff;
  border-color: #fff;
  color: #2563eb;
}

/* Content */
.project-content {
  padding: 16px 18px;
  text-align: left;
}

.project-content h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 6px;
}

.project-content p {
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 12px;
  overflow: hidden;
}

/* Tags */
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tags span {
  background: #0b1220;
  color: #38bdf8;
  padding: 3px 9px;
  font-size: 11px;
  border-radius: 6px;
}

/* View More Button */
.view-more-container {
  margin-top: -30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 36px;
  border-radius: 30px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  /* box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3); */
  transition: 0.4s ease;
  letter-spacing: 0.03em;
}

.view-more-btn i {
  transition: transform 0.3s ease;
}

.view-more-btn:hover {
  background: linear-gradient(135deg, #1a4fd6, #0ea5e9);
  transform: translateY(-3px);
  box-shadow: 0 0px 20px rgba(56, 189, 248, 0.5);
  color: #fff;
}

.view-more-btn:hover i {
  transform: translateX(5px);
}

/* achievements */
.achievements {
  padding: 80px 8%;
  text-align: center;
}

.achievements h1 {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.achievements h1 span {
  color: #38bdf8;
}

.subtitle {
  color: #94a3b8;
  margin-bottom: 50px;
  font-size: 1rem;
}

/* Certificates Grid */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* Certificate Card */
.certificate-card {
  background: #121e3a;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  overflow: hidden;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  cursor: pointer;
}

.certificate-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.35);
}

/* Image container with overlay */
.certificate-img {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.certificate-img img {
  width: 100%;
  filter: blur(3px);
  transition: all 0.4s ease;
}

/* Button overlay */
.certificate-img .view-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  background: rgba(30, 144, 255, 0.8);
  padding: 5px 10px;
  border-radius: 10px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

/* Button hover */
.certificate-img .view-btn:hover {
  background: #1e90ff;
  opacity: 1;
}

/* Card text */
.certificate-card h3 {
  font-size: 20px;
  margin: 15px 0 5px;
  color: #fff;
}

.certificate-card .issuer {
  font-size: 14px;
  color: #bbb;
}

.certificate-card .date {
  font-size: 13px;
  color: #888;
}

/* -------------------------------------- */
/* Contact Section */
/* -------------------------------------- */
.contact {
  padding: 80px 8%;
}

.contact h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 60px;
}

.contact h2 span {
  color: #38bdf8;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* LEFT SIDE */
.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.contact-info p {
  color: #94a3b8;
  margin-bottom: 30px;
  line-height: 1.6;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.info-item i {
  width: 45px;
  height: 45px;
  background: #0b1220;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
}

.info-item i:hover {
  transform: translateY(-5px);
  color: white;
  background: linear-gradient(#38bdf8, #6366f1);
  box-shadow:
    0 20px 50px #38bdf8,
    #6366f1;
}

.info-item h4 {
  font-size: 0.95rem;
}

.info-item span {
  font-size: 0.85rem;
  color: #94a3b8;
}

.follow {
  margin-left: 4vw;
  margin-top: 30px;
  margin-bottom: 15px;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 40px;
  height: 40px;
  background: #0b1220;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  transition: 0.3s;
}

.socials a:hover {
  background: #38bdf8;
  color: #020617;
}

/* RIGHT SIDE */
.contact-form-container {
  background: #0b1220;
  padding: 40px;
  border-radius: 12px;
  transition: 0.3s;
}

.contact-form-container:hover {
  box-shadow: 0 0 40px rgba(30, 144, 255, 0.4);
}

.contact-form h3 {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #0b1220;
  border: 1px solid #1e293b;
  padding: 12px 15px;
  border-radius: 8px;
  color: white;
  margin-bottom: 15px;
  box-shadow: 0 0 5px #282828;
}

.contact-form textarea {
  resize: none;
  height: 140px;
}

.row {
  display: flex;
  gap: 15px;
}

.contact-form button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  color: white;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-form button:hover {
  opacity: 0.9;
  box-shadow: 0 0 40px rgba(30, 144, 255, 0.4);
}

.map {
  position: relative;
}

.map-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(2, 6, 23, 0.85);
  color: #38bdf8;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  z-index: 10;
  transition: 0.3s ease;
}

.map:hover .map-overlay {
  transform: scale(1.05) translateY(-3px);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #0b1220, #020617);
  color: #e5e7eb;
  padding: 60px 8% 40px;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-box h3 {
  color: #38bdf8;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-box p,
.footer-box li {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-box ul {
  list-style: none;
  padding: 0;
}

.footer-box ul li a {
  text-decoration: none;
  color: #94a3b8;
  transition: 0.3s;
}

.footer-box ul li a:hover {
  color: #38bdf8;
}

/* Social Icons */
.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  text-decoration: none;
  width: 40px;
  height: 40px;
  background: #0b1220;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #e5e7eb;
  transition: 0.3s;
}

.footer-socials a:hover {
  background: linear-gradient(#1e90ff, #7f3cff);
  box-shadow: 0 10px 50px rgba(59, 130, 246, 0.6);
  transform: scale(1.1) translateY(-3px);
  color: #fff;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid #1e293b;
  padding-top: 15px;
  color: #94a3b8;
}

/* Scroll Buttons */
.scroll-buttons {
  position: fixed;
  right: 20px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.scroll-buttons a {
  background: #0b1220;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
  transition: 0.3s;
}

.scroll-buttons a:hover {
  transform: translateY(-3px);
  background: #38bdf8;
  color: #020617;
}

/* ===================== RESPONSIVE MEDIA QUERIES ===================== */
/* Tablet (768px - 1023px) */
@media screen and (max-width: 900px) {
  .about {
    padding: 70px 40px;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-info {
    flex-direction: column;
    gap: 20px;
    justify-content: center;
  }

  .about-buttons {
    justify-content: center;
  }

  .skills {
    padding: 70px 40px;
  }

  .skills-wrapper {
    flex-direction: column;
    gap: 50px;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* Tablet (768px - 1023px) - Extended */
@media screen and (max-width: 1023px) {
  header {
    padding: 15px 5%;
  }

  .logo {
    font-size: 22px;
  }

  nav a {
    margin-left: 15px;
    font-size: 12px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 100px 5% 80px;
    gap: 50px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 38px;
  }

  .hero-text h2 {
    font-size: 28px;
  }

  .buttons {
    justify-content: center;
  }

  .socials {
    display: flex;
    justify-content: center;
  }

  .hero-right {
    width: 80%;
    max-width: 450px;
  }

  .about-img {
    margin-left: 0;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .project-image {
    height: 200px;
  }

  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }

  .certificate-card {
    max-width: 280px;
  }

  .row {
    flex-direction: column;
    gap: 0;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Phone (376px - 767px) */
@media screen and (max-width: 767px) {
  @media screen and (max-width: 767px) {
    header {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      padding: 12px 5%;
    }

    .logo {
      font-size: 20px;
      margin: 0;
    }

    nav {
      display: none;
    }

    .hamburger {
      display: block;
      font-size: 24px;
      margin: 0;
    }
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  nav a {
    margin-left: 0;
    font-size: 11px;
    padding: 5px 8px;
  }

  .hamburger {
    display: block;
  }

  header nav {
    display: none;
  }

  .hero {
    padding: 120px 4% 60px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text h2 {
    font-size: 24px;
  }

  .hero-text p {
    font-size: 14px;
  }

  /* .buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    } */

  .btn {
    width: 100%;
    max-width: 200px;
    text-align: center;
    padding: 8px 15px;
    font-size: 14px;
  }

  .socials i {
    padding: 10px;
    font-size: 14px;
    margin-right: 8px;
  }

  .hero-right {
    width: 100%;
  }

  .code-card {
    padding: 20px;
    font-size: 11px;
  }

  .code-line.indent {
    margin-left: 15px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .about {
    padding: 60px 4%;
  }

  .about-img img {
    width: 200px;
    max-height: 230px;
  }

  .about-img::before {
    width: 220px;
    height: 250px;
  }

  .about-content h3 {
    font-size: 22px;
    text-align: center;
  }

  .about-content p {
    font-size: 14px;
    text-align: center;
  }

  .skills {
    padding: 60px 4%;
  }

  .skills-subtitle {
    font-size: 13px;
    margin-bottom: 30px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .skill-category-card {
    padding: 20px;
  }

  .skill-category-card h3 {
    font-size: 16px;
  }

  .skill-tag {
    padding: 5px 10px;
    font-size: 11px;
  }

  .projects {
    padding: 60px 4%;
  }

  .projects h2 {
    font-size: 28px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .project-image {
    height: 180px;
  }

  .project-content {
    padding: 20px;
  }

  .project-content h3 {
    font-size: 18px;
  }

  .project-content p {
    font-size: 13px;
  }

  .badge {
    font-size: 12px;
    padding: 3px 12px;
  }

  .demo-btn {
    padding: 4px 15px;
    font-size: 13px;
  }

  .arrow-btn {
    width: 36px;
    height: 36px;
  }

  .tags span {
    padding: 4px 8px;
    font-size: 10px;
  }

  .view-more-btn {
    font-size: 14px;
  }

  .achievements {
    padding: 60px 4%;
  }

  .achievements h1 {
    font-size: 28px;
  }

  .subtitle {
    font-size: 13px;
    margin-bottom: 30px;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .certificate-card {
    max-width: 260px;
  }

  .certificate-card h3 {
    font-size: 18px;
  }

  .contact {
    padding: 60px 4%;
  }

  .contact h2 {
    font-size: 28px;
  }

  .contact-form-container {
    padding: 25px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 10px 12px;
    font-size: 13px;
  }

  .contact-form button {
    padding: 12px;
    font-size: 14px;
  }

  .info-item i {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .follow {
    margin-left: 0;
    text-align: center;
  }

  .socials {
    justify-content: center;
  }

  .footer {
    padding: 40px 4% 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .scroll-buttons {
    right: 10px;
    bottom: 80px;
  }

  .scroll-buttons a {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

/* Small Phone / Foldable (280px - 375px) */
@media screen and (max-width: 375px) {
  header {
    padding: 10px 3%;
  }

  .logo {
    font-size: 18px;
    margin: 0;
  }

  nav a {
    font-size: 9px;
    padding: 4px 5px;
  }

  .sidebar {
    width: 220px;
    right: -240px;
  }

  .sidebar-nav a {
    font-size: 1.1rem;
    padding: 10px 15px;
  }

  .hero {
    padding: 100px 3% 50px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-text h2 {
    font-size: 20px;
  }

  .hero-text p {
    font-size: 12px;
  }

  .btn {
    max-width: 160px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .socials i {
    padding: 8px;
    font-size: 12px;
    margin-right: 5px;
  }

  .code-window-header {
    padding: 10px 15px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .code-filename {
    font-size: 9px;
  }

  .code-card {
    padding: 15px;
    font-size: 9px;
  }

  .code-line.indent {
    margin-left: 10px;
  }

  .section-title {
    font-size: 24px;
  }

  .about {
    padding: 40px 3%;
  }

  .about-img img {
    width: 160px;
    max-height: 190px;
  }

  .about-img::before {
    width: 180px;
    height: 210px;
  }

  .about-content h3 {
    font-size: 20px;
  }

  .about-content p {
    font-size: 12px;
  }

  .skills {
    padding: 40px 3%;
  }

  .skills-subtitle {
    font-size: 11px;
  }

  .skill-category-card {
    padding: 15px;
  }

  .skill-category-card h3 {
    font-size: 14px;
  }

  .skill-tag {
    padding: 4px 8px;
    font-size: 9px;
    gap: 4px;
  }

  .skill-tag i {
    font-size: 11px;
  }

  .projects {
    padding: 40px 3%;
  }

  .projects h2 {
    font-size: 24px;
  }

  .project-image {
    height: 150px;
  }

  .project-content {
    padding: 15px;
  }

  .project-content h3 {
    font-size: 16px;
  }

  .project-content p {
    font-size: 11px;
  }

  .badge {
    font-size: 10px;
    padding: 2px 8px;
    top: 10px;
    left: 10px;
  }

  .demo-btn {
    padding: 3px 10px;
    font-size: 11px;
    gap: 4px;
  }

  .arrow-btn {
    width: 30px;
    height: 30px;
  }

  .tags span {
    padding: 3px 6px;
    font-size: 9px;
  }

  .achievements {
    padding: 40px 3%;
  }

  .achievements h1 {
    font-size: 24px;
  }

  .subtitle {
    font-size: 11px;
  }

  .certificate-card {
    max-width: 220px;
    padding: 15px;
  }

  .certificate-card h3 {
    font-size: 16px;
  }

  .certificate-card .issuer,
  .certificate-card .date {
    font-size: 11px;
  }

  .certificate-img .view-btn {
    font-size: 11px;
    padding: 4px 8px;
  }

  .contact {
    padding: 40px 3%;
  }

  .contact h2 {
    font-size: 24px;
  }

  .contact-info h3 {
    font-size: 18px;
    text-align: center;
  }

  .contact-info p {
    font-size: 12px;
    text-align: center;
  }

  .info-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .info-item i {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .info-item h4 {
    font-size: 13px;
  }

  .info-item span {
    font-size: 11px;
  }

  .follow {
    font-size: 16px;
    text-align: center;
  }

  .socials a {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .contact-form-container {
    padding: 20px;
  }

  .contact-form h3 {
    font-size: 18px;
    text-align: center;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 8px 10px;
    font-size: 11px;
  }

  .contact-form button {
    padding: 10px;
    font-size: 12px;
  }

  .footer {
    padding: 30px 3% 15px;
  }

  .footer-box h3 {
    font-size: 16px;
  }

  .footer-box p,
  .footer-box li {
    font-size: 11px;
  }

  .footer-socials a {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .footer-bottom {
    font-size: 10px;
  }

  .scroll-buttons {
    right: 8px;
    bottom: 70px;
    gap: 8px;
  }

  .scroll-buttons a {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}
