/*
  PORTFOLIO WEBSITE - STYLES

  A dark-themed, mobile-first responsive stylesheet for a personal portfolio.

  COLOR & SPACING CUSTOMIZATION:
  - Modify CSS variables below to customize colors, spacing, and typography
  - Base color: #0b0b0d (near-black background)
  - Surface color: #1a1a1f (dark gray surfaces)
  - Accent color: #3a8bff (blue for links and highlights)
  - Text colors: Light grays for readability on dark backgrounds

  BREAKPOINTS:
  - Mobile: default (< 640px)
  - Tablet: 640px and above
  - Desktop: 900px and above
  - Large: 1200px and above
*/

/* ============================================
   CSS VARIABLES - CUSTOMIZE YOUR THEME HERE
   ============================================ */
:root {
  /* Colors - Dark Theme */
  --color-bg-primary: #0b0b0d;
  --color-bg-secondary: #1a1a1f;
  --color-bg-elevated: #242429;
  --color-text-primary: #e6e6e6;
  --color-text-secondary: #a0a0a8;
  --color-text-muted: #6e6e76;
  --color-accent: #3a8bff;
  --color-accent-hover: #5a9eff;
  --color-border: #2a2a2f;
  --color-error: #ff4444;
  --color-success: #44ff88;

  /* Spacing - 8px System */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 2rem;     /* 32px */
  --font-size-4xl: 2.5rem;   /* 40px */
  --font-size-5xl: 3rem;     /* 48px */

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Layout */
  --container-max-width: 1200px;
  --header-height: 70px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-tight);
  font-weight: 600;
  color: var(--color-text-primary);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-xl); }

p {
  line-height: var(--line-height-normal);
  color: var(--color-text-secondary);
}

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

a:hover {
  color: var(--color-accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(11, 11, 13, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  transition: opacity var(--transition-fast);
}

.brand:hover {
  opacity: 0.8;
  color: var(--color-text-primary);
}

.nav-links {
  list-style: none;  
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--color-bg-primary);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
  z-index: 999;
  padding: var(--space-lg) 0;
  gap: var(--space-md);
  overflow-y: auto;
  height: calc(100vh - var(--header-height));
}
.nav-links a:hover{
    color: white;
}

/* When menu is open (slide down) */
.nav-links.mobile-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}


.nav-links li a {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
   margin: var(--space-sm) 0;
}

.nav-links li {
  margin: var(--space-xs) 0;
}

@media (min-width: 900px) {
   .nav-links {
    position: static;
    flex-direction: row;
    align-items: center;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
    height: auto;
    overflow: visible;
    padding: 0;
    gap: var(--space-lg);
  }
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

@media (min-width: 900px) {
  .hamburger {
    display: none;
  }
}

/* Mobile Menu Overlay */


@media (min-width: 900px) {
  .nav-links.mobile-open {
    position: static;
    flex-direction: row;
    padding: 0;
    background: none;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .hamburger-line {
    transition: none;
  }
}

/* ============================================
   HERO / INTRO SECTION
   ============================================ */
main {
  margin-top: var(--header-height);
}

.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: var(--space-2xl) 0;
}

.hero-content {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    gap: var(--space-3xl);
  }

  .hero-text {
    flex: 1;
  }

  .hero-image {
    flex: 0 0 350px;
  }
}

.hero-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-sm);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: var(--font-size-5xl);
  }
}

.hero-headline {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.hero-about {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

.social-icons {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.social-icons a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-flex;
}

.social-icons a:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}

.cta-button {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--color-accent);
  color: var(--color-text-primary);
  font-weight: 600;
  border-radius: 6px;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  width: fit-content;
}

.cta-button:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-text-primary);
  transform: translateY(-2px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  border: 2px solid var(--color-border);
  object-fit: cover;
}

@media (min-width: 900px) {
  .portrait {
    max-width: 350px;
  }
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--color-border);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
  font-size: var(--font-size-3xl);
}

/* ============================================
   TIMELINE SECTION
   ============================================ */
.tab-switcher {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  margin-bottom: var(--space-xl);
  background-color: var(--color-bg-secondary);
  padding: 4px;
  border-radius: 8px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-button {
  padding: var(--space-sm) var(--space-lg);
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  font-family: var(--font-family);
}

.tab-button:hover {
  color: var(--color-text-primary);
}

.tab-button.active {
  background-color: var(--color-bg-elevated);
  color: var(--color-text-primary);
}

.timeline-panel {
  display: none;
}

.timeline-panel.active {
  display: block;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  background-color: var(--color-bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .timeline-item {
    flex-direction: row;
    gap: var(--space-xl);
  }

  .timeline-year {
    flex: 0 0 180px;
  }
}

.timeline-year {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: 600;
}

.timeline-details h3 {
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
}

.timeline-details p {
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-relaxed);
}

.timeline-link {
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  font-weight: 500;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-lg);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.project-title {
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.project-description {
  margin-bottom: var(--space-md);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.tag {
  font-size: var(--font-size-xs);
  padding: 4px var(--space-sm);
  background-color: var(--color-bg-elevated);
  color: var(--color-text-secondary);
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.project-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.project-link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-accent);
  transition: color var(--transition-fast);
}

.more-projects-container {
  text-align: center;
}

.more-projects-button {
  display: inline-block;
  padding: var(--space-sm) var(--space-xl);
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.more-projects-button:hover {
  background-color: var(--color-bg-elevated);
  border-color: var(--color-accent);
  color: var(--color-text-primary);
}


/* ===============================
   PROJECT IMAGE STYLING
   =============================== */

.project-image {
  width: 100%;
  height: 160px; /* Adjust for your design */
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  background-color: var(--color-bg-elevated); /* fallback if image fails */
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* maintains ratio, fills card neatly */
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05); /* nice zoom hover effect */
}

/* Optional — if your logos are transparent icons instead of full screenshots */
.project-image.logo-style img {
  object-fit: contain; /* fits logo without cropping */
  padding: var(--space-md);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-categories {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.category-button {
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  font-family: var(--font-family);
}

.category-button:hover {
  color: var(--color-text-primary);
}

.category-button.active {
  background-color: var(--color-accent);
  color: var(--color-text-primary);
  border-color: var(--color-accent);
}

.skills-panel {
  display: none;
}

.skills-panel.active {
  display: block;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background-color: var(--color-bg-secondary);
}

.skill-name {
  font-weight: 500;
  color: var(--color-text-primary);
}

.skill-experience {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .contact-content {
    grid-template-columns: 2fr 1fr;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea {
  padding: var(--space-sm);
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.error-message {
  font-size: var(--font-size-xs);
  color: var(--color-error);
  display: none;
}

.error-message.show {
  display: block;
}

.submit-button {
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--color-accent);
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: var(--font-size-base);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  font-family: var(--font-family);
}

.submit-button:hover {
  background-color: var(--color-accent-hover);
}

.success-message {
  padding: var(--space-sm);
  background-color: rgba(68, 255, 136, 0.1);
  color: var(--color-success);
  border-radius: 6px;
  border: 1px solid var(--color-success);
  display: none;
}

.success-message.show {
  display: block;
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-social p {
  color: var(--color-text-secondary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-secondary);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.site-footer p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* ============================================
   PROJECTS PAGE SPECIFIC STYLES
   ============================================ */
.page-header {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
}

.page-title {
  margin-bottom: var(--space-sm);
}

.page-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

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

.search-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.all-projects-section {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.project-detail-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-lg);
  transition: border-color var(--transition-fast);
}

.project-detail-card:hover {
  border-color: var(--color-accent);
}

@media (min-width: 900px) {
  .project-detail-card {
    flex-direction: row;
    gap: var(--space-xl);
  }

  .project-detail-image {
    flex: 0 0 400px;
  }
}

.project-detail-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-elevated);
}

.project-detail-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.project-detail-title {
  color: var(--color-text-primary);
}

.project-detail-description {
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

.project-link-btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--color-accent);
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: var(--font-size-sm);
  border-radius: 6px;
  transition: background-color var(--transition-fast);
}

.project-link-btn:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-text-primary);
}

.project-link-btn.secondary {
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
}

.project-link-btn.secondary:hover {
  background-color: var(--color-bg-primary);
  border-color: var(--color-accent);
}

.no-results {
  text-align: center;
  padding: var(--space-2xl);
}

.no-results p {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
}

.project-detail-card.hidden {
  display: none;
}

/* message animation */
.success-message {
  opacity: 0;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 10px;
  text-align: center;
  font-weight: 500;
  position: relative;
  pointer-events: none;
}

/* Error state */
.success-message.error {
  background-color: rgba(244, 67, 54, 0.85); /* red with transparency */
}

/* Fade-in and fade-out animation */
.success-message.show {
  animation: fadeMessage 5s forwards;
}

@keyframes fadeMessage {
  0% { opacity: 0; transform: translateY(-10px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}



/* ============================================
   SINGLE IMAGE STYLES (Centered)
   ============================================ */

.ai-gallery-section {
    /* Center the section content */
    display: flex;
    justify-content: center;
    padding-bottom: var(--space-2xl);
}

.single-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 450px; /* Max width for the image container */
  margin: 0 auto;
}

/* In styles.css */
.single-image-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px; 
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  aspect-ratio: 1 / 1; 
  width: 100%;
  max-width: 200px; /* Changed from 350px to 200px */
  border: 2px solid var(--color-border);
}

.single-image-item:hover {
  transform: scale(1.02); /* Subtle hover effect */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}

/* ============================================
   MODAL OVERLAY & CONTENT STYLES
   ============================================ 
   NOTE: You should append these modal styles 
   to your styles.css if they weren't already 
   added from the previous response.
   ============================================ */

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s forwards;
}

.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.expanded-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  animation: zoomIn 0.4s forwards;
}

/* Modal Button Styling (Close and Info) */
.modal-btn {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.2); 
  color: var(--color-text-primary);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  z-index: 2010;
  font-size: 24px;
  font-weight: bold;
}

.modal-btn:hover {
  background-color: var(--color-accent);
  transform: scale(1.1);
}

/* Positioning */
.close-btn {
  top: 20px;
  right: 20px;
  font-size: 40px; 
  line-height: 1;
}

.info-btn {
  bottom: 20px;
  left: 20px;
  font-style: italic;
}

/* Description Text within Picture/Modal */
.image-info-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 20px;
  background-color: rgba(0, 0, 0, 0.85);
  color: var(--color-text-primary);
  text-align: center;
  font-size: var(--font-size-base);
  opacity: 0;
  pointer-events: none; 
  transition: opacity 0.3s ease-in-out;
  z-index: 2005;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.95); }
  to { transform: scale(1); }
}

/* Mobile adjustments */
/* In styles.css, modify the Mobile adjustments block */
@media (max-width: 600px) {
  .modal-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .close-btn {
    /* Positioned at Top Right (opposite to the new 'i' button position) */
    font-size: 30px;
    top: 10px;
    right: 10px;
  }
  /* Updated 'i' button position */
  .info-btn {
    top: 10px;   /* Move from bottom to top */
    left: 10px;  /* Keep on the left side */
    bottom: auto; /* Remove the conflicting bottom property */
  }
}

/* Also ensure the desktop/tablet style is maintained for larger screens */
.info-btn {
  bottom: 20px; /* Default (desktop/tablet) position */
  left: 20px;
  font-style: italic;
}


/*footer sticker*/

/* ============================================
   GLOBAL LAYOUT FIX: STICKY FOOTER
   ============================================ */

/* 1. Ensure HTML and BODY fill the entire viewport */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* 2. Set the body to be a flex container, stacked vertically, and at least 100vh tall */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

/* 3. Make the main content area consume all available space, pushing the footer down */
main {
    flex-grow: 1; /* This is the crucial line */
}


/* ============================================
   SIMPLEST LEFT-ALIGNED INFO LIST
   ============================================ */

.simple-left-aligned-info {
    /* Centers the entire text block on the page, but constrains its width */
    max-width: 450px; 
    margin: 40px auto; /* Centers the block and adds vertical spacing */
    padding: 0 var(--space-md); /* Ensures padding on mobile edges */
    
    
    /* Crucial: Aligns the text lines to the left edge of the block */
    text-align: left;
}

.info-line {
    /* Base styling for each line */
    font-size: var(--font-size-lg);
    line-height: 1.6;
    margin: 10px 0; 
    color: var(--color-text-primary);
    margin-top: 30px;
}

.info-label {
    /* Style the label (e.g., "Name:") */
    font-weight: 600;
    color: var(--color-text-secondary); /* Subtly highlights the label */
    margin-right: 5px; 
   
}

.info-value {
    
    font-weight: 400;
    color: var(--color-text-primary);
}

/* Responsiveness is handled naturally by the text flowing within the max-width container. 
   If a line wraps (e.g., a long 'Interest' line), the wrapped text will also be flush left. */



   .cv-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.cv-icon:hover {
  transform: translateY(-2px);
}
.cv-icon svg {
  transition: stroke 0.2s ease;
}
.cv-icon:hover svg {
  stroke: #007bff; /* hover color */
}

/* Tooltip */
.cv-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%; /* position above the icon */
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.cv-icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}