/* ===== IMPORTS & VARIABLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

/* Dark Theme (Default) */
:root,
[data-theme="dark"] {
  --primary: #00d9ff;
  --primary-dark: #00a8c7;
  --secondary: #ffd700;
  --bg-dark: #0a0f1a;
  --bg-card: #0f1623;
  --bg-card-hover: #141d2c;
  --bg-navbar: rgba(10, 15, 26, 0.8);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --gradient-primary: linear-gradient(135deg, #00d9ff 0%, #667eea 100%);
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  --shadow-glow: 0 0 40px rgba(0, 217, 255, 0.15);
  --code-bg: rgba(15, 22, 35, 0.9);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
[data-theme="light"] {
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --secondary: #d97706;
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-navbar: rgba(255, 255, 255, 0.9);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 40px rgba(8, 145, 178, 0.1);
  --code-bg: #1e293b;
}

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

/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
}

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

/* ===== ANIMATED BACKGROUND ===== */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.08) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.bg-gradient::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.06) 0%, transparent 70%);
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(50px, 50px) rotate(5deg);
  }

  50% {
    transform: translate(0, 100px) rotate(0deg);
  }

  75% {
    transform: translate(-50px, 50px) rotate(-5deg);
  }
}

.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4rem;
  background: var(--bg-navbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 42px;
  transition: var(--transition);
}

.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-logo span {
  font-weight: 700;
  font-size: 1.25rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

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

.nav-links a.active {
  color: var(--primary);
  background: rgba(0, 217, 255, 0.1);
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 0.5rem;
}

.theme-toggle:hover {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
  transform: rotate(15deg);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: calc(100vh - 73px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
}

/* ===== HERO TEXT ===== */
.hero-text {
  flex: 1;
  max-width: 600px;
}

.greeting {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.wave {
  font-size: 1.5rem;
  display: inline-block;
  animation: wave 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {

  0%,
  100% {
    transform: rotate(0deg);
  }

  10% {
    transform: rotate(14deg);
  }

  20% {
    transform: rotate(-8deg);
  }

  30% {
    transform: rotate(14deg);
  }

  40% {
    transform: rotate(-4deg);
  }

  50% {
    transform: rotate(10deg);
  }

  60% {
    transform: rotate(0deg);
  }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero-title .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.role-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(0, 217, 255, 0.1);
  border-radius: 8px;
  color: var(--primary);
}

.divider {
  color: var(--text-muted);
  margin: 0 0.25rem;
}

/* ===== CODE BLOCK ===== */
.code-block {
  background: rgba(15, 22, 35, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27ca40;
}

.code-title {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
}

.code-content {
  display: flex;
  align-items: center;
  padding: 1.25rem 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
}

.line-number {
  color: var(--text-muted);
  margin-right: 1.5rem;
  user-select: none;
}

.code-text {
  color: var(--text-primary);
}

.keyword {
  color: #c678dd;
}

.string {
  color: #98c379;
}

.typing-text {
  color: #98c379;
}

.cursor {
  color: var(--primary);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ===== HERO BUTTONS ===== */
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 217, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: rgba(0, 217, 255, 0.1);
  transform: translateY(-3px);
}

/* ===== HERO SOCIAL ===== */
.hero-social {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.4);
}

/* ===== HERO IMAGE ===== */
.hero-image-container {
  position: relative;
  flex-shrink: 0;
}

.image-glow {
  position: absolute;
  inset: -20px;
  background: var(--gradient-gold);
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(40px);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(1.05);
  }
}

.image-ring {
  position: absolute;
  inset: -15px;
  border: 2px dashed rgba(0, 217, 255, 0.3);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero-image {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--secondary);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.hero-image:hover {
  transform: scale(1.02);
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  font-size: 1.25rem;
  z-index: 3;
  animation: float-badge 4s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-badge.tech {
  top: 20px;
  right: -10px;
  color: #3ddc84;
  animation-delay: 0s;
}

.floating-badge.apple {
  bottom: 40px;
  right: -20px;
  color: var(--text-primary);
  animation-delay: 1s;
}

.floating-badge.code {
  top: 50%;
  left: -25px;
  color: var(--primary);
  animation-delay: 2s;
}

@keyframes float-badge {

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

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

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease-out 1s both;
}

.scroll-arrow {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

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

  50% {
    transform: translateY(8px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-container {
    gap: 3rem;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-image {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 120px);
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .greeting {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    justify-content: center;
    flex-wrap: wrap;
    font-size: 1.1rem;
  }

  .code-content {
    font-size: 0.85rem;
    padding: 1rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-social {
    justify-content: center;
  }

  .hero-image-container {
    order: -1;
  }

  .hero-image {
    width: 220px;
    height: 220px;
  }

  .floating-badge {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .floating-badge.tech {
    top: 10px;
    right: -5px;
  }

  .floating-badge.apple {
    bottom: 20px;
    right: -10px;
  }

  .floating-badge.code {
    left: -15px;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

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

  .code-block {
    margin: 0 -0.5rem 2rem;
  }

  .code-content {
    font-size: 0.75rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .hero-image {
    width: 180px;
    height: 180px;
  }
}

/* ===== ANIMATIONS ===== */
.hero-text,
.hero-image-container {
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-image-container {
  animation-delay: 0.2s;
}

.greeting {
  animation-delay: 0.3s;
}

.hero-title {
  animation-delay: 0.4s;
}

.hero-subtitle {
  animation-delay: 0.5s;
}

.code-block {
  animation-delay: 0.6s;
}

.hero-buttons {
  animation-delay: 0.7s;
}

.hero-social {
  animation-delay: 0.8s;
}