
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --accent-color: #2563eb; /* Darker Blue for contrast */
  --accent-hover: #1d4ed8;
  --accent-gold: #f59e0b;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
  padding: 1rem 0;
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  border-radius: 50%;
  animation: pulse 4s infinite alternate;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-text {
  flex: 1;
  animation: fadeUp 1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: linear-gradient(90deg, var(--accent-color), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.btn-group {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
  border: 1px solid var(--accent-color);
}

.gallery-preview-link img {
    width: 95%;
    max-width: 1200px;
    height: auto;
    transition: transform 0.3s ease;
    animation: pulse-gallery 2.5s infinite alternate;
}

.gallery-preview-link:hover img {
    transform: scale(1.05);
    animation: none;
}

@keyframes pulse-gallery {
    0% { transform: scale(1); }
    100% { transform: scale(1.03); }
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
  animation: fadeInRight 1.2s ease forwards;
  opacity: 0;
  transform: translateX(50px);
}

@keyframes fadeInRight {
  to { opacity: 1; transform: translateX(0); }
}

.hero-image {
  max-width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

/* --- SECTIONS COMMON --- */
section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- TIMELINE SECTION --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background-color: var(--bg-primary);
  border: 3px solid var(--accent-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.right::after {
  left: -8px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--bg-card);
  position: relative;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.timeline-date {
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.timeline-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.timeline-org {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

/* Publication Cards */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    padding: 0 1rem;
}
.pub-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.pub-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
    border-color: var(--accent-gold);
}
.pub-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}
.pub-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}
.pub-org {
    font-size: 0.95rem;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pub-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* --- CONTACT SECTION --- */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  padding: 4rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}

.contact-container p {
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--accent-color);
  transform: translateY(-5px);
}

/* Diary of Rukaa */
.diary-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.5));
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.diary-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-gold);
    margin-bottom: 1rem;
    object-fit: cover;
}
.diary-title {
    color: var(--accent-gold);
    margin-bottom: 10px;
    font-size: 1.8rem;
    white-space: nowrap;
}
.diary-icon {
    color: #ff0000;
    margin-right: 10px;
}
.diary-desc {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 25px;
}
.diary-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}
.diary-buttons .btn {
    border-radius: 25px;
    padding: 12px 25px;
    font-size: 0.95rem;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- ANIMATIONS & VISIBILITY (JS) --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 991px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text {
    order: 2;
  }
  
  .hero-image-wrapper {
    order: 1;
    justify-content: center;
    margin-bottom: 2rem;
  }
  
  .btn-group {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-desc {
    margin: 0 auto 2.5rem auto;
  }
}

@media (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::after {
    left: 23px;
  }
  
  .right {
    left: 0%;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: var(--bg-card);
    width: 250px;
    height: 100vh;
    padding: 2rem;
    transition: var(--transition);
    border-left: 1px solid rgba(255,255,255,0.05);
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: block;
  }

  .diary-title {
    font-size: 1.5rem;
  }
  .diary-icon {
    display: none;
  }
  .diary-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .diary-buttons .btn {
    width: 100%;
  }
}
