/* style.css - COMPLETE WORKING VERSION (VIDEO SECTION REMOVED) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0b0c0e;
  background-image: radial-gradient(circle at 30% 40%, rgba(85, 65, 100, 0.25) 0%, transparent 40%),
                    linear-gradient(135deg, #0e0f13 0%, #1c1d25 100%);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #eaeef5;
  line-height: 1.5;
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* ===== NAVIGATION ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(95, 107, 255, 0.2);
  padding: 0.8rem 2rem;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f0f4fc;
}

.accent-dot {
  color: #5f6bff;
  font-size: 2rem;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: #b2b9d4;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  text-shadow: 0 0 6px #5f6bff;
}

.nav-cta {
  background: rgba(95, 107, 255, 0.1);
  border: 1px solid #5f6bff66;
  padding: 0.5rem 1.5rem;
  border-radius: 40px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.2s;
}

.nav-cta:hover {
  background: #5f6bff;
  border-color: #5f6bff;
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ===== HERO SECTION ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: center;
}

.content-left {
  animation: slideUp 0.9s ease-out;
}

@keyframes slideUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.greet {
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #a5aec8;
  border-left: 3px solid #5f6bff;
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.name {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.2rem;
  color: #ffffff;
}

.nickname-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.nickname-label {
  font-size: 1rem;
  color: #8e98c0;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: rgba(95, 107, 255, 0.1);
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  border: 1px solid #5f6bff33;
}

.nickname {
  font-weight: 700;
  background: linear-gradient(145deg, #ffffff, #d0d9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent {
  color: #5f6bff;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(95, 107, 255, 0.4);
}

.role-badge {
  display: inline-block;
  background: rgba(95, 107, 255, 0.1);
  border: 1px solid rgba(95, 107, 255, 0.3);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1.8rem;
  border-radius: 60px;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #d2dcff;
}

.bio {
  font-size: 1.25rem;
  color: #c5ccde;
  max-width: 600px;
  margin-bottom: 2.5rem;
  border-left: 1px solid #2f354a;
  padding-left: 1.8rem;
}

.stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  color: #a7b0ca;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #b7c2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.2rem;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 48px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.cta.primary {
  background: #5f6bff;
  color: white;
  box-shadow: 0 10px 20px -8px #5f6bffaa;
}

.cta.primary:hover {
  background: #4c57d9;
  transform: scale(1.02);
}

.cta.secondary {
  background: transparent;
  border: 1.5px solid #5f6bff;
  color: white;
}

.cta.secondary:hover {
  background: rgba(95, 107, 255, 0.1);
}

/* Profile Right */
.profile-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeSlide 0.9s 0.1s both;
}

@keyframes fadeSlide {
  0% { opacity: 0; transform: translateX(30px); }
  100% { opacity: 1; transform: translateX(0); }
}

.image-frame {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3/4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 40px -20px black, 0 0 0 1px #5f6bff66 inset;
  background: #15171e;
  position: relative;
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.4s;
}

.image-frame:hover .profile-pic {
  transform: scale(1.02);
}

.glow-ring {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: radial-gradient(circle at 70% 30%, rgba(95, 107, 255, 0.25), transparent 70%);
  pointer-events: none;
}

.capture-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #959ec3;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.capture-note::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #5feb5f;
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.tech-ornament {
  position: absolute;
  width: 180px;
  height: 180px;
  right: 5%;
  bottom: -10%;
  background: radial-gradient(circle, rgba(95, 107, 255, 0.08), transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
  z-index: -1;
  animation: pulseGlow 6s infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(1.2); }
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: rgba(8, 10, 15, 0.5);
  border-radius: 60px;
  margin: 2rem auto;
  padding: 4rem 2rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.about-card {
  background: rgba(20, 22, 32, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid #2f354a;
  border-radius: 28px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #cad2f0;
}

.about-card p {
  color: #b1b9d6;
  font-size: 0.9rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.stack-item {
  background: rgba(95, 107, 255, 0.08);
  border: 1px solid #3a405b;
  border-radius: 40px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  color: #b5c2ff;
}

.about-highlight {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-card {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  border: 1px solid #5f6bff33;
  border-radius: 32px;
  padding: 1.5rem;
  text-align: center;
}

.highlight-num {
  font-size: 2.8rem;
  font-weight: 700;
  color: white;
}

.highlight-label {
  color: #9ba4c5;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* ===== PORTFOLIO CARDS ===== */
.portfolio-grid-cards {
  display: grid;
  width: 100%;
  margin: 2rem 0;
}

/* Mobile: 1 column (default) */
.portfolio-grid-cards {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
  .portfolio-grid-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
  .portfolio-grid-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
  }
}

.project-card {
  background: rgba(18, 20, 28, 0.95);
  border: 1px solid #2c3145;
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: #5f6bff;
}

.card-media {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #1a1c24;
  flex-shrink: 0;
}

/* Mobile card media height */
@media (max-width: 767px) {
  .card-media {
    height: 180px;
  }
}

.slideshow-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.slide-img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #2a2e3f, #1a1c2a);
  color: #8b94b8;
  text-align: center;
  padding: 1rem;
}

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s;
}

.project-card:hover .slideshow-btn {
  opacity: 0.8;
}

.slideshow-btn:hover {
  opacity: 1;
  background: #5f6bff;
}

.slideshow-prev { left: 8px; }
.slideshow-next { right: 8px; }

.slideshow-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.dot.active {
  background: #5f6bff;
  width: 16px;
  border-radius: 8px;
}

.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 0.2rem 0.8rem;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  z-index: 10;
}

.card-content {
  padding: 1rem;
  background: rgba(18, 20, 28, 0.95);
  flex: 1;
  display: block !important;
  visibility: visible !important;
}

.card-content h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: #ffffff;
  font-weight: 600;
  display: block !important;
}

.card-content p {
  color: #c5ccde;
  font-size: 0.75rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: block !important;
}

.card-tech {
  font-size: 0.65rem;
  color: #8b94b8;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(95, 107, 255, 0.2);
  display: block !important;
}

.portfolio-footer {
  text-align: center;
  margin-top: 2rem;
}

/* ===== PANELS ===== */
.panels-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

.panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 10, 18, 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
  padding: 1rem;
}

.panel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.panel-content {
  background: rgba(20, 22, 32, 0.95);
  border: 1px solid #5f6bff66;
  border-radius: 40px;
  max-width: 1000px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
}

.wide-panel {
  max-width: 1100px;
}

.panel-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
}

.panel-close:hover {
  color: #5f6bff;
}

.gallery-viewer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.gallery-main-img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 20px;
  background: #0a0c12;
}

.gallery-nav {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav:hover {
  background: #5f6bff;
}

.gallery-nav.prev { left: 8px; }
.gallery-nav.next { right: 8px; }

.gallery-thumbnails {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0.8rem 0;
}

.thumb {
  width: 60px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
}

.thumb.active {
  border-color: #5f6bff;
  opacity: 1;
}

.panel-text {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid #2f354a;
}

.panel-text p {
  margin-bottom: 0.5rem;
  color: #cbd2e6;
  font-size: 0.9rem;
}

.empty-gallery-message {
  text-align: center;
  padding: 2rem;
  color: #b1b9d4;
}

.empty-gallery-message h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.master-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background: rgba(8, 10, 15, 0.3);
  border-radius: 60px;
  margin: 2rem auto;
  padding: 3rem 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: rgba(20, 22, 32, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid #2f354a;
  border-radius: 28px;
  padding: 1.8rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #5f6bff;
}

.service-card i {
  font-size: 2.5rem;
  color: #5f6bff;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.service-card p {
  font-size: 0.85rem;
  color: #b1b9d4;
  line-height: 1.4;
}

/* ===== FEEDBACK SECTION ===== */
.feedback-section {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 40px;
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
}

.feedback-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: rgba(18, 20, 28, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid #2e3447;
  border-radius: 28px;
  padding: 1.5rem;
  transition: 0.2s;
}

.card:hover {
  border-color: #5f6bff;
}

.quote-icon {
  font-size: 3.5rem;
  color: #5f6bff;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: -0.8rem;
}

.quote-text {
  font-style: italic;
  color: #d3dcf0;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.client {
  border-left: 2px solid #5f6bff;
  padding-left: 0.8rem;
}

.client-name {
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
}

.client-title {
  font-size: 0.7rem;
  color: #8891b5;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  text-align: center;
  padding: 3rem 1.5rem;
}

.contact-sub {
  font-size: 1rem;
  color: #b9c2dd;
  max-width: 500px;
  margin: 0.8rem auto 1.5rem;
}

.contact-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: #b2bae0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.social-link:hover {
  color: #5f6bff;
}

.contact-availability {
  color: #8d97c0;
  font-size: 0.85rem;
}

.contact-nickname {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #a7b0d0;
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid #23273b;
  color: #6a73a0;
  font-size: 0.8rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-social a {
  color: #8b94b8;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: #5f6bff;
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0b0c0e;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #2c3145;
  border-top-color: #5f6bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .profile-right {
    order: -1;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
  
  .section {
    padding: 2.5rem 1rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-content {
    padding: 0.8rem;
  }
  
  .card-content h3 {
    font-size: 0.9rem;
  }
  
  .card-content p {
    font-size: 0.7rem;
  }
}

@media (max-width: 500px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .name {
    font-size: 2rem;
  }
  
  .hero-ctas {
    flex-direction: column;
  }
  
  .cta {
    text-align: center;
    width: 100%;
  }
  
  .stats {
    gap: 1rem;
  }
  
  .stat-num {
    font-size: 1.6rem;
  }
  
  .card-media {
    height: 160px;
  }
}

@media (max-width: 767px) {
  .portfolio-grid-cards {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  .project-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1rem 0 !important;
  }
  
  .card-media {
    width: 100% !important;
  }
  
  .container, .portfolio-section, .portfolio-grid-cards {
    overflow-x: hidden !important;
  }
}