:root {
  --bg-color: #0f172a;
  --text-color: #e2e8f0;
  --primary-color: #38bdf8;
  --secondary-color: #818cf8;
  --accent-color: #c084fc;
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(30, 41, 59, 0.4);
  --font-main: "Outfit", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Background Gradient Animation */
.background-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(
      circle at 15% 50%,
      rgba(56, 189, 248, 0.15),
      transparent 25%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(192, 132, 252, 0.15),
      transparent 25%
    );
  filter: blur(40px);
}

/* Header & Nav */
.glass-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  justify-content: center;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

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

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

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10%;
  padding-top: 80px; /* Header height */
  position: relative;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

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

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

.hero-content p {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 2.5rem;
}

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

.btn {
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.primary-btn {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #fff;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

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

.secondary-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.hero-visual {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.threed-logo-wrapper {
  perspective: 1000px;
  width: 320px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.threed-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: float3D 8s ease-in-out infinite;
  border-radius: 30px;
}

.threed-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  /* Create a slight "thickness" effect with multiple shadows */
  filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.3)); 
}

@keyframes float3D {
  0% {
    transform: rotateY(0deg) rotateX(0deg) translateY(0);
  }
  25% {
    transform: rotateY(8deg) rotateX(5deg) translateY(-20px);
  }
  50% {
    transform: rotateY(0deg) rotateX(0deg) translateY(0);
  }
  75% {
    transform: rotateY(-8deg) rotateX(-5deg) translateY(-20px);
  }
  100% {
    transform: rotateY(0deg) rotateX(0deg) translateY(0);
  }
}

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

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

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  display: table;
  margin-left: auto;
  margin-right: auto;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 2px;
}

/* Glass Card Style */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.skills-container h3 {
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background: var(--glass-border);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: 25px;
  right: -10px;
  z-index: 1;
  box-shadow: 0 0 10px var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-content {
  position: relative;
}

.timeline-content .date {
  font-size: 0.85rem;
  color: var(--secondary-color);
  display: block;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  margin-bottom: 0.2rem;
}

.timeline-content h4 {
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.timeline-content ul {
  list-style-position: inside;
  margin-top: 1rem;
  color: #cbd5e1;
}

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

.project-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-image {
  height: 180px;
  background: linear-gradient(to bottom right, #1e293b, #0f172a);
  position: relative;
}

.project-image::before {
  content: "Project Preview";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.1);
  font-weight: 700;
  z-index: 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.project-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  margin-bottom: 0.5rem;
}

.project-info p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tags span {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: var(--secondary-color);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

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

/* Contact Section */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-btn {
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: #64748b;
  font-size: 0.9rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

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

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide for now, can add JS toggle */
  }

  .hamburger {
    display: flex;
  }

  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 120px;
  }

  .hero-visual {
    width: 300px;
    height: 300px;
    margin-bottom: 2rem;
  }

  .glowing-orb {
    width: 200px;
    height: 200px;
  }

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

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

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 21px;
    right: auto;
  }
}
