/*
 * Modern Resume Styles (2026)
 */

/* CSS Variables */
:root {
  --primary: #0a1628;
  --secondary: #64748b;
  --accent: #3b82f6;
  --background: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-light: #64748b;
  --shadow: rgba(15, 23, 42, 0.1);
  --shadow-hover: rgba(15, 23, 42, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
}

/* Container */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 980px;
  }
}

/* Header */
.header {
  background: var(--primary);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  border-radius: 1rem;
}

.profile {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 0rem 1rem;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.1);
  background: var(--secondary);
}

.profile-details {
  flex: 1;
}

.name {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.company {
  font-size: 1rem;
  opacity: 0.8;
}

.tagline {
  padding: 0rem 3rem;
}

.tagline-text {
  font-size: 1.125rem;
  opacity: 0.9;
  font-weight: 400;
  max-width: 700px;
}

/* Sections */
.section {
  background: var(--card);
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px var(--shadow);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

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

.experience-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.experience-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.company-logo {
  width: 128px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--primary);
}

.role {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.company-name {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.dates {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
}

.description {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.achievements {
  list-style: none;
}

.achievements li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.achievements li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skills-category {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag.primary {
  background: #dbeafe;
  color: var(--accent);
}

.tag.secondary {
  background: #f1f5f9;
  color: var(--secondary);
}

.skill-note {
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
}

/* Contributions */
.project {
  background: var(--background);
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.project-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-title a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.project-tagline {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Education */
.education-item {
  background: var(--background);
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.school {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.degree {
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.years {
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
}

/* Contact */
.contact {
  background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
  color: white;
}

.contact .section-title {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  border-radius: 0.75rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s, transform 0.2s;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.website,
.phone,
.email {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}

.website:hover,
.phone:hover,
.email:hover {
  opacity: 0.8;
}

.contact-details {
  text-align: center;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Print Styles */
@media print {
  body {
    background: white;
    padding: 0;
    font-size: 0.75rem;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .name {
    font-size: 1.5rem !important;
  }

  .title {
    font-size: 1.1rem !important;
  }

  .tagline-text {
    font-size: 0.9rem !important;
  }

  .header {
    margin-bottom: 0;
    padding: 2rem 0;
  }

  .experience-item {
    margin-bottom: 1.5rem;
  }

  .skill-note {
    display: none;
  }

  .project,
  .education-item {
    border: none;
    background: white;
    /* padding: 1rem 0; */
    margin-bottom: 0.75rem;
    padding: 0;
  }

  .website,
  .phone,
  .email {
    color: black;
  }

  .section {
    padding: 0;
  }
  .section-title {
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .section-subtitle {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  .company-tag {
    font-size: 0.875rem;
  }

  .description {
    font-size: 0.875rem;
  }

  .company-logo {
    border: 3px solid white;
  }

  .contact-grid {
    display: grid;
  }

  .contact {
    display: none;
  }
  .role,
  .school,
  .company-name,
  .company {
    font-size: 0.9rem !important;
  }

  .job-title,
  .degree,
  .company-tag {
    font-size: 0.8rem !important;
  }

  .description,
  .project-description {
    font-size: 0.75rem !important;
  }

  .skills-category {
    margin-bottom: 0rem;
  }

  .skills-grid,
  .skills-list {
    font-size: 0.7rem !important;
  }

  .years,
  .dates,
  .duration {
    font-size: 0.7rem !important;
  }

  .contact-details {
    font-size: 0.75rem !important;
  }

  .footer {
    padding: 1rem;
    font-size: 0.65rem !important;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-img {
    width: 128px;
    height: 128px;
  }

  .name {
    font-size: 1.75rem;
  }

  .title {
    font-size: 1.25rem;
  }

  .tagline-text {
    font-size: 1rem;
  }

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

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

  .contact-grid {
    grid-template-columns: 1fr;
  }
}
