
/* Base & Layout */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
body {
  display: flex;
  flex-direction: column;
  font-family: 'Roboto', sans-serif;
  background: #ecf0f1;       /* light grey page background */
  color: #2C3E50;
}

/* Header: gradient background */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #67d6d9, #9de3c4);
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Logo sizing */
.header-logo img {
  width: 50px;
  height: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
}
nav a {
  color: #ffffff;
  margin-right: 1.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
nav a:hover {
  color: #34495e;
}
.social-logo {
  width: 32px;
  height: auto;
  margin-left: 1rem;
  display: block;
  transition: transform 0.3s ease;
}
.social-logo:hover {
  transform: scale(1.1);
}

/* Main Content */
main {
  flex: 1;
  max-width: 960px;
  margin: 2rem auto;
  padding: 2rem;
}
main h2 {
  color: #2C3E50;
  margin-bottom: 1rem;
}

/* Section title with underline */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2C3E50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #67d6d9;
}

/* Project cards */
.project-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
.project-card h3 a {
  color: #17a2b8;
  text-decoration: none;
  border-bottom: 1px dashed #17a2b8;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.project-card h3 a:hover {
  color: #128d99;
  border-color: #128d99;
}
.project-card p {
  margin-top: 0.75rem;
  line-height: 1.6;
  color: #5c6670;
}

/* Intro section */
.intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.speech-bubble {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
  animation: fadeInUp 0.6s ease;
}
.speech-bubble::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -20px;
  border: 10px solid transparent;
  border-right-color: rgba(255,255,255,0.95);
}

/* Contact form */
form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group label {
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #67d6d9;
  box-shadow: 0 0 8px rgba(103, 214, 217, 0.4);
}
form button {
  background: #67d6d9;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s ease;
}
form button:hover {
  background: #4dc6c9;
}

/* Button (CV download etc.) */
.btn {
  display: inline-block;
  background: #67d6d9;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 1.5rem;
  transition: background 0.3s ease;
}
.btn:hover {
  background: #4dc6c9;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #9de3c4;
  color: #2C3E50;
  font-weight: 500;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Additional enhancements for round, interactive, modern feel */

/* Smooth transitions globally */
* {
  transition: all 0.3s ease-in-out;
}

/* Rounded nav links */
nav a {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  background-color: rgba(255,255,255,0.15);
}
nav a:hover {
  background-color: rgba(255,255,255,0.3);
  color: #2C3E50;
  transform: translateY(-2px);
}

/* Jumping animation on cards and logos */
.project-card:hover,
.social-logo:hover {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-6px); }
  50%  { transform: translateY(2px); }
  70%  { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

/* Buttons have subtle pop */
form button,
.btn {
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
form button:hover,
.btn:hover {
  transform: scale(1.05);
}

/* Speech bubble float */
.speech-bubble {
  animation: floatUp 1s ease both;
}
@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer fade-in */
footer {
  animation: fadeIn 1.2s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Table styling (About page) */
table th {
  border-radius: 8px 8px 0 0;
}
table td {
  background: #ffffff;
  border-radius: 6px;
}

/* Slight shadow to photo */
.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
