@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
  --accent: #e07a6a;
  --bg: #301b1b;
  --bg-dark: #1b1515;
  --white: #fff;
  --gray: #bcbcbc;
  --nav-link: #fff;
  --nav-link-active: #e07a6a;
  --box-glow: 0 0 40px 8px #e07a6a, 0 0 0 4px #e07a6a33;
  --font-main: 'Montserrat', Arial, sans-serif;
}

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

body {
  background: var(--bg);
  font-family: var(--font-main);
  color: var(--white);
  width: 100vw;
  height: 100vh;
}

.container {
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  bottom: 30px;
  background: var(--bg-dark);
  border-radius: 28px;
  box-shadow: var(--box-glow);
  border: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.slider-wrapper {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
}

/* Achievements Collage */
.achievements-main-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 7vw;
  box-sizing: border-box;
}

.achievements-collage-container {
  width: 100%;
  max-width: 1100px;
  background: transparent;
  border-radius: 18px;
  padding: 28px 0 0 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
  position: relative;
}
.achievements-collage-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Webkit */
}

.achievements-collage {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 18px;
  margin: 32px 0 22px 0;
}

.achievements-collage img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(224,122,106,0.10);
  transition: transform 0.18s;
  background: #222;
  cursor: pointer;
}
.achievements-collage img:hover {
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 4px 24px 0 rgba(224,122,106,0.18);
}

/* Achievements Modal Styles */
.ach-modal {
  display: none;
  position: absolute;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.85);
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.ach-modal.open {
  display: flex;
  
}

.ach-modal-content {
  background: rgba(32, 22, 22, 0.98);
  border-radius: 20px;
  padding: 24px 24px 18px 24px;
  box-shadow: 0 8px 40px 0 rgba(224,122,106,0.17);
  max-width: 440px;
  width: 96vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: zoom 0.3s;
}

@keyframes zoom {
  from { transform: scale(0.8);}
  to { transform: scale(1);}
}

.ach-modal-close {
  position: absolute;
  top: 12px;
  right: 24px;
  color: #fff;
  font-size: 2.2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 20;
  transition: color 0.2s;
}

.ach-modal-close:hover {
  color: var(--accent);
}

#achModalImg {
  width: 100%;
  max-width: 330px;
  max-height: 260px;
  border-radius: 12px;
  margin-bottom: 18px;
  object-fit: cover;
  box-shadow: 0 2px 16px 0 rgba(224,122,106,0.10);
  background: #222;
}

.ach-modal-caption {
  width: 100%;
  text-align: center;
}

.ach-modal-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.ach-modal-desc {
  color: var(--gray);
  font-size: 1.02rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .achievements-collage {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 12px;
  }
  .achievements-collage-container {
    max-width: 98vw;
    max-height: 340px;
  }
}
@media (max-width: 600px) {
  .achievements-collage {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(20, 1fr);
    gap: 10px;
  }
  .achievements-collage-container {
    max-width: 98vw;
    max-height: 220px;
  }
  .ach-modal-content {
    padding: 10px 4vw 8px 4vw;
    max-width: 99vw;
  }
  #achModalImg {
    max-width: 99vw;
    max-height: 180px;
  }
}

/* --- Slider and Content Styles --- */

.navbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 4vw 10px 4vw;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2.5vw;
  margin: 0;
  padding: 0;
}

.navbar ul li a {
  color: var(--nav-link);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.14rem;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
  cursor: pointer;
}

.navbar ul li a.active,
.navbar ul li a:hover {
  color: var(--nav-link-active);
}

.navbar ul li a.active::after {
  content: '';
  display: block;
  margin: 4px auto 0 auto;
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Slider Styles */
.slider-container {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 500%; /* 5 slides */
  height: 100%;
}

.slide {
  width: 20%;
  min-width: 0;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.6s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  height: 100%;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide .slide-in-left,
.slide .slide-in-right {
  opacity: 0;
}

.slide.active .slide-in-left {
  animation: slideInLeft 0.8s forwards;
}

.slide.active .slide-in-left.delay-1 { animation-delay: 0.2s; }
.slide.active .slide-in-left.delay-2 { animation-delay: 0.4s; }
.slide.active .slide-in-left.delay-3 { animation-delay: 0.6s; }

.slide.active .slide-in-right {
  animation: slideInRight 0.8s 0.3s forwards;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px);}
  to { opacity: 1; transform: translateX(0);}
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px);}
  to { opacity: 1; transform: translateX(0);}
}

.main-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2vw;
  min-height: 0;
  padding: 0 7vw;
  box-sizing: border-box;
}

.left-content {
  flex: 1 1 0;
  min-width: 0;
  max-width: 510px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 0;
}

h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0 0 2px 0;
  line-height: 1.1;
}
.logo-accent {
  color: var(--accent);
  font-weight: 700;
}
h2 {
  font-size: 1.1rem;
  margin: 0 0 10px 0;
  font-weight: 700;
  letter-spacing: 1px;
}
.desc-head {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.role-accent {
  color: var(--accent);
  font-weight: 700;
}
.description {
  color: var(--gray);
  font-size: 0.97rem;
  margin: 0 0 16px 0;
  line-height: 1.6;
  font-weight: 400;
  max-width: 97%;
  word-break: break-word;
}
.about-description {
  font-size: 0.93rem;
  margin-top: 2px;
  margin-bottom: 18px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.social-links {
  display: flex;
  gap: 11px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: #2d0a0a;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.05rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.social-links a:hover {
  background: var(--accent);
  color: var(--bg-dark);
}
.hire-btn {
  background: var(--accent);
  color: var(--bg);
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 32px;
  padding: 12px 38px;
  cursor: pointer;
  margin-left: 1em;
  margin-top: 0;
  box-shadow: 0 2px 10px 0 rgba(224,122,106,0.18);
  transition: background 0.2s, color 0.2s;
}
.hire-btn:hover {
  background: var(--white);
  color: var(--accent);
}

.profile-img-bg {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 200px;
  height: 200px;
  margin-right: 20px;
}
.profile-img-bg img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: center;
  box-shadow: 0 0 18px rgba(0,0,0,0.7);
  border: 4px solid var(--bg-dark);
  background: #222;
  display: block;
  margin-right: 25px;
  margin-bottom:25px;
}

/* --- Contact Section Styles --- */
.contact-section {
  max-width: 420px;
  margin: 0 auto;
  padding: 32px 24px 24px 24px;
  background: #181010e6;
  border-radius: 18px;
  box-shadow: 0 0 24px 2px #e07a6a33;
  text-align: center;
}

.contact-section h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.2em;
  letter-spacing: 1px;
}

.contact-section .accent {
  color: var(--accent);
}

.contact-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2em;
  margin-top: 0;
  color: var(--white);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  align-items: stretch;
  margin-bottom: 1.2em;
}

.contact-form .form-row {
  display: flex;
  width: 100%;
  gap: 0.5em;
  justify-content: stretch;
}

.contact-form input[type="text"],
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 5px;
  border: none;
  background: var(--white);
  color: var(--bg);
  outline: none;
  transition: box-shadow 0.2s;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 2px var(--accent);
}

.hire-btn.small-btn {
  background: var(--accent);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  padding: 7px 22px;
  cursor: pointer;
  margin: 0;
  box-shadow: 0 2px 10px 0 rgba(224,122,106,0.13);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  outline: none;
  letter-spacing: 1px;
}

.hire-btn.small-btn:hover {
  background: var(--white);
  color: var(--accent);
  transform: translateY(-2px) scale(1.05);
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 1.2em;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2d0a0a;
  color: var(--accent);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.18rem;
  transition: background 0.2s, color 0.2s, transform 0.18s;
  text-decoration: none;
}

.contact-social a:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px) scale(1.08);
}

/* Stats Row */
.stats-row {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 12px 0;
  padding: 0 8vw;
  margin-bottom: 40px;
}
.stat {
  text-align: center;
}
.stat-number {
  font-size: 1.35rem;
  color: var(--accent);
  font-weight: 700;
  display: block;
}
.stat-label {
  color: var(--gray);
  font-size: 0.98rem;
  line-height: 1.3;
}

/* Responsive Design */
@media (max-width: 700px), (max-height: 600px) {
  .container {
    top: 2vw;
    left: 2vw;
    right: 2vw;
    bottom: 2vw;
    border-radius: 14px;
  }
  .main-content {
    padding: 0 2vw;
  }
  .stats-row {
    padding: 0 2vw;
  }
}
@media (max-width: 900px) {
  .navbar {
    padding: 20px 2vw 8px 2vw;
  }
  .main-content {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-height: 0;
    height: 100%;
    padding: 0 4vw;
    
  }
  .left-content {
    max-width: 100%;
    align-items: flex-start;
  }
  .profile-img-bg {
    margin: 0 0 10px 0;
    justify-content: center;
    height: 130px;
  }
  .profile-img-bg img {
    width: 110px;
    height: 110px;
  }
  .stats-row {
    flex-direction: column;
    gap: 10px;
    padding: 0 4vw;
  }
  .slide {
    min-height: 420px;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 8px;
    padding: 12px 1vw 5px 1vw;
  }
  .main-content {
    margin-top: 0;
    padding: 0 2vw;
  }
  .profile-img-bg {
    height: 80px;
  }
  .profile-img-bg img {
    width: 70px;
    height: 70px;
  }
  h1 {
    font-size: 1.1rem;
  }
  .desc-head {
    font-size: 1.1rem;
  }
  h2 {
    font-size: 0.8rem;
  }
  .contact-section {
    max-width: 98vw;
    padding: 16px 2vw;
  }
  .contact-form .form-row {
    flex-direction: column;
    gap: 0.5em;
  }
  .hire-btn.small-btn {
    width: 100%;
  }
}
.about-section {
  width: 100%;
  max-width: 800px;
  height: 100%;
  max-height: 100%;
  padding: 32px 16px;
  background: transparent;
  border-radius: 16px;
  box-shadow: none;
  overflow-y: auto;
  scrollbar-width: thin;
  -ms-overflow-style: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-section {
  /* ...your other styles... */
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}

.about-section::-webkit-scrollbar {
  display: none;
}

.about-section h2 {
  text-align: center;
  margin-bottom: 28px;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 25px;
}
.about-rows-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.about-row {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  width: 100%;
  max-width: 700px;
  justify-content: center;
}
.about-row:last-child {
  margin-bottom: 0;
}
.about-img {
  flex: 0 0 220px;
  margin-right: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-img img {
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  background: #222;
  display: block;
}
.about-text {
  flex: 1 1 0;
  font-size: 1.08rem;
  color: #eee;
  line-height: 1.7;
  background: none;
  text-align: left;
  display: flex;
  align-items: center;
}
.about-row.reverse {
  flex-direction: row-reverse;
}
.about-row.reverse .about-img {
  margin-right: 0;
  margin-left: 32px;
}
@media (max-width: 900px) {
  .about-section {
    max-height: 340px;
  }
  .about-row, .about-row.reverse {
    max-width: 99vw;
  }
}
@media (max-width: 600px) {
  .about-section {
    padding: 16px 2vw;
    max-height: 220px;
  }
  .about-row, .about-row.reverse {
    flex-direction: column !important;
    align-items: flex-start;
    max-width: 99vw;
  }
  .about-img, .about-row.reverse .about-img {
    margin: 0 0 16px 0;
  }
  .about-img img {
    width: 100%;
    max-width: 100vw;
    height: auto;
  }
  .about-text {
    text-align: left;
  }
}
/* --- Skills Section Styles --- */
.skills-main-content {
  justify-content: center;
  align-items: center;
  height: 100%;
  display: flex;
}

.skills-section {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3vw;
  padding: 32px 0;
  background: transparent;
}

.skills-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.skills-col h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.skill-pill {
  background: #222;
  color: #bcbcbc;
  border-radius: 18px;
  padding: 7px 18px;
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 0;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.07);
  transition: background 0.18s, color 0.18s;
  cursor: default;
  user-select: none;
  border: 1px solid #333;
}

.skill-pill:hover {
  background: #e07a6a;
  color: #fff;
  border-color: #e07a6a;
}

@media (max-width: 900px) {
  .skills-section {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    padding: 18px 0;
  }
  .skills-col {
    align-items: center;
  }
}
.theme-toggle-btn {
  position: fixed;
  bottom: 32px;
  right: 38px;
  z-index: 2000;
  background: rgba(32,22,22,0.93);
  color: var(--accent);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
}
.theme-toggle-btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(224,122,106,0.18);
}
@media (max-width: 700px) {
  .theme-toggle-btn {
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
}

/* Light mode colors */
body.light-mode {
  --accent: #f97800;
  --bg: #f7f7f7;
  --bg-dark: #ffe6a3;
  --white: #222;
  --gray: #444;
  --nav-link: #222;
  --nav-link-active: #f97800;
  --box-glow: 0 0 40px 8px #ffad6033, 0 0 0 4px #ffad6033;
  background: var(--bg);
  color: var(--white);
}
body.light-mode .container {
  border-color: var(--accent);
  box-shadow: 0 0 40px 8px #ffad6033, 0 0 0 4px #ffad6033;
  background: var(--bg-dark);
}
body.light-mode .ach-modal,
body.light-mode .ach-modal-content {
  background: rgba(255,255,255,0.97) !important;
  color: #222;
}
body.light-mode .ach-modal-close,
body.light-mode .ach-modal-nav {
  color: var(--accent);
  background: #fff !important;
}
body.light-mode .ach-modal-nav:hover,
body.light-mode .ach-modal-close:hover {
  background: var(--accent) !important;
  color: #fff !important;
}
body.light-mode .skills-col h3,
body.light-mode .ach-modal-name,
body.light-mode .logo-accent {
  color: var(--accent) !important;
}
body.light-mode .stat-number {
  color: var(--accent);
}
body.light-mode .contact-section {
  background: #ffcf67;
  color: #222;
  box-shadow: 0 0 24px 2px #ffad6033;
}
body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
  background: #f5f5f5;
  color: #222;
}
body.light-mode .hire-btn,
body.light-mode .hire-btn.small-btn {
  background: var(--accent);
  color: #e3dbc4;
}
body.light-mode .hire-btn:hover,
body.light-mode .hire-btn.small-btn:hover {
  background: #222;
  color: var(--accent);
}
body.light-mode .social-links a,
body.light-mode .contact-social a {
  background: #fff;
  color: var(--accent);
}
body.light-mode .social-links a:hover,
body.light-mode .contact-social a:hover {
  background: var(--accent);
  color: #fff;
}
body.light-mode .about-text,
body.light-mode .ach-modal-desc {
  color: #181717 !important;
}
body.light-mode .stat-label {
  color: #1c1a1a;
}
body.light-mode .about-section h2 {
  color: var(--accent) !important;
}
