body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  background: #f8f9fa;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
}

header {
  background: linear-gradient(135deg, #8e44ad, #3a1c71);
  color: #f8f9fa;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

header .profile {
  display: inline-block;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

header .profile img {
  border-radius: 50%;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.highlight-name {
  margin-top: 1.5rem;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(90deg, #f3a953, #e74c3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

header .profile p {
  font-size: 1.3rem;
  margin-top: 0.5rem;
  letter-spacing: 0.5px;
}

.cv-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.cv-buttons .cv-link {
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  background-color: #e74c3c;
  color: #fff;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.cv-buttons .cv-link:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}

header #theme-toggle {
  background-color: transparent;
  border: 2px solid rgba(236, 240, 241, 0.5);
  color: #ecf0f1;
  font-size: 1.2rem;
  padding: 0.6rem;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 20px;
  right: 20px;
  transition: all 0.3s ease;
}

header #theme-toggle:hover {
  background-color: rgba(236, 240, 241, 0.1);
  transform: rotate(15deg);
}

nav {
  background: #4a235a;
  display: flex;
  justify-content: center;
  padding: 1.2rem;
  gap: 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

nav a {
  color: #f8f9fa;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover {
  color: #f9a825;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #f9a825;
  transition: all 0.3s ease;
}

nav a:hover::after {
  width: 100%;
  left: 0;
}

section {
  background: white;
  margin: 2.5rem auto;
  padding: 3rem;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border-top: 4px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(90deg, #8e44ad, #f3a953);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #5a189a;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  text-decoration: none;
}

h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: #7209b7;
  bottom: 0;
  left: 0;
}

h3 {
  color: #7209b7;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

section#skills p {
  font-size: 1.1rem;
  margin: 1rem 0;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #9d4edd;
}

section#skills strong {
  font-weight: 700;
  color: #2c3e50;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 3px;
  background-color: #9d4edd;
  top: 0;
  bottom: 0;
  left: 30px;
  margin-left: -1.5px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  margin-bottom: 30px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: white;
  border: 3px solid #7209b7;
  top: 15px;
  left: 22px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-date {
  font-weight: 700;
  color: #7209b7;
  margin-bottom: 5px;
}

.timeline-content {
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
  margin-top: 0;
  color: #2c3e50;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  padding: 1rem 0;
}

.project {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), 
                   linear-gradient(45deg, #9d4edd 0%, #e74c3c 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  position: relative;
  padding: 0 0 20px 0;
}

.project:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(114, 9, 183, 0.2);
  border-image: linear-gradient(45deg, #7209b7, #e74c3c) 1;
}

.project-img-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  margin-bottom: 15px;
}

.project-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 0;
  border-radius: 0;
}

.project h3 {
  font-size: 1.4rem;
  margin: 0 1.2rem 0.8rem;
  color: #5a189a;
}

.project p {
  flex-grow: 1;
  margin: 0 1.2rem 1.5rem;
  color: #333;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 1.2rem 1.5rem;
}

.project a {
  display: inline-block;
  margin: 0 1.2rem;
  padding: 0.7rem 1.5rem;
  background: #e74c3c;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.2);
}

.project a:hover {
  background: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), 
                   linear-gradient(45deg, #9d4edd 0%, #e74c3c 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #5a189a;
  font-size: 1.05rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin: 0.5rem 0;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #9d4edd;
  box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.2);
  background-color: #fff;
}

.contact-form button {
  background: linear-gradient(45deg, #7209b7, #e74c3c);
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(114, 9, 183, 0.3);
  margin-top: 0.5rem;
}

.contact-form button:hover {
  background: linear-gradient(45deg, #5a189a, #c0392b);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(114, 9, 183, 0.4);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
}

.contact-links a {
  color: #34495e;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-links a:hover {
  color: #7209b7;
}

footer {
  text-align: center;
  padding: 2rem;
  background: #3a1c71;
  color: #f8f9fa;
  margin-top: 2rem;
}

.dark-mode {
  background: #0f172a;
  color: #f8fafc;
}

.dark-mode section {
  background: #1e293b;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border-top: 4px solid transparent;
  background-image: linear-gradient(#1e293b, #1e293b), linear-gradient(90deg, #7209b7, #f3a953);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.dark-mode h2 {
  color: #f8fafc;
}

.dark-mode h3 {
  color: #c77dff;
}

.dark-mode p {
  color: #e2e8f0;
}

.dark-mode section#skills p {
  background: #2d3748;
  color: #e2e8f0;
  border-left: 3px solid #9d4edd;
}

.dark-mode section#skills strong {
  color: #f8fafc;
}

.dark-mode .timeline-content {
  background: #2d3748;
  color: #e2e8f0;
}

.dark-mode .timeline-content h3 {
  color: #c77dff;
}

.dark-mode .timeline-content p, 
.dark-mode .timeline-content li {
  color: #e2e8f0;
}

.dark-mode .project {
  background-image: linear-gradient(#1e293b, #1e293b), 
                   linear-gradient(45deg, #9d4edd 0%, #e74c3c 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.dark-mode .project h3 {
  color: #c77dff;
}

.dark-mode .project p {
  color: #e2e8f0;
}

.dark-mode .tech-tag {
  background-color: rgba(157, 78, 221, 0.2);
  color: #c77dff;
}

.dark-mode .contact-links a {
  color: #e2e8f0;
}

.dark-mode .form-group label {
  color: #c77dff;
}

.dark-mode footer {
  background: #1a1c2a;
  color: #f8fafc;
}

@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }
  
  section {
    padding: 2rem 1.5rem;
    margin: 1.5rem 1rem;
  }
  
  header {
    padding: 3rem 1rem;
  }
  
  .highlight-name {
    font-size: 2.5rem;
  }
  
  .projects {
    grid-template-columns: 1fr;
  }
  
  .timeline-item {
    padding-left: 30px;
  }
}

/* Adding styles for new elements */

/* About section styling */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Skill categories */
.skill-category {
  color: #7209b7;
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2rem;
  border-left: 4px solid #9d4edd;
  padding-left: 1rem;
  background-color: rgba(157, 78, 221, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 0 6px 6px 0;
}

/* Experience section */
.timeline-content ul {
  margin-top: 0.8rem;
  padding-left: 1.2rem;
}

.timeline-content li {
  margin-bottom: 0.5rem;
  position: relative;
}

/* Project technology tags */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem 0;
}

.tech-tag {
  background-color: rgba(157, 78, 221, 0.1);
  color: #7209b7;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-link {
  margin-top: auto;
}

/* Contact form styling */
.contact-intro {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2c3e50;
}

/* Footer styling */
.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Dark mode additions */
.dark-mode .tech-tag {
  background-color: rgba(157, 78, 221, 0.2);
}

.dark-mode .form-group label {
  color: #c77dff;
}

/* Media query additions */
@media (max-width: 600px) {
  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .form-group label {
    font-size: 0.9rem;
  }
  
  .tech-tag {
    font-size: 0.8rem;
  }
}

/* Adding animations and social media icon styles */

/* Background animation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(315deg, rgba(157, 78, 221, 0.03) 0%, rgba(240, 147, 43, 0.03) 100%);
  pointer-events: none;
  animation: gradientBG 15s ease infinite;
  background-size: 400% 400%;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Profile image animation */
.animated-image {
  animation: pulse 2s infinite alternate;
  transition: all 0.3s ease;
}

.animated-image:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
  0% {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
  100% {
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.4);
  }
}

/* Typing effect for name */
.typing-animation {
  position: relative;
  overflow: hidden;
}

.typing-animation::after {
  content: '|';
  position: absolute;
  right: -8px;
  animation: typing 1s infinite;
}

@keyframes typing {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Navigation item animations */
.nav-item {
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}

.nav-item:hover {
  transform: translateY(-3px);
}

/* Button animation */
.btn-animated {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-animated::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: all 0.6s ease;
}

.btn-animated:hover::before {
  left: 100%;
}

.btn-animated:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(52, 152, 219, 0.4);
}

/* Project image container for hover effect */
.project-img-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.project-img {
  transition: transform 0.6s ease;
}

.project-img-container:hover .project-img {
  transform: scale(1.08);
}

.project-img-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity 0.6s ease;
}

.project-img-container:hover::after {
  opacity: 1;
}

/* Tech tag animation */
.tech-tag {
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background-color: rgba(52, 152, 219, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
}

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

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #3498db;
  color: white;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
  transform: translateY(-5px) rotate(360deg);
  background: #2980b9;
  box-shadow: 0 8px 15px rgba(52, 152, 219, 0.4);
}

/* Dark mode adjustments */
.dark-mode::before {
  background: linear-gradient(315deg, rgba(26, 26, 46, 0.03) 0%, rgba(22, 33, 62, 0.03) 100%);
}

.dark-mode .social-icon {
  background: #16213e;
}

.dark-mode .social-icon:hover {
  background: #1a1a2e;
}

/* Add back dark mode contact form styling */
.dark-mode .contact-form {
  background-image: linear-gradient(#1e293b, #1e293b), 
                   linear-gradient(45deg, #9d4edd 0%, #e74c3c 100%);
}

.dark-mode .contact-form input,
.dark-mode .contact-form textarea {
  background-color: #2d3748;
  border-color: #4a5568;
  color: #f8fafc;
}

.dark-mode .contact-form input:focus,
.dark-mode .contact-form textarea:focus {
  border-color: #9d4edd;
  background-color: #374151;
}

.dark-mode .skill-category {
  color: #c77dff;
  background-color: rgba(157, 78, 221, 0.1);
  border-left: 4px solid #9d4edd;
}
