/* Base Styles */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --sidebar-width: 300px;
  --transition-speed: 0.3s;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f9f9f9;
}

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

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

ul {
  list-style: none;
}

h1,
h2,
h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--light-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Layout */
.container {
  display: flex;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--primary-color);
  color: white;
  padding: 2rem;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.profile {
  text-align: center;
  margin-bottom: 2rem;
}

.profile h1,
.profile .title {
  color: white;
}

.profile .title {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 4px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition-speed);
}

.profile-image:hover {
  transform: scale(1.05);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-item i {
  width: 25px;
  margin-right: 10px;
  color: var(--light-color);
}

.contact-item a {
  color: var(--light-color);
}

.contact-item a:hover {
  color: white;
}

.nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav a {
  display: block;
  padding: 0.5rem 0;
  color: var(--light-color);
  border-left: 3px solid transparent;
  padding-left: 10px;
  transition: all var(--transition-speed);
}

.nav a:hover,
.nav a.active {
  color: white;
  border-left-color: var(--secondary-color);
  padding-left: 15px;
}

/* Main Content */
.content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 3rem;
}

.section {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section:nth-child(1) {
  animation-delay: 0.1s;
}
.section:nth-child(2) {
  animation-delay: 0.2s;
}
.section:nth-child(3) {
  animation-delay: 0.3s;
}
.section:nth-child(4) {
  animation-delay: 0.4s;
}

/* Experience Section */
.experience-item,
.education-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--light-color);
}

.experience-item:last-child,
.education-item:last-child {
  border-bottom: none;
}

.experience-header,
.university-period {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.company-period,
.university-period {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.company,
.university {
  font-weight: 600;
  color: var(--secondary-color);
}

.period {
  color: #777;
  font-size: 0.9rem;
}

.responsibilities {
  padding-left: 1.5rem;
}

.responsibilities li {
  position: relative;
  margin-bottom: 0.5rem;
  list-style-type: none;
}

.responsibilities li::before {
  content: "•";
  position: absolute;
  left: -1.5rem;
  color: var(--secondary-color);
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-category {
  margin-bottom: 1.5rem;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-item {
  background-color: var(--light-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all var(--transition-speed);
}

.skill-item:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--primary-color);
  color: white;
}

footer .branding {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

footer .resume-cruiser {
  color: var(--secondary-color);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1.5rem;
  }

  .content {
    margin-left: 0;
    padding: 2rem;
  }

  .experience-header,
  .university-period {
    flex-direction: column;
    align-items: flex-start;
  }

  .company-period,
  .university-period {
    align-items: flex-start;
    margin-top: 0.5rem;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 1.5rem;
  }
}
