/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

@media (max-width: 480px) {
  html {
    font-size: 90%;
  }
}

body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #111;
  overflow-x: hidden;
  padding-top: 80px;
}

/* Navbar */
.navbar {
  width: 100%;
  padding: 20px 40px;
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.navbar .logo {
  font-size: 24px;
  font-weight: 700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #7e826d;
}

.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 80px 10%;
  min-height: 100vh;
}

.hero-left {
  flex: 1 1 500px;
  z-index: 1;
}

.hero-left .tagline {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero-left h1 {
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 700;
  margin-bottom: 30px;
  color: #111;
}

.hero-left h1 span {
  color: #a5a488;
}

.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.btn.primary {
  background: #999;
  color: #fff;
}

.btn.outline {
  border: 2px solid #999;
  color: #999;
}

.hero-right {
  flex: 1 1 400px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

.hero-right img {
  width: 550px;         /* adjust size if needed */
  height: 550px;        /* keep width & height equal */
  object-fit: cover;    /* to fit face properly */
  border-radius: 50%;   /* makes it round */
  border: 4px solid #fff; /* optional white border */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* light shadow */
}

.bg-skew {
  position: absolute;
  top: 0;
  right: 0;
  width: 120%;
  height: 100%;
  background: #f0f0f0;
  transform: skewX(-15deg);
  z-index: -1;
}

/* About Section */
.about-section {
  padding: 60px 20px;
  background: #f9f9f9;
}

.container {
  max-width: 1100px;
  margin: auto;
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about-img img {
  width: 300px;
  max-width: 400px;
  height: 450px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 15px;
}

.about-content p {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

.about-details p {
  margin: 6px 0;
}

.interests {
  margin-top: 15px;
}

.interests span {
  display: inline-block;
  margin-right: 15px;
  background: #e0e0e0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  color: #333;
}

.skills-section {
  background: #f4f4f4;
  padding: 60px 0;
  text-align: center;
  overflow: hidden;
}

.skills-section h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 40px;
  font-weight: 700;
}

.skills-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  justify-content: center; 
}

.skills-track {
  display: flex;
  gap: 20px; /* 👈 This creates the gap between cards */
  width: max-content;
  animation: scroll-left 30s linear infinite;
  justify-content: center;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.skill-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 20px 15px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
  width: 160px;
  margin: 0; /* no margin needed now */
  flex: 0 0 auto;
}

.skill-card:hover {
  transform: scale(1.05);
}

.skill-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

.skill-card h4 {
  font-size: 18px;
  color: #333;
  font-weight: 600;
  margin: 10px 0 4px;
}

.level-label {
  font-size: 14px;
  font-weight: 600;
  color: #777;
}


/* Projects Section */
.projects-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.projects-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

.project-card {
  position: relative;
  width: 280px;
  height: 200px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  background: #f9f9f9; /* fallback bg in case image fails */
}



.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px; /* matches card border */
  transition: all 0.5s ease;
}



.project-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  transition: opacity 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.1);
  filter: blur(2px);
}

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

.project-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.project-info a {
  padding: 6px 14px;
  background: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: 0.3s;
}

.project-info a:hover {
  background: #000;
  color: #fff;
}

/* Contact Section */
.contact-section {
  padding: 80px 20px;
  background: #f5f5f5;
  text-align: center;
}

.contact-section .container {
  max-width: 600px;
  margin: auto;
}

.contact-form {
  margin-top: 30px;
  padding: 0 10px;
}

.form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  font-size: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

.contact-form .btn {
  padding: 10px 20px;
  border: none;
  background: #111;
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form .btn:hover {
  background: #333;
  transform: scale(1.05);
}

/* Footer */
.footer {
  background-color: #111;
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}

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

.footer p {
  margin: 10px 0;
}

.social-icons {
  margin: 20px 0;
}

.social-icons a {
  color: #fff;
  font-size: 20px;
  margin: 0 10px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #1da1f2;
}

.footer .copyright {
  margin-top: 15px;
  font-size: 14px;
  color: #bbb;
}

/* Responsive Navbar & Layout */
@media (max-width: 991px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 5%;
  }

  .hero-left,
  .hero-right {
    width: 100%;
    max-width: 100%;
  }

  .hero-left {
    margin-bottom: 40px;
  }

  .bg-skew {
    display: none;
  }

  .navbar {
    padding: 15px 20px;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 20px;
    background: #fff;
    flex-direction: column;
    width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    display: none;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  #menu-toggle:checked + .menu-icon + .nav-links {
    display: flex;
  }

  .menu-icon {
    display: block;
  }
}

@media (max-width: 768px) {
  .about-grid {
    flex-direction: column;
    text-align: center;
  }

  .projects-grid {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    width: 95%;
    height: 220px;
  }

  .footer h3 {
    font-size: 20px;
  }

  .footer p {
    font-size: 14px;
  }

  .social-icons a {
    font-size: 18px;
    margin: 0 8px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
  }

  .contact-form .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Portfolio 2.0 Announcement System 
   ========================================================================== */

:root {
  --p2-accent: #8b5cf6;
  --p2-accent-hover: #a78bfa;
  --p2-accent-dark: #6d28d9;
  --p2-bg-dark: rgba(17, 12, 28, 0.85);
  --p2-border-light: rgba(139, 92, 246, 0.25);
  --p2-text-light: #f3f4f6;
  --p2-text-muted: #9ca3af;
  --p2-font: 'Poppins', sans-serif;
  --notification-bar-height: 0px;
}

/* Modal Overlay */
.p2-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.p2-modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* Modal Content Box */
.p2-modal-box {
  background: var(--p2-bg-dark);
  border: 1px solid var(--p2-border-light);
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  padding: 35px 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(139, 92, 246, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--p2-text-light);
  font-family: var(--p2-font);
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.p2-modal-overlay.active .p2-modal-box {
  transform: scale(1) translateY(0);
}

/* Header style */
.p2-modal-header {
  margin-bottom: 20px;
}

.p2-emoji {
  display: inline-block;
  font-size: 40px;
  margin-bottom: 10px;
  animation: p2RocketFloat 2s ease-in-out infinite;
}

@keyframes p2RocketFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

.p2-modal-header h2 {
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 40%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
  margin: 0;
  letter-spacing: -0.5px;
}

.p2-modal-welcome {
  font-size: 15px;
  color: var(--p2-text-muted);
  margin-bottom: 8px;
}

.p2-modal-subwelcome {
  font-size: 14px;
  color: var(--p2-text-light);
  margin-bottom: 24px;
  font-weight: 500;
}

/* Feature List */
.p2-modal-features {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.p2-features-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--p2-accent-hover);
  margin-bottom: 12px;
}

.p2-modal-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p2-modal-features ul li {
  font-size: 14px;
  color: #d1d5db;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.p2-modal-features ul li:last-child {
  margin-bottom: 0;
}

.p2-modal-features ul li span {
  color: var(--p2-accent);
  font-weight: bold;
}

.p2-modal-question {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 28px;
  color: #ffffff;
}

/* Buttons */
.p2-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p2-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
}

.p2-btn-primary {
  background: linear-gradient(135deg, var(--p2-accent) 0%, var(--p2-accent-dark) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.p2-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.p2-btn-primary:active {
  transform: translateY(0);
}

.p2-btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.p2-btn-secondary:hover {
  border-color: var(--p2-accent);
  color: var(--p2-text-light);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

.p2-btn-secondary:active {
  transform: translateY(0);
}

.p2-btn:focus-visible,
.p2-btn-bar-primary:focus-visible,
.p2-bar-close:focus-visible {
  outline: 3px solid var(--p2-accent-hover);
  outline-offset: 2px;
}

/* Sticky Notification Bar */
.p2-notification-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 10, 25, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 1010;
  display: none;
  font-family: var(--p2-font);
  animation: p2SlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes p2SlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.p2-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.p2-bar-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 1.4;
  flex: 1;
}

.p2-bar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.p2-btn-bar-primary {
  background: linear-gradient(135deg, var(--p2-accent) 0%, var(--p2-accent-dark) 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.p2-btn-bar-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.p2-bar-close {
  background: none;
  border: none;
  color: var(--p2-text-muted);
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.p2-bar-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Dynamically adjust body and global navbar when notification bar is active */
body.has-p2-bar {
  padding-top: calc(85px + var(--notification-bar-height, 50px)) !important;
}

body.has-p2-bar .navbar {
  top: var(--notification-bar-height, 50px) !important;
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 768px) {
  .p2-modal-box {
    padding: 30px 20px;
  }
  
  .p2-modal-header h2 {
    font-size: 22px;
  }
  
  .p2-bar-content {
    flex-direction: column;
    text-align: center;
    padding: 14px 20px;
    gap: 12px;
  }
  
  .p2-bar-text {
    font-size: 13px;
  }
  
  .p2-bar-actions {
    width: 100%;
    justify-content: center;
    gap: 12px;
  }
  
  .p2-btn-bar-primary {
    font-size: 12px;
    padding: 8px 20px;
  }

  body.has-p2-bar {
    padding-top: calc(120px + var(--notification-bar-height, 80px)) !important;
  }

  /* Make sure background scrolling remains disabled when modal is open */
  body.p2-modal-open {
    overflow: hidden !important;
  }
}

