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

:root {
  --primary-color: #f27c22;
  --secondary-color: #8c1414;
  --bg-dark: #0a0a0a;
  --bg-light: #1a1a1a;
  --text-light: #ffffff;
  --text-gray: #b0b0b0;
  --gradient: linear-gradient(135deg, #f27c22, #8c1414);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.modal-content {
    background-image: var(--gradient) !important;
    color:whitesmoke;
    font-weight: bold;
    text-align: center;
}

/* .modal-dialog {
  top:50x;
} */

.modal-body .btn {
  background: var(--bg-dark);
  color: var(--text-light);
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

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

.nav-links a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-toggle {
  background: none;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.theme-toggle:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  min-height: 120vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  flex-direction: row-reverse;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 1024px) {
  .hero-inner {
    justify-content: space-between;
    align-items: center;
    padding-left: 4rem;
    padding-right: 2rem;
  }

  .hero-content {
    /* max-width: 50%; */
    transform: translateX(-7rem); 
  }
  .hero-image-container {
    position: relative;         
    top: -30px;                 
  }
}

.hero-content {
    display: absolute;
    top:300px;
}

.hero-bg {
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: var(--gradient);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

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

/* Shrink text section and left-align */
.hero-content {
  flex: 1;
  animation: fadeInUp 1s ease-out;
}

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

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient);
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  box-shadow: 0 8px 32px rgba(242, 124, 34, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.hero-content h1 {
  font-size: 3rem; /* Shrunk size */
}

.hero-content p {
  font-size: 1.25rem; /* Slightly smaller */
  margin-left: 0;
  margin-right: 0;
}

/* Glassmorphic image container */
.hero-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 500px;
  margin-top: 2rem;
}

/* Image styling */
.hero-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(242, 124, 34, 0.3);
}

.skills {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  padding-top: 10px;
}

.skill-chip {
  background: rgba(242, 124, 34, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-chip:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.cta-button {
  background: var(--gradient);
  color: white;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(242, 124, 34, 0.3);
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(242, 124, 34, 0.4);
}

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

.skill-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
}

.skill-item h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
}

.skill-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-item li {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

/* Sections */
.section {
  padding: 6rem 0;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.section-icon {
  font-size: 2.5rem;
}

/* Cards */
.card {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.experience-item {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 2rem;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.experience-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow);
}

.experience-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.experience-company {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.experience-period {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.experience-achievements {
  list-style: none;
  padding: 0;
}

.experience-achievements li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.experience-achievements li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tech-tag {
  background: rgba(140, 20, 20, 0.2);
  color: var(--secondary-color);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-item {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(242, 124, 34, 0.2);
}

.contact-item:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 32px rgba(242, 124, 34, 0.2);
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-item h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-item a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--primary-color);
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  z-index: 1000;
}

.scroll-top.visible {
  opacity: 1;
}

.scroll-top:hover {
  transform: scale(1.1);
}

/* Responsive Design */

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    top:80px
  }
  .hero h1 {
    font-size: 2.2rem;
  }

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

  .section h2 {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-image-container {
    max-width: 300px;
    padding: 1rem;
    margin-top: 1.5rem;
  }

  .hero-image {
    max-height: 300px;
    border-radius: 12px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .skills {
    justify-content: center;
  }

 .nav {
  flex-direction: row;
  justify-content: space-between;
  position: relative;
}

.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  background: #222; /* dark background for contrast */
  width: 200px;
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

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

.hamburger {
  display: block;
  cursor: pointer;
  font-size: 1.5rem;
  color:black;
  background-color: var(--primary-color);
}

}

/* Animation delays for staggered effects */
.experience-item:nth-child(1) {
  animation-delay: 0.1s;
}
.experience-item:nth-child(2) {
  animation-delay: 0.2s;
}
.experience-item:nth-child(3) {
  animation-delay: 0.3s;
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}
.card:nth-child(2) {
  animation-delay: 0.2s;
}
.card:nth-child(3) {
  animation-delay: 0.3s;
}
