html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

header h1 {
  margin: 0;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 15px;
}

nav a {
  color: #fff;
  text-decoration: none;
}

main {
  padding: 20px;
}

footer {
  background: #1f6217;
  color: #fff;
  text-align: center;
  padding: 1em 0;
  width: 100%;
}

.intro {
  text-align: center;
}

.intro img {
  width: 150px;
  border-radius: 50%;
  margin: 15px 0;
}


header, footer {
  background: rgba(255,255,255,0.85);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1rem 0;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #2d6cdf;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
}

nav a:hover {
  color: #1b3a6b;
  transform: scale(1.1);
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
  animation: fadeInUp 1.2s ease;
}

.intro img {
  width: 140px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.15);
  margin-bottom: 1.5rem;
  animation: bounceIn 1.2s;
}

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

@keyframes bounceIn {
  0% { transform: scale(0.8);}
  60% { transform: scale(1.1);}
  100% { transform: scale(1);}
}

footer {
  margin-top: 3rem;
  font-size: 1rem;
}

footer a {
  color: #2d6cdf;
  margin: 0 0.5rem;
  transition: color 0.3s;
}

footer a:hover {
  color: #1b3a6b;
}

.projects-list {
  margin: 3rem auto;
  max-width: 700px;
  background: rgba(74, 89, 186, 0.85);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(44,62,80,0.08);
  padding: 2rem;
  animation: fadeInUp 1.2s;
}

.projects-list h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.projects-list ul {
  list-style: disc inside;
  font-size: 1.1rem;
  line-height: 2;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: rgba(255,255,255,0.97);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(44,62,80,0.10);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: cardFadeIn 1s;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(44,62,80,0.18);
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: #2d6cdf;
  font-size: 1.3rem;
}

.project-card p {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1rem;
}

.tech-stack {
  display: inline-block;
  background: #e0eafc;
  color: #1b3a6b;
  font-size: 0.95rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.project-link {
  margin-top: auto;
  color: #fff;
  background: #2d6cdf;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
  align-self: flex-end;
}

.project-link:hover {
  background: #1b3a6b;
}

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

.contact-section {
  margin: 3rem auto;
  max-width: 500px;
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(44,62,80,0.08);
  padding: 2rem;
  animation: fadeInUp 1.2s;
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form label {
  font-weight: 500;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  padding: 0.7rem;
  border: 1px solid #bfcbe3;
  border-radius: 6px;
  font-size: 1rem;
  background: #f6f8fc;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2d6cdf;
  outline: none;
}

.contact-form button {
  background: #2d6cdf;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #1b3a6b;
}

.contact-info {
  margin-top: 1rem;
  font-size: 1rem;
}

.contact-info a {
  color: #2d6cdf;
  text-decoration: underline;
}

.about-card {
  background: rgba(255,255,255,0.97);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(44,62,80,0.10);
  padding: 2rem 1.5rem;
  margin: 2rem auto;
  max-width: 600px;
  animation: cardFadeIn 1s;
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 32px rgba(44,62,80,0.18);
}

.animated-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4rem;
  animation: fadeInUp 1.2s ease;
}

.profile-gradient {
  background: linear-gradient(135deg, #6dd5ed 0%, #2193b0 100%);
  padding: 6px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(44,62,80,0.18);
  animation: gradientSpin 3s linear infinite;
}

.profile-gradient img {
  width: 150px;
  border-radius: 50%;
  display: block;
  border: 4px solid #fff;
}

@keyframes gradientSpin {
  0% { filter: hue-rotate(0deg);}
  100% { filter: hue-rotate(360deg);}
}

.highlight {
  color: #6dd5ed;
  font-weight: 700;
  background: linear-gradient(90deg, #6dd5ed 0%, #2193b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dev-emoji {
  font-size: 2rem;
  vertical-align: middle;
  margin-right: 0.3em;
}

.subtitle {
  font-size: 1.2rem;
  color: #e0eafc;
  margin-bottom: 2rem;
  text-align: center;
}

.typewriter {
  display: inline-block;
  overflow: hidden;
  border-right: .15em solid #6dd5ed;
  white-space: nowrap;
  animation: typing 2.5s steps(40, end), blink-caret .75s step-end infinite;
  font-family: 'Fira Mono', 'Consolas', monospace;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #6dd5ed; }
}

.home-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.home-btn {
  background: linear-gradient(90deg, #2193b0 0%, #6dd5ed 100%);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(44,62,80,0.10);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}

.home-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 24px rgba(44,62,80,0.18);
  background: linear-gradient(90deg, #6dd5ed 0%, #2193b0 100%);
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, #2193b0 0%, #6dd5ed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: #2d6cdf;
  font-weight: 500;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s, transform 0.3s;
  position: relative;
}

nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #6dd5ed;
  transition: width .3s;
  position: absolute;
  left: 0;
  bottom: -4px;
}

nav a:hover {
  color: #2193b0;
  transform: scale(1.08);
}

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

footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 24px 0 10px 0;
  margin-top: 30px;
  border-top: 3px solid #6dd5ed;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.footer-links a {
  color: #6dd5ed;
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}

.footer-links a:hover {
  color: #2193b0;
  transform: scale(1.2) rotate(-8deg);
}

.dev-emoji {
  font-size: 1.7rem;
  vertical-align: middle;
}

.gallery-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.gallery-grid img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.12);
  transition: transform 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.08) rotate(-2deg);
}


