/* Reset and base */
* {
  box-sizing: border-box;
}
body {
  margin: 0; 
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #073b33;
  color: #d7e9e7;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
a {
  color: #aad8d3;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #20c997;
  text-decoration: underline;
}

/* Navigation Bar */
nav {
  background: rgba(15, 74, 60, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 0.75rem 2rem;
  font-weight: 600;
  gap: 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(32, 201, 151, 0.3);
}
nav > .logo {
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  cursor: default;
  color: #20c997;
}
nav > a {
  color: #d7e9e7;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
}
nav > a:hover {
  background: rgba(29, 111, 90, 0.8);
  border-color: rgba(32, 201, 151, 0.3);
  text-decoration: none;
}
nav > a.active {
  background: rgba(32, 201, 151, 0.2);
  border-color: #20c997;
  color: #20c997;
}

/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.geometric-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 85, 119, 0.4), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 119, 170, 0.3), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(32, 201, 151, 0.1), transparent 70%);
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

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

.shape:nth-child(1) {
  width: 80px; height: 80px;
  background: linear-gradient(45deg, #20c997, #0077aa);
  top: 10%; left: 15%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 120px; height: 120px;
  background: linear-gradient(135deg, #0077aa, #20c997);
  top: 60%; right: 20%;
  animation-delay: 2s;
}

.shape:nth-child(3) {
  width: 60px; height: 60px;
  background: linear-gradient(225deg, #20c997, #005577);
  bottom: 20%; left: 30%;
  animation-delay: 4s;
}

.shape:nth-child(4) {
  width: 100px; height: 100px;
  background: linear-gradient(315deg, #005577, #20c997);
  top: 30%; right: 40%;
  animation-delay: 6s;
}

.grid-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(32, 201, 151, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 201, 151, 0.1) 1px, transparent 1px);
  background-size: 100px 100px;
  animation: gridMove 20s linear infinite;
  opacity: 0.3;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg) scale(1); 
  }
  25% { 
    transform: translateY(-20px) rotate(90deg) scale(1.1); 
  }
  50% { 
    transform: translateY(-10px) rotate(180deg) scale(0.9); 
  }
  75% { 
    transform: translateY(-30px) rotate(270deg) scale(1.05); 
  }
}

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

/* Container for main content */
main {
  display: flex;
  max-width: 1200px;
  margin: 2rem auto;
  gap: 3rem;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

/* Left column with photo & info */
.left {
  flex: 1 1 320px;
  text-align: center;
  position: relative;
  background: rgba(14, 54, 46, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  height: fit-content;
  border: 1px solid rgba(32, 201, 151, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.left img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #20c997;
  box-shadow: 0 0 20px rgba(32, 201, 151, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.left img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(32, 201, 151, 0.8);
}

.left h1 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #d7e9e7, #20c997);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.left h2 {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
  color: #a3ccb8;
  margin-bottom: 0.25rem;
}

.left h3 {
  margin: 0.25rem 0 2rem;
  font-weight: 500;
  font-size: 1rem;
  color: #79b99a;
  line-height: 1.4;
}

/* Social icons container */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(32, 201, 151, 0.1);
  border: 2px solid rgba(32, 201, 151, 0.3);
  border-radius: 50%;
  color: #aad8d3;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: #20c997;
  background: rgba(32, 201, 151, 0.2);
  border-color: #20c997;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(32, 201, 151, 0.3);
}

/* Social icon SVG */
.social-icons svg {
  width: 20px;
  height: 20px;
}

/* Right column content */
.right {
  flex: 2 1 600px;
}

/* Sections */
.section-content {
  background: rgba(14, 54, 46, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(32, 201, 151, 0.2);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header {
  padding: 1.5rem 2rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(32, 201, 151, 0.1);
  transition: all 0.3s ease;
  position: relative;
  user-select: none;
}

.section-header:hover {
  background: rgba(32, 201, 151, 0.1);
}

.section-header h2 {
  margin: 0;
  font-weight: 700;
  font-size: 1.5rem;
  color: #d7e9e7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-header .arrow {
  transition: transform 0.3s ease;
  color: #20c997;
  font-size: 1.2rem;
}

.section-content.active .section-header .arrow {
  transform: rotate(90deg);
}

.section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 2rem;
}

.section-content.active .section-body {
  max-height: 2000px;
  padding: 1.5rem 2rem 2rem;
}

.section-body p, .section-body ul {
  font-size: 1.1rem;
  color: #b2d8cc;
  line-height: 1.6;
}

.section-body ul {
  list-style-type: none;
  padding-left: 0;
}

.section-body li {
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(32, 201, 151, 0.1);
  border-radius: 8px;
  border-left: 4px solid #20c997;
  transition: all 0.3s ease;
}

.section-body li:hover {
  background: rgba(32, 201, 151, 0.2);
  transform: translateX(5px);
}

.section-body li a {
  font-weight: 600;
  font-size: 1.1rem;
  color: #20c997;
}

/* Project links styling */
.project-item {
  display: block;
  padding: 1.5rem;
  background: rgba(32, 201, 151, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(32, 201, 151, 0.3);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.project-item:hover {
  background: rgba(32, 201, 151, 0.2);
  border-color: #20c997;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(32, 201, 151, 0.3);
  text-decoration: none;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #20c997;
  margin-bottom: 0.5rem;
}

.project-description {
  color: #b2d8cc;
  font-size: 1rem;
  line-height: 1.5;
}

/* Teaching textarea */
#teaching-content {
  width: 100%;
  background: rgba(20, 68, 52, 0.8);
  color: #cde9e1;
  border: 2px solid rgba(32, 201, 151, 0.3);
  padding: 1.5rem;
  border-radius: 10px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.1rem;
  min-height: 200px;
  resize: vertical;
  transition: border-color 0.3s ease;
}

#teaching-content:focus {
  outline: none;
  border-color: #20c997;
  box-shadow: 0 0 10px rgba(32, 201, 151, 0.3);
}

/* Contact Section Styles */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-item {
  background: rgba(32, 201, 151, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(32, 201, 151, 0.3);
  text-align: center;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(32, 201, 151, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(32, 201, 151, 0.3);
}

.contact-item h3 {
  margin: 0 0 1rem 0;
  color: #20c997;
  font-size: 1.2rem;
}

.contact-item a {
  color: #b2d8cc;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #20c997;
}

.contact-form-container {
  margin-top: 3rem;
  background: rgba(32, 201, 151, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(32, 201, 151, 0.2);
}

.contact-form-container h3 {
  color: #20c997;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-form {
  max-width: 100%;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #d7e9e7;
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(20, 68, 52, 0.8);
  border: 2px solid rgba(32, 201, 151, 0.3);
  border-radius: 8px;
  color: #d7e9e7;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #20c997;
  box-shadow: 0 0 10px rgba(32, 201, 151, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #79b99a;
}

.submit-btn {
  background: linear-gradient(135deg, #20c997, #1aa87a);
  color: #073b33;
  font-weight: 600;
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(32, 201, 151, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #1aa87a, #20c997);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(32, 201, 151, 0.5);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn svg {
  width: 18px;
  height: 18px;
}

.download-cv {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #20c997, #1aa87a);
  color: #073b33;
  font-weight: 600;
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(32, 201, 151, 0.3);
}

.download-cv:hover {
  background: linear-gradient(135deg, #1aa87a, #20c997);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(32, 201, 151, 0.5);
  text-decoration: none;
}

.download-cv svg {
  width: 18px;
  height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
  main {
    flex-direction: column;
    margin: 1rem;
    gap: 2rem;
  }
  
  .left, .right {
    flex: 1 1 100%;
  }
  
  nav {
    padding: 0.75rem 1rem;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  nav > a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .left {
    padding: 1.5rem 1rem;
  }
  
  .left img {
    width: 150px;
    height: 150px;
  }
  
  .section-header {
    padding: 1rem 1.5rem;
  }
  
  .section-body {
    padding: 0 1.5rem;
  }
  
  .section-content.active .section-body {
    padding: 1rem 1.5rem 1.5rem;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}