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

/* ==================== CSS RESET ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==================== COLOR SCHEME ==================== */
/* These are the main colors used throughout the website */
/* You can easily change these to customize the color theme */
:root {
  --primary: #0ea5e9;        /* Main blue color for highlights */
  --secondary: #7e22ce;      /* Purple color for accents */
  --dark: #0f172a;           /* Dark background color */
  --darker: #020617;         /* Even darker for gradient */
  --slate-800: #1e293b;      /* Dark gray for cards */
  --slate-700: #334155;      /* Medium gray */
  --slate-600: #475569;      /* Lighter gray */
  --slate-400: #94a3b8;      /* Light gray for text */
  --slate-300: #cbd5e1;      /* Very light gray */
  --slate-200: #e2e8f0;      /* Almost white for headings */
  --card-bg: rgba(30, 41, 59, 0.6);        /* Semi-transparent card background */
  --border-color: rgba(255, 255, 255, 0.1); /* Light border color */
  --hover-shadow: 0 20px 40px rgba(14, 165, 233, 0.15); /* Blue glow for hover */
}

/* ==================== MAIN PAGE SETUP ==================== */
/* Basic styling for the entire webpage */
body {
  font-family: "Inter", sans-serif;  /* Clean, modern font */
  background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%); /* Dark gradient background */
  color: var(--slate-200);           /* Light text color */
  min-height: 100vh;                 /* Full screen height */
  padding: 20px;                     /* Space around the edges */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ==================== CARD LAYOUT ==================== */
/* This creates the Pinterest-style layout with 3 columns */
.bento-grid {
  columns: 3;           /* 3 columns on desktop */
  column-gap: 20px;     /* Space between columns */
  padding: 20px 0;      /* Top and bottom padding */
}

/* Individual card styling - each card is a "bento-item" */
.bento-item {
  background: var(--card-bg);              /* Semi-transparent background */
  backdrop-filter: blur(20px);             /* Glass effect */
  border-radius: 24px;                     /* Rounded corners */
  border: 1px solid var(--border-color);   /* Subtle border */
  padding: 24px;                          /* Space inside each card */
  position: relative;                      /* For positioning effects */
  break-inside: avoid;                     /* Prevents cards from breaking across columns */
  margin-bottom: 20px;                     /* Space between cards */
  display: inline-block;                   /* Makes cards stack properly */
  width: 100%;                            /* Full width of column */
  transition: all 0.3s ease;              /* Smooth animation for hover */
}

/* Subtle gradient top border effect */
.bento-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* SIMPLE HOVER EFFECTS - Easy to understand and modify */
.bento-item {
  transition: all 0.3s ease; /* Smooth animation for all changes */
}

.bento-item:hover {
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2); /* Blue glow on hover */
  border-color: var(--primary); /* Blue border on hover */
  background: rgba(30, 41, 59, 0.8); /* Slightly brighter background */
}

.bento-item:hover::before {
  opacity: 1; /* Show top gradient line on hover */
}

/* ==================== PROFILE CARD ==================== */
.profile-card {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.1) 0%,
    rgba(126, 34, 206, 0.1) 100%
  );
  text-align: center;
}

.profile-image {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.profile-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(14, 165, 233, 0.5);
}

.status-dot {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: #22c55e;
  border-radius: 50%;
  border: 3px solid var(--slate-800);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.profile-content h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-content p {
  color: var(--slate-400);
  font-size: 16px;
  margin-bottom: 12px;
}

.location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--slate-400);
  font-size: 14px;
}

.location i {
  color: var(--primary);
}

/* ==================== CARD HEADERS ==================== */
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.card-header i {
  font-size: 18px;
  color: var(--primary);
}

.card-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--slate-200);
}

/* ==================== ABOUT CARD ==================== */
.about-card p {
  color: var(--slate-400);
  line-height: 1.6;
}

/* ==================== SKILLS CARD ==================== */
.tech-icons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tech-item i {
  font-size: 20px;
  width: 24px;
}

.tech-item .fab.fa-html5 {
  color: #e34f26;
}
.tech-item .fab.fa-css3-alt {
  color: #1572b6;
}
.tech-item .fab.fa-js {
  color: #f7df1e;
}
.tech-item .fab.fa-react {
  color: #61dafb;
}

.tech-item span {
  font-size: 14px;
  font-weight: 500;
  min-width: 80px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--slate-700);
  border-radius: 3px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: width 1s ease;
}

/* ==================== EDUCATION CARD ==================== */
.education-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.education-item:last-child {
  margin-bottom: 0;
}

.edu-icon {
  font-size: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 12px;
  color: var(--primary);
}

.edu-icon.kjsce {
  background: rgba(255, 140, 0, 0.1);
  color: #ff8c00;
}

.edu-icon.bits {
  background: rgba(220, 20, 60, 0.1);
  color: #dc143c;
}

.edu-icon.prime {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.edu-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-200);
  margin-bottom: 4px;
}

.edu-content p {
  font-size: 12px;
  color: var(--slate-400);
  margin-bottom: 4px;
}

.year {
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
}

/* Old contact styles removed - using new simple contact card styles below */

/* ==================== SIMPLE CONTACT CARD ==================== */
/* Easy to understand contact card styling */
.simple-contact-card {
  background: var(--card-bg);
}

.simple-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.simple-card-header i {
  font-size: 18px;
  color: var(--primary);
}

.simple-card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-200);
}

.simple-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.simple-contact-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease; /* Smooth hover effect */
}

.simple-contact-box:hover {
  background: rgba(14, 165, 233, 0.1); /* Light blue background on hover */
  border-color: var(--primary); /* Blue border on hover */
}

.contact-icon-box {
  width: 35px;
  height: 35px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Keeps icon box same size */
}

.contact-icon-box i {
  font-size: 16px;
  color: white;
}

.contact-text {
  flex: 1; /* Takes remaining space */
}

.contact-label {
  font-size: 12px;
  color: var(--slate-400);
  margin: 0 0 4px 0;
}

.contact-value {
  font-size: 14px;
  color: var(--slate-200);
  font-weight: 500;
  margin: 0;
}

/* ==================== PROJECTS CARD ==================== */
.projects-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.project-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.project-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.project-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-200);
  margin-bottom: 8px;
}

.project-item p {
  font-size: 14px;
  color: var(--slate-400);
  margin-bottom: 16px;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  background: rgba(14, 165, 233, 0.2);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

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

.project-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: var(--secondary);
}

.view-more-btn {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.3s ease;
}

.view-more-btn:hover {
  transform: translateY(-2px);
}

/* Old hackathon styles removed - using new simple achievement card styles below */

/* ==================== SIMPLE HACKATHONS CARD ==================== */
/* Easy to understand achievements card styling */
.simple-hackathons-card {
  background: var(--card-bg);
}

.simple-achievements-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.simple-achievement-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease; /* Smooth hover effect */
}

.simple-achievement-box:hover {
  background: rgba(126, 34, 206, 0.1); /* Light purple background on hover */
  border-color: var(--secondary); /* Purple border on hover */
}

.achievement-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Keeps badge same size */
}

.achievement-badge.success {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.achievement-badge.gold {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.achievement-badge i {
  font-size: 18px;
}

.achievement-details {
  flex: 1; /* Takes remaining space */
}

.achievement-details h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-200);
  margin: 0 0 4px 0;
}

.achievement-details p {
  font-size: 12px;
  color: var(--slate-400);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.achievement-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.achievement-status.success {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.achievement-status.gold {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

/* ==================== WORK EXPERIENCE CARD ==================== */
.work-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.work-item:last-child {
  margin-bottom: 0;
}

.work-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 12px;
}

.work-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-200);
  margin-bottom: 4px;
}

.work-content p {
  font-size: 12px;
  color: var(--slate-400);
  margin-bottom: 8px;
}

.work-date {
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
}

/* ==================== GITHUB ACTIVITY CARD ==================== */
.github-content p {
  color: var(--slate-400);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.github-heatmap {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px;
}

.github-heatmap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.github-stats {
  display: flex;
  justify-content: center;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--slate-300);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.github-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(14, 165, 233, 0.3);
  color: var(--primary);
}

/* ==================== SOCIAL CARD ==================== */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-decoration: none;
  color: var(--slate-300);
  transition: all 0.3s ease;
}

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

.social-link.github:hover {
  color: #333;
  background: rgba(255, 255, 255, 0.9);
}

.social-link.linkedin:hover {
  color: #0077b5;
  background: rgba(0, 119, 181, 0.1);
}

.social-link.instagram:hover {
  color: #e4405f;
  background: rgba(228, 64, 95, 0.1);
}

/* ==================== RESUME CARD ==================== */
.resume-content p {
  color: var(--slate-400);
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 14px;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  text-decoration: none;
  border-radius: 16px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.resume-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

.resume-pdf-icon {
  font-size: 16px;
  color: #ffffff !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bento-item {
  animation: fadeInUp 0.6s ease forwards;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  .bento-grid {
    columns: 2;
    column-gap: 16px;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    columns: 1;
    column-gap: 0;
    padding: 16px 0;
  }

  .bento-item {
    margin-bottom: 16px;
    padding: 20px;
  }

  body {
    padding: 16px;
  }

  .profile-image {
    width: 100px;
    height: 100px;
  }

  .profile-content h1 {
    font-size: 20px;
  }
}
