/* style.css */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: #0f172a; /* fallback dark background */
  position: relative;
}

/* About Me Section Styles */
.about-me-section {
  position: relative;
}

.about-me-section::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 2px;
}

.about-underline {
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  margin: 0 auto;
  border-radius: 2px;
}

/* Skills Section Styles */
.skills-section {
  position: relative;
  margin-top: 4rem;
}

.skills-section::after {
  content: '';
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 2px;
}

.skills-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.skills-label {
  position: relative;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  margin-right: 2rem;
  flex-shrink: 0;
}

.skills-label-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skills-label-line {
  position: absolute;
  left: -15px;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  border-radius: 2px;
}

.skills-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: rgba(31, 41, 55, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(156, 163, 175, 0.1);
  backdrop-filter: blur(10px);
}

.category-title {
  color: #fbbf24;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skills-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.skill-card {
  background: rgba(17, 24, 39, 0.9);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(156, 163, 175, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(17, 24, 39, 0.95);
}

.skill-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.skill-icon i {
  font-size: 2rem;
  color: #fbbf24;
  transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
  background: rgba(251, 191, 36, 0.1);
  transform: scale(1.1);
}

.skill-card:hover .skill-icon i {
  color: #f59e0b;
}

.skill-name {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* Responsive Design for Skills */
@media (max-width: 1024px) {
  .skills-layout {
    flex-direction: column;
    gap: 2rem;
  }
  
  .skills-label {
    writing-mode: horizontal-tb;
    transform: none;
    margin-right: 0;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .skills-label-line {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    margin-top: 0.5rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .skills-cards {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
  }
  
  .skill-card {
    padding: 0.75rem;
  }
  
  .skill-icon {
    width: 40px;
    height: 40px;
  }
  
  .skill-icon i {
    font-size: 1.5rem;
  }
  
  .skill-name {
    font-size: 0.75rem;
  }
  
  .category-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .skills-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .skill-card {
    padding: 0.5rem;
  }
  
  .skill-icon {
    width: 36px;
    height: 36px;
  }
  
  .skill-icon i {
    font-size: 1.25rem;
  }
  
  .skill-name {
    font-size: 0.7rem;
  }
}
  
  /* Custom glow effect */
  .glow-text {
    text-shadow: 0 0 10px #00cfff, 0 0 20px #00cfff, 0 0 40px #00cfff;
  }
  
  /* Smooth fade-in transition (used with JS) */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Hero image wrapper and overlay */
  .hero-img-wrapper {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  }
  .hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    filter: brightness(0.92) contrast(1.08) saturate(1.1);
    transition: filter 0.3s;
  }
  .hero-img-overlay {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: linear-gradient(120deg, rgba(0,0,0,0.15) 60%, rgba(0,212,255,0.08) 100%);
    pointer-events: none;
  }
  .hero-img-wrapper:hover .hero-img {
    filter: brightness(1) contrast(1.15) saturate(1.2);
  }

  /* Hero Video Background */
.hero-video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
  min-width: 100%;
  min-height: 100%;
  pointer-events: none;
  filter: brightness(0.5) contrast(1.2) saturate(1.2);
  background: #000;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}


.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(120deg, rgba(0,0,0,0.7) 60%, rgba(0,255,255,0.08) 100%);
  box-shadow: 0 0 120px 40px rgba(0,255,255,0.08) inset;
  pointer-events: none;
}
.hero-content {
  z-index: 10;
}

/* Project Cards Styles */
.project-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: #1f2937; /* bg-gray-800 equivalent */
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #374151; /* border-gray-700 */
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: #06b6d4; /* border-cyan-500 */
}

.card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(6, 182, 212, 0.9); /* bg-cyan-500 with opacity */
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 25px;
}

.card-title {
  color: #fbbf24; /* text-yellow-400 */
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.card-description {
  color: #d1d5db; /* text-gray-300 */
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

/* Tech Stack Section */
.tech-stack-section {
  margin: 20px 0;
  background: #ffffff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tech-stack-line {
  height: 1px;
  background: rgba(156, 163, 175, 0.3); /* border-gray-400 with opacity */
  margin-bottom: 15px;
}

.tech-stack-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tech-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f8f9fa; /* light gray background */
  border-radius: 50%;
  padding: 8px;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb; /* border-gray-200 */
}

.tech-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3); /* cyan glow */
  border-color: #06b6d4; /* border-cyan-500 */
}

.tech-icon svg {
  width: 24px;
  height: 24px;
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(156, 163, 175, 0.3); /* border-gray-400 with opacity */
}

.card-button {
  flex: 1;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.demo-btn {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); /* cyan gradient */
  color: #fff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.github-btn {
  background: transparent;
  color: #fbbf24; /* text-yellow-400 */
  border: 2px solid #fbbf24; /* border-yellow-400 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.github-btn:hover {
  background: rgba(251, 191, 36, 0.1); /* bg-yellow-400 with opacity */
  border-color: #f59e0b; /* border-yellow-500 */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-cards-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .project-card {
    margin-bottom: 1rem;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .card-title {
    font-size: 1.25rem;
  }
  
  .card-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .card-button {
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .project-cards-container {
    padding: 0 0.5rem;
  }
  
  .card-content {
    padding: 15px;
  }
  
  .tech-stack-icons {
    gap: 8px;
  }
  
  .tech-icon {
    width: 28px;
    height: 28px;
  }
  
  .tech-icon svg {
    width: 16px;
    height: 16px;
  }
}

  /* Responsive adjustments for hero section */
  @media (max-width: 768px) {
    .hero-content {
      flex-direction: column;
      text-align: center;
    }
    .hero-img-wrapper {
      width: 120px;
      height: 120px;
      margin-bottom: 1.5rem;
      margin-right: 0;
    }
  }  

/* Hero Section Font Styles */
.hero-title-font {
  font-family: 'Orbitron', Arial, sans-serif;
  letter-spacing: 0.04em;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 4px 32px rgba(0,255,255,0.08);
}
.hero-subtitle-font {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-btn-font {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}  

/* Mobile Menu Styles */
.mobile-menu-overlay {
  backdrop-filter: blur(4px);
}

.mobile-menu {
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-overlay.open {
  display: block;
}

/* Hamburger button animation */
.hamburger-btn.active svg {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}  