:root {
  --bg-color: #0b0f19;
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --accent-color: #58a6ff;
  --accent-secondary: #a371f7;
  --accent-gradient: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%);
  --glass-bg: rgba(22, 27, 34, 0.5);
  --glass-border: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(43, 50, 60, 0.6);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Animated Blobs */
.blob-bg {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(88,166,255,0.15) 0%, rgba(11,15,25,0) 70%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: float 20s ease-in-out infinite alternate;
}
.blob-2 {
  top: 50%;
  left: auto;
  right: -10%;
  background: radial-gradient(circle, rgba(163,113,247,0.15) 0%, rgba(11,15,25,0) 70%);
  animation: float2 25s ease-in-out infinite alternate;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 50px) scale(1.1); }
}
@keyframes float2 {
  0% { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-100px, -50px) scale(1); }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  border-radius: 16px;
}

/* Navigation */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  padding: 1rem 0;
}
.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}
.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.logo span {
  color: var(--accent-color);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--accent-secondary);
}

/* Main Layout */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 2rem 4rem; /* Offset for nav */
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4rem;
  padding: 4rem;
  gap: 3rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.hero-content {
  flex: 1;
}
.greeting {
  font-size: 1.25rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.name {
  font-size: 4.5rem;
  letter-spacing: -2px;
  margin-bottom: 0.5rem;
  font-weight: 800;
}
.role {
  font-size: 1.8rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 2rem;
}
.summary {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 500px;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}
.code-window {
  background: #161b22;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}
.code-window:hover {
  transform: rotate(0) scale(1.02);
}
.window-header {
  background: #1a202c;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--glass-border);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-window pre {
  padding: 20px;
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}
.keyword { color: #ff7b72; }
.variable { color: #79c0ff; }
.operator { color: #c9d1d9; }
.property { color: #d2a8ff; }
.string { color: #a5d6ff; }
.method { color: #d2a8ff; font-style: italic; }

/* Buttons */
.cta-group {
  display: flex;
  gap: 1.5rem;
}
.btn {
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}
.btn.primary {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(88, 166, 255, 0.4);
}
.btn.primary:hover {
  box-shadow: 0 6px 20px rgba(88, 166, 255, 0.6);
}
.btn.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn.secondary:hover {
  background: var(--glass-bg);
  border-color: var(--accent-color);
}

/* Sections */
section {
  padding: 5rem 0;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.skill-card {
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, background 0.3s ease;
  text-align: center;
}
.skill-card:hover {
  transform: translateY(-5px);
  background: var(--card-hover);
  border-color: var(--accent-secondary);
}
.skill-card i {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}
.icon-react { color: #61dafb !important; }
.icon-php { color: #777bb4 !important; }
.icon-server { color: #ff7b72 !important; }
.icon-git { color: #2ea043 !important; }

.skill-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.skill-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.skill-card strong {
  color: var(--text-primary);
}

/* Experience Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  margin-top: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  height: 100%;
  width: 2px;
  background: var(--glass-border);
}

.timeline-item {
  position: relative;
  padding: 2rem 2rem 2rem 5rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.timeline-item:hover {
  background: var(--card-hover);
  border-color: var(--accent-color);
  transform: translateX(5px);
}
.timeline-dot {
  position: absolute;
  left: 17px;
  top: 35px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
}
.timeline-content h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.tech-stack {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-secondary);
  background: rgba(163, 113, 247, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}
.timeline-content p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Contact Section */
.contact-section {
  text-align: center;
  padding: 4rem;
  margin-top: 2rem;
}
.contact-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}
.contact-card:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(88, 166, 255, 0.3);
}
.contact-card i {
  font-size: 1.2rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 3rem 2rem;
  }
  .summary {
    margin: 0 auto 2.5rem;
  }
  .cta-group {
    justify-content: center;
  }
  .code-window {
    transform: none;
  }
  .code-window:hover {
    transform: scale(1.02);
  }
}

@media (max-width: 600px) {
  .name { font-size: 3rem; }
  .nav-links { display: none; }
  .timeline-item { padding: 1.5rem 1.5rem 1.5rem 3.5rem; }
  .timeline::before { left: 14px; }
  .timeline-dot { left: 7px; top: 30px; }
}
