/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
  background: #f7f9fb;
  color: #222;
  line-height: 1.6;
}

header {
  background: linear-gradient(90deg, #232946 60%, #b8c1ec 100%);
  color: #fff;
  padding: 2rem 0 1rem 0;
  box-shadow: 0 2px 8px rgba(35,41,70,0.08);
  position: sticky;
  top: 0;
  z-index: 200;
}

header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #eebbc3;
}

nav {
  margin-top: 1rem;
}

nav a {
  color: #eebbc3;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #fff;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section {
  padding: 3rem 0;
}

/* Hero */
.hero {
  background: radial-gradient(1200px 400px at 10% -10%, #eebbc3 0%, rgba(238,187,195,0.2) 50%, transparent 70%),
              linear-gradient(120deg, #b8c1ec 0%, #f7f9fb 60%);
  text-align: center;
}
.hero-title {
  font-size: 2.2rem;
  color: #232946;
  margin-bottom: 0.75rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: #333;
  max-width: 760px;
  margin: 0.5rem auto 1.25rem auto;
}
.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #232946;
  text-align: center;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(35,41,70,0.07);
  padding: 1.5rem;
  width: 300px;
  text-align: center;
  transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s cubic-bezier(.4,2,.6,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.04) rotate(-1deg);
  box-shadow: 0 12px 32px rgba(35,41,70,0.18);
  background: #f7f9fb;
}

.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.project-card h3 {
  margin: 0.5rem 0 0.5rem 0;
  color: #232946;
}

.project-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background: #eebbc3;
  color: #232946;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(35,41,70,0.08);
  position: relative;
  overflow: hidden;
}

.btn-secondary {
  background: transparent;
  color: #232946;
  border: 2px solid #232946;
}
.btn-secondary:hover {
  background: #232946;
  color: #fff;
}

.btn:focus {
  outline: 2px solid #b8c1ec;
  outline-offset: 2px;
}

.btn:hover {
  background: #232946;
  color: #fff;
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 4px 16px rgba(35,41,70,0.18);
}

input:focus, textarea:focus {
  outline: 2px solid #eebbc3;
  outline-offset: 2px;
}

#about p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #333;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

footer {
  background: #232946;
  color: #fff;
  text-align: center;
  padding: 1.2rem 0;
  margin-top: 2rem;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .projects {
    flex-direction: column;
    align-items: center;
  }
  .project-card {
    width: 90%;
  }
}

.tech-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.tech-tags span {
  background: #eebbc3;
  color: #232946;
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

label {
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #232946;
}

#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  background: #eebbc3;
  color: #232946;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(35,41,70,0.15);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
#backToTop:hover {
  background: #232946;
  color: #fff;
  transform: scale(1.12) rotate(-8deg);
}

body.dark-mode {
  background: #181a1b;
  color: #e4e6eb;
}

body.dark-mode header {
  background: #232946;
  color: #eebbc3;
}

body.dark-mode .subtitle {
  color: #b8c1ec;
}

body.dark-mode nav a {
  color: #b8c1ec;
}
body.dark-mode nav a:hover {
  color: #fff;
}

body.dark-mode .section {
  background: #232946;
}

/* Dark mode hero */
body.dark-mode .hero {
  background: linear-gradient(120deg, #1c1e27 0%, #232946 60%);
}
body.dark-mode .hero-title {
  color: #eebbc3;
}
body.dark-mode .hero-subtitle {
  color: #b8c1ec;
}

body.dark-mode .project-card {
  background: #232946;
  color: #e4e6eb;
  box-shadow: 0 4px 24px rgba(35,41,70,0.25);
}

body.dark-mode .project-card h3 {
  color: #eebbc3;
}

body.dark-mode .project-card p {
  color: #b8c1ec;
}

body.dark-mode .tech-tags span {
  background: #393e46;
  color: #eebbc3;
}

body.dark-mode .btn {
  background: #393e46;
  color: #eebbc3;
}
body.dark-mode .btn:hover {
  background: #eebbc3;
  color: #232946;
}

body.dark-mode .btn-secondary {
  background: transparent;
  color: #eebbc3;
  border: 2px solid #eebbc3;
}
body.dark-mode .btn-secondary:hover {
  background: #eebbc3;
  color: #232946;
}

body.dark-mode #about p {
  color: #b8c1ec;
}
body.dark-mode #about #ageDisplay {
  color: #eebbc3;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: #232946;
  color: #e4e6eb;
  border: 1px solid #393e46;
}

body.dark-mode footer {
  background: #181a1b;
  color: #b8c1ec;
}

body.dark-mode #backToTop {
  background: #393e46;
  color: #eebbc3;
}
body.dark-mode #backToTop:hover {
  background: #eebbc3;
  color: #232946;
}

#darkModeToggle {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 101;
  background: #eebbc3;
  color: #232946;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(35,41,70,0.15);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
#darkModeToggle:hover {
  background: #232946;
  color: #fff;
  transform: scale(1.12) rotate(-8deg);
}
body.dark-mode #darkModeToggle {
  background: #393e46;
  color: #eebbc3;
}
body.dark-mode #darkModeToggle:hover {
  background: #eebbc3;
  color: #232946;
}

html {
  transition: background 0.3s, color 0.3s;
}
body, .project-card, header, .section, footer {
  transition: background 0.3s, color 0.3s;
}

#work.section {
  background: linear-gradient(120deg, #f0e9f7 60%, #eebbc3 100%);
  animation: fadeIn 1.2s;
}
body.dark-mode #work.section {
  background: #23213a;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body.dark-mode #about h2 {
  color: #eebbc3;
}

body.dark-mode section#contact h2 {
  color: #eebbc3 !important;
}

#work h2 {
  color: #232946;
}
body.dark-mode #work h2 {
  color: #eebbc3;
} 