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

:root {
  --font-heading: "Poppins", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --font-weight-normal: 400;
  --font-weight-bold: 600;
  --font-weight-bolder: 700;
  --color-bg: #0a192f;
  --color-text: #8892b0;
  --color-highlight: #64ffda;
  --color-secondary: #ff7235;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-highlight);
}

a {
  color: var(--color-highlight);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-secondary);
}
.greeting {
  font-size: 1.2rem;
  color: #64748b;
  margin-bottom: 1rem;

  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.name {
  font-size: clamp(2rem, 10vw, 4rem);
  font-weight: 500;
  background: linear-gradient(135deg, #22c55e 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;

  animation: fadeInUp 0.8s ease-out 0.5s forwards;
  line-height: 1.1;
}
/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background-color: rgba(10, 25, 47, 0.9);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.logo-img {
  height: 40px;
  border-radius: 5px;
}

.navigation {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: var(--font-weight-bold);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--color-highlight);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}
/* Hero Section */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
  margin-top: 25px;
  position: relative;
  overflow: hidden;

}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(100, 255, 218, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 114, 53, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-content {
  max-width: min(90%, 700px);
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  line-height: 1.1;
  font-weight: var(--font-weight-bolder);
  background: linear-gradient(
    135deg,
    var(--color-highlight),
    var(--color-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(0.7rem, 2vw, 1.2rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--color-text);
  font-weight: 150;
  opacity: 0.9;
}

.container-di {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: clamp(2rem, 4vw, 3rem) 0;
}

.hero-par {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: -25px;
  
}
@media (min-width: 700px) {
  .container-di{
    height: 250px;
  }
}

.hero-par::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 255, 218, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

.hero-par:hover::before {
  left: 100%;
}

.hero-par:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(100, 255, 218, 0.1);
  border-color: rgba(100, 255, 218, 0.4);
}

.hero-description p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: var(--color-text);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

.hero-description p:last-child {
  margin-bottom: 0;
}

.cta-section {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1.1s forwards;
}

.cta-button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-primary {
  background: linear-gradient(135deg, #22c55e, #3b82f6);
  color: white;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.cta-secondary {
  background: transparent;
  color: #e2e8f0;
  border: 2px solid #475569;
}

.cta-secondary:hover {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  transform: translateY(-2px);
}
/* Mobile Optimizations */
@media screen and (max-width: 768px) {
  .hero {
    text-align: center;
    padding: clamp(1rem, 3vw, 2rem);
  }

  .cta-button {
    width: 100%;
    justify-content: center;
    margin: 0.5rem 0;
    padding: 1rem 1.5rem;
  }

  .hero-par {
    padding: clamp(1rem, 3vw, 1.5rem);
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-description p {
    font-size: 0.95rem;
  }
}
.section-title {
  text-align: center;
}
/* Skills Section */
.skills {
  padding: 5rem 5%;
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.skill-name {
  text-align: center;
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Projects Section */
.project-card {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: visible;
  overflow-y: visible;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  height: 500px;
  display: flex;
  flex-direction: column;
}

.demo-creds {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 8px 0;
  font-size: 0.8rem;
  color: #ffc107;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.project-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 20px 0;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.project-tech {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.project-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.project-btn {
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.project-btn.secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.project-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.projects-section {
  padding: 80px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(350px, 1fr));
  gap: 2.5rem;
  padding: 20px;
  width: 100%;
}

/* For larger screens - 2 columns */
@media (min-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* For extra large screens - 3 columns */
@media (min-width: 1400px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* For smaller screens - single column */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 15px;
  }
}

/* Contact Section */
.contact {
  padding: 5rem 5%;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 5px;
  color: var(--color-text);
}

.submit-btn {
  background-color: var(--color-highlight);
  color: var(--color-bg);
  border: none;
  padding: 0.8rem 1.5rem;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: var(--color-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navigation {
    display: none;
  }

  .burger-menu {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }
}
.socicon {
  width: 2rem;
  height: 2rem;
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #00ff88, #00ccff);
  transform-origin: left;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.1s ease-out, opacity 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.socials a {
  margin: 0 0.5rem;
}
.nav-links {
  display: flex;
  justify-content: space-around;
  width: 30%;
}

.burger {
  display: none;
  cursor: pointer;
}
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: #bae579;
  margin: 5px;
  transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    text-align: center;
  }

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

  .burger {
    display: block;
  }
}

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
  opacity: 0;
}

.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

.skill-item img {
  width: 30px;
  height: 30px;
}

.skill-item p {
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.scroll-up-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--color-highlight);
  color: var(--color-bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
}

.scroll-up-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(100, 255, 218, 0.4);
}
/* Main Portfolio Background */
.portfolio-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #0f172a 0%,
    #1e293b 30%,
    #334155 70%,
    #475569 100%
  );
  z-index: -1;
  pointer-events: none;
}

/* Animated Elements Container */
.bg-animations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

/* Floating Geometric Shapes */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 120px;
  height: 120px;
  background: linear-gradient(
    45deg,
    rgba(34, 197, 94, 0.1),
    rgba(59, 130, 246, 0.1)
  );
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  top: 30%;
  right: 20%;
  animation-delay: 2s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0.08),
    rgba(16, 185, 129, 0.08)
  );
  bottom: 25%;
  left: 15%;
  animation-delay: 4s;
}

.shape-4 {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    180deg,
    rgba(139, 92, 246, 0.1),
    rgba(59, 130, 246, 0.1)
  );
  top: 60%;
  right: 15%;
  animation-delay: 1s;
}

.shape-5 {
  width: 90px;
  height: 90px;
  background: linear-gradient(
    225deg,
    rgba(16, 185, 129, 0.08),
    rgba(34, 197, 94, 0.08)
  );
  bottom: 40%;
  right: 35%;
  animation-delay: 3s;
}

.shape-6 {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    315deg,
    rgba(59, 130, 246, 0.08),
    rgba(34, 197, 94, 0.08)
  );
  top: 80%;
  left: 40%;
  animation-delay: 5s;
}

/* Floating animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) translateX(20px) rotate(120deg);
  }
  66% {
    transform: translateY(20px) translateX(-15px) rotate(240deg);
  }
}

/* Animated Grid Pattern */
.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(34, 197, 94, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Particle System */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(34, 197, 94, 0.4);
  border-radius: 50%;
  animation: particleFloat 15s linear infinite;
}

.particle:nth-child(odd) {
  background: rgba(59, 130, 246, 0.4);
}

.particle:nth-child(1) {
  left: 5%;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  left: 15%;
  animation-delay: 2s;
}
.particle:nth-child(3) {
  left: 25%;
  animation-delay: 4s;
}
.particle:nth-child(4) {
  left: 35%;
  animation-delay: 6s;
}
.particle:nth-child(5) {
  left: 45%;
  animation-delay: 8s;
}
.particle:nth-child(6) {
  left: 55%;
  animation-delay: 10s;
}
.particle:nth-child(7) {
  left: 65%;
  animation-delay: 12s;
}
.particle:nth-child(8) {
  left: 75%;
  animation-delay: 14s;
}
.particle:nth-child(9) {
  left: 85%;
  animation-delay: 1s;
}
.particle:nth-child(10) {
  left: 95%;
  animation-delay: 3s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* Gradient Orbs */
.gradient-orbs {
  position: absolute;
  width: 100%;
  height: 100%;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(34, 197, 94, 0.1) 0%,
    transparent 70%
  );
  top: 20%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 70%
  );
  bottom: 20%;
  right: -5%;
  animation-delay: 4s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.06) 0%,
    transparent 70%
  );
  top: 50%;
  right: 20%;
  animation-delay: 8s;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, -30px) scale(1.1);
  }
}

/* Demo Content Styles */
.demo-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  min-height: 200vh;
}

.section {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  color: #e2e8f0;
}

.section h2 {
  color: #22c55e;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.section p {
  line-height: 1.6;
  color: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .shape {
    transform: scale(0.7);
  }

  .orb {
    transform: scale(0.8);
  }

  .grid-pattern {
    background-size: 30px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shape,
  .particle,
  .orb,
  .grid-pattern {
    animation: none;
  }
}

#pdf-viewer {
  display: flex;
  justify-content: center; /* Horizontal center */
  align-items: center; /* Vertical center (optional) */
  width: 100%;
  height: 600px; /* Your desired viewer height */
  overflow: auto; /* Scroll if PDF is bigger than container */
}
