/* ========================================
   ALWI JAYA - PREMIUM PORTFOLIO REDESIGN
   Modern, Glassmorphism, Dark Theme
   ======================================== */

/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ========================================
   CSS VARIABLES - DESIGN TOKENS
   ======================================== */
:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a25;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.05);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;

  /* Accent Colors */
  --accent-primary: #00d4ff;
  --accent-secondary: #a855f7;
  --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
  --accent-glow: 0 0 30px rgba(0, 212, 255, 0.3);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(20px);

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);

  /* Spacing */
  --section-padding: clamp(4rem, 10vw, 8rem);
  --container-max: 1200px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  font-size: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--bg-secondary);
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 10px;
}

::selection {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.6rem;
  line-height: 1.7;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 255, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(168, 85, 247, 0.1), transparent),
    radial-gradient(ellipse 50% 30% at 0% 100%, rgba(0, 212, 255, 0.08), transparent);
  pointer-events: none;
  z-index: -1;
}

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

img,
video {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

input,
button,
textarea,
select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title {
  font-size: clamp(3.2rem, 5vw, 5rem);
  font-weight: 800;
  margin-top: 1rem;
  line-height: 1.1;
}

.info {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  max-width: 550px;
}

/* Gradient Text */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

/* Glow Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3rem;
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  box-shadow: var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

/* Hover Effect Line */
.hover-effect {
  position: relative;
}

.hover-effect::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-medium);
}

.hover-effect:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Skip to content */
.skip-to-content {
  position: absolute;
  background: var(--accent-primary);
  color: var(--bg-primary);
  padding: 1rem 1.5rem;
  left: 2rem;
  top: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 1.4rem;
  font-weight: 600;
  transform: translateY(-100%);
  transition: transform var(--transition-medium);
  z-index: 1000;
}

.skip-to-content:focus {
  transform: translateY(0);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.5);
  }
}

.bounce-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-top {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 2rem;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  transition: all var(--transition-medium);
}

.logo:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--accent-glow);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.nav-links {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links:hover {
  color: var(--text-primary);
}

.social-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-nav a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: all var(--transition-medium);
}

.social-nav a:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--accent-glow);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  width: 28px;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.line-menu {
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-medium);
}

.line-menu.half {
  width: 50%;
}

.line-menu.end {
  align-self: flex-end;
}

.hamburger.open .line-menu.start {
  transform: rotate(45deg) translateY(5px);
}

.hamburger.open .line-menu:not(.half) {
  opacity: 0;
}

.hamburger.open .line-menu.end {
  transform: rotate(-45deg) translateY(-5px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--section-padding) + 8rem) 2rem var(--section-padding);
  position: relative;
}

.hero .container {
  text-align: center;
  max-width: 900px;
}

.hero-text {
  animation: fadeInUp 1s ease-out;
}

.hero .subtitle {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.hero .name {
  font-size: clamp(4.5rem, 10vw, 9rem);
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
}

.hero .intro {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.hero-btn-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}

.hire-btn {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  padding: 1.4rem 4rem;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-md);
  box-shadow: var(--accent-glow);
  transition: all var(--transition-medium);
}

.hire-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.6);
}

.download-link {
  padding: 1.4rem 3rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-medium);
}

.download-link:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-me {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
  position: relative;
}

.about-me::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
}

.about-me .container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: center;
}

.about-me img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-slow);
}

.about-me img:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.about-me article {
  padding: 3rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass-blur);
}

.about p {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-top: 2rem;
  line-height: 1.8;
}

.about p:first-child {
  margin-top: 2rem;
}

/* ========================================
   SKILLS SECTION
   ======================================== */
.my-skills {
  padding: var(--section-padding) 2rem;
}

.my-skills .container>article {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

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

.technologies.list {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  transition: all var(--transition-medium);
  display: flex;
  flex-direction: column;
}

.technologies.list:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-5px);
}

.subtitle.tools {
  font-size: 1.3rem;
  color: var(--accent-primary);
  margin-bottom: 2rem;
  display: block;
}

.technologies ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.technologies li {
  font-size: 1.3rem;
  padding: 0.6rem 1.2rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.technologies li:hover {
  background: var(--accent-gradient);
  color: var(--bg-primary);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-section {
  padding: var(--section-padding) 2rem;
  background: var(--bg-secondary);
}

.projects-section>.container>article {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.project:nth-child(even) {
  direction: rtl;
}

.project:nth-child(even)>* {
  direction: ltr;
}

.project-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-medium);
}

.project-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(168, 85, 247, 0.1));
  opacity: 0;
  transition: opacity var(--transition-medium);
  z-index: 1;
}

.project-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.project-img:hover::before {
  opacity: 1;
}

.project-img img,
.project-img video {
  width: 100%;
  height: auto;
  display: block;
}

.project h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.project h2 {
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  margin-top: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #c0c0c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project p {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  line-height: 1.7;
}

.project p i {
  color: var(--accent-primary);
  margin-right: 0.5rem;
}

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

.tech-stack li {
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  background: var(--accent-gradient);
  color: var(--bg-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
}

.project-links a {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent-primary);
  transition: all var(--transition-fast);
}

.project-links a:hover {
  color: var(--accent-secondary);
}

/* Other Noteworthy Projects */
.other-noteworthy-project {
  margin-top: 10rem;
  text-align: center;
}

.other-noteworthy-project h3 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin-bottom: 4rem;
}

.other-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3rem;
}

.other-projects .project {
  display: block;
}

.other-projects a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-medium);
}

.other-projects a:hover {
  border-color: var(--accent-primary);
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
}

.other-projects img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.other-projects div {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.other-projects h4 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.other-projects p {
  font-size: 1.4rem;
  color: var(--text-secondary);
  flex: 1;
}

.other-projects ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.other-projects li {
  font-size: 1.2rem;
  color: var(--accent-primary);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
  padding: var(--section-padding) 2rem;
  text-align: center;
}

.contact .container {
  max-width: 800px;
}

.mail-link {
  display: inline-flex;
  align-items: center;
  margin-top: 4rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  padding: 1.5rem 4rem;
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-medium);
}

.mail-link:hover {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  border-color: transparent;
  box-shadow: var(--accent-glow);
  transform: translateY(-3px);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 4rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
}

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

.footer p {
  font-size: 1.4rem;
  color: var(--text-muted);
}

.footer div {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.footer ul {
  display: flex;
  gap: 2.5rem;
}

.footer a {
  font-size: 1.4rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--accent-primary);
}

.top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-medium);
}

.top:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.scroll {
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  text-align: right;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media screen and (max-width: 900px) {
  .about-me .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-me img {
    margin: 0 auto;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .project:nth-child(even) {
    direction: ltr;
  }
}

@media screen and (max-width: 768px) {
  .main-header {
    padding: 1rem;
  }

  .nav .container {
    padding: 1rem 1.5rem;
  }

  .nav-list,
  .social-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
  }

  .nav-list.open,
  .social-nav.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-list {
    gap: 3rem;
    z-index: 100;
  }

  .nav-list.open {
    padding-bottom: 15rem;
  }

  .social-nav {
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 5rem;
    z-index: 101;
  }

  .nav-links {
    font-size: 2rem;
  }

  .hamburger {
    display: flex;
    z-index: 200;
  }

  .hero-btn-container {
    flex-direction: column;
  }

  .technologies {
    grid-template-columns: 1fr;
  }

  .other-projects {
    grid-template-columns: 1fr;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer div {
    flex-direction: column;
    gap: 2rem;
  }
}

@media screen and (max-width: 480px) {
  :root {
    font-size: 9px;
  }

  .hero .name {
    font-size: 4rem;
  }

  .title {
    font-size: 2.8rem;
  }

  .project h2 {
    font-size: 2rem;
  }
}

/* Hide language switcher (removed) */
.language-switcher {
  display: none;
}