/* Reset & Base Styles */
:root {
  --primary-color: #081f5c; /* Vibrant blue */
  --secondary-color: #3f37c9; /* Deep blue */
  --accent-color: #f72585; /* Pink accent */
  --light-bg: #f8f9fa;
  --dark-text: #212529;
  --medium-text: #495057;
  --light-text: #6c757d;
  --success-color: #4cc9f0;
  --border-radius: 12px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  overflow-x: hidden;
  background-color: #f8f9fa; /* Fallback */
  background-image: 
    radial-gradient(at 10% 20%, hsla(240, 100%, 98%, 1) 0px, transparent 50%),
    radial-gradient(at 90% 80%, hsla(240, 100%, 96%, 1) 0px, transparent 50%),
    linear-gradient(to bottom, #ffffff, #f8f9fa);
  background-attachment: fixed;
  background-size: cover;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  background-color: var(--light-bg);
  color: var(--dark-text);
  overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 1.2rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.8rem 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand:hover {
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.brand-icon {
  font-size: 1.8rem;
  animation: pulse 2s infinite;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--medium-text);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.book-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(67, 97, 238, 0.3);
}

.book-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.status {
  font-size: 0.9rem;
  color: var(--success-color);
  display: flex;
  align-items: center;
  animation: fadeIn 1.5s ease-in-out;
}

.dot {
  height: 10px;
  width: 10px;
  background-color: var(--success-color);
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  animation: pulse 2s infinite;
}

/* Hamburger Menu for Mobile */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6rem 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(63, 55, 201, 0.05) 100%);
  border-radius: 50%;
  z-index: -1;
}

.hero-left {
  flex: 1;
  min-width: 300px;
  animation: slideInLeft 1s ease-out;
}

.title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.title span {
  color: var(--primary-color);
  position: relative;
}

.title span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: (rgba(25, 25, 112, 1) /* Fully opaque */);
  z-index: -1;
  border-radius: 4px;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--medium-text);
  margin-bottom: 2.5rem;
  max-width: 80%;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat {
 background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  min-width: 160px;
  text-align: center;
  transition: var(--transition);
}

.stat:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.stat p {
  font-size: 0.95rem;
  color: var(--light-text);
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: linear-gradient(135deg, rgba(8, 31, 92, 0.08) 0%, rgba(63, 55, 201, 0.05) 100%);
  border-radius: 50%;
  z-index: -1;
  animation: gradientShift 15s ease infinite;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 300px;
  animation: slideInRight 1s ease-out;
}

.hero-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.hero-img:hover {
  transform: scale(1.02);
}

/* About Section */
.about {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 6rem 2rem;
}

.container {
  max-width: 1000px;
  margin: auto;
}

.section-title {
  font-size: 2.5rem;
  color: var(--dark-text);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.about-text {
  font-size: 1.1rem;
  color: var(--medium-text);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Projects Section */
.projects-section {
  padding: 6rem 2rem;
  background-color: var(--light-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  transition: height 0.3s ease;
}

.project-card:hover::before {
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-card h2 {
  margin-bottom: 1rem;
  color: var(--dark-text);
  transition: var(--transition);
}

.project-card:hover h2 {
  color: var(--primary-color);
}

.project-card p {
  color: var(--medium-text);
  margin-bottom: 1.5rem;
}

/* Skills Section */
.skills-section {
  padding: 6rem 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skill-card {
 background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border-left: 5px solid var(--primary-color);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-card h2 {
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.skill-card p {
  color: var(--medium-text);
}

/* Contact Section */
.contact-section {
  padding: 6rem 2rem;
  background-color: var(--light-bg);
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 700px;
  margin: 0 auto;
  transition: var(--transition);
}

.contact-form:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-text);
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.submit-button {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  width: auto;
  margin-top: 1rem;
}

.submit-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

/* Animations */
@keyframes gradientShift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero {
    padding: 4rem 2rem;
  }
  
  .title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
    flex-wrap: wrap;
  }
  
  .hamburger {
    display: block;
    order: 1;
  }
  
  .nav-left {
    order: 2;
    width: 100%;
    justify-content: space-between;
    margin-top: 1rem;
  }
  
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-right {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1rem;
  }
  
  .hero-left, .hero-right {
    flex: none;
    width: 100%;
  }
  
  .subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .stats {
    justify-content: center;
  }
  
  .about, .projects-section, .skills-section, .contact-section {
    padding: 3rem 1rem;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .stat {
    min-width: 120px;
    padding: 1rem;
  }
  
  .stat h2 {
    font-size: 1.5rem;
  }
}