/* 
 * PORTFOLIO PREMIUM DESIGN SYSTEM
 * Author: Irvan Maulana Fazri - Programmer & Web Developer
 * Powered by: Antigravity Custom Styles
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* CSS VARIABLES - DESIGN TOKENS */
:root {
  /* Color Palettes */
  --bg-deep: #070a13;
  --bg-dark: #0c101f;
  --bg-card: rgba(16, 22, 42, 0.65);
  --bg-glass: rgba(12, 16, 31, 0.45);
  
  --primary: #00f2fe;
  --primary-glow: rgba(0, 242, 254, 0.15);
  --secondary: #7f00ff;
  --secondary-glow: rgba(127, 0, 255, 0.15);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --gradient-secondary: linear-gradient(135deg, #7f00ff 0%, #e100ff 100%);
  --gradient-dark: linear-gradient(180deg, #0c101f 0%, #070a13 100%);
  --gradient-glow: linear-gradient(135deg, #00f2fe 0%, #7f00ff 100%);

  /* Border & Glass */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);
  --border-glass: 1px solid rgba(255, 255, 255, 0.06);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --blur-glass: blur(12px);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Spacing & Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* UNIVERSAL RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-glow);
}

/* BASE STYLES */
body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(127, 0, 255, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* UTILITY CLASSES */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  transition: var(--transition-normal);
}

.glass-card:hover {
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 12px 40px 0 rgba(0, 242, 254, 0.08);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #070a13;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--blur-glass);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.15);
}

/* NAVIGATION HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: var(--border-glass);
  padding: 16px 0;
  transition: var(--transition-normal);
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(7, 10, 19, 0.85);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 40px;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glow-circle {
  width: 320px;
  height: 320px;
  background: var(--gradient-glow);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  position: absolute;
  animation: float-slow 8s infinite alternate;
}

.hero-avatar-container {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.5) 0%, rgba(127, 0, 255, 0.5) 100%);
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.2);
  animation: float 6s ease-in-out infinite;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border: 4px solid #070a13;
  overflow: hidden;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 85%;
  border-radius: 50%;
}

/* SECTIONS COMMON */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px auto;
}

.section-subtitle {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
}

/* ABOUT SECTION */
.about-content-box {
  max-width: 850px;
  margin: 0 auto;
  padding: 48px;
  border-radius: var(--radius-lg);
}


.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-keypoints {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.keypoint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}

.keypoint i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* SKILLS SECTION */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skill-category {
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.skill-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 24px;
  border: var(--border-glass);
  transition: var(--transition-normal);
}

.skill-category:hover .skill-icon {
  background: var(--gradient-primary);
  color: #070a13;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.skill-category h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-glass);
  border-radius: 30px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.skill-tag:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--primary);
  color: var(--text-main);
  transform: translateY(-2px);
}

/* FEATURED PROJECT SECTION (KASIR TOKO) */
.project-showcase {
  background: radial-gradient(circle at 90% 10%, rgba(127, 0, 255, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 10% 90%, rgba(0, 242, 254, 0.06) 0%, transparent 50%);
}

.project-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.project-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: var(--transition-normal);
}

.project-visual:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(0, 242, 254, 0.15);
}

.project-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: var(--transition-slow);
}

.project-visual:hover .project-img {
  transform: scale(1.02);
}

.project-badge-featured {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--gradient-secondary);
  color: white;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(127, 0, 255, 0.4);
}

.project-info h3 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.project-store-alias {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  display: block;
}

.project-desc-text {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* Tab System for Project Features */
.project-tabs-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: var(--border-glass);
  padding: 10px 18px;
  border-radius: 30px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--gradient-primary);
  color: #070a13;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.project-tab-content {
  min-height: 180px;
}

.tab-pane {
  display: none;
  animation: fade-in 0.4s ease-in-out forwards;
}

.tab-pane.active {
  display: block;
}

.tab-pane h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
}

.tab-pane p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.tab-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tab-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-main);
}

.tab-feature-item i {
  color: var(--primary);
  font-size: 0.9rem;
}

.project-links {
  margin-top: 36px;
  display: flex;
  gap: 16px;
}

/* TIMELINE SECTION */
.timeline {
  position: relative;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background-color: var(--bg-deep);
  border: 4px solid var(--primary);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 10px var(--primary);
  transition: var(--transition-normal);
}

.timeline-item:nth-child(even)::after {
  border-color: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
}

.timeline-item:hover::after {
  transform: scale(1.3);
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.right::after {
  left: -8px;
}

.timeline-content {
  padding: 24px;
  position: relative;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.timeline-item:nth-child(even) .timeline-date {
  color: #c084fc;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CONTACT SECTION */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
}

.contact-method:nth-child(even) .contact-icon {
  color: #c084fc;
}

.contact-details h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-details p {
  font-size: 1.05rem;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-normal);
}

.social-btn:hover {
  background: var(--gradient-primary);
  color: #070a13;
  border-color: transparent;
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

/* Contact Form */
.contact-form-card {
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* FOOTER */
.footer {
  border-top: var(--border-glass);
  padding: 48px 0;
  background: #05070d;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.footer-logo .logo-dot {
  width: 6px;
  height: 6px;
}

.footer-copyright {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes float-slow {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.1); }
  100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SCROLL REVEAL CLASSSES (INTERSECTION OBSERVER) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE DESIGN (MEDIA QUERIES) */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #0c101f;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    padding: 100px 40px;
    transition: var(--transition-normal);
    z-index: 999;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-toggle {
    display: block;
    z-index: 1001;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .timeline-container::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::after {
    left: 23px;
  }
  
  .right {
    left: 0%;
  }
  
  .right::after {
    left: 23px;
  }
  
  .about-content-box {
    padding: 24px;
  }

  .about-keypoints {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.3rem;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-number {
    font-size: 2rem;
  }
  .contact-form-card {
    padding: 24px;
  }
  .tab-features-list {
    grid-template-columns: 1fr;
  }
}
