/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f6f8fa;
  color: #1a2233;
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
header {
  background: linear-gradient(90deg, #1a2233 70%, #2563eb 100%);
  color: #fff;
  padding: 2rem 1rem 1.5rem 1rem;
  box-shadow: 0 4px 24px rgba(26, 34, 51, 0.10);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0 0 18px 18px;
  position: relative;
}

header .left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

header .name {
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: rgb(64, 216, 183);
}

header .name:hover {
  color: rgb(12, 158, 168);
}

header nav ul {
  display: flex;
  gap: 1.2rem;
  list-style: none;
}

header nav ul li a {
  color: #e0e6ed;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, border-bottom 0.2s;
  font-size: 1.2rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

header nav ul li a:hover {
  color: #60a5fa;
  border-bottom: 2px solid #60a5fa;
}

header .box-icons a {
  color: #60a5fa;
  margin: 0 0.3rem;
  font-size: 2rem;
  transition: color 0.2s, transform 0.2s;
}

header .box-icons a:hover {
  color: #fff;
  transform: scale(1.2) rotate(-10deg);
}

/* Hamburger styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  gap: 6px;
  margin-left: 1rem;
}

.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Social links: desktop vs mobile */
.mobile-socials {
  display: none;
}

.mobile-close {
  display: none;
}

.desktop-socials {
  display: flex;
  gap: 0.5rem;
}

/* Responsive: Hamburger & Mobile Nav */
@media (max-width: 700px) {
  .desktop-socials {
    display: none;
  }

  .box-icons {
    display: none;
  }

  .mobile-socials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: flex-start;
  }

  header nav ul {
    display: flex;
    flex-direction: column;
    background: #1a2233;
    position: fixed;
    top: 0;
    right: -70vw;
    /* Start hidden off-screen */
    width: 70vw;
    height: 100vh;
    z-index: 1000;
    padding: 2rem 1rem;
    box-shadow: 2px 0 16px #22223b33;
    transition: left 0.3s cubic-bezier(.4, 2, .6, 1);
    border-radius: 0 18px 18px 0;
    gap: 1.2rem;
    align-items: flex-start;
  }

  header nav ul.active {
    right: 0;
    /* Slide in from the left */
  }

  .left .name {
    margin: auto;
    margin-right: 3.89rem;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 1rem;
    right: 0.5rem;
    flex-direction: column;
    justify-content: center;
    margin: 14px;
    z-index: 200;
    /* <-- Ensure it's above other elements */
  }

  .mobile-close {
    display: inline;
  }

  .card {
    flex-direction: column;
    margin-left: 2.7rem;

  }
}

/* Container */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 2rem 0.5rem;
}

/* Section Titles */
.section-title {
  color: #1a2233;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #e0e6ed44;
}

/* Home Section */
.home {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.home-info {
  flex: 1 1 320px;
  text-align: center;
  margin-bottom: 2rem;
}

.home-info-title {
  font-size: 1.3rem;
  color: #2563eb;
  margin-bottom: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.home-info h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.cv-download-btn {
  display: inline-block;
  background-color: rgb(77, 88, 97);
  color: #fff;
  padding: 0.2rem 0.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 1rem;
  margin-left: 0.4rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  font-size: 0.7rem;
  box-shadow: 0 2px 8px #e0e6ed44;
}
.cv-download-btn:hover {
  background: linear-gradient(90deg, #62cebc 60%, #adb0b8 100%);
  color: #1a2233;
  transform: scale(1.05);
}

.gradient {
  background: linear-gradient(90deg, #2563eb 30%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-info p {
  margin-bottom: 1.2rem;
  color: #333;
  font-size: 1.08rem;
}

.home-info button {
  display: inline-block;
  background: linear-gradient(90deg, #2563eb 60%, #60a5fa 100%);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px #e0e6ed44;
}

.home-info button:hover {
  background: linear-gradient(90deg, #60a5fa 60%, #2563eb 100%);
  color: #1a2233;
  transform: scale(1.05);
}

.home-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f6f8fa;
  border-radius: 16px;
  box-shadow: 0 4px 16px #e0e6ed55;
  padding: 0.5rem;
  margin: 0;
}

.home-photo img {
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  box-shadow: 0 2px 8px #2563eb22;
  background: #e0e6ed;
  object-fit: cover;
  display: block;
}

.scroll-down {
  margin: 1.5rem auto 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px #e0e6ed44;
}

.scroll-down::after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-bottom: 3px solid #fff;
  border-right: 3px solid #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -40%) rotate(45deg);
}

/* Info Cards (About Section) */
.info-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.card {
  background: #f6f8fa;
  border-radius: 14px;
  box-shadow: 0 4px 16px #e0e6ed55;
  padding: 1.2rem;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 300px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e0e6ed;
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px #2563eb22;
}

.card h1 {
  font-size: 1.2rem;
  color: #1a2233;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.card p {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.card img,
.card video {
  max-width: 100px;
  border-radius: 8px;
  margin: 0.5rem auto 0;
  display: block;
  box-shadow: 0 2px 8px #e0e6ed44;
}

.card button {
  margin-top: 0.7rem;
  background: linear-gradient(90deg, #2563eb 60%, #60a5fa 100%);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px #e0e6ed44;
}

.card button:hover {
  background: linear-gradient(90deg, #60a5fa 60%, #2563eb 100%);
  color: #1a2233;
  transform: scale(1.05);
}

/* Projects Section */
.projects {
  margin-top: 2.5rem;
}

.project-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  background: #f6f8fa;
  border-radius: 14px;
  box-shadow: 0 4px 16px #e0e6ed55;
  margin-bottom: 2rem;
  padding: 1.5rem 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e0e6ed;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 32px #2563eb22;
}

.skills{
  transition: transform 0.2s, box-shadow 0.2s;
}
.skills:hover{
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 4px 16px #2563eb22;
}

.project-vidbox {
  flex: 1 1 350px;
  min-width: 300px;
  max-width: 600px;
  text-align: center;
  position: relative;
}

.project-vidbox video {
  width: 100%;
  max-width: 540px;
  min-height: 220px;
  border-radius: 12px;
  box-shadow: 0 2px 8px #e0e6ed44;
  background: #e0e6ed;
  object-fit: cover;
}

.hover-sign {
  display: none;
}

.project-info {
  flex: 2 1 300px;
}

.project-info h1 {
  font-size: 1.3rem;
  margin-bottom: 0.1rem;
  font-weight: 700;
  color: #2563eb;
}

.project-info p {
  font-size: 1.05rem;
  color: #22223b;
}

/* --- Skills Section --- */
.skills-box {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  margin-top: 2rem;
  background: linear-gradient(90deg, #f6f8fa 60%, #e0e6ed 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px #e0e6ed55;
  padding: 2rem 1.5rem;
  position: relative;
}

.designer,
.coding {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  background: #fff;
  border-radius: 12px;
  padding: 1.2rem 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px #e0e6ed44;
  border: 1px solid #e0e6ed;
  margin-left: 1rem;
  margin-right: 1rem;
}

.designer h1,
.coding h1 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 1px;
}

.designer p,
.coding p {
  font-size: 1rem;
  color: #22223b;
  margin-bottom: 0;
}

.slider {
  flex: 1 1 100%;
  margin: 2rem 0 0 0;
  padding: 1rem 0.5rem;
  background: #d3dbd6;
  border-radius: 12px;
  box-shadow: 0 2px 8px #e0e6ed33;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider .list {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.slider .item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider .item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: #ecf7f6;
  box-shadow: 0 2px 8px #e0e6ed44;
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 0.3rem;
}

.slider .item img:hover {
  transform: scale(1.15) rotate(-8deg);
  box-shadow: 0 4px 16px #1e7c8033;
}


/* Contact Section */
.contact-section {
  margin-top: 2.5rem;
  text-align: center;
}

.social-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social-box a {
  color: #1a2233;
  text-decoration: none;
  font-size: 1.1rem;
  margin: 0.2rem 0;
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.social-box a:hover {
  color: #2563eb;
  transform: scale(1.08);
}

.social-icons {
  margin-top: 0.5rem;
}

.social-icons a {
  color: #2563eb;
  font-size: 1.5rem;
  margin: 0 0.3rem;
  transition: color 0.2s, transform 0.2s;
}

.social-icons a:hover {
  color: #1a2233;
  transform: scale(1.2) rotate(-10deg);
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 0;
  background: #1a2233;
  color: #60a5fa;
  margin-top: 3rem;
  border-radius: 0 0 18px 18px;
  font-size: 1.2rem;
  letter-spacing: 1px;
  box-shadow: 0 -2px 8px #e0e6ed44;
}

/* Responsive Design */
@media (max-width: 1100px) {
  .container {
    max-width: 98%;
    padding: 1.2rem;
  }
}


@media (max-width: 700px) {

  .info-cards,
  .skills-box,
  .project-card
  .home {
    flex-direction: column;
    align-items: stretch;
  }
   

  .project-vidbox,
  .project-info,
  .home-photo,
  .home-info {
    max-width: 100%;
  }

  .project-vidbox video,
  .home-photo img {
    min-height: 180px;
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .container {
    padding: 0.7rem;
    border-radius: 0;
    box-shadow: none;
  }

  .section-title {
    font-size: 1.1rem;
  }

  footer {
    border-radius: 0;
    font-size: 0.95rem;
    padding: 1rem 0;
  }

  header nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (min-width: 1025px) {

  .sidebar,
  .hamburger {
    display: none !important;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  header {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2.5rem;
    padding: 1.2rem 1.5rem 1rem 1.5rem;
  }

  .home-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
  }

  .home-photo img {
    max-width: 100%;
    min-height: 180px;
    display: block;
    margin: 0 auto;
    /* On mobile, image is centered and full width */
  }

  .left {
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0;
    width: auto;
    text-align: left;
    display: flex;
  }

  .left img {
    margin: 0;
    display: block;
  }

  .left .name {
    margin: 0 0 0 0.7rem;
    font-size: 1.1rem;
    display: block;
    text-align: left;
  }

  nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-start;
  }

  header nav ul {
    gap: 1.5rem;
    justify-content: flex-start;
    font-size: 1.08rem;
    padding: 0;
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: transparent;
    position: static;
    box-shadow: none;
    margin-left: 2.5rem;
  }

  header nav ul li {
    text-align: center;
    flex: 0 0 auto;
  }

  .box-icons {
    display: none !important;
  }

  .mobile-socials {
    display: none !important;
  }

  /* Section adjustments for tablet */
  .container {
    padding: 1.2rem 0.7rem;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
  }

  .info-cards,
  .skills-box,
  .project-card,
  .home {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }

  .card,
  .designer,
  .coding {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .slider {
    margin: 1.2rem 0 0 0;
  }

  .social-box {
    align-items: center;
    gap: 0.7rem;
  }

  footer {
    font-size: 1rem;
    padding: 1rem 0;
  }
}