:root {
  --bg-black: #121212;
  --card-black: #1e1e1e;
  --border-grey: #2d2d2d;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --primary-green: #5d8b6f;
  --hover-green: #7dab8f;
  --tech-tag-grey: #3a3a3a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

::-webkit-scrollbar {
  width: 2px;
  height: 3px;
}

::-webkit-scrollbar-track {
  background: var(--border-grey);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-green);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--hover-green);
}

.link[rel="icon"], 
.link[rel="apple-touch-icon"] {
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--primary-green); 
}

body {
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-black);
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo-link img {
  margin-right: 10px;
}

.logo-link:hover {
  text-decoration: none;
}


.header-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-green);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--border-grey);
  margin-bottom: 40px;
}

header h1 {
  color: var(--text-primary);
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

nav a:hover {
  color: var(--primary-green);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-green);
  transition: width 0.3s ease;
}

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


.projects, .about {
  padding: 20px 0;
}

.projects h2, .about h2 {
  color: var(--text-primary);
  margin-bottom: 30px;
  font-size: 1.6rem;
  position: relative;
  padding-bottom: 12px;
}

.projects h2::after, .about h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-green);
}


.projects-grid, .profile-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.project-card, .profile-card {
  background-color: var(--card-black);
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.project-card:hover, .profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-green);
}


.image-container {
  width: 100%;
  height: 180px;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-black);
  border-radius: 6px;
  overflow: hidden;
}

.profile-image-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  border: 3px solid var(--primary-green);
}

.project-image, .profile-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.profile-image {
  object-fit: cover;
  padding: 0;
}


.project-card h2, .profile-card h2 {
  color: var(--primary-green);
  margin-bottom: 15px;
  font-size: 1.4rem;
  text-align: left;
}

.profile-card h2 {
  margin-top: 10px;
}

.project-card p, .profile-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.6;
}

.profile-info {
  margin-bottom: 20px;
  text-align: center;
}

.profile-info p {
  margin-bottom: 10px;
}

.profile-info strong {
  color: var(--text-primary);
}


.tech-tags {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 15px 0;
  gap: 8px;
}

.project-links, .profile-links {
  display: flex;
  text-align: center;
  gap: 15px;
  margin-top: auto;
}

.project-links a, .profile-links a {
  display: inline-block;
  text-align: center;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.project-links a:first-child, .profile-links a {
  background-color: var(--primary-green);
  color: var(--bg-black);
  text-align: center;
  border: 1px solid var(--primary-green);
}

.project-links a:last-child {
  background-color: transparent;
  color: var(--primary-green);
  border: 1px solid var(--primary-green);
  text-align: center;
}

.project-links a:hover, .profile-links a:hover {
  background-color: var(--hover-green);
  color: var(--bg-black);
  border-color: var(--hover-green);
  text-align: center;
}

.tech-tag {
  background-color: var(--tech-tag-grey);
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
}


.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-icon {
  transition: transform 0.3s ease;
  display: inline-block;
}

.social-icon:hover {
  transform: translateY(-3px);
}

.social-icon img {
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.social-icon:hover img {
  opacity: 1;
}


.contact {
    padding: 20px 0;
}

.contact h2 {
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background-color: var(--card-black);
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-green);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(93, 139, 111, 0.1);
    border-radius: 50%;
    color: var(--primary-green);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-card h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-green);
    color: var(--bg-black);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-green);
}

.contact-button:hover {
    background-color: var(--hover-green);
    border-color: var(--hover-green);
}


@media (max-width: 768px) {
    .contact-options {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .contact-card {
        padding: 25px;
    }
}


footer {
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid var(--border-grey);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.project-card, .profile-card ,.contact-card {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}

.project-card:nth-child(1), .profile-card:nth-child(1),.contact-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2), .profile-card:nth-child(2),.contact-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }


@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  nav ul {
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .projects-grid, .profile-cards {
    grid-template-columns: 1fr;
  }
  
  .image-container {
    height: 150px;
  }
  
  .profile-image-container {
    width: 120px;
    height: 120px;
  }
  
  .project-links, .profile-links {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .project-links a, .profile-links a {
    width: 100%;
    text-align: center;
  }
}