/* ============================================
   MARYAM SYED - PERSONAL SITE
   Mobile-first, romantic fantasy aesthetic
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Colors */
  --color-deep-burgundy: #65343e;
  --color-burgundy-dark: #4a262d;
  --color-rose-gold: #f5788c;
  --color-rose-light: #ffa5b4;
  --color-cream: #fef6f0;
  --color-ivory: #fffbf7;
  --color-gold-accent: #d4a574;
  --color-text-light: #fff;
  --color-text-muted: rgba(255, 255, 255, 0.75);
  
  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
}

/* ============================================
   BASE & RESET
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

@media (max-width: 480px) {
  html { font-size: 14px; }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-light);
  background: var(--color-deep-burgundy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   PAGE WRAPPER & ANIMATED BACKGROUND
   ============================================ */
.page-wrapper {
  position: relative;
  min-height: 100vh;
  width: 100%;
}

.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/assets/images/sunset-forest.png') center/cover no-repeat;
  z-index: -2;
  animation: subtle-drift 120s ease-in-out infinite alternate;
}

.animated-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(101, 52, 62, 0.4) 0%,
    rgba(101, 52, 62, 0.7) 30%,
    rgba(101, 52, 62, 0.85) 70%,
    rgba(74, 38, 45, 0.95) 100%
  );
}

@keyframes subtle-drift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.05) translate(-1%, -1%); }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  padding: var(--spacing-lg);
  padding-bottom: 7rem;
}

@media (max-width: 480px) {
  .hero {
    padding: var(--spacing-md);
    padding-bottom: 6rem;
  }
}

.hero-content {
  width: min(840px, 94vw);
  text-align: center;
  animation: fade-in-up 1s ease-out;
}

.header-image {
  /* The file is a tall canvas with empty space around the mark.
     These margins close that gap so the signature sits with the name. */
  margin: calc(min(840px, 94vw) * -0.16) auto calc(min(840px, 94vw) * -0.24);
  animation: float 6s ease-in-out infinite;
}

.header-image img {
  width: 100%;
  height: auto;
  display: block;
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: var(--spacing-xs);
  color: var(--color-cream);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-rose-light);
  letter-spacing: 0.15em;
  text-transform: lowercase;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(245, 120, 140, 0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-rose-gold);
  border-radius: 2px;
  animation: scroll-bounce 2s infinite;
}

@media (max-width: 480px) {
  .scroll-indicator { bottom: var(--spacing-md); }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}


@keyframes section-reveal {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============================================
   MAIN CONTENT & SECTIONS
   ============================================ */
.main-content {
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-lg);
}

@media (max-width: 768px) {
  .section-inner { padding: var(--spacing-lg) var(--spacing-md); }
}

@media (max-width: 480px) {
  .section-inner { padding: var(--spacing-lg) var(--spacing-sm); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  background: rgba(74, 38, 45, 0.85);
  animation: section-reveal 0.8s ease-out 0.2s backwards;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: var(--spacing-lg);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

.about-card {
  position: relative;
  padding: var(--spacing-lg);
  background: rgba(101, 52, 62, 0.6);
  border-radius: 20px;
  border: 1px solid rgba(245, 120, 140, 0.15);
  overflow: hidden;
  transition: var(--transition-medium);
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 120, 140, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

@media (max-width: 480px) {
  .about-card { padding: var(--spacing-md); }
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-rose-gold), var(--color-gold-accent));
  border-radius: 4px 0 0 4px;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-rose-light);
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-sm);
}

.about-card p {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-sm);
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-card em {
  color: var(--color-rose-light);
  font-style: italic;
}

/* ============================================
   LINKS SECTION
   ============================================ */
.links-section {
  background: rgba(74, 38, 45, 0.95);
  text-align: center;
  animation: section-reveal 0.8s ease-out 0.4s backwards;
}

.links-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  font-weight: 400;
  color: var(--color-cream);
  margin-bottom: var(--spacing-lg);
}

.links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
}

@media (max-width: 480px) {
  .links-grid {
    flex-direction: column;
    align-items: center;
  }
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-rose-light);
  background: transparent;
  border: 2px solid rgba(245, 120, 140, 0.4);
  border-radius: 10px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.link-btn i {
  font-size: 1.1rem;
}

.link-btn:hover {
  color: var(--color-cream);
  background: rgba(245, 120, 140, 0.2);
  border-color: var(--color-rose-gold);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .link-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: var(--spacing-md);
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-burgundy-dark);
  padding: var(--spacing-lg);
  text-align: center;
  border-top: 1px solid rgba(245, 120, 140, 0.1);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-rose-light);
  margin-bottom: var(--spacing-xs);
}

.copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   RESUME PAGE STYLES
   ============================================ */
.resume-page {
  position: relative;
  min-height: 100vh;
}

.resume-page .animated-bg {
  background: var(--color-deep-burgundy);
}

.resume-page .animated-bg::after {
  background: linear-gradient(180deg, rgba(74, 38, 45, 0.3) 0%, rgba(74, 38, 45, 0.8) 100%);
}

/* Resume Header */
.resume-header {
  background: rgba(74, 38, 45, 0.9);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(245, 120, 140, 0.2);
}

.header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  color: var(--color-rose-gold);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--color-rose-light);
}

.resume-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  color: var(--color-cream);
  margin-bottom: 0.25rem;
}

.resume-header .subtitle {
  font-size: 1.1rem;
  color: var(--color-rose-light);
  margin-bottom: 0.5rem;
}

.contact-info {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Resume Content */
.resume-content {
  padding: 2rem 1rem 4rem;
}

.resume-inner {
  max-width: 800px;
  margin: 0 auto;
}

/* Resume Sections */
.resume-section {
  background: rgba(101, 52, 62, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(245, 120, 140, 0.15);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.resume-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-rose-gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(245, 120, 140, 0.2);
}

/* Experience Items */
.experience-item {
  margin-bottom: 2rem;
}

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

.experience-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-cream);
  margin-bottom: 0.25rem;
}

.experience-item .company {
  font-size: 1rem;
  color: var(--color-rose-light);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.experience-item .description {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.experience-item a {
  color: var(--color-rose-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.experience-item a:hover {
  color: var(--color-rose-light);
  text-decoration: underline;
}

/* Project Images */
.project-images {
  margin-top: 1.5rem;
}

.image-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  margin-bottom: 0.75rem;
}

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

.image-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: var(--color-rose-gold);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Skills List */
.skills-list {
  list-style: none;
  padding: 0;
}

.skills-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(245, 120, 140, 0.1);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.skills-list li:last-child {
  border-bottom: none;
}

.skills-list strong {
  color: var(--color-rose-light);
}

/* Education List */
.education-list {
  list-style: none;
  padding: 0;
}

.education-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.education-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-rose-gold);
  font-size: 0.8rem;
}

/* Download Section */
.download-section {
  text-align: center;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-cream);
  background: linear-gradient(135deg, var(--color-rose-gold), #d4626e);
  border: none;
  border-radius: 12px;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 120, 140, 0.4);
}

/* Resume Footer */
.resume-footer {
  background: rgba(74, 38, 45, 0.95);
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid rgba(245, 120, 140, 0.1);
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-rose-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-rose-light);
}

.mascot-image {
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.resume-footer .copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Resume Responsive */
@media (max-width: 768px) {
  .resume-section { padding: 1.5rem; }
  .resume-header { padding: 2rem 1rem 1.5rem; }
}

@media (max-width: 480px) {
  .resume-section {
    padding: 1.25rem;
    border-radius: 12px;
  }
  .image-grid { grid-template-columns: 1fr; }
}
