:root {
    --primary: #2563eb;
    --secondary: #3b82f6;
    --accent: #f59e0b;
    --background: #ffffff;
    --dark: #1f2937;
    --light: #f8fafc;
    --text: #374151;
    --text-light: #6b7280;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --section-padding: 6rem 2rem;
    --card-radius: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--glass-border);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-links a.active:after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  margin-top: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.primary-button, .secondary-button {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.primary-button {
  background: var(--primary);
  color: var(--white);
}

.secondary-button {
  background: var(--light);
  color: var(--text);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.secondary-button:hover {
  background: var(--dark);
  color: var(--white);
}

.hero-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

/* Skills Marquee */
.skills-marquee {
  background: var(--light);
  padding: 2rem 0;
  overflow: hidden;
}

.marquee-content {
  white-space: nowrap;
}

.logo-slider {
  display: flex;
  animation: scroll 40s linear infinite;
}

.logo-group {
  display: flex;
  gap: 2rem;
}

.logo-group img {
  height: 3rem;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.logo-group img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Journey Timeline */
.journey {
  padding: 6rem 2rem;
  background: linear-gradient(to bottom, var(--background), var(--light));
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: var(--dark);
}

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

.timeline-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--primary);
}

.timeline-event {
  margin-bottom: 3rem;
  padding-left: 2rem;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--white);
}

.timeline-event.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hobbies Section */
.hobbies {
    padding: 6rem 2rem;
    background: linear-gradient(to top, var(--background), var(--light));
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hobby-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.hobby-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hobby-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hobby-card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.hobby-card p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Social Cards */
.connect {
  padding: 6rem 2rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.social-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.social-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-content {
  padding: 2rem;
  text-align: center;
}

.social-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.social-card[data-platform="linkedin"] .social-link { background: #0A66C2; }
.social-card[data-platform="github"] .social-link { background: #181717; }
.social-card[data-platform="instagram"] .social-link { background: #E4405F; }

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 2rem;
}

/* Back to Top Button */
#backToTopBtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: 1000;
}

#backToTopBtn svg {
  fill: currentColor;
}

#backToTopBtn:hover {
  background: var(--secondary);
  transform: translateY(-2px) scale(1.1);
}

/* Cursor Trail */
.cursor-trail {
  pointer-events: none;
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s;
  z-index: 9999;
}

/* Interactive Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: var(--background);
}

/* Joke Card */
.joke-card {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.joke-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.joke-label {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.joke-icon {
    font-size: 1.25rem;
    animation: bounce 2s infinite;
}

.joke-content {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: transparent;
    transition: opacity 0.5s ease;
}

#jokeText {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Media Query */
@media (max-width: 768px) {
    .joke-card {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero-text h1 {
    font-size: 3rem;
  }
}

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

  .hero {
    padding: 4rem 1rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .timeline-container {
    padding-left: 1.5rem;
  }

  .timeline-event {
    margin-bottom: 2rem;
  }

  .timeline-event h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
  }

  .timeline-event p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
  }

  .timeline-event::before {
    left: -2rem;
    width: 0.8rem;
    height: 0.8rem;
  }

  .joke-card {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: calc(100% - 2rem);
  }
}

/* Animations */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.glitch-text {
  position: relative;
  animation: glitch 1s infinite;
}

@keyframes glitch {
  0% { transform: skewX(0deg); }
  20% { transform: skewX(2deg); }
  40% { transform: skewX(-2deg); }
  60% { transform: skewX(1deg); }
  80% { transform: skewX(-1deg); }
  100% { transform: skewX(0deg); }
}