:root {
  --bg-color: #0f172a;
  --text-color: #e2e8f0;
  --primary-color: #38bdf8; /* Light Blue / Cyan */
  --secondary-color: #818cf8; /* Indigo/Purple */
  --accent-color: #f472b6; /* Pink */
  --card-bg: #1e293b;
  --nav-bg: rgba(15, 23, 42, 0.9);
  --font-heading: "Outfit", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --gradient-text: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

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

html {
  scroll-behavior: smooth;
  cursor: none; /* For custom cursor */
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary-color);
  transition: width 0.2s, height 0.2s;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: #fff;
  font-weight: 700;
}

.highlight {
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Buttons */
.btn-primary {
  background: var(--gradient-text);
  color: var(--bg-color);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: 2px solid var(--primary-color);
  font-weight: 600;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-3px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  width: auto;
  transition: transform 0.3s ease;
  filter: invert(1) hue-rotate(180deg);
}

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

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

.nav-links li a {
  font-size: 1rem;
  opacity: 0.8;
}

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

.nav-links .btn-primary {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-subtitle {
  display: inline-block;
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-role {
  font-size: 1.8rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  opacity: 0.7;
  margin-bottom: 2rem;
  max-width: 500px;
}

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

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.code-block {
  background: #000;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #333;
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  position: relative;
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: rotate(-3deg);
  transition: transform 0.3s;
}

.code-block:hover {
  transform: rotate(0deg) scale(1.02);
}

.keyword {
  color: #c678dd;
}
.variable {
  color: #e06c75;
}
.property {
  color: #61afef;
}
.string {
  color: #98c379;
}

.glow-effect {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  filter: blur(100px);
  opacity: 0.15;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-down a {
  color: var(--primary-color);
  font-size: 1.5rem;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Sections General */
.section {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 4rem;
}

/* About */
.about-content {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-text p {
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  color: var(--primary-color);
}

/* Experience Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  top: 0;
  bottom: 0;
  left: 0;
}

.timeline-item {
  padding-left: 3rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  left: -7px;
  top: 5px;
  box-shadow: 0 0 10px var(--primary-color);
}

.timeline-date {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  color: var(--secondary-color);
  margin-bottom: 0.2rem;
}

.timeline-content h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.skill-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.skill-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.skill-card p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Projects */
.project-card {
  background: linear-gradient(
    135deg,
    var(--card-bg) 0%,
    rgba(30, 41, 59, 0.5) 100%
  );
  border-radius: 20px;
  padding: 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 3rem;
}

.project-content {
  flex: 2;
}

.project-content h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.project-tech {
  color: var(--primary-color);
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.project-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-icon {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.1);
}

/* Education */
.education-list {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.education-list li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Footer */
footer {
  padding: 4rem 0 2rem;
  text-align: center;
  background: linear-gradient(to top, #000 0%, var(--bg-color) 100%);
}

.footer-cta {
  margin-bottom: 3rem;
}

.footer-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.footer-cta .btn-primary {
  margin-top: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.social-links a {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

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

.copyright {
  opacity: 0.5;
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  html {
    cursor: auto;
  }
  .cursor-dot,
  .cursor-outline {
    display: none;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

  .hero-visual {
    display: none;
  }

  .nav-links {
    position: fixed;
    background: var(--bg-color);
    height: 100vh;
    width: 100%;
    top: 0;
    left: 0;
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: 0.3s;
  }

  .nav-links.active {
    transform: translateX(0);
  }

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

  .timeline::after {
    left: 20px;
  }
  .timeline-item {
    padding-left: 3rem;
  }
  .timeline-dot {
    left: 13px;
  }

  .project-card {
    flex-direction: column;
    text-align: center;
  }

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

/* Privacy Policy */
.privacy-policy {
  margin-top: 10px;
  font-size: 0.75rem;
  opacity: 0.5;
}

.privacy-policy a {
  color: var(--text-color);
  text-decoration: none;
  transition: opacity 0.3s;
}

.privacy-policy a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Contact Actions & WhatsApp */
.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
  color: #fff;
}

.whatsapp-policy-notice {
  margin-top: 2rem;
  font-size: 0.85rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.whatsapp-policy-notice strong {
  color: var(--primary-color);
}

.whatsapp-policy-notice a {
  color: var(--primary-color);
  text-decoration: underline;
}

.whatsapp-policy-notice a:hover {
  color: var(--secondary-color);
}
