* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light);
    background: var(--dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem 2rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 87vh; /* covers only top half of the viewport */
  background: url("WebAssets/space.png") center/cover no-repeat;
  z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dropdown container */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: block;
}

/* The hidden dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 8px;
  list-style: none;
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  min-width: 240px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin: 2rem 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* Show on hover */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

/* Dropdown links */
.dropdown-menu li a {
  display: block;
  color: var(--light);
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
   width: 100%;
}

.dropdown-menu li a:hover {
  background: var(--primary);
  color: var(--white);
}

.dropdown-menu .view-all {
  border-top: 1px solid rgba(99, 102, 241, 0.15);
  margin-top: 0.5rem;
  font-weight: bold;
  text-align: center;
}



.subtitle {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Featured Section */
.featured {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--white);
}
/* Project detail page */
.project-detail {
  padding: 8rem 0 4rem;
}

.project-detail .subtitle {
  font-size: 1.3rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--light);
  margin-bottom: 2rem;
}

.project-image-full {
  margin: 2rem 0;
  overflow: hidden;
  border-radius: 12px;
}

.project-image-full img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-image-full:hover img {
  transform: scale(1.02);
}

.project-description {
  color: var(--light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}


.project-gallery img {
  width: 48%;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-gallery img:hover {
  transform: scale(1.03);
}

.project-links .btn {
  min-width: 180px;
  text-align: center;
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--dark-light);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.project-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  border-radius: 0;  
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05); /* subtle zoom on hover */
}
.project-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}

.project-gallery img {
  width: 100%;
  max-width: 550px; /* controls how big each gets */
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-gallery img:hover {
  transform: scale(1.03);
}




/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
}

/* Close and navigation buttons */
.lightbox .close {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: default;
}

.lightbox .next,
.lightbox .prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  text-decoration: none;
  padding: 1rem;
  transition: color 0.3s;
}

.lightbox .next:hover,
.lightbox .prev:hover {
  color: var(--primary);
}

.lightbox .next {
  right: 2rem;
}

.lightbox .prev {
  left: 2rem;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

/* About Page */
.about-section {
    padding: 8rem 0 6rem;
}

.image-frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.about-text p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.skills-section {
    padding: 4rem 0;
}

.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.skills-category {
  background: var(--dark-light);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 2rem;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.skills-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.skills-category h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skills-category p {
  color: var(--gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--dark-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.skill-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    color: var(--gray);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.skill-card li:before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Projects Page */
.projects-section {
    padding: 8rem 0 6rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    color: var(--light);
    border: 2px solid var(--gray);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Footer */
.footer {
    background: var(--dark-light);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.2s;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}


/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}