:root {
  --text-color: #2c3e50;
  --text-secondary: #6c757d;
  --link-color: #3498db;
  --link-hover: #2980b9;
  --background-color: #ffffff;
  --section-background: #f8f9fa;
  --border-color: #e9ecef;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  max-width: 2500px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--link-hover);
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  height: 80px;
  background-color: var(--background-color);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .left h3 {
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 600;
}

nav .right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav .right a {
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav .right a:hover {
  background-color: var(--section-background);
  color: var(--link-color);
}

nav .right a:last-child {
  background-color: var(--link-color);
  color: var(--background-color);
}

nav .right a:last-child:hover {
  background-color: var(--link-hover);
  color: var(--background-color);
}

/* CONSTRUCTION NOTICE */
.construction-notice {
  background: linear-gradient(135deg, #ffebee 0%, #fff5f5 100%);
  border: 2px solid #f44336;
  border-radius: var(--border-radius);
  margin: 1.5rem 3rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.construction-notice .notice-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.construction-notice h2 {
  color: #f44336;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.construction-notice .red-mark {
  color: #f44336;
  font-size: 1.5rem;
  font-weight: bold;
}

/* SECTION 1: Hero */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 3rem;
  margin-bottom: 2rem;
  gap: 3rem;
  background-color: var(--section-background);
  border-radius: var(--border-radius);
  margin: 2rem 3rem;
  box-shadow: var(--shadow-light);
}

.hero-section .text {
  flex: 1.2;
}

.hero-section .text h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  line-height: 1.2;
}

.hero-section .text p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-section .text .links {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-section .text .links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--link-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
  background-color: var(--background-color);
}

.hero-section .text .links a:hover {
  background-color: var(--link-color);
  color: var(--background-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.hero-section .headshot {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-section .headshot img {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

.hero-section .headshot img:hover {
  transform: scale(1.05);
}

/* SECTION 2: Skills */
.skills-section {
  padding: 4rem 3rem;
  margin-bottom: 2rem;
}

.skills-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  font-weight: 700;
}

.skills-section .text {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.skills-section .cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.skills-section .cells .cell {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--background-color);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: var(--shadow-light);
}

.skills-section .cells .cell:hover {
  border-color: var(--link-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.skills-section .cells .cell img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.skills-section .cells .cell span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
}

/* SECTION 3: Mini Projects */
.mini_projects-section {
  padding: 4rem 3rem;
  margin-bottom: 2rem;
  background-color: var(--section-background);
  border-radius: var(--border-radius);
  margin: 2rem 3rem;
  box-shadow: var(--shadow-light);
}

.mini_projects-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-color);
  font-weight: 700;
}

.mini_projects-section .swiper-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}

.mini_projects-section .swiper-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
}

.mini_projects-section .project-card {
  background-color: var(--background-color);
  padding: 2rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mini_projects-section .project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: var(--link-color);
}

.mini_projects-section .project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.mini_projects-section .project-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--text-color);
  font-weight: 600;
}

.mini_projects-section .project-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.mini_projects-section .project-card a {
  color: var(--link-color);
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--link-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: inline-block;
  margin-top: auto;
}

.mini_projects-section .project-card a:hover {
  background-color: var(--link-color);
  color: var(--background-color);
}

.mini_projects-section .swiper-pagination {
  margin-top: 2rem;
  text-align: center;
  position: relative;
}

.mini_projects-section .swiper-pagination .swiper-pagination-bullet {
  background-color: var(--link-color);
  opacity: 0.3;
  transition: var(--transition);
}

.mini_projects-section .swiper-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.2);
}

/* SECTION 4: Contact */
.contact-section {
  padding: 4rem 3rem;
  margin-bottom: 2rem;
}

.contact-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-color);
  font-weight: 700;
}

.contact-section .group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-section .group .text {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

.contact-section .group form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-section .group form label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.contact-section .group form input,
.contact-section .group form textarea {
  font-family: "Poppins", sans-serif;
  border: 2px solid var(--border-color);
  background-color: var(--background-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  outline: none;
  resize: vertical;
  transition: var(--transition);
  font-size: 1rem;
}

.contact-section .group form input:focus,
.contact-section .group form textarea:focus {
  border-color: var(--link-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.contact-section .group form textarea {
  min-height: 120px;
}

.contact-section .group form button {
  font-size: 1.1rem;
  font-family: "Poppins", sans-serif;
  color: var(--background-color);
  background-color: var(--link-color);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  box-shadow: var(--shadow-light);
}

.contact-section .group form button:hover {
  background-color: var(--link-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.contact-section .group form button:active {
  transform: translateY(0);
}

/* Footer */
footer {
  background-color: var(--text-color);
  color: var(--background-color);
  text-align: center;
  padding: 2rem;
  font-size: 0.95rem;
  margin-top: 4rem;
}

footer p {
  margin: 0;
  opacity: 0.9;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--link-color);
  border-radius: 4px;
}

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

/* Responsiveness */
@media (max-width: 850px) {
  nav {
    padding: 0 20px;
  }

  .hero-section .text h2 {
    font-size: 35px;
  }

  .hero-section,
  .skills-section,
  .mini_projects-section,
  .contact-section {
    padding: 0 20px;
    margin-bottom: 50px;
  }

  .hero-section .headshot img {
    width: 300px;
  }
}

@media (max-width: 740px) {
  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
  }

  .mini_projects-section {
    text-align: center;
  }

  .mini_projects-section .group,
  .contact-section .group {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  nav .right a {
    font-size: 22px;
  }

  nav .right a:last-child {
    color: var(--text-color);
    background-color: transparent;
    padding: 0;
  }

  nav .right a span {
    display: none;
  }

  .hero-section .text h2 {
    font-size: 30px;
  }

  .skills-section .cells .cell span {
    font-size: 16px;
  }

  .mini_projects-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .swiper-container {
    padding: 10px;
  }

  .project-card {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .project-card p {
    font-size: 12px;
  }

  .hero-section .headshot img {
    width: 250px;
  }

  .hero-section .text h2 {
    font-size: 25px;
  }

  .skills-section .cells .cell span {
    font-size: 14px;
  }

  .mini_projects-section h2 {
    font-size: 24px;
  }
}