@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600&display=swap");

:root {
  --primary-color: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --text-dark: #2c3e50;
  --text-light: #666;
  --bg-transparent: rgba(255, 255, 255, 0.95);
  --shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
  --hover-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

body {
  background: url("pic.jpg");
  background-size: cover;
  background-attachment: fixed;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #333;
  padding-top: 70px;
}

* {
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.topnav {
  height: 100px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
}

.content {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 30px;
}

header,
.proj,
.project,
section,
footer {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header,
footer {
  border-radius: 0;
}

.proj {
  padding: 80px 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 100%
  );
  max-width: 1200px;
  margin: 60px auto;
}

.proj h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 50px;
  color: var(--text-dark);
  position: relative;
  font-family: "Playfair Display", serif;
}

.proj h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.proj:hover h2::after {
  width: 120px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  padding: 20px;
  margin-top: 20px;
}

.project {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.2);
}

.project:hover::before {
  transform: scaleX(1);
}

.project h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--text-dark);
  font-family: "Playfair Display", serif;
}

.project p {
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.7;
  font-size: 1.1em;
}

.project .btn {
  background: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.project .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(17, 204, 225, 0.3);
}

.project .btn i {
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.project .btn:hover i {
  transform: translateX(3px);
}

/* Featured Project Label */
.project.featured::after {
  content: "Featured";
  position: absolute;
  top: 20px;
  right: -35px;
  background: var(--primary-color);
  color: white;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: 1px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .proj {
    padding: 60px 15px;
    margin: 40px auto;
  }

  .proj h2 {
    font-size: 2em;
    margin-bottom: 40px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 10px;
    margin-top: 15px;
  }

  .project {
    padding: 25px;
  }

  .project h3 {
    font-size: 1.5em;
  }

  .project p {
    font-size: 1em;
  }
}

header {
  text-align: center;
  font-size: 30px;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

header h1 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2c3e50;
}

header p {
  font-size: 1.2em;
  color: #666;
  font-weight: 300;
}

h2 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 2em;
  color: #2c3e50;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
}

h3 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 1.5em;
  color: #2c3e50;
  margin-bottom: 15px;
}

p {
  font-size: 1em;
  line-height: 1.8;
  color: #555;
  font-weight: 400;
}

footer {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.9);
  margin-top: 40px;
}

footer a {
  margin: 0 10px;
  color: inherit;
  text-decoration: none;
}

footer p {
  font-size: 0.9em;
  color: #666;
}

.profile-section p {
  font-size: 1.1em;
}

@media screen and (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  header h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.8em;
  }

  h3 {
    font-size: 1.3em;
  }

  p {
    font-size: 0.95em;
  }

  img {
    width: 150px;
    height: 150px;
  }
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bg-transparent);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar:hover {
  box-shadow: var(--hover-shadow);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.8em;
  font-weight: 700;
  color: black;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

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

.nav-links a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1em;
  position: relative;
  padding: 5px 0;
}

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

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

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
  color: #2c3e50;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-transparent);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-content {
    padding: 0 15px;
  }

  .nav-links a {
    padding: 15px;
    width: 100%;
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    background: rgba(37, 99, 235, 0.1);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  background: var(--primary-color);
  color: white;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

section {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  color: var(--text-dark);
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  margin-top: 10px;
  transition: width 0.3s ease;
}

section:hover h2::after {
  width: 100px;
}

footer {
  background: var(--bg-transparent);
  backdrop-filter: blur(10px);
  padding: 40px 20px;
  text-align: center;
}

footer a {
  transition: transform 0.3s ease;
}

footer a:hover {
  transform: translateY(-5px);
}

/* Hero Section Adjustments */
.hero {
  min-height: 90vh;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(37, 99, 235, 0.15) 100%
  );
  margin-top: -70px; /* Adjust for navbar */
  padding-top: 120px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text {
  padding-right: 15px;
  animation: fadeInUp 1s ease;
}

.hero-text h1 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.greeting {
  font-size: 1.2em;
  color: var(--text-light);
  font-weight: 500;
  font-family: "Poppins", sans-serif;
}

.name {
  font-size: 1em;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.1;
  font-family: "Playfair Display", serif;
}

.title {
  font-size: 0.5em;
  color: var(--primary-color);
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

.hero-description {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 500px;
  line-height: 1.8;
  animation: fadeIn 1s ease 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  animation: fadeIn 1s ease 0.6s both;
}

.primary-btn {
  background: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
  font-size: 0.95em;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.secondary-btn {
  background: transparent;
  color: var(--text-dark);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  font-size: 0.95em;
}

.secondary-btn:hover {
  background: rgba(37, 99, 235, 0.1);
  transform: translateY(-3px);
}

.hero-social {
  display: flex;
  gap: 20px;
  animation: fadeIn 1s ease 0.9s both;
}

.social-link {
  font-size: 1.4em;
  color: var(--text-dark);
  transition: all 0.3s ease;
  padding: 6px;
}

.social-link:hover {
  color: var(--primary-color);
  transform: translateY(-3px) rotate(8deg);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease 0.3s both;
}

.profile-pic {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  z-index: 0;
}

.shape-1 {
  width: 450px;
  height: 450px;
  background: var(--primary-color);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--text-dark);
  top: 40%;
  left: 45%;
  transform: translate(-50%, -50%);
  animation: float 6s ease-in-out infinite;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--primary-color);
  top: 60%;
  left: 55%;
  transform: translate(-50%, -50%);
  animation: float 8s ease-in-out infinite reverse;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.9em;
  animation: bounce 2s infinite;
  cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text {
    padding-right: 0;
    order: 2;
  }

  .hero-image {
    order: 1;
  }

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

  .hero-social {
    justify-content: center;
  }

  .profile-pic {
    width: 280px;
    height: 280px;
  }

  h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Mobile responsive for hero section */
@media screen and (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 30px 15px;
    padding-top: 120px;
    overflow: hidden;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 15px;
  }

  .hero-text {
    padding: 0;
    order: 2;
  }

  .hero-text h1 {
    gap: 8px;
    margin-bottom: 15px;
  }

  .hero-image {
    order: 1;
    transform: scale(0.9);
  }

  .greeting {
    font-size: 1em;
  }

  .name {
    font-size: 2em;
    line-height: 1.2;
  }

  .title {
    font-size: 1.1em;
  }

  .hero-description {
    font-size: 0.95em;
    padding: 0 10px;
    margin: 12px auto;
    max-width: 100%;
    line-height: 1.6;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
  }

  .primary-btn,
  .secondary-btn {
    width: 85%;
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .hero-social {
    justify-content: center;
    padding: 5px 0;
    gap: 15px;
  }

  .social-link {
    font-size: 1.2em;
    padding: 5px;
  }

  .profile-pic {
    width: 180px;
    height: 180px;
    border-width: 3px;
  }

  .hero-shapes .shape {
    opacity: 0.1;
  }

  .shape-1 {
    width: 250px;
    height: 250px;
  }

  .shape-2 {
    width: 180px;
    height: 180px;
  }

  .shape-3 {
    width: 120px;
    height: 120px;
  }

  .scroll-indicator {
    display: none;
  }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
  .hero {
    padding-top: 150px;
  }

  .name {
    font-size: 1.8em;
  }

  .profile-pic {
    width: 160px;
    height: 160px;
  }

  .hero-description {
    font-size: 0.9em;
    padding: 0 5px;
  }

  .primary-btn,
  .secondary-btn {
    width: 90%;
    padding: 8px 15px;
  }
}

.project-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.project .btn {
  flex: 1;
  justify-content: center;
  font-size: 0.9em;
  padding: 10px 15px;
}

.view-btn {
  background: var(--text-dark);
  color: white;
}

.view-btn:hover {
  background: #3a4f66;
}

.demo-btn {
  background: var(--primary-color);
  color: white;
}

.demo-btn:hover {
  background: var(--primary-dark);
}

.all-btn {
  background: var(--primary-color);
  color: white;
}

.all-btn:hover {
  background: var(--primary-dark);
}

@media screen and (max-width: 768px) {
  .project-links {
    flex-direction: column;
    gap: 10px;
  }
}
