:root {
  --primary: #0f172a;
  --secondary: #1e293b;
  --accent: #7c3aed;
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --white: #ffffff;
  --black: #000000;
  --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
}

.header .container {
  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(--white);
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  color: var(--accent);
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.menu-toggle span:first-child {
  top: 0;
}

.menu-toggle span:last-child {
  bottom: 0;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin: 1rem 0 2rem;
  max-width: 600px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background-color: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50%;
  height: 4px;
  background-color: var(--accent);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.skills h3 {
  margin-bottom: 1.5rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
}

.skills-list li {
  background-color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Work Section */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background-color: var(--secondary);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-image {
  height: 200px;
  background-color: var(--primary);
  position: relative;
  overflow: hidden;
}

.placeholder {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background-color: var(--secondary);
}
.placeholder img{
  object-fit: contain;
  width: 100%;
}
.project-info {
  padding: 1.2rem;
}
.p .project-tech {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 1rem;
  flex-wrap: wrap;
}

.project-tech span {
  background-color: rgba(124, 58, 237, 0.1);
  color: var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}
.project-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  margin-top: .5rem;
}

.project-link:hover {
  gap: 1rem;
}

/* Contact Section */
.contact {
  text-align: center;
}

.contact-text {
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Footer */
.footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--secondary);
}

.footer p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--accent);
}

/* Cursor */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--accent);
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--primary);
    padding: 6rem 2rem;
    transition: var(--transition);
    z-index: 1000;
  }

  .nav.active {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 6rem 0;
  }

  .section {
    padding: 4rem 0;
  }
}

/* Video Background Styles */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  opacity: 0.15;
  /* Adjust for better text readability */
}

.video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  display: none;
  /* Only shows if video fails to load */
}

/* Text contrast enhancement */
.hero-content {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Mobile optimization */
@media (max-width: 768px) {
  .video-background video {
    display: none;
  }

  .video-fallback {
    display: block;
  }
}