@charset "utf-8";

/* ===== CSS VARIABLES ===== */
:root {
  --primary-black: #0a0a0a;
  --glass-bg: rgba(20, 20, 20, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
  --accent-purple: #9b4bff;
  --accent-blue: #00a8ff;
  --accent-cyan: #00ffff;
  --text-primary: #ffffff;
  --text-secondary: #b9b9b9;
  --radius: 24px;
  --header-height: 70px;
}

/* ===== BASE RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--primary-black);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-purple);
  animation: pulse 1.2s infinite ease-in-out;
  box-shadow: 0 0 30px var(--accent-purple);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s ease;
  transform: translateY(0);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(155, 75, 255, 0.2);
}

.header.hide {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px; 
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  cursor: pointer;
  transition: transform 0.25s ease;
  z-index: 2001;
}

.logo-img {
  height: clamp(55px, 7vw, 130px);
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.logo:hover .logo-img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 8px rgba(155, 75, 255, 0.5));
}

/* ===== NAVIGATION ===== */
.nav-menu {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex !important;
  }
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-purple);
}

.menu-toggle {
  display: none;
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 1rem;
  width: 100%;
  overflow: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: linear-gradient(180deg, #0a0a0a 0%, rgba(155, 75, 255, 0.05) 100%);
}

.gradient-line {
  width: 100%;
  max-width: 400px;
  height: 2px;
  margin: 0 auto 2rem;
  background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.7;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.pillar-card {
  border-radius: 28px;
  padding: 2.5rem 2rem;
  background: radial-gradient(circle at top left, rgba(155, 75, 255, 0.15), #0a0a0a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(10px);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.95), 0 0 28px rgba(155, 75, 255, 0.5);
  border-color: rgba(155, 75, 255, 0.6);
}

.pillar-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--accent-purple);
  transition: transform 0.3s ease;
}

.pillar-card:hover .pillar-icon {
  transform: scale(1.08) rotateY(180deg);
}

.pillar-icon svg {
  width: 32px;
  height: 32px;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-align: center;
}

.pillar-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: center;
}

/* ===== STATS SECTION ===== */
.stats-section {
  background: #0a0a0a;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 3rem auto 0;
}

.stat-card {
  border-radius: 28px;
  padding: 2.5rem 2rem;
  background: radial-gradient(circle at top, rgba(155, 75, 255, 0.1), #0a0a0a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.95), 0 0 28px rgba(155, 75, 255, 0.5);
  border-color: rgba(155, 75, 255, 0.6);
}

.stat-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.9));
  color: var(--accent-purple);
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.12) rotate(360deg);
}

.stat-icon svg {
  width: 28px;
  height: 28px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: #ffffff;
  display: inline-block;
}

.stat-suffix {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-purple);
  display: inline-block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.stat-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
  background: linear-gradient(180deg, #0a0a0a 0%, rgba(155, 75, 255, 0.05) 100%);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0 3rem;
}

.category-tab {
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(155, 75, 255, 0.5);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(155, 75, 255, 0.4);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  align-items: center;
  margin-top: 4rem;
}

.skill-card {
  width: 220px;
  height: 240px;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.95), #000000);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 25px rgba(124, 255, 255, 0.15);
  transform: rotate(6deg);
  padding: 2rem 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-align: center;
}

.skill-card:hover {
  transform: rotate(6deg) translateY(-10px) scale(1.05);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 255, 255, 0.45);
  border-color: rgba(0, 255, 255, 0.6);
}

.skill-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00eaff;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.55));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.skill-card:hover .skill-icon {
  transform: scale(1.22);
  filter: drop-shadow(0 0 14px rgba(0, 255, 255, 0.9));
}

.skill-icon svg {
  width: 32px;
  height: 32px;
  animation: iconFloat 2.2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.skill-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 0.5rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: #0a0a0a;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  margin: 3rem auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  background: rgba(15, 15, 15, 0.8);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: #ffffff;
}

.contact-card:hover {
  transform: translateX(8px);
  border-color: var(--accent-purple);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(155, 75, 255, 0.4);
}

.contact-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(155, 75, 255, 0.25), rgba(0, 0, 0, 0.9));
  color: #ffffff;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
}

.contact-icon svg {
  width: 28px;
  height: 28px;
}

.contact-text h4 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.contact-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== FAQ SECTION ===== */
.faq-section {
  margin-top: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-heading {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2rem;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(15, 15, 15, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(155, 75, 255, 0.3);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  color: #ffffff;
  text-align: left;
  transition: color 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.faq-question:hover {
  color: var(--accent-purple);
}

.faq-arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--accent-purple);
}

.faq-item.active .faq-arrow {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  opacity: 1;
  padding: 0 1.5rem 1.5rem;
}

/* ===== FOOTER ===== */
.footer {
  padding: 2.5rem 1rem;
  text-align: center;
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.designer-link {
  color: var(--accent-purple);
  text-decoration: none;
  transition: color 0.3s ease;
}

.designer-link:hover {
  color: var(--accent-cyan);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .section {
    padding: 6rem 2rem;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 60px;
  }
  
  .header {
    padding: 0.5rem 0;
  }
  
  .header-container {
    padding: 0 1.25rem;
  }
  
  .hero {
    min-height: 100vh;
    padding: calc(var(--header-height) + 1rem) 0.5rem 2rem;
  }
  
  .card-number {
    font-size: 2rem; 
    opacity: 0.08; 
  }
  
  .card-image {
    height: 35%;
    margin-bottom: 0.75rem;
  }
  
  .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  
  .card-description {
    font-size: 0.75rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
  }
  
  .card-tech {
    gap: 0.4rem;
  }
  
  .tech-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.65rem;
  }
  
  .section {
    padding: 4rem 1rem;
  }
  
  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
  
  .skill-card {
    width: min(220px, 85vw);
    height: 240px;
  }
  
  .contact-card {
    padding: 1.5rem 1.25rem;
  }
  
  .pillar-card {
    padding: 2rem 1.5rem;
  }
  
  .stat-card {
    padding: 2rem 1.5rem;
  }

}

@media (max-width: 480px) {
  
  .card-title {
    font-size: 1.35rem;
  }
  
  .card-description {
    font-size: 0.75rem;
  }
  
  .section-subtitle {
    font-size: 0.85rem;
  }
}
