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

:root {
  --bg-color: #ffffff;
  --text-main: #1a202c;
  --text-muted: #4a5568;
  --accent-color: #3182ce;
  --accent-hover: #2b6cb0;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --container-max: 900px;
}

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

body {
  background-color: #f8fafc; /* Subtle gray background to make the white container pop */
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 60px 40px 0px 40px; /* Increased side padding slightly for better look with borders */
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  background-color: #ffffff; /* Ensure background is solid within borders */
  min-height: 100vh;
}

/* Header */
header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 48px;
}

.photo-container {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.photo {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.header-info h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}

.header-info .role {
  font-size: 1.1rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.contact-link i {
  font-size: 1rem;
}

/* Sections */
section {
  margin-bottom: 48px;
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Skills */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: #f7fafc;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Cards (Experience & Education) */
.card {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.card:last-child {
  border-bottom: none;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.card .period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

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

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.project-img {
  width: 100%;
  height: 200px;
  background: #f8fafc;
  padding: 0;
  border-bottom: 1px solid var(--border-color);
}

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

.project-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.project-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tech-tag {
  font-size: 0.75rem;
  background: #ebf8ff;
  padding: 2px 8px;
  border-radius: 4px;
  color: #2b6cb0;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 16px;
  margin-top: auto;
}

.btn-icon {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.btn-details {
  margin-left: auto;
  color: var(--text-muted);
}

.btn-icon:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.btn-details:hover {
  color: var(--accent-color);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.close-modal:hover {
  color: var(--text-main);
}

.modal-header h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.modal-img-large {
  width: 100%;
  margin: 24px 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.modal-img-large img {
  width: 100%;
  height: auto;
}

.modal-body-text h4 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.modal-body-text ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.modal-body-text li {
  margin-bottom: 6px;
  color: var(--text-muted);
}

.modal-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 16px;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 64px;
  padding: 32px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 32px 20px;
  }
}

/* Hide animations-related states from JS */
section {
  opacity: 1 !important;
  transform: none !important;
}
.bg-gradient {
  display: none;
}
.project-img{
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img img {
  padding: 10px;
  object-fit: cover;
  width: 100%;
  height: auto;
  border-radius: 20px;
}
