/* Global Styles */
:root {
  --primary: #0c0e14;
  --secondary: #1e222d;
  --accent: #00d9ff;
  --accent-alt: #ff2a6d;
  --text: #d1d1d1;
  --text-bright: #ffffff;
  --card-bg: rgba(30, 34, 45, 0.7);
  --glow: 0 0 10px rgba(0, 217, 255, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Exo 2", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
}

.section-title h2 {
  font-size: 2.8rem;
  color: var(--text-bright);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
}

.btn {
  display: inline-block;
  padding: 14px 35px;
  /* background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%); */
  background-color: rgb(20, 16, 246);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  /* box-shadow: var(--glow); */
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  /* background: linear-gradient(135deg, var(--accent-alt) 0%, var(--accent) 100%); */
  transition: all 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Header Styles */
header {
  background-color: rgba(12, 14, 20, 0.9);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-bright);
  font-family: "Share Tech Mono", monospace;
  letter-spacing: 2px;
  z-index: 1001;
}

.logo span {
  color: var(--accent);
  margin-left: 0.3em;
  /* color: rgb(108, 108, 250); */
  /* text-shadow: var(--glow); */
}

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

.nav-links li {
  margin-left: 40px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Nav */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-bright);
  z-index: 1001;
}

/* Hero Section */
.hero {
  padding-top: 180px;
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(0, 217, 255, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 42, 109, 0.15) 0%,
      transparent 40%
    );
  z-index: -1;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 25px;
  color: var(--text-bright);
  font-weight: 700;
  letter-spacing: 2px;
}

.hero-content h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: var(--accent);
  font-weight: 400;
  min-height: 60px;
}

.typing-text {
  border-right: 3px solid var(--accent);
  animation: blink 0.7s infinite;
  padding-right: 5px;
  display: inline-block;
}

@keyframes blink {
  0%,
  100% {
    border-color: var(--accent);
  }
  50% {
    border-color: transparent;
  }
}

.hero-content p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 50px;
  color: var(--text);
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-text {
  flex: 1;
  padding-left: 2vw;
}

.about-text h3 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: var(--text-bright);
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.about-image {
  flex: 1;
  text-align: center;
  position: relative;
}

.about-image::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent);
  top: 20px;
  left: 20px;
  z-index: -1;
  border-radius: 10px;
}

.about-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: translate(-10px, -10px);
}

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

.skill-card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.skill-card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  top: 0;
  left: 0;
  z-index: 2;
}

.skill-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.skill-card i {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 25px;
  text-shadow: var(--glow);
}

.skill-card h3 {
  font-size: 1.7rem;
  margin-bottom: 20px;
  color: var(--text-bright);
}

.skill-card p {
  color: var(--text);
  line-height: 1.8;
}

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

.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-alt));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

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

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

.timeline-content {
  padding: 25px;
  background: var(--card-bg);
  position: relative;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-content h3 {
  color: var(--text-bright);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.timeline-content p {
  color: var(--text);
  margin-bottom: 10px;
}

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

.project-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
  transform: translateY(-15px) rotate(2deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.project-img {
  height: 220px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  position: relative;
  overflow: hidden;
}

.project-img::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(25deg) translateY(100%);
  transition: transform 0.6s ease;
}

.project-card:hover .project-img::before {
  transform: rotate(25deg) translateY(-100%);
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  color: var(--text-bright);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.project-content p {
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Contact Section */
.contact-content {
  display: flex;
  gap: 60px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--text-bright);
}

.contact-info p {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.contact-info i {
  margin-right: 15px;
  color: var(--accent);
  font-size: 1.3rem;
  width: 25px;
}

.contact-form {
  flex: 1;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-bright);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--card-bg);
  color: var(--text-bright);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.form-group textarea {
  min-height: 180px;
  resize: vertical;
}

/* Footer */
footer {
  background: rgba(12, 14, 20, 0.95);
  color: var(--text);
  padding: 60px 0 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links {
  margin-bottom: 30px;
}

.social-links a {
  color: var(--text);
  font-size: 1.8rem;
  margin: 0 20px;
  transition: color 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3.2rem;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image::before {
    display: none;
  }
  .about-text {
  margin-left: 0px;
}
  .contact-content {
    flex-direction: column;
  }

  .nav-links {
    position: fixed;
    height: 100vh;
    width: 100%;
    flex-direction: column;
    clip-path: circle(0px at 90% -10%);
    -webkit-clip-path: circle(0px at 90% -10%);
    background: rgba(12, 14, 20, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.8s ease-out;
    pointer-events: none;
    justify-content: center;
    align-items: center;
    left: 0;
    top: 0;
  }

  .nav-links.open {
    clip-path: circle(1500px at 90% -10%);
    -webkit-clip-path: circle(1500px at 90% -10%);
    pointer-events: all;
  }

  .nav-links li {
    margin: 25px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
  }

  .nav-links.open li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links li:nth-child(1) {
    transition-delay: 0.2s;
  }
  .nav-links li:nth-child(2) {
    transition-delay: 0.3s;
  }
  .nav-links li:nth-child(3) {
    transition-delay: 0.4s;
  }
  .nav-links li:nth-child(4) {
    transition-delay: 0.5s;
  }
  .nav-links li:nth-child(5) {
    transition-delay: 0.6s;
  }
  .nav-links li:nth-child(6) {
    transition-delay: 0.7s;
  }

  .nav-links a {
    font-size: 1.5rem;
    color: var(--text-bright);
  }

  .hamburger {
    display: block;
  }

  .hamburger.active i::before {
    content: "\f00d"; /* Changes to X icon */
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 150px;
    margin-bottom: -18%;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content h2 {
    font-size: 1.6rem;
    min-height: 50px;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

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

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

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

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

  .skill-card,
  .project-card {
    padding: 30px 20px;
  }

  .about-text h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
  }

  section {
    padding: 70px 0;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content h2 {
    font-size: 1.4rem;
    min-height: 40px;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.8rem;
  }

  .skill-card i {
    font-size: 2.8rem;
  }

  .skill-card h3 {
    font-size: 1.5rem;
  }

  .project-img {
    height: 180px;
    font-size: 1.5rem;
  }
  #download_cv {
    margin: 5% !important;
  }
}

/* Particle background effect */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-1000px) translateX(500px) rotate(720deg);
    opacity: 0;
  }
}
.contact-ic {
  text-decoration: none;
  color: var(--text);
}
#download_cv {
  background-color: transparent;
  color: white;
  margin: 0 0 0 5%;
  border: none;
  box-shadow: var(--glow);
}
#download_cv:hover {
  background-color: rgb(43, 39, 244);
  box-shadow: none;
}
