:root {
  --primary: #02b5fc;
  --secondary: #0087f5;
  --dark: #0f172a;
  --card: #020617;
  --text: #e2e8f0;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--text);
}

html, body {
  overflow-x: hidden;
}

.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  align-items:center;
  justify-content: space-between;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  z-index: 1000;
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.nav-item {
  text-decoration: none;
  color: var(--text);
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  transition: 0.3s;
}

.nav-item:hover, 
.nav-item.active {
  color: var(--primary);
}

.nav-item button {
  display: flex;
  gap: 20px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 700;
}

.nav-item button:hover {
  background: var(--primary);
  color: var(--white);
}

.menu-toggle{
  display: none;
}

.search-box {
  width: 100%;
  margin: 0 auto 60px;
  display: flex;
  max-width: 600px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  border: none;
  font-size: 14px;
  outline: none;
}

.search-box button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: 0.3s;
}

.search-box button:hover {
  background: var(--secondary);
}

section {
  padding: 100px;
}

/* =============== HOME =============== */
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient( #0087f5, #020617);
}

.section-home {
  width: 100%;
  max-width: 1100px;
}

.section-home .content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.section-home .content-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  font-size: 16px;
}

.section-home .content-left h1 {
  font-size: 50px;
  color: var(--white);
  font-weight: 900;
}

.section-home .content-left h1 span {
  color: var(--primary);
}

.section-home .content-left h3 {
  font-size: 25px;
  margin: 5px 0;
  color: var(--white);
  font-weight: 900;
}

.section-home .content-left p {
  background-color: transparent;
  margin-top: 10px;
  padding: 20px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  font-weight: 600;
  text-align: justify;
}

.section-home .content-right img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border: 2px solid var(--primary);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.section-home .index-btn {
  margin-top: 15px;
  display: flex;
  gap: 15px;
}

.section-home .index-btn .btn-contact {
  padding: 10px 20px;
  border: 2px solid var(--secondary);
  border-radius: 8px;
  text-decoration: none;
  color: var(--white);
  background: #0064b6;
  transition: 0.3s;
}

.section-home .index-btn .btn-project {
  padding: 10px 20px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  text-decoration: none;
  color: #0064b6;
  background: var(--white);
  transition: 0.3s;
}

.section-home .index-btn .btn-contact:hover {
  border: 2px solid var(--primary);
  background: var(--white);
  color: #0064b6;
}

.section-home .index-btn .btn-project:hover {
  border: 2px solid var(--secondary);
  background: #0064b6;
  color: var(--white);
}

/* ================= ABOUT ================= */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(#020617, #0087f5);
}

.section-about {
  width: 100%;
  max-width: 1100px;
}

.section-about .content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.section-about .content-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 16px;
}

.section-about .content-right h1 {
  font-size: 50px;
  color: var(--primary);
  font-weight: 900;
}

.section-about .content-right h3 {
  font-size: 25px;
  color: var(--white);
  font-weight: 900;
}

.section-about .content-right p {
  margin-top: 10px;
  padding: 20px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  font-weight: 600;
  text-align: justify;
}

.section-about .content-left img {
  max-width: 350px;
  width: 100%;
  height: auto;
  max-height: 360px;
  margin-top: 20px;
  border: 2px solid var(--primary);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.section-about .content-left img:hover {
  transform: translateY(-10px);
}

/* ================ SKILLS =================*/
.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient( #0087f5, #020617);
}

.section-skill {
  width: 100%;
  max-width: 1100px;
}

.section-skill h1 {
  font-size: 50px;
  color: var(--white);
  text-align: center;
  font-weight: 900;
}

.skill-summary {
  padding: 20px;
  margin: 20px 0;
  border: 2px solid var(--primary);
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.skill-btn,
.skill-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px;
  transition: 0.3s;
  cursor: pointer;
  font-weight: 700;
}

.skill-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.skill-item.active {
  border-color: var(--primary);
  box-shadow: 0 1px 1px rgba(0, 135, 245, 0.2);
}

.skill-btn {
  width: 100%;
  border-radius: 12px;
  background: var(--secondary);
  border: none;
  outline: none;
  color: var(--white);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  padding: 12px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.skill-btn i {
  font-size: 20px;
}

.skill-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.skill-item.active .skill-content {
  max-height: 500px;
  opacity: 1;
  margin-top: 15px;
}

.skill-content ul {
  padding-left: 18px;
}

.skill-content li {
  margin-bottom: 6px;
  font-size: 14px;
  opacity: 0.9;
}

.tools-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.tools-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: scrollTools 20s linear infinite;
}

.tool-card{
  margin-top: 10px;
  min-width: 120px;
  background:var(--primary);
  border: 1px solid var(--white);
  border-radius:12px;
  padding:20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tool-card:hover{
  transform:translateY(-10px);
}

.tool-card i{
  color: white;
  font-size:50px;
}

.tool-card img{
  color: white;
  width: 47px;
}

.tool-card span{
    display:block;
    font-weight:600;
}

@keyframes scrollTools {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-65%);
  }
}

/* ================ PROJECT =================*/
.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient( #020617, #0087f5);
}

.section-project {
  width: 100%;
  max-width: 1100px;
  margin-bottom: 50px;
}

.section-project h1 {
  font-weight: 900;
  font-size: 50px;
  color: var(--primary);
}

.section-project h3 {
  font-weight: 900;
  font-size: 22px;
  margin: 5px 0;
  color: var(--white);
}

.section-project p {
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 20px;
  border: 2px solid var(--primary);
  border-radius: 10px;
}

.projects-grid {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  padding: 10px;
  
}

.projects-grid::-webkit-scrollbar {
  display: none;
}

.projects-grid {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.project-card {
  min-width: 250px;
  max-width: 300px;
  flex-shrink: 0;

  background: var(--secondary);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 10px 20px 10px;
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.project-image {
  border: 1px solid var(--white);
  border-radius: 12px;
  width: 100%;
  height: 120px;
  display: block;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.project-header h4 {
  font-size: 18px;
  color: var(--white);
}

.project-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.project-badge.completed {
  background: var(--dark);
  color: var(--secondary);
}

.project-badge.ongoing {
  background: rgba(251,191,36,0.2);
  color: #f80808;
}

.project-desc {
  background: var(--dark);
  font-size: 14px;
  opacity: 0.9;
  text-align: justify;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 10px;
}

.tech-stack span {
  background: #89b6f1;
  color: var(--white);
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 2px solid var(--primary);
  color: var(--primary);
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-link:hover {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--white);
}

.project-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 1100px;
  margin: auto;
}

.scroll-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 22px;
  padding:  14px;
  cursor: pointer;
  transition: 0.3s;
  flex-shrink: 0;
}

.scroll-btn:hover {
  background: var(--primary);
}

/* ================ RESUME ================= */
.resume {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(#0087f5, #020617);
}

.section-wrapper {
  width: 100%;
  max-width: 1100px;
}

.resume-content {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.5s ease;
}

.resume-left {
  flex: 1;
  transition: all 0.5s ease;
}

.resume-right {
  flex: 0;
  width: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.resume-content.show-resume {
  align-items: flex-start;
}

.resume-content.show-resume .resume-left {
  flex: 0 0 30%;
}

.resume-content.show-resume .resume-right {
  flex: 0 0 70%;
  width: auto;
}

.resume-content h1 {
  font-size: 50px;
  color: var(--primary);
  font-weight: 900;
}

.resume-content h3 {
  font-size: 22px;
  margin: 5px 0;
  color: var(--white);
  font-weight: 900;
}

.resume-content p {
  margin-top: 10px;
  padding: 20px;
  font-weight: 600;
  border: 2px solid var(--primary);
  border-radius: 10px;
  line-height: 1.2;
}

.home-btn {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.home-btn a {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.home-btn a:hover {
  background: var(--primary);
  color: var(--white);
}

.cv-frame {
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition: all 0.5s ease;
}

.cv-frame.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.cv-frame iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
  .resume {
    padding: 120px 20px;
  }

  .resume-content,
  .resume-content.show-resume {
    flex-direction: column;
  }

  .resume-content.show-resume .resume-left,
  .resume-content.show-resume .resume-right {
    flex: 1;
    width: 100%;
  }

  .cv-frame iframe {
    height: 500px;
  }
}

/* ================ CONTACT =================*/
.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient( #020617, #0087f5);
  padding: 100px 20px 50px;
}

.contact-content {
  width: 100%;
  max-width: 700px;
}

.contact-header h1 {
  font-size: 50px;
  color: var(--primary);
}

.contact-header h3 {
  font-size: 20px;
  margin: 5px 0 15px;
  color: var(--white);
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 14px;
  outline: none;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

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

.contact-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.btn-back,
.btn-send {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-back {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-back:hover {
  background: rgba(255,255,255,0.15);
}

.btn-send {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.btn-send:hover {
  background: var(--secondary);
}

/* ================= FOOTER ============ */
footer {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background-color: var(--dark);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
}


footer .footer-left h2 {
  font-size: 40px;
  transition: 0.3s;
}

footer .footer-left h2:hover {
  color: var(--primary);
}

footer .footer-left p {
  font-size: 16px;
  line-height: 2;
  color: var(--white);
  opacity: 0.9;
}

.footer-right address {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  font-style: normal;
}

.footer-right h3 {
  font-size: 28px;
  margin-bottom: 15px;
}

.footer-right a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  margin:0;
  transition: 0.3s ease;
}

.footer-right a i {
  font-size: 20px;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 5px;
}

.footer-right a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* ================= LAPTOP ================= */
@media (max-width: 992px) {

  section {
    padding: 100px 40px;
  }

  .section-home .content,
  .section-about .content {
    gap: 30px;
  }

  .resume {
    padding: 120px 20px;
  }

  .resume-content,
  .resume-content.show-resume {
    flex-direction: column;
  }

  .resume-content.show-resume .resume-left,
  .resume-content.show-resume .resume-right {
    flex: 1;
    width: 100%;
  }

  .cv-frame iframe {
    min-height: 70vh;
  }

  footer {
    padding: 40px 60px;
  }

  .footer-right {
    padding-left: 50px;
  }
}

/* ================= TABLET ================= */
@media (max-width: 768px) {

  section {
    padding: 100px 20px;
  }

  .navbar {
    width: 90%;
  }
  
  .nav-menu{
    gap: 35px;
  }

  .nav-item{
    font-size: 20px;
  }

  .nav-item span{
    font-size: 12px;
  }

  .menu-toggle {
    display: block;
    font-size: 24px;
    cursor: pointer;
    color: var(--white);
  }

  .language-toggle button {
    padding: 4px 10px;
    font-size: 12px;
  }

  .section-home .content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .section-home .content-left h1 {
    font-size: 34px;
  }

  .section-home .content-left h3 {
    font-size: 18px;
  }

  .section-home .content-right img {
    width: 220px;
    height: 220px;
  }

  .section-home .index-btn {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* About */
  .section-about .content {
    flex-direction: column;
    text-align: center;
  }

  .section-about .content-left img {
    width: 260px;
    max-width: 100%;
  }

  .section-about .content-right h1 {
    font-size: 34px;
  }

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

  .section-skill h1 {
    font-size: 34px;
  }

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

  .tool-card {
    min-width: 100px;
  }

  .section-project h1 {
    font-size: 34px;
  }

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

  .project-wrapper {
    gap: 10px;
  }

  .project-card {
    width: 280px;
    min-width: 230px;
    max-width: 280px;
  }

  .resume-content h1 {
    font-size: 34px;
  }

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

  .cv-frame iframe {
    min-height: 65vh;
  }

  .contact-header h1 {
    font-size: 34px;
  }

  .contact-header h3 {
    font-size: 18px;
  }

   .contact-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .btn-back,
  .btn-send {
    width: 100%;
  }

  /* Footer */
  footer {
    padding: 20px 40px;
    gap: 30px;
  }

}

/* ================= MEDIUM MOBILE ================= */
@media (max-width: 480px) {

  .section-home .content-left h1,
  .section-about .content-right h1,
  .section-skill h1,
  .section-project h1,
  .resume-content h1,
  .contact-header h1 {
    font-size: 28px;
  }

  .section-home .content-left p,
  .section-about .content-right p,
  .section-project p,
  .resume-content p {
    padding: 15px;
    font-size: 14px;
  }
  
  .nav-menu{
    gap: 20px;
  }

  .nav-item{
    font-size: 20px;
  }

  .nav-item span{
    display: none;
  }

  .search-box input {
    padding: 12px;
    font-size: 13px;
  }

  .search-box button {
    width: 36px;
    height: 36px;
  }

  .project-card {
    min-width: 240px;
  }

  .home-btn {
    flex-direction: column;
  }

  .home-btn a {
    width: 100%;
    justify-content: center;
  }

  .section-home .content-right img {
    width: 180px;
    height: 180px;
  }

  .project-card {
    min-width: 250px;
    max-width: 250px;
  }

   footer {
    display: block;
    padding: 20px;
  }

  .footer-left {
    display: none;
  }

  .footer-right {
    padding: 0;
  }

  .footer-right h3 {
    display: none;
  }

  .footer-right address {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    justify-items: center;
  }

  .footer-right a {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .footer-right a span {
    display: none;
  }
  
}
/* ================= SMALL MOBILE ================= */
@media (max-width: 360px) {

  .section-home .content-left h1,
  .section-about .content-right h1,
  .section-skill h1,
  .section-project h1,
  .resume-content h1,
  .contact-header h1 {
    font-size: 28px;
  }

  .section-home .content-left p,
  .section-about .content-right p,
  .section-project p,
  .resume-content p {
    padding: 15px;
    font-size: 12px;
  }
  
  .nav-menu{
    gap: 18px;
  }

  .nav-item{
    font-size: 20px;
  }

  .nav-item span{
    display: none;
  }

  .search-box input {
    padding: 12px;
    font-size: 12px;
  }

  .search-box button {
    width: 36px;
    height: 36px;
  }


  .home-btn {
    flex-direction: column;
  }

  .home-btn a {
    width: 100%;
    justify-content: center;
  }

  .section-home .content-right img {
    width: 180px;
    height: 180px;
  }
  
  .project-card {
    min-width: 180px;
    max-width: 210px;
    padding: 5px;
  }

   footer {
    display: block;
    padding: 20px;
  }

  .footer-left {
    display: none;
  }

  .footer-right {
    padding: 0;
  }

  .footer-right h3 {
    display: none;
  }

  .footer-right address {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    justify-items: center;
  }

  .footer-right a {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .footer-right a span {
    display: none;
  }
  
}