/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Syne:wght@400;500;700;800&display=swap');

:root {
  --primary-color: #00c6ff;
  --secondary-color: #0072ff;
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --text-color: #e2e8f0;
  --hover-color: #00c6ff;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

header {
  background: rgba(15, 23, 42, 0.8);
  padding: 20px 40px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
  margin: 0;
  color: var(--primary-color);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-shadow: 0 0 15px rgba(0, 198, 255, 0.6);
  transition: var(--transition);
  font-weight: 800;
}

.menu-toggle {
  display: none;
  font-size: 1.8em;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 1001;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2.5rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--hover-color);
}

nav ul li a:hover::after {
  width: 100%;
}

.hero {
  text-align: center;
  padding: 200px 20px 100px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

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

.hero h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 40px;
  font-weight: 400;
  color: #94a3b8;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 198, 255, 0.3);
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 198, 255, 0.5);
}

.section {
  padding: clamp(4rem, 8vw, 8rem) 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

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

.project-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.project-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.project-card p {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-card .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-card .tech-tag {
  background: rgba(0, 198, 255, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.9em;
}

.skills {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.skill-category {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
}

.skill-category h3 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 1.8rem;
  text-align: center;
}

.skill-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--bg-color);
  border-radius: 10px;
  padding: 1.5rem;
  transition: var(--transition);
}

.skill-card:hover {
    transform: scale(1.05);
}

.skill-card h4 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.skill-bar {
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.contact-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    font-size: 2rem;
    color: var(--text-color);
    transition: var(--transition);
}

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

footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-color);
        transition: var(--transition);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        display: flex;
    }

    .nav-menu.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

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