/* Reset and base styles */
html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #dbc3a4 0%, #a16e47 25%, #e7a46b 60%, #f3e2bc 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: 100px;
  position: relative;
}

/* Enhanced background texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(161, 110, 71, 0.1) 1px, transparent 1px);
  background-size: 80px 80px, 120px 120px;
  pointer-events: none;
  z-index: 1;
}

/* Sophisticated navbar integration */
.navbar.navbar-dark.bg-dark {
  background: linear-gradient(135deg, rgba(161, 110, 71, 0.95) 0%, rgba(219, 195, 164, 0.95) 50%, rgba(231, 164, 107, 0.95) 100%) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.navbar-brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.6rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.navbar-brand:hover {
  color: #f3e2bc !important;
  transform: scale(1.02);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 8px;
  padding: 8px 16px !important;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Asymmetrical nav buttons */
.navbar-nav .nav-item:nth-child(1) .nav-link {
  border-radius: 20px 20px 20px 0px;
}

.navbar-nav .nav-item:nth-child(2) .nav-link {
  border-radius: 20px 0px 20px 20px;
}

.navbar-nav .nav-item:nth-child(3) .nav-link {
  border-radius: 20px 20px 0px 20px;
}

.navbar-nav .nav-item:nth-child(4) .nav-link {
  border-radius: 0px 20px 20px 20px;
}

.navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
}

.navbar-collapse {
  background: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

/* Main container with enhanced styling */
.container {
  width: 100%;
  max-width: 1100px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  min-height: calc(100vh - 80px);
  margin-top: 80px;
  border-radius: 25px 25px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 2;
}

/* Typography enhancements */
h1 {
  color: #3c2e2b;
  font-weight: 700;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5);
}

p {
  color: #3c2e2b;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Enhanced photo styling */
#about-photo {
  max-width: 100%;
  margin-bottom: 30px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

/* Sophisticated contact section */
.contact-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 3rem;
  margin-top: 3rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.1) 50%, transparent 51%);
  background-size: 20px 20px;
  pointer-events: none;
}

.contact-section h2 {
  color: #3c2e2b;
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 700;
  font-size: 2rem;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5);
  position: relative;
}

.contact-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #a16e47, #e7a46b);
  border-radius: 2px;
}

.contact-section h3 {
  color: #3c2e2b;
  margin-bottom: 1.2rem;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

/* Enhanced form styling */
.form-label {
  color: #3c2e2b;
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.form-control {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(161, 110, 71, 0.3);
  border-radius: 15px;
  padding: 15px 18px;
  color: #3c2e2b;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.98);
  border-color: #a16e47;
  box-shadow: 0 0 0 0.3rem rgba(161, 110, 71, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.05);
  outline: none;
  transform: translateY(-1px);
}

.form-control::placeholder {
  color: rgba(60, 46, 43, 0.5);
}

/* Sophisticated button styling */
.btn-primary {
  background: linear-gradient(135deg, #a16e47 0%, #e7a46b 100%);
  border: none;
  border-radius: 30px;
  padding: 15px 35px;
  font-weight: 700;
  color: white;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(161, 110, 71, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8b5a3a 0%, #d4915e 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(161, 110, 71, 0.4);
  color: white;
}

/* Enhanced resume button */
.btn-resume {
  background: linear-gradient(135deg, #e7a46b 0%, #f3e2bc 100%);
  color: #3c2e2b;
  border: 3px solid #a16e47;
  border-radius: 30px;
  padding: 18px 30px;
  font-weight: 700;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  margin-top: 1.5rem;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(161, 110, 71, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-resume::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-resume:hover::before {
  left: 100%;
}

.btn-resume:hover {
  background: linear-gradient(135deg, #d4915e 0%, #dbc3a4 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(161, 110, 71, 0.3);
  color: #3c2e2b;
  border-color: #8b5a3a;
}

.btn-resume i {
  margin-right: 10px;
  font-size: 1.1rem;
}

/* Sophisticated resume section */
.resume-section {
  background: linear-gradient(135deg, rgba(243, 226, 188, 0.4) 0%, rgba(219, 195, 164, 0.4) 100%);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border: 2px solid rgba(161, 110, 71, 0.2);
  position: relative;
  overflow: hidden;
}

.resume-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: float 20s linear infinite;
  pointer-events: none;
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-30px, -30px) rotate(360deg); }
}

.resume-section p {
  margin-bottom: 2rem;
  font-style: italic;
  font-size: 1.1rem;
  color: #3c2e2b;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* Smooth animations */
.contact-section {
  animation: slideInUp 0.8s ease forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design enhancements */
@media (min-width: 768px) {
  #about-photo {
    margin-right: 30px;
  }
  
  .container {
    padding: 50px;
    margin-top: 60px;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 120px;
  }
  
  .container {
    padding: 20px;
    margin-top: 60px;
    border-radius: 20px 20px 0 0;
  }
  
  .contact-section {
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 20px;
  }
  
  .contact-section h2 {
    font-size: 1.8rem;
  }
  
  .resume-section {
    margin-top: 2rem;
    padding: 1.5rem;
  }
  
  #about-photo {
    margin-bottom: 20px;
    border-width: 4px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .navbar-nav .nav-link {
    margin: 5px 0 !important;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 15px;
    margin-top: 50px;
  }
  
  .contact-section {
    padding: 1.5rem;
    border-radius: 15px;
  }
  
  .form-control {
    padding: 12px 15px;
  }
  
  .btn-primary, .btn-resume {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .contact-section h2 {
    font-size: 1.6rem;
  }
}