:root {
  --primary-dark: #2d3e50;
  --light-neutral: #F8F8F8;
  --accent-teal: #1abc9c;
  --support-blue: #3498db;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--light-neutral);
  color: var(--primary-dark);
}

header, footer {
  background-color: var(--primary-dark);
  color: #ffffff;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.logo {
  font-weight: bold;
}

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

nav li {
  margin-left: 1rem;
}

nav a {
  color: var(--accent-teal);
  text-decoration: none;
  font-weight: bold;
}

nav a:hover,
nav a.active {
  color: var(--support-blue);
}

.main-layout {
  display: flex;
  max-width: 1200px;
  margin: 2rem auto;
  gap: 1rem;
  padding: 0 1rem;
}

.sidebar, .content {
  background-color: #ffffff;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 20px;
}

.sidebar {
  flex: 1;
  text-align: center;
}

.sidebar img {
  max-width: 50%;
  border-radius: 10%;
  margin-bottom: 1rem;
}

.sidebar .image-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar .image-gallery img {
  width: 100%;
  max-width: none;
  border-radius: 8px;
  aspect-ratio: 1;
  object-fit: cover;
}

.content {
  flex: 3;
}

footer {
  text-align: center;
  padding: 1rem;
}

/* Projects page styling */
.projects-section {
  margin-top: 2rem;
}

.projects-section h3 {
  background-color: var(--primary-dark);
  color: white;
  padding: 0.75rem 1rem;
  margin: 0 0 2rem 0;
  font-size: 1.2rem;
  border-radius: 8px;
}

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

.project-card {
  background-color: var(--primary-dark);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-card h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: white;
}

.project-description {
  margin-bottom: 1rem;
  line-height: 1.5;
  color: #ecf0f1;
}

.project-tech {
  font-weight: bold;
  color: #f39c12;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-links a {
  color: #f39c12;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border: 2px solid #f39c12;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.project-links a:hover {
  background-color: #f39c12;
  color: var(--primary-dark);
}

/* Skills page styling */
.skills-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.skills-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.skills-list li::before {
  content: '•';
  color: #f39c12;
  position: absolute;
  left: 0;
  font-size: 1.5rem;
  line-height: 1;
}

details {
  margin-top: 1rem;
}

details summary {
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

details summary:hover {
  color: var(--support-blue);
}

details[open] summary {
  margin-bottom: 1.5rem;
}

/* Contact section styling */
.contact-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

.contact-section h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.contact-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.contact-icon-link {
  display: flex;
  width: 40px;
  height: 40px;
  background-color: var(--primary-dark);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-icon-link:hover {
  background-color: var(--accent-teal);
  transform: translateY(-2px);
}

.contact-icon-link i {
  font-size: 1.2rem;
  color: white;
}

/* Tooltip styling */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-dark);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
  z-index: 1000;
}

[data-tooltip]:after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--primary-dark);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-bottom: -5px;
  z-index: 1000;
}

[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
  opacity: 1;
  visibility: visible;
}

/* Vibe image styling */
.vibe-image {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
}

.vibe-image img {
  max-width: 200px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.vibe-image p {
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--support-blue);
  font-weight: 500;
}

@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
  }
  nav ul {
    flex-direction: column;
    margin-top: 1rem;
  }
  nav li {
    margin: 0.5rem 0;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .project-card {
    padding: 1rem;
  }
  
  .project-links {
    flex-direction: column;
  }
  
  .project-links a {
    text-align: center;
  }
  
  .contact-icons {
    justify-content: center;
  }
}
