/* ========================================================================
   1. CSS Variables & Theme Configuration
   ======================================================================== */
:root {
  --bg-dark: #000000;
  --bg-darker: #050505;
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --accent-color: #0071e3;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-main: -apple-system, 'SF Pro Display', 'Inter', BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

/* ========================================================================
   2. Reset & Basics
   ======================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.text-center {
  text-align: center;
}

/* ========================================================================
   3. Ambient Background Gradient (Apple Style)
   ======================================================================== */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-dark);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  animation: float 20s infinite alternate;
}

.orb-1 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.4) 0%, rgba(0,0,0,0) 70%);
  top: -20vh;
  left: -20vw;
}

.orb-2 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(0,0,0,0) 70%);
  bottom: -10vh;
  right: -10vw;
  animation-delay: -5s;
}

.orb-3 {
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, rgba(0,0,0,0) 70%);
  top: 30vh;
  left: 30vw;
  animation-delay: -10s;
}

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

/* ========================================================================
   4. Glassmorphism Utilities
   ======================================================================== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-5px) scale(1.01);
  background: rgba(255, 255, 255, 0.08);
}

/* ========================================================================
   5. Header & Navigation
   ======================================================================== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.site-title-link {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-menu a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-transform: capitalize;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: var(--text-primary);
  transition: 0.3s;
}

/* ========================================================================
   6. Hero Section
   ======================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.gradient-text {
  background: linear-gradient(90deg, #c084fc, #3b82f6, #ec4899);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: #ffffff;
  transform: scale(1.05);
  color: var(--bg-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ========================================================================
   7. Timeline Experience
   ======================================================================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline-item {
  position: relative;
  padding: 40px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.timeline-header h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
}

.timeline-header .date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.1);
  padding: 5px 15px;
  border-radius: 20px;
}

.company {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  font-weight: 500;
}

.timeline-item p {
  color: var(--text-secondary);
}

/* ========================================================================
   8. Skills & Grid
   ======================================================================== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.expertise-item {
  text-align: center;
}

.icon-wrapper {
  color: var(--text-primary);
  margin-bottom: 20px;
}

.expertise-item h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.expertise-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pill-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.skill-pill {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: 0.3s;
}

.skill-pill:hover {
  border-color: var(--accent-color);
  color: var(--text-primary);
  background: rgba(0, 113, 227, 0.1);
}

/* ========================================================================
   9. Dual Columns
   ======================================================================== */
.dual-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.column h3 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.clean-list {
  list-style: none;
}

.clean-list li {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 30px;
}

.clean-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.clean-list h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.clean-list p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ========================================================================
   10. Projects
   ======================================================================== */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project-card .date {
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.text-link {
  color: var(--text-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid transparent;
}

.text-link:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

/* ========================================================================
   11. Footer
   ======================================================================== */
.site-footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-darker);
  position: relative;
  z-index: 2;
}

.footer-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.site-branding-footer h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.subtitle {
  color: var(--text-secondary);
}

.contact-footer p, .social-footer a {
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: block;
}

.contact-footer a:hover, .social-footer a:hover {
  color: var(--text-primary);
}

.site-info {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
}

/* ========================================================================
   12. Animations & Intersection Observer Classes
   ======================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpAnim 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.delay-1 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; transition-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
  }
  .nav-menu.open {
    display: flex;
  }
  .dual-columns {
    grid-template-columns: 1fr;
  }
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
