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

:root {
  --header-blue: #5D546C; /* Darker purple */
  --accent-blue: #9b88b6; /* The link color */
  --text-main: #333;
  --card-border: #ddd;
}

body {
  background-color: #f0f2f5;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
    color: #8e77ad;
}

/* Header */
.header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
  color: #333;
  font-weight: 600;
}

.header .inner {
  padding: 15px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.header a {
  color: #333;
  text-decoration: none;
  padding: 0 15px;
}

.header a:hover {
    color: #9b88b6;
}

/* Dropdown Menu */
.dropdown {
  display: inline-block;
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-radius: 4px;
  z-index: 1;
  top: 100%;
  left: 0;
  border: 1px solid #eee;
}

.dropdown-content a {
  color: #333;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
    background-color: #f0f2f5;
    color: #9b88b6;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Layout */
.main-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
  gap: 20px;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media screen and (min-width: 768px) {
  .main-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }
  .sidebar-group {
    width: 325px;
    flex-shrink: 0;
  }
  .content-wrapper {
    width: 100%;
  }
}

/* Components */
.box {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(155,136,182,0.1);
}

.box-title-bar {
  background: linear-gradient(to bottom, #ab98c6, #9b88b6);
  color: #fff;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  padding: 8px 25px;
  border-bottom: 1px solid #8e77ad;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.inner {
  padding: 20px 25px;
}

.inner > :first-child {
  margin-top: 0;
}

.profile-icon {
  width: 80px;
  height: 80px;
  margin-right: 15px;
  float: left;
  border: none;
  box-shadow: 0 2px 15px rgba(155,136,182,0.2);
  border-radius: 50%;
}

.profile-text {
  overflow: hidden;
}

#social-icons {
  display: flex;
  justify-content: left;
  margin-top: 15px;
  align-items: center;
}

#social-icons img {
    width: 28px;
    height: 28px;
    margin-right: 10px;
    transition: transform 0.3s;
}

#social-icons img:hover {
    transform: scale(1.1);
}

/* Skills Section */
.inner section > h3 {
    color: var(--header-blue);
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent-blue);
    padding-left: 10px;
}

.inner section:not(:first-child) {
    margin-top: 20px;
}

.skills-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.skills-list li {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.skills-list li::before {
    content: "→";
    color: var(--accent-blue);
    font-weight: bold;
    margin-right: 10px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.tech-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 5px;
    text-align: center;
    transition: all 0.25s ease-in-out;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 15px -5px rgba(155, 136, 182, 0.1);
}

.tech-card i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--header-blue);
    transition: color 0.2s ease;
}

.tech-card:hover i {
    color: var(--accent-blue);
}

.tech-card span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--header-blue);
}

/* Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  margin: 0 0 20px;
  overflow: hidden;
  background: #fff;
}

.carousel-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s;
}

.carousel-container:hover::before {
  opacity: 0;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll 80s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-slide {
  flex: 0 0 auto;
  margin-right: 0;
}

.carousel-slide img {
  height: 200px;
  width: auto;
  display: block;
  cursor: pointer;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  max-height: 80vh;
  object-fit: contain;
  animation-name: zoom;
  animation-duration: 0.6s;
}

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

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
