@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none; 
}

.custom-cursor {
  position: fixed;
  width: 2.5rem; 
  height: 2.5rem;
  border-radius: 100%;
  background-color: #333;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
  mix-blend-mode: difference; 
}

.custom-cursor.inverted {
  background-color: #f5f5f0;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background-color: #f5f5f0;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  overflow-x: hidden;
}

/* --- Hero Section Styles --- */
.hero-section {
  display: flex;
  min-height: 100vh; /* Full screen height */
  width: 100%;
  border-bottom: 1px solid #333; /* MODIFIED: Thinner border */
}

.hero-left {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Align text to the left */
  padding: 60px;
}

.hero-details {
  max-width: 600px; /* Constrain text width */
}

.hero-right {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background-color: #e8e8e0; <-- REMOVED: To show grid */
  border-left: 1px solid #333; /* MODIFIED: Thinner border */
}

.logo-container {
  width: 80%;
  max-width: 600px;
  padding: 40px;
}

.logo {
  width: 100%;
  height: auto;
  display: block;
}
/* --- END: Hero Section Styles --- */


/* --- Container for content below hero --- */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 60px 40px;
}


/* Re-using header text styles for hero text */
.name {
  font-size: 7rem; /* Larger for hero */
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.year {
  font-size: 2.5rem; /* Larger for hero */
  font-weight: 300;
  margin: 20px 0;
} 

.location {
  font-size: 1.25rem; /* Larger for hero */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.college {
  font-size: 1.25rem; /* Larger for hero */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: bold;
}

.title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
/* --- End text styles --- */


.asterisk {
  font-size: 120px;
  margin: 40px 0;
  font-weight: 300;
}

.main-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 80px 60px;
}

.section {
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.list {
  list-style: none;
}

.list-item {
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 8px 0;
  border-left: 2px solid transparent;
  padding-left: 0;
}

.list-item:hover {
  background-color: #333;
  color: #f5f5f0;
  padding-left: 15px;
  margin-left: -15px;
  border-left-color: #f5f5f0;
}

.item-title {
  display: block;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-bottom: 4px;
}

.item-desc {
  display: block;
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0.2px;
  opacity: 0.8;
  font-weight: 300;
  line-height: 1.4;
}

.footer {
  text-align: center;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #333;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.social-link {
  color: #333;
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  padding: 5px 10px;
}

.social-link:hover {
  background-color: #333;
  color: #f5f5f0;
}

/* Responsive Design */
@media (min-width: 1920px) {
  .main-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 100px 80px;
  }
  
  .container {
    max-width: 1800px;
    padding: 80px 60px;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .item-title {
    font-size: 14px;
  }
  
  .item-desc {
    font-size: 12px;
  }
}

@media (max-width: 1400px) {
  .main-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 50px;
  }
  
  .container {
    max-width: 1200px;
    padding: 50px 30px;
  }
}

@media (max-width: 1200px) {
  .main-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }
  
  .container {
    max-width: 1000px;
    padding: 50px 30px;
  }
}

/* --- Responsive Hero Styles --- */
@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
    min-height: auto; /* Let height be natural */
  }
  
  .hero-left {
    flex: 1; /* Reset flex */
    align-items: center; /* Center text */
    text-align: center;
    padding: 60px 40px;
  }
  
  .hero-right {
    flex: 1; /* Reset flex */
    border-left: none; /* Remove side border */
    border-top: 1px solid #333; /* MODIFIED: Thinner border */
    padding: 60px 40px;
  }
  
  .logo-container {
    max-width: 400px; /* Control logo size */
  }
}
/* --- END: Responsive Hero Styles --- */


@media (max-width: 900px) {
  .main-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .section-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 40px 20px;
  }
  
  .main-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Adjust hero text sizes for mobile */
  .name, .year {
    font-size: 36px;
  }
  .location, .college {
    font-size: 1rem;
  }
  
  .asterisk {
    font-size: 80px;
    margin: 30px 0;
  }
  
  .section-title {
    font-size: 18px;
  }
  
  .item-title {
    font-size: 12px;
  }
  
  .item-desc {
    font-size: 10px;
  }
  
  .social-links {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 30px 15px;
  }

  .hero-left, .hero-right {
    padding: 40px 20px;
  }
  
  /* Adjust hero text sizes for small mobile */
  .name {
    font-size: 28px;
  }
  .year {
    font-size: 24px;
  }
  .location, .college {
    font-size: 14px;
  }
  
  .section-title {
    font-size: 16px;
  }
  
  .item-title {
    font-size: 11px;
  }
  
  .item-desc {
    font-size: 9px;
    line-height: 1.3;
  }
  
  .asterisk {
    font-size: 60px;
    margin: 20px 0;
  }
  
  .social-links {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .main-content {
    gap: 30px;
  }
}

/* Subtle hover effects */
.section:hover .section-title {
  transform: translateX(5px);
  transition: transform 0.2s ease;
}

/* Typewriter animation for currently section */
.currently-item .item-title {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #333;
  animation: typing 3s steps(30, end), blink-caret 0.75s step-end infinite;
}

.currently-item .item-desc {
  opacity: 0;
  animation: fadeInDesc 1s ease-in-out 3s forwards;
}

@keyframes fadeInDesc {
  to {
    opacity: 0.8;
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: #333;
  }
}

/* Grid pattern overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0,0,0,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -1;
}

/* Smooth transitions for all interactive elements */
* {
  transition: all 0.2s ease;
}

/* Focus styles for accessibility */
.list-item:focus,
.social-link:focus {
  outline: 2px solid #333;
  outline-offset: 2px;
}

/* Universal link reset for project links & social links */
a:link,
a:visited,
a:active {
  color: inherit;          /* matches parent text color */
  text-decoration: none;   /* removes underline */
}

a:hover {
  color: #333;             /* or pick an accent color */
  text-decoration: underline; /* optional hover effect */
}

/* Specific styling for social links */
.social-link:link,
.social-link:visited,
.social-link:active {
  color: #333;             /* keep them consistent */
  text-decoration: none;
}

.social-link:hover {
  background-color: #333;
  color: #f5f5f0;
  text-decoration: none;   /* no underline on hover */
}

/* Print styles */
@media print {
  body::before {
    display: none;
  }
  
  .asterisk {
    font-size: 60px;
  }
  
  .main-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  /* --- Print styles for hero --- */
  .hero-section {
    flex-direction: column;
    min-height: auto;
    border-bottom: 2px solid #333;
  }
  .hero-left, .hero-right {
    flex: 1;
    border: none;
    padding: 20px;
    text-align: left;
  }
  .hero-right {
    display: none; /* Hide logo on print */
  }
  .name, .year {
    font-size: 24px;
  }
  .location, .college {
    font-size: 14px;
  }
}