:root {
  /* Colors */
  --primary: #2c3e50;
  --primary-light: #34495e;
  --accent: #74b9ff;
  --accent-2: #00cec9;
  --text: #333;
  --text-light: #495057;
  --text-muted: #6c757d;
  --bg: #e3e5e8;
  --white: white;
  --border: #e9ecef;

  /* Layout */
  --sidebar-width: 350px;
  --radius: 12px;
  --radius-lg: 20px;
  --spacing: 20px;

  /* Gradients & Effects */
  --bg-gradient: linear-gradient(135deg, rgba(1,47,95,1) 0%, rgba(56,141,217,1) 100%);
  --sidebar-gradient: linear-gradient(180deg, var(--primary), var(--primary-light));
  --accent-gradient: linear-gradient(45deg, var(--accent), var(--accent-2));
}

* { 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);
  background: var(--bg-gradient);
  min-height: 100vh;
}

main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing);
}

.main-container {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  max-width: 1200px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  overflow: hidden;
  min-height: 700px;
}

.side-panel {
  background: var(--sidebar-gradient);
  color: var(--white);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.name {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bio {
  font-size: 0.95em;
  line-height: 1.7;
  opacity: 0.9;
  text-align: justify;
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.social-link:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.contact-info {
  font-size: 0.9em;
  opacity: 0.8;
}

.contact-info p { margin-bottom: 8px; }

.contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info a:hover { text-decoration: underline; }

.main-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.tabs {
  display: flex;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.tab-button {
  background: none;
  border: none;
  padding: var(--spacing) 30px;
  font-size: 1.1em;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-button:hover {
  color: var(--text-light);
  background: var(--bg);
}

.tab-button.active {
  color: var(--primary);
  background: var(--white);
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.content-area {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
}

.tab-content {
  animation: fadeIn 0.3s ease-in;
}

.tab-content.hidden { display: none; }

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

.section-title {
  font-size: 2em;
  color: var(--primary);
  margin-bottom: 30px;
  font-weight: 600;
}

.content-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.experience-card {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-left: 4px solid var(--accent);
}

.experience-title {
  font-size: 1.3em;
  color: var(--primary);
  margin-bottom: 5px;
  font-weight: 600;
}

.experience-subtitle {
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 15px;
}

.experience-details {
  list-style: none;
}

.experience-details li {
  position: relative;
  padding-left: var(--spacing);
  margin-bottom: 8px;
  color: var(--text-light);
}

.experience-details li::before {
  content: '•';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.education-title {
  font-size: 1.3em;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.education-text {
  color: var(--text-light);
  font-size: 1.05em;
  background: var(--white);
  padding: var(--spacing);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-left: 4px solid var(--accent-2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.project-card {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--accent);
}

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

.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo img {
  max-width: 25em;
  height: auto;
}

.project-title {
  font-size: 1.3em;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.project-description {
  color: var(--text-muted);
  margin-bottom: var(--spacing);
}

.project-details {
  list-style: none;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9em;
  color: var(--text-light);
}

.project-details li {
  position: relative;
  padding-left: 22px;
  line-height: 1.5;
}

.project-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent-2);
  font-weight: bold;
  font-size: 1.1em;
}

.project-details li strong {
  color: var(--primary);
  font-weight: 600;
  margin-right: 6px;
}

.project-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent-gradient);
  color: var(--white);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(116, 185, 255, 0.4);
}

/* Mobile */
@media (max-width: 768px) {
  .main-container {
    grid-template-columns: 1fr;
    margin: 10px;
  }

  .side-panel { padding: 30px var(--spacing); }
  .name {
    font-size: 1.8em;
    text-align: center;
  }
  .content-area { padding: var(--spacing); }
  .tab-button { padding: 15px var(--spacing); font-size: 1em; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  main { padding: 10px; }
  .name { text-align: center; }
  .tabs { flex-direction: column; }
  .tab-button { text-align: center; }
  .social-links { justify-content: center; }
  .project-card { max-width: 20em; }
  .logo img { max-width: 15em; }
}
