
:root {
  /* Typography */
  --font-default: "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Inter", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Light Mode Palette */
  --color-bg: #ffffff;
  --color-bg-light: #f8f9fa;
  --color-text: #4b5563;        /* Slate 600 */
  --color-heading: #111827;     /* Slate 900 */
  --color-border: #e5e7eb;      /* Light Grey */
  --color-bg-rgb: 255, 255, 255; /* White for RGBA */

  /* TECH ACCENTS (Gradients & Glows) */
  --color-accent: #0b63ef;      /* Fallback Solid Blue */
  --gradient-tech: linear-gradient(135deg, #0b63ef, #00d4ff); /* Blue to Cyan */
  --gradient-glow: 0 0 20px rgba(11, 99, 239, 0.3);           /* Soft Light Glow */

  /* Background Pattern (Subtle Matrix Dots) */
  --bg-pattern: radial-gradient(#e5e7eb 1px, transparent 1px);
  --bg-size: 20px 20px;

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-card: 12px;
}

/* --------------------------------------------------------------
# Dark Mode Configuration (The "Matrix/Cyber" Look)
-------------------------------------------------------------- */
[data-theme="dark"] {
  /* Dark Mode Palette (Deep Space Blue) */
  --color-bg: #0a1120;          /* Darker, richer blue-black */
  --color-bg-light: #162032;    /* Slightly lighter for cards */
  --color-text: #94a3b8;        /* Cool grey text */
  --color-heading: #f1f5f9;     /* Bright white-blue headings */
  --color-border: #1e293b;      /* Subtle dark borders */
  --color-bg-rgb: 10, 17, 32;   /* Dark Blue for RGBA */

  /* TECH ACCENTS (Neon Glows) */
  --color-accent: #3b82f6;
  --gradient-tech: linear-gradient(135deg, #3b82f6, #2dd4bf); /* Neon Blue to Teal */
  --gradient-glow: 0 0 25px rgba(59, 130, 246, 0.5);          /* Strong neon glow */

  /* Background Pattern (Glowing Cyber Grid) */
  --bg-pattern: 
      linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px), 
      linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  --bg-size: 30px 30px;

  /* Adjust Shadows for depth */
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 10px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 15px 25px -3px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------
# General Reset
-------------------------------------------------------------- */
body {
  font-family: var(--font-default);
  color: var(--color-text);
  
  /* Applied Data Vibe Background */
  background-color: var(--color-bg);
  background-image: var(--bg-pattern);
  background-size: var(--bg-size);
  
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  
  /* Smooth Theme Transition */
  transition: background-color 0.3s, color 0.3s, background-image 0.3s;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #00d4ff; /* Cyan hover */
  text-decoration: none;
}

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

/* --------------------------------------------------------------
# Navbar (Glassmorphism)
-------------------------------------------------------------- */
.header {
  padding: 15px 0;
  z-index: 997;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.5s;
}

[data-theme="dark"] .header {
  background: rgba(10, 17, 32, 0.85); /* Dark Glass */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.5px;
}

.navmenu ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navmenu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 18px;
  border-radius: 50px;
  transition: 0.3s;
  white-space: nowrap;
}

.navmenu a:hover,
.navmenu a.active {
  color: var(--color-accent);
  background: rgba(11, 99, 239, 0.08);
}

[data-theme="dark"] .navmenu a:hover,
[data-theme="dark"] .navmenu a.active {
  color: #fff;
  background: rgba(59, 130, 246, 0.15);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  font-size: 28px;
  color: var(--color-heading);
  cursor: pointer;
  line-height: 0;
  transition: 0.5s;
  margin-left: 15px;
}

@media (max-width: 1199px) {
  .navmenu ul { display: none; }
}

/* --------------------------------------------------------------
# Theme Switcher (Icon Slider)
-------------------------------------------------------------- */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  margin-left: 25px;
}

/* The Switch Container */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  margin-bottom: 0;
}

.theme-switch input {
  display: none;
}

/* The Track */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e2e8f0;
  transition: 0.4s;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  overflow: hidden;
}

/* The Icons inside */
.slider .bi {
  font-size: 14px;
  z-index: 1;
  transition: 0.4s;
}

.sun-icon { color: #f59e0b; } /* Golden Sun */
.moon-icon { color: #94a3b8; } /* Grey Moon */

/* The Knob */
.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Dark Mode State */
input:checked + .slider {
  background-color: #1e293b;
  border-color: #334155;
}

input:checked + .slider:before {
  transform: translateX(28px);
  background-color: var(--color-accent);
}

input:checked + .slider .sun-icon { color: #64748b; }
input:checked + .slider .moon-icon { color: #f1f5f9; }

/* Mobile Adjustment */
@media (max-width: 1199px) {
  .theme-switch-wrapper {
    margin-left: auto;
    margin-right: 15px;
  }
}

/* --------------------------------------------------------------
# Hero Section
-------------------------------------------------------------- */
.hero {
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  position: relative;
}

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

.hero .pre-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--color-heading);
}

/* Animated Gradient Text for Name */
.hero h1.gradient-text {
  background: linear-gradient(300deg, var(--color-heading), var(--color-accent), #d92eec, var(--color-heading));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-move 5s ease infinite;
  font-weight: 800;
  letter-spacing: -1px;
}

@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 40px;
}

/* Typewriter Cursor */
.typed-cursor {
  color: var(--color-accent);
  font-size: 30px;
}

/* Floating Icons */
.hero-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.float-item {
  position: absolute;
  font-size: 2rem;
  color: var(--color-text);
  opacity: 0.05;
  animation: float 6s ease-in-out infinite;
}

[data-theme="dark"] .float-item {
  color: var(--color-accent);
  opacity: 0.15;
  text-shadow: 0 0 10px var(--color-accent);
}

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

.hero .container { position: relative; z-index: 2; }

.additional-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Gradient Tech Buttons */
.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  transition: 0.3s;
  border: none;
  background: var(--gradient-tech);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--gradient-glow);
  color: #fff;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 42px; }
  .hero h2 { font-size: 20px; }
  .additional-links { flex-direction: column; align-items: stretch; }
}

/* --------------------------------------------------------------
# Global Section Styles
-------------------------------------------------------------- */
section {
  padding: 80px 0;
  overflow: hidden;
}

.section-title {
  text-align: center;
  padding-bottom: 60px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 0;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 4px;
  background: var(--gradient-tech);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-title p {
  color: var(--color-text);
  max-width: 600px;
  margin: 20px auto 0 auto; 
  padding-bottom: 0;
  font-size: 16px;
}

/* --------------------------------------------------------------
# About Section
-------------------------------------------------------------- */

.about .image-wrapper {
    /* 1. Make the border hug the content exactly */
    display: inline-block; 
    width: auto;
    
    /* 2. Prevent it from getting too big */
    max-width: 350px; 
    
    /* 3. Center it */
    margin: 0 auto 20px auto;
    padding: 0; 
    
    border-radius: var(--radius-card);
    overflow: hidden;
    
    /* Transitions */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s ease, 
                border-color 0.3s ease; 
    
    /* Base Border Style */
    border: 2px solid var(--color-border); 
    box-shadow: var(--shadow-md);
    background: var(--color-bg);
    line-height: 0; 
}

.about .image-wrapper img {
  width: 100%; 
  height: auto; 
  display: block; 
  border-radius: calc(var(--radius-card) - 2px);
}

/* --- HOVER STATE (LIGHT MODE) --- */
.about .image-wrapper:hover {
    transform: translateY(-5px);
    /* GLOW EFFECT: We use the accent color instead of black */
    box-shadow: 0 10px 30px var(--color-accent); 
    border-color: var(--color-accent) !important; 
}

/* --- DARK MODE ADJUSTMENTS --- */
[data-theme="dark"] .about .image-wrapper {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--color-border);
}

[data-theme="dark"] .about .image-wrapper:hover {
    /* GLOW EFFECT (DARK MODE): slightly stronger/tighter glow */
    box-shadow: 0 0 25px var(--color-accent); 
}

.about .content h3 {
  font-weight: 700;
  font-size: 28px;
  color: var(--color-heading);
  margin-bottom: 20px;
}

.about .intro {
  font-size: 16px;
  margin-bottom: 30px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

/* Tech Tag Style */
.skill-tag {
  font-family: var(--font-mono); /* Monospace for code feel */
  background: var(--color-bg-light);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-heading);
  border: 1px solid var(--color-border);
  transition: 0.3s;
}

.skill-tag:hover {
  background: var(--color-bg);
  border-color: transparent;
  background-image: linear-gradient(var(--color-bg), var(--color-bg)), var(--gradient-tech);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: var(--color-accent);
  box-shadow: var(--gradient-glow);
}

/* --------------------------------------------------------------
# Resume Section
-------------------------------------------------------------- */
.resume .resume-item {
  padding: 0 0 40px 25px;
  margin-top: -2px;
  border-left: 2px solid var(--color-border);
  position: relative;
}

.resume .resume-item h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-heading);
}

.resume .resume-item h5 {
  font-size: 13px;
  background: var(--color-bg-light);
  color: var(--color-accent);
  padding: 4px 12px;
  display: inline-block;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 10px;
  border: 1px solid var(--color-border);
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  left: -9px;
  top: 0;
  background: var(--color-bg);
  border: 3px solid var(--color-accent);
}

.resume .resume-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-heading);
}

/* --------------------------------------------------------------
# Portfolio / Cards (Tech Nodes)
-------------------------------------------------------------- */
.bg-light {
  background-color: var(--color-bg-light) !important;
}

.portfolio-filters {
  margin: 0 auto 40px auto;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s;
  background: transparent;
  color: var(--color-text);
  border: 1px solid transparent;
}

.portfolio-filters li:hover,
.portfolio-filters li.filter-active {
  background: var(--gradient-tech);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.portfolio-item {
  margin-bottom: 30px;
}

/* Card Styling */
.portfolio-wrap {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .portfolio-wrap {
  background-color: var(--color-bg-light);
  border-color: var(--color-border);
}

.portfolio-wrap:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--gradient-glow);
  border-color: transparent;
  background-image: linear-gradient(var(--color-bg-light), var(--color-bg-light)), var(--gradient-tech);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.portfolio-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: 0.4s;
  border-bottom: 1px solid var(--color-border);
}

.portfolio-info {
  padding: 20px 20px 60px 20px;
  position: relative;
  flex-grow: 1;
}

.portfolio-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-heading);
}

.portfolio-info p {
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 0;
}

/* --------------------------------------------------------------
# ZOOM & PROJECT BUTTON ANIMATIONS
-------------------------------------------------------------- */

/* 1. Common Styles for BOTH buttons (Zoom & Details) */
.portfolio-info .details-link,
.portfolio-info .preview-link {
  position: absolute;
  bottom: 20px;
  right: 20px; /* Both sit in the bottom right corner */
  
  width: 40px;
  height: 40px;
  background-color: rgba(11, 99, 239, 0.08);
  color: var(--color-accent);
  border-radius: 50%;
  
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  
  z-index: 2;
  cursor: pointer;
  
  /* ANIMATION SETTINGS: Start hidden and slightly lower */
  opacity: 0; 
  transform: translateY(20px); 
  transition: all 0.3s ease-in-out;
}

/* 2. Dark Mode Colors */
[data-theme="dark"] .portfolio-info .details-link,
[data-theme="dark"] .portfolio-info .preview-link {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* 3. Hovering the Button itself (Scale up) */
.portfolio-info .details-link:hover,
.portfolio-info .preview-link:hover {
  background: var(--gradient-tech);
  color: #fff;
  transform: translateY(0) scale(1.1) !important; /* Keep it visible but bigger */
}

/* 4. THE MAGIC: Show buttons when hovering the CARD */
.portfolio-wrap:hover .details-link,
.portfolio-wrap:hover .preview-link {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------
# Contact Section
-------------------------------------------------------------- */
.info-wrap {
  background: var(--color-bg);
  padding: 40px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 30px;
}

[data-theme="dark"] .info-wrap {
  background-color: var(--color-bg-light);
}

.info-item {
  text-align: center;
  padding: 20px;
}

.info-item i {
  font-size: 24px;
  color: var(--color-accent);
  background: rgba(11, 99, 239, 0.08);
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin: 0 auto 15px auto;
  transition: 0.3s;
}

[data-theme="dark"] .info-item i {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.info-item:hover i {
  background: var(--gradient-tech);
  color: white;
  box-shadow: var(--gradient-glow);
}

.info-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--color-heading);
}

.info-item p {
  color: var(--color-text);
}

/* Forms */
.sample-contact-form input,
.sample-contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font-family: var(--font-default);
  font-size: 15px;
  transition: 0.3s;
  background: var(--color-bg);
  color: var(--color-text);
}

[data-theme="dark"] input, 
[data-theme="dark"] textarea {
  background-color: var(--color-bg-light);
  color: var(--color-heading);
  border-color: var(--color-border);
}

.sample-contact-form input:focus,
.sample-contact-form textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(11, 99, 239, 0.1);
}

.sample-contact-form button {
  background: var(--gradient-tech);
  color: #fff;
  border: 0;
  padding: 14px 45px;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: var(--shadow-md);
}

.sample-contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--gradient-glow);
}

/* --------------------------------------------------------------
# Footer
-------------------------------------------------------------- */
.footer {
  padding: 40px 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text);
}

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-light);
  color: var(--color-heading);
  margin: 0 6px;
  transition: 0.3s;
  border: 1px solid var(--color-border);
  font-size: 16px;
}

.footer .social-links a:hover {
  background: var(--gradient-tech);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--gradient-glow);
}

/* --------------------------------------------------------------
# Utilities (Preloader & Scroll Top)
-------------------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--color-bg);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 4px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  background: var(--gradient-tech);
  width: 45px;
  height: 45px;
  border-radius: 50px;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.scroll-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}


/* --------------------------------------------------------------
   # IMAGE MODAL / LIGHTBOX STYLES
-------------------------------------------------------------- */

/* The Modal (background) */
.image-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 10000; /* Sit on top of everything (Navbar is ~997) */
  padding-top: 60px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
  backdrop-filter: blur(5px); /* Cool blur effect behind image */
}

/* Modal Content (The Image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 900px; /* Prevent it from getting too huge */
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Caption of Modal */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 15px 0;
  height: 150px;
  font-size: 18px;
  font-family: var(--font-default);
}

/* Add Animation - Zoom in effect */
.modal-content, #caption {  
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.modal-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 10001;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--color-accent); /* Uses your theme blue */
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
  .modal-content {
    width: 95%;
  }
  .modal-close {
    top: 15px;
    right: 20px;
    font-size: 30px;
  }
}