/* Default Theme Variables */
:root {
  --bg-color: #121212;
  --text-color: #f5f5f5;
  --card-bg: rgba(30, 30, 30, 0.8);
  --accent-color: #ee3131;
  --link-color: #64b5f6;
  --nav-bg: #1e1e1e;
  --box-shadow: rgba(0, 0, 0, 0.6);
}

.light-theme {
  --bg-color: #fefefe;
  --text-color: black;
  --card-bg: rgba(255, 255, 255, 0.7);
  --accent-color: #e50d0d;
  --link-color: #0066cc;
  --nav-bg: #fff;
  --box-shadow: rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  animation: fadeIn 0.5s forwards;
  font-family: 'playpans', Arial, Helvetica, sans-serif;
  color: var(--text-color);
  margin: 0;
  padding: 0rem 2rem 2rem 2rem;
  background-color: var(--bg-color);
  transition: background-color 0.5s ease, color 0.5s ease;
  position: relative;
  z-index: 0;
}

body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  z-index: -1;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

body::before {
  z-index: -2;
}

body::after {
  z-index: -1;
}

/* Light mode background (visible in light theme) */
body.light-theme::before {
  background-image: url("stgate.svg");
  opacity: 0.8;
}

body.light-theme::after {
  background-image: url("stgate 1.svg");
  opacity: 0;
}

/* Dark mode background (visible in dark theme) */
body:not(.light-theme)::before {
  background-image: url("stgate.svg");
  opacity: 0;
}

body:not(.light-theme)::after {
  background-image: url("stgate 1.svg");
  opacity: 0.6;
}


@font-face {
  font-family: 'gasmask';
  src: url('ggmu-fonts/Gasmask/Gasmask-XWAj.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'attackgraffiti';
  src: url('ggmu-fonts/AttackGraffiti/AttackGraffiti-3zRBM.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'unique-spray';
  src: url('ggmu-fonts/unique-spray/UniquelySprayed-PXOx.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'trip-denied';
  src: url('ggmu-fonts/trip-denied/TripDeniedPersonalUseRegular-d98q6.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'shotgun-wedding';
  src: url('ggmu-fonts/shotgun-wedding/Shotgunwedding-W0OE.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'kingthing';
  src: url('ggmu-fonts/kinthings/KingthingsExtortion-YMAa.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'comback-home';
  src: url('ggmu-fonts/comback-home/CombackHomeRegular-jEMd9.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'graffitipaint';
  src: url('ggmu-fonts/graffitiPaint/Graffitipaintbrush-21Jv.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'playpans';
  src: url('ggmu-fonts/playpans/PlaypenSans-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'laqcuer';
  src: url('ggmu-fonts/Lacquer/Lacquer-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'codex';
  src: url('ggmu-fonts/Codex/Codex\ LT\ Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'earwig';
  src: url('ggmu-fonts/earwig/earwig\ factory\ rg.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
} 
h1 {
  font-family: 'attackgraffiti', sans-serif;
  color: var(--accent-color);
  font-size: 2.8em;
}

h2 {
  font-family: 'laqcuer', sans-serif;
  color: var(--accent-color);
  font-size: 2.0em;
}

h3 {
  font-family: 'attackgraffiti', sans-serif;
  color: var(--accent-color);
  font-size: 1.8em;
}


.mobile-menu-btn {
  display: block;
  position: fixed;
  bottom: 1.2em;
  right: 1.2em;
  z-index: 1500;
  background-color: var(--card-bg);
  border: none;
  padding: 0.6em 0.8em;
  font-size: 1.5em;
  border-radius: 50%;
  box-shadow: 0 4px 10px var(--box-shadow);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  height: 100%;
  width: 250px;
  background-color: var(--card-bg);
  backdrop-filter: blur(8px);
  box-shadow: 2px 0 10px var(--box-shadow);
  display: flex;
  flex-direction: column;
  font: normal 1.2em 'laqcuer', sans-serif;
  gap: 1em;
  padding: 2em 1em;
  z-index: 2000;
  transition: left 0.3s ease;
}

.mobile-sidebar.active {
  left: 0;
}

.sidebar-theme-toggle {
    transition: background-color 0.3s ease, color 0.3s ease;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 1em;
  }

.close-sidebar {
    align-self: flex-end;
    font-size: 1.5em;
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 1em;
    color: var(--accent-color);
  }

  .navbar {
    display: none;
  }

@media (max-width: 768px) {
  body::before,
  body::after {
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    height: 200vh !important;
    width: 200vw !important;
  }  


  .mobile-menu-btn {
    display: block;
    position: fixed;
    bottom: 1.2em;
    right: 1.2em;
    z-index: 1500;
    background-color: var(--card-bg);
    border: none;
    padding: 0.6em 0.8em;
    font-size: 1.5em;
    border-radius: 50%;
    box-shadow: 0 4px 10px var(--box-shadow);
    backdrop-filter: blur(6px);
    cursor: pointer;
  }
}


@media (max-width: 768px) {
  .mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    width: 250px;
    background-color: var(--card-bg);
    backdrop-filter: blur(8px);
    box-shadow: 2px 0 10px var(--box-shadow);
    display: flex;
    flex-direction: column;
    font: normal 1.2em 'laqcuer', sans-serif ;
    gap: 1em;
    padding: 2em 1em;
    z-index: 2000;
    transition: left 0.3s ease;
  }

  .mobile-sidebar.active {
    left: 0;
  }

  .sidebar-theme-toggle {
    transition: background-color 0.3s ease, color 0.3s ease;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 1em;
  }

  .close-sidebar {
    align-self: flex-end;
    font-size: 1.5em;
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 1em;
    color: var(--accent-color);
  }
}

.mobile-sidebar a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  font-size: 1.1em;
}

#theme-toggle {
  transition: background-color 0.3s ease, color 0.3s ease;
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 1.2em;
  cursor: pointer;
  margin-left: 1em;
}

#theme-toggle:active {
  transform: rotate(360deg) scale(1.2);
}


/* Projects */
.projects-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
  padding: 1em;
}

.project {
  border: 1px solid #444;
  background-color: var(--card-bg);
  padding: 1.5em;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 2px 5px var(--box-shadow);
  border-radius: 10px;
  text-align: left;
  transition: background-color 0.3s;
}

.project h3 {
  margin-top: 0;
  color: var(--accent-color);
}

.project a {
  display: inline-block;
  margin-top: 0.5em;
  text-decoration: none;
  color: var(--link-color);
}

.project a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .projects-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .project {
    padding: 1em;
    font-size: 0.9em;
    flex: 1 1 300px;
    margin: 1em;
  }

  nav a, #theme-toggle {
    display: block;
    margin: 10px 0;
  }
}

.project p {
  position: relative;
  max-height: 4.5em; /* 3 lines approx */
  overflow: hidden;
  transition: max-height 0.4s ease;
  line-height: 1.5em;
}

.project p::after {
  content: "...";
  position: absolute;
  bottom: 0;
  right: 0;
  padding-left: 10px;
  background: linear-gradient(to right, transparent, var(--card-bg) 70%);
}

.project.expanded p {
  max-height: none;
}

.project .project-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8em;
  margin-top: 1em;
}

.project .read-more {
  cursor: pointer;
  color: var(--link-color);
  font-size: 1em;
  transition: color 0.2s ease;
}

.project .read-more:hover {
  color: var(--accent-color);
}

/* Layout: stack each item vertically */
.project .project-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8em;
  margin-top: 1em;
}

/* Read more style */
.project .read-more {
  cursor: pointer;
  color: var(--accent-color);
  font-size: 1em;
  transition: color 0.2s ease;
}


/* Prevent link color from applying to icons */
.project-links a {
  color: inherit;
  text-decoration: none;
}

/* Read More styling */
.project .project-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8em;
  margin-top: 1em;
}

.project .read-more {
  cursor: pointer;
  color: var(--accent-color);
  font-size: 1em;
  transition: color 0.2s ease;
}
.project > a {
  display: inline-block;        /* allows styling while flowing inline */
  margin-top: 2em;
  margin-right: 1.0em;            /* spacing between icons if on the same line */
  text-decoration: none;
  color: inherit;               /* avoids link-blue */
  vertical-align: middle;
}

/* Icon appearance */
.project > a i {
  font-size: 1.6em;
  transition: transform 0.2s ease;
}

/* Hover effect */
.project > a:hover i {
  transform: scale(1.2);
}

/* Platform-specific colors */
.project > a[title="GitHub"] i {
  color: white;
}

.light-theme .project > a[title="GitHub"] i {
  color: black;
}

.project > a[title="YouTube"] i {
  color: #FF0000;
}

.project-links a[title="Google Drive"] i {
  color: #34a853; 
}

.project-links a:hover[title="Google Drive"] i {
  color: #0c9d58; 
}/* Projects */
.projects-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
  padding: 1em;
}

.project {
  border: 1px solid #444;
  background-color: var(--card-bg);
  padding: 1.5em;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 2px 5px var(--box-shadow);
  border-radius: 10px;
  text-align: left;
  transition: background-color 0.3s;
}

.project h3 {
  margin-top: 0;
  color: var(--accent-color);
}

.project a {
  display: inline-block;
  margin-top: 0.5em;
  text-decoration: none;
  color: var(--link-color);
}

.project a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .projects-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .project {
    padding: 1em;
    font-size: 0.9em;
    flex: 1 1 300px;
    margin: 1em;
  }

  nav a, #theme-toggle {
    display: block;
    margin: 10px 0;
  }
}

.project p {
  position: relative;
  max-height: 4.5em; /* 3 lines approx */
  overflow: hidden;
  transition: max-height 0.4s ease;
  line-height: 1.5em;
}

.project p::after {
  content: "...";
  position: absolute;
  bottom: 0;
  right: 0;
  padding-left: 10px;
  background: linear-gradient(to right, transparent, var(--card-bg) 70%);
}

.project.expanded p {
  max-height: none;
}

.project .project-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8em;
  margin-top: 1em;
}

.project .read-more {
  cursor: pointer;
  color: var(--link-color);
  font-size: 1em;
  transition: color 0.2s ease;
}

.project .read-more:hover {
  color: var(--accent-color);
}

/* Layout: stack each item vertically */
.project .project-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8em;
  margin-top: 1em;
}

/* Read more style */
.project .read-more {
  cursor: pointer;
  color: var(--accent-color);
  font-size: 1em;
  transition: color 0.2s ease;
}


/* Prevent link color from applying to icons */
.project-links a {
  color: inherit;
  text-decoration: none;
}

/* Read More styling */
.project .project-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8em;
  margin-top: 1em;
}

.project .read-more {
  cursor: pointer;
  color: var(--accent-color);
  font-size: 1em;
  transition: color 0.2s ease;
}
.project > a {
  display: inline-block;        /* allows styling while flowing inline */
  margin-top: 2em;
  margin-right: 1.0em;            /* spacing between icons if on the same line */
  text-decoration: none;
  color: inherit;               /* avoids link-blue */
  vertical-align: middle;
}

/* Icon appearance */
.project > a i {
  font-size: 1.6em;
  transition: transform 0.2s ease;
}

/* Hover effect */
.project > a:hover i {
  transform: scale(1.2);
}

/* Platform-specific colors */
.project > a[title="GitHub"] i {
  color: white;
}

.light-theme .project > a[title="GitHub"] i {
  color: black;
}

.project > a[title="YouTube"] i {
  color: #FF0000;
}

.project-links a[title="Google Drive"] i {
  color: #34a853; 
}

.project-links a:hover[title="Google Drive"] i {
  color: #0c9d58; 
}

.mobile-menu-btn {
  color: var(--text-color); 
}

/* About container */
.about {
  border: 1px solid #444;
  background-color: var(--card-bg);
  padding: 1.5em;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 2px 5px var(--box-shadow);
  border-radius: 10px;
  text-align: left;
  transition: background-color 0.3s;
}

/* Heading */
.about h3 {
  margin-top: 0;
  color: var(--accent-color);
}

/* Paragraph — no line limit */
.about p {
  position: relative;
  line-height: 1.5em;
  max-height: none;    /* remove restriction */
  overflow: visible;   /* show all text */
}

/* Links in about */
.about a {
  display: inline-block;
  margin-top: 0.5em;
  text-decoration: none;
  color: var(--link-color);
}

.about a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 760px) {
  .about {
    padding: 1em;
    font-size: 0.9em;
    flex: 1 1 300px;
    margin: 1em;
  }
}



.contact-links {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.8em;
  margin-top: 1em;
}

.contact-links a {
  text-decoration: none;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 500;
}

.contact-links a i {
  font-size: 1.4em;
  transition: transform 0.2s ease;
}

/* Icon Colors */
.contact-links a[title="Email"] i {
  color: #D44638; /* Gmail red */
}

.contact-links a[title="Twitter"] i {
  color: #64b5f6;
}

.contact-links a[title="Instagram"] i {
  color: #E1306C;
}

.contact-links a[title="LinkedIn"] i {
  color: #3859ea;
}


.contact-links a:hover i {
  transform: scale(1.2);
}

.hover-contact {
  position: relative;
  display: inline-block;
}

.contact-popup {
  display: none;
  position: absolute;
  top: -21%;
  left: 60%;
  transform: translateX(-50%);
  background: var(--popup-bg, #222);
  color: white;
  padding: 16px 24px;
  border-radius: 18px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  z-index: 999;
  white-space: nowrap;
}

.hover-contact:hover .contact-popup {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.contact-popup a {
  color: white;
  font-size: 30px;
  transition: transform 0.2s ease;
}

.contact-popup a:hover {
  transform: scale(1.2);
}

.click-contact-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 0em; /* adjust as needed */
}

#contact-popup-trigger {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  margin-bottom: 0.5em;
  padding-left: 0.3em;  /* makes text match indentation of <a> */
}


#contact-popup {
  display: none;
  position: absolute;
  top: 120%;
  left: 50%;
  background: var(--card-bg);           /* ✅ adapts to theme */
  color: var(--text-color);             /* ✅ adapts to theme */
  padding: 16px 24px;
  border-radius: 18px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  z-index: 9999;
  white-space: nowrap;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}


#contact-popup a {
  color: var(--text-color);           /* 👈 adapt to light/dark */
  font-size: 30px;
  transition: transform 0.2s ease;
}


#contact-popup a:hover {
  transform: scale(1.2);
}

.theme-fab {
  position: fixed;
  bottom: 1.2em;
  right: 4.8em; /* adjust this to place it left of the menu button */
  z-index: 1500;
  background-color: var(--card-bg);
  border: none;
  padding: 0.6em 0.8em;
  font-size: 1.5em;
  border-radius: 50%;
  box-shadow: 0 4px 10px var(--box-shadow);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.theme-fab img {
  display: block;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.theme-fab:hover img {
  transform: rotate(25deg);
}

@keyframes rotate-and-scale {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.4);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* Animate img icon */
.theme-animate img {
  animation: rotate-and-scale 0.6s ease-in-out;
}

/* Optional: Glow around button */
.theme-animate {
  box-shadow: 0 0 12px var(--accent-color);
}


.sidebar-footer {
  margin-top: auto;
  padding-top: 1em;
  font-size: 0.85em;
  text-align: center;
  color: var(--text-color);
  opacity: 0.6;
}


.svg-wrapper {
  position: relative;
  display: inline-block;
  width: fit-content;
  height: auto;
}

.svg-wrapper .svg-title {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  width: 100%;
  height: auto;
}

.svg-wrapper .light-svg {
  opacity: 1;
}

.svg-wrapper .dark-svg {
  opacity: 0;
}

body.light-theme .light-svg {
  opacity: 1;
}

body.light-theme .dark-svg {
  opacity: 0;
}

body:not(.light-theme) .light-svg {
  opacity: 0;
}

body:not(.light-theme) .dark-svg {
  opacity: 1;
}



/* Reusable card style for contact/about */
/* Frosted Glass Effect */
.frosted-heading {
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0em 0.3em;
  margin: 0.5em auto;
  width: fit-content;
  box-shadow: 0 4px 12px var(--box-shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  text-align: center;
}

/* Optional: Light theme variant */
.light-theme .frosted-heading {
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.info-section {
  max-width: 600px;
  width: 90%;
  margin: 2em auto;
}

.info-section h2 {
  text-align: left;
  color: var(--accent-color);
  margin-bottom: 0.5em;
  padding-left: 0.5em;
}

.section-heading {
  margin-left: 0em; /* Adjust this for desired distance from left */
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: var(--accent-color);
  font-size: 1.6em;
  font-weight: bold;
  text-align: left;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 1em;
  /* Removed visual box styling */
  background: none;
  box-shadow: none;
  border-radius: 0;
  backdrop-filter: none;

  position: sticky;
  top: 0px;
  z-index: 1000;
}

.site-title {
  font-family: 'Kingthing', sans-serif;
  font-size: 2.5em;
  font-weight: normal;
  color: var(--accent-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4); /* optional graffiti vibe */
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.site-title:hover {
  transform: scale(1.05);
  text-shadow: 0 0 6px var(--accent-color), 0 0 10px var(--accent-color);
}


.institute-logos img {
  height: 48px; /* Increased size */
  margin-left: 1em;
  vertical-align: middle;
  transition: transform 0.2s;
}

.institute-logos img:hover {
  transform: scale(1.1);
}

.kittika-logo {
  transition: filter 0.4s ease;
}

body:not(.light-theme) .kittika-logo {
  filter: invert(1) brightness(0.9) contrast(1.1);
}

.iitb-logo {
  transition: filter 0.4s ease;
}

body.light-theme .iitb-logo {
  filter: brightness(0) saturate(100%) invert(0);
}

body:not(.light-theme) .iitb-logo {
  filter: brightness(0) saturate(100%) invert(1);
}



.name-red {
  color: var(--accent-color);
}

.name-white {
  color: var(--text-color);
}

.svg-title {
  height: 270px; /* Adjust size as needed */
  max-width: 300%;
  display: inline-block;
  filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.4)); /* graffiti glow vibe */
  transition: transform 0.3s ease;
  margin-top: -1em;
}

.svg-title:hover {
  transform: scale(1.1);
}

.svg-section-title {
  text-align: center;
  transform: translateX(0px);
}

.svg-section-title img {
  transition: filter 0.3s ease, transform 0.3s ease;
}


.centered-container {
  display: flex;
  justify-content: center;
  align-items: center; /* Optional: use this for vertical centering too */
  height: 35vh;       /* Optional: for full page vertical centering */
  text-align: center;
}

.svg-section-title:hover img {
  filter: drop-shadow(0 0 5px #ff1a1a)
          drop-shadow(0 0 10px #ff1a1a)
          drop-shadow(0 0 20px #ff1a1a);
  transform: scale(1.2);
}

.svg-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 4rem;
  flex-direction: row;
}

.svg-title {
  width: 500px;  /* Increase scaling */
  height: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.svg-cv {
  width: 300px;  /* Increase scaling */
  height: auto;
  transition: transform 0.3s ease;
  cursor: pointer; /* 40% smaller */
}

.svg-projects {
  width: 500px;  /* Increase scaling */
  height: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.svg-about-me {
  width: 580px;  /* Increase scaling */
  height: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.svg-contact-me {
  width: 550px;  /* Increase scaling */
  height: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
  margin-left: -20px
}

.svg-blog {
  width: 400px;  /* Increase scaling */
  height: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.svg-timetable {
  width: 450px;  /* Increase scaling */
  height: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
  margin-left: 30px;
  margin-right: -30px
}

.svg-title:hover {
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .svg-row {
    flex-direction: column;
    gap: 10px;
  }

  .svg-title {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    transform: translateX(0);
    transition: transform 0.3s ease;
  }

  .svg-section-title:hover .svg-title {
    transform: translateX(0) scale(1.05);
  }

  .svg-projects {
    width: 130%;
    max-width: 1060px;
    margin-top: -50px;
    margin-bottom: -100px;
    transform: translateX(-90px);
    transition: transform 0.3s ease;
  }

  .svg-section-title:hover .svg-projects {
    transform: translateX(-90px) scale(1.1);
  }

  .svg-about-me {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    transform: translateX(20px);
    transition: transform 0.3s ease;
  }

  .svg-section-title:hover .svg-about-me {
    transform: translateX(20px) scale(1.1);
  }

  .svg-contact-me {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    transform: translateX(-50px);
    transition: transform 0.3s ease;
  }

  .svg-section-title:hover .svg-contact-me {
    transform: translateX(-50px) scale(1.1);
  }

  .svg-timetable {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    transform: translateX(0);
    transition: transform 0.3s ease;
  }

  .svg-section-title:hover .svg-timetable {
    transform: translateX(0) scale(1.1);
  }

  .svg-cv {
    width: 80%;
    max-width: 1060px;
    margin: 0 auto;
    transform: translateX(0px);
    transition: transform 0.3s ease;
  }

  .svg-section-title:hover .svg-cv {
    transform: translateX(0px) scale(1.1);
  }

  

}

.about-content {
  display: block;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; /* allows stacking on small screens */
}

.about-content p {
  flex: 1; /* makes text take remaining space */
}

.about-text {
  flex: 1;
  min-width: 250px; /* prevents text from becoming too narrow */
}

.about-image {
  float: left;
  margin-right: 20px;     
  margin-bottom: 15px; 
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image1 {
  float: right;
  margin-left: 20px;     
  margin-bottom: 15px; 
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image2 {
  float: center;
  margin-top: 25px;     
  margin-bottom: 15px; 
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image1 img {
  width: 400px;
  height: auto;
  border-radius: 10px;
}

.about-image img {
  width: 400px;
  height: auto;
  border-radius: 10px;
}

.about-image2 img {
  width: 600px;
  height: auto;
  border-radius: 10px;
}

.about-content p,
.about-content h2 {
  overflow: hidden;
}

/* Mobile view: stack text and image */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .about-image img {
    width: 100%;
    max-width: 300px; /* keeps image from being too big on mobile */
  }

  .about-image1 img {
    width: 90%;
    max-width: 300px; /* keeps image from being too big on mobile */
  }

  .about-image2 img {
    width: 90%;
    max-width: 500px; /* keeps image from being too big on mobile */
  }
}

.about-image .subtext {
  font-size: 14px;
  color: gray;
  margin-top: 5px;
}

.about-image1 .subtext {
  font-size: 14px;
  color: gray;
  margin-top: 5px;
}

.project-link-red,
.project-link-red:visited,
.project-link-red:hover,
.project-link-red:active {
  color: red; /* keep red in all states */
  text-decoration: none !important; /* kill underline completely */
  transition: all 0.25s ease-in-out;
}

.project-link-red:hover,
.project-link-red:active {
  transform: scale(1.1); /* grow slightly */
  text-shadow: 0 0 12px rgba(255, 0, 0, 0.9); /* glowing backlight */
}



