@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;600&family=Nunito+Sans&display=swap');


html {
  scroll-behavior: smooth;
}

body {
	font-family: Nunito Sans;
	font-size: 18px;
	line-height: 1.5;
	 background-color: rgb(255, 255, 255);
	color: #000000;
	margin: 80px auto 48px auto;
	width: 1120px;
}


header {
  display:flex;
  align-items: center;
  justify-content: space-between;
}
 h1, nav,footer {
  font-family: Josefin Sans;
	font-size: 40px;
	font-weight: 600;
  line-height: 1.2;
}

.logo.dark-mode {
  display: none;
}

/* Dark mode active */
body.dark-mode .logo.light-mode {
  display: none;
}

body.dark-mode .logo.dark-mode {
  display: inline-block;
}
.dark-mode h2.alt {
 color: #e4e4f0;
}

.dark-mode h2 {
  color: 	  #60a5fa;
}

.dark-mode a {

  color: #7ab6f2; }


.dark-mode .selected {
  color: #f472b6;
}
#modeToggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  color: #121217;
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 9999;
}

body.dark-mode {
  background-color: #121217;
  background-image: radial-gradient(#ffffff11 1px, transparent 1px), 
                    radial-gradient(#ffffff08 1px, transparent 1px);
  background-size: 60px 60px, 100px 100px;
    color: #e4e4f0;
}

body.dark-mode #modeToggle {
  background: #1f1f26;
  color: #fff;
}


#typewriter {
  font-family: Josefin Sans;
  font-size: 40px;
  color: #ec4899;
  white-space: nowrap;
  opacity: 0.8;
  transition: opacity 1s ease-in;
    display: inline-block;
}

.dark-mode #typewriter {
  color: #f472b6;
}
.typing-cursor {
  border-right: 2px solid #333;
  animation: blink 0.7s step-end infinite;
}

.faded-in {
  opacity: 1;
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: #333; }
}
.sparkleheader {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #ffd6f9, #82b1ff);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkleFade 0.6s ease-out forwards;
  z-index: 9999;
}

@keyframes sparkleFade {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.5);
  }
}
  
.typewriter-container {
   grid-column: 2/ span 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Base styles */
#menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
   box-shadow: none;
}

.menu-toggle:focus {
  outline: none;
  background-color: transparent;
}

.menu-toggle:focus-visible {
  outline: 2px dashed #444;
  outline-offset: 4px;
}

.dark-mode #menu-toggle {
  color:	#7ab6f2;
}

.icon {
  display: inline-block;
}

.icon.close {
  display: none;
}


h2 {
  font-family: Josefin Sans;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px 0;
  color:#3EAFEA;
}

h2.alt {
  font-family: Josefin Sans;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: black;
}

h4 {
  font-family: Josefin Sans;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 16px 0;
  color:#ec4899;
  background-color: #e0f2fe;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
}

h4.alternate {
 background-color: #FBCFE8;
}

.dark-mode #nav-menu {
  background-color: #121217;
}


.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;}

.tech-tag {
 color:#d33682;
  background-color: #e0f2fe;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  transition: background-color 0.3s ease, color 0.3s ease;
        }

.dark-mode .tech-tag {
color: #f9a8d4;              /* soft light pink */
  background-color: #1e293b;   
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  transition: background-color 0.3s ease, color 0.3s ease;
        }


.tech-tag:hover {
 background-color:#3EAFEA;
 color: white;
 
}


.dark-mode .tech-tag:hover {
 background-color: 	#93c5fd;


 color: white;
 
}
.tech-tag-alt {
  background-color: #FBCFE8;
  color:#d33682;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  transition: background-color 0.3s ease, color 0.3s ease;
        }

.tech-tag-alt:hover {
 background-color:#ec4899;
 color: white;
  
 
}

.dark-mode .tech-tag-alt {
  background-color: #3b1f33; /* deep plum / muted berry */
  color: #f9a8d4;  
}

.dark-mode .tech-tag-alt:hover {
 background-color:#f9a8d4;
 color: #1e1e1e;
  
 
}

.dark-mode button {
   background-color:   #60a5fa;
   color: #1e1e1e;
}



.dark-mode button:hover{
  box-shadow: 0 0 10px #ff9ccf88, 0 0 20px #8ab4f888;
  transform: translateY(-2px);
}
.tech-tag-purple {
  background-color: #DDD6FE;
  color:#8B5CF6;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  transition: background-color 0.3s ease, color 0.3s ease;
        }

.tech-tag-green {
            background-color: #e0f2fe;
            color: #14b8a6;
            padding: 0.5rem 0.75rem;
            border-radius: 1rem;
            font-size: 0.875rem;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

.tech-tag-green:hover{
            background-color:#14b8a6;
            color: white;
        }

  .tech-tag-purple:hover {
  background-color:#8B5CF6;
  color:white;
        }


.tech-tag-peach{
            background-color: #FECDD3;
            color: #FB7185;
            padding: 0.5rem 0.75rem;
            border-radius: 1rem;
            font-size: 0.875rem;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

.tech-tag-peach:hover{
            background-color:#FB7185;
            color: white;
        }
a {
  color:#3EAFEA;
  text-decoration:none;
  margin: 0 0 0 32px;
  transition: color 0.3s;

}

a:hover, a.selected {
  color: #ec4899;
 
 
}



section {
  margin: 80px 0 80px 0;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 32px;
  grid-auto-flow: dense;
  padding:2rem;


}

section.heading {
  grid-column: 2/ span 10;
  text-align: center;
}

section h1 {
  grid-column: 2/ span 10;
  text-align: center;
}

section h2.alt {
  grid-column: 2/ span 10;
  text-align: center;
}
section.project {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        background-color:aliceblue;
      

}

.dark-mode section.project {
  background: rgba(34, 35, 43, 0.6); /* transparent dark */
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  color: #fff;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glow on hover */
.dark-mode section.project:hover {
  box-shadow: 0 0 15px #ff9ccf88, 0 0 30px #8ab4f888;
  transform: translateY(-4px);
}

section.project:hover{
    transform: translateY(-0.5rem);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}
section.project-alt {
  background-color: #FCE7F3;
}
section.project div.artwork {
  grid-column: 1/ span 8;
  max-height: 640px;
  text-align: center;
}

section.project div.description {
grid-column: 9/ span 4;
}


section.project img {
  max-height: 640px;
}

section.project-alt div.artwork {
  grid-column: 5/ span 8;
  max-height: 640px;
  text-align: center;
}

section.project-alt div.description {
  grid-column: 1/ span 4;
}

section.about div.photo {
  grid-column: 1/ span 6;
}

section.about div.description {
  grid-column: 7 / span 6;
}

section.about h1 {
  margin: 0 0 0 0;
  text-align: left;
}

section.about p {
  margin: 16px 0 16px 0;
}

section.contact div.form {
  grid-column: 4 / span 6;
}



section.automatic img {
  grid-column:  4 / span 6;
}

section.slideshow {
      grid-column: 4 / span 6;
  display: flex;
  align-items: center;
  justify-content: center;
 
}

section.slideshow div {
  grid-column: 4 / span 6;
  width: 350px;
}

div.slides {
      grid-column: 4 / span 6;
   height: 450px;
  position:  relative;

}

div.slides img {
  
    grid-column: 4 / span 6;
  position:  absolute;
  top:  0;
  left: 0;
  transition: transform 0.5s, box-shadow 0.5s;
 
}

div.slides img:first-child {
  grid-column: 4 / span 6;
  z-index: 1;

}



footer {
  display: flex;
  align-items: center;
  justify-content: center;
   flex-direction: column;
}

footer a {
  margin: 0 16px 0 16px;
  
}

.social-icons {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-top: 1rem;
        }
.social-icons a {
            color:#3eafea;
            font-size: 1.5rem;
            transition: color 0.3s ease;
        }
.social-icons a:hover {
            color: #f472b6;
        }
.copyright {
  	font-size: 12px;
  text-align: center;
}

.dark-mode .social-icons a {
  color: #93c5fd;
}

.dark-mode .social-icons a:hover {
            color:  #f9a8d4;
        }
input, textarea {
  width: 100%;
  background-color: rgb(247, 247, 247);
  border: 2px solid #3eafea;
  color: rgb(0, 0, 0);
  padding: 8px 16px 8px 16px;
 border-radius:25px;
}

dark-mode, input, textarea {
  width: 100%;
  background-color: rgb(5, 5, 5);
  border: 2px solid #60a5fa;
  color: rgb(0, 0, 0);
  padding: 8px 16px 8px 16px;
 border-radius:25px;
}

label {
  display: block;
  margin: 16px 0 16px 0;
}

textarea {
  height: 320px;
}

button {
  background-color: #3EAFEA;
  color:  white;
  border: none;
  font-size: 24px;
  font-family: "Josefin Sans";
  padding: 8px 16px 8px 16px;
  cursor:pointer;

}

button:hover {
  box-shadow:  0px 3px 15px rgba(0,0,0 ,0.2);
}


input:focus, textarea:focus {
  border: 2px solid #f472b6;
}

dark.mode a {
  color: #f9a8d4;
}

#sparkles-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none; /* Allows clicks to go through */
            z-index: 1000; /* Make sure sparkles are on top */
        }
        .sparkle {
            position: absolute;
            background-color: #3EAFEA; /* Blue color */
            width: 6px;
            height: 6px;
            border-radius: 50%;
            opacity: 0;
            animation: twinkle 1.5s infinite;
        }
        @keyframes twinkle {
            0% { opacity: 0; }
            50% { opacity: 0.7; }
            100% { opacity: 0; }
        }
        .dark-mode .sparkle {
          background-color: #93c5fd;

        }

  * Custom Scrollbar */
        /* Custom Scrollbar Styles */
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background-color: #f7fafc;
            border-radius: 0.5rem;
        }

        ::-webkit-scrollbar-thumb {
            background-color: #f472b6;
            border-radius: 0.5rem;
            border: 3px solid #f7fafc;
        }

        ::-webkit-scrollbar-thumb:hover {
            background-color: #ec4899;
        }

        /* For Firefox */
        * {
            scrollbar-width: thin;
            scrollbar-color: #f472b6 #f7fafc;
        }

        /* For IE/Edge */
        * {
            -ms-overflow-style: -ms-autohiding-scrollbar;
        }
        * {
            scrollbar-width: thin;
            scrollbar-color: #f472b6 #f7fafc;
        }
        * {
            -ms-overflow-style: -ms-autohiding-scrollbar;
        }
    
         

@media (max-width:1248px) {
  body {
    width: auto;
    margin: 80px 64px 48px 64px;
  }
  
  h1,#typerwriter, h2.alt, nav,footer {
    font-size: 24px;
  }
}

@media (max-width:1248px) {
  body {
    width: auto;
    margin: 80px 64px 48px 64px;
  }
  
  h1, #typewriter, nav,footer {
    font-size: 24px;
  }
}

@media (max-width: 920px){
  header {
    flex-direction: column;
  }
  
  nav {
      color: #39a1d8;
    margin: 16px 0 0 0;
  }
  
  header img {
    max-width: 300px;
  }
  header a {
   margin: 0 16px 0 16px;
  }
  
@media (max-width: 660px){
  nav a {
    8px 0 0 0;
  }
  section {
    grid-template-columns: repeat( 4, 1fr);
    gap: 24px 24px;
    margin: 64px 0 64px 0;
  }
  section h1, 
  section.heading,
  section.heading div.typewriter-container,
  section h2.alt,
  section.project div.artwork, 
  section.project div.description,
  section.about div.photo,
  section.about div.description,
  section.contact div.form,
  section.automatic img,
  div.slides,
  div.slides img,
  div.slides img:first-child 
  {
    grid-column: 1/span 4;
  }
}
@media (max-width: 500px) {
  
  body{
    margin: 48px 32px 32px 32px;
  }
  
  header img {
    width: 100%;
  }
  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

div.cursors div {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  background-color: var(--link-color);
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #ffafcc;
    background-color: #ffc6ff;
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1500;
    transition: transform 0.1s ease;
}


/* Mobile styles */
@media (max-width: 768px) {
  #menu-toggle {
    display: block;
    color:#39a1d8;
  }

  nav {
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    padding: 1rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  }

  nav.active {
    max-height: 300px;
    opacity: 1;
    pointer-events: auto;
  }

  /* Swap icons */
  #menu-toggle.active .hamburger {
    display: none;
  }

  #menu-toggle.active .close {
    display: inline-block;
  }
}



