* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #333333;
  --accent-color: #2a9d8f; 
  --text: #333333;
  --text-secondary: #666666;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--white);
  color: var(--text);
  line-height: 1.6;
}

/* Navigation */
nav {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--medium-gray);
}

nav ul {
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
}

nav li {
  height: 50px;
}

nav a {
  height: 100%;
  padding: 0 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: var(--text);
  transition: all 0.3s ease;
}

nav a:hover {
  color: var(--accent-color);
}

nav li:first-child {
  margin-right: auto;
  font-weight: bold;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 60px;
  border-left: 1px solid var(--medium-gray);
}

.sidebar a {
  width: 100%;
  padding: 15px 30px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}

.sidebar a:hover {
  color: var(--accent-color);
  background-color: rgba(79, 195, 247, 0.05);
}

.menu-button {
  display: none;
}

@media (max-width: 800px) {
  .hideOnMobile {
    display: none;
  }
  .menu-button {
    display: block;
  }
}

/* Sections */
section {
  min-height: 100vh;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  scroll-margin-top: 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--accent-color);
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Home Section */
#home {
  background: linear-gradient(to bottom, var(--white), var(--light-gray));
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 0 10%;
}

.profile-img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-color), #90caf9);
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-img-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--white);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--accent-color);
}

.profile-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-content {
  max-width: 600px;
}

.home-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--black);
}

.home-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.home-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: var(--accent-color);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid var(--accent-color);
}

.cta-button:hover {
  background: var(--accent-color);
  color: var(--white);
}

/* About Section */
#about {
  background: linear-gradient(to bottom, var(--light-gray), var(--white));
}

.about-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  gap: 50px;
}

.about-content {
  flex: 1;
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.about-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.detail-card {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--medium-gray);
  transition: all 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(79, 195, 247, 0.2);
  border-color: var(--accent-color);
}

.detail-card h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.detail-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-item {
  background: rgba(79, 195, 247, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text);
  border: 1px solid rgba(79, 195, 247, 0.3);
}

/* Skills Section */
#skills {
  background: linear-gradient(to bottom, var(--white), var(--light-gray));
}

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
  max-width: 1000px;
}

.skills-category {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--medium-gray);
  transition: all 0.3s ease;
}

.skills-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(79, 195, 247, 0.2);
  border-color: var(--accent-color);
}

.skills-category h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--accent-color);
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.skill-header img {
  width: 40px;
  height: 40px;
}

.skill-header h4 {
  font-size: 1.3rem;
  color: var(--text);
}

.progress-bar {
  height: 10px;
  background: var(--light-gray);
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: var(--accent-color);
  border-radius: 5px;
  position: relative;
  transition: width 1s ease-in-out;
}

.progress-value {
  position: absolute;
  right: 10px;
  top: -25px;
  font-size: 0.9rem;
  color: var(--text);
}

.soft-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.soft-skill-item {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--medium-gray);
  transition: all 0.3s ease;
}

.soft-skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(79, 195, 247, 0.2);
  border-color: var(--accent-color);
}

.soft-skill-item i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.soft-skill-item h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.soft-skill-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Projects Section */
#projects {
  background: linear-gradient(to bottom, var(--light-gray), var(--white));
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1200px;
}

.project-card {
  background: var(--white);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--medium-gray);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(79, 195, 247, 0.3);
  border-color: var(--accent-color);
}

.project-img {
  height: 200px;
  background-color: var(--light-gray);
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.project-card p {
  flex-grow: 1;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.project-link {
  display: inline-block;
  padding: 8px 20px;
  background: transparent;
  color: var(--accent-color);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid var(--accent-color);
  text-align: center;
}

.project-link:hover {
  background: var(--accent-color);
  color: var(--white);
}

/* Contact Section */
#contact {
  background: linear-gradient(to bottom, var(--white), var(--light-gray));
}

.contact-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  gap: 50px;
}

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--medium-gray);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
  box-shadow: 0 15px 30px rgba(79, 195, 247, 0.2);
  border-color: var(--accent-color);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: 15px;
  width: 30px;
}

.contact-item a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item:hover a {
  color: var(--accent-color);
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid var(--medium-gray);
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  padding: 12px 30px;
  background: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.submit-btn:hover {
  background: var(--accent-color);
  color: var(--white);
}

footer {
  text-align: center;
  padding: 30px;
  background: var(--white);
  color: var(--text-secondary);
  border-top: 1px solid var(--medium-gray);
}

/* Responsive Design */
@media (max-width: 992px) {
  #home {
    flex-direction: column;
    text-align: center;
    padding: 100px 20px 50px;
  }
  
  .about-container {
    flex-direction: column;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .profile-img {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .home-content h1 {
    font-size: 2.5rem;
  }
  
  .home-content h2 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-img {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  nav a {
    padding: 0 15px;
  }
  
  .home-content h1 {
    font-size: 2rem;
  }
  
  .home-content h2 {
    font-size: 1.3rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .profile-img {
    width: 180px;
    height: 180px;
  }
  
  .skills-category {
    padding: 20px;
  }
}