/* ==========================
   Breathtaking Tech Portfolio
   ========================== */

/* Reset and base setup */
body, html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: #f2f2f2;
  font-family: 'Roboto', Arial, sans-serif;
  background: #191825;
  scroll-behavior: smooth;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* Animated Gradient & Particles */
.animated-bg {
  position: fixed;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(115deg, #232946 10%, #7f53ac 40%, #647dee 60%, #fe8c00 100%);
  background-size: 250% 250%;
  animation: gradientMove 12s ease-in-out infinite;
  filter: blur(48px) brightness(0.8) saturate(1.25);
  opacity: 0.93;
  top: 0; left: 0;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}
#tech-bg {
  position: fixed;
  z-index: 1;
  top: 0; left: 0;
  pointer-events: none;
}

/* Glassmorphism Card */
.glass {
  background: rgba(32, 32, 54, 0.85);
  border-radius: 30px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.29), 0 1.5px 8px 0 rgba(100,125,255,0.09);
  backdrop-filter: blur(12px) saturate(1.7);
  -webkit-backdrop-filter: blur(12px) saturate(1.7);
  border: 2px solid rgba(255,255,255,0.15);
  margin: 2.5rem auto;
  padding: 2.7rem 2.2rem 2.2rem 2.2rem;
  max-width: 750px;
  position: relative;
  z-index: 4;
  transition: box-shadow 0.4s, border-color 0.3s;
  animation: popin 1.3s cubic-bezier(.17,.67,.83,.67);
}
.glass:hover {
  box-shadow: 0 12px 48px 0 rgba(255, 140, 0, 0.25), 0 1.5px 16px 0 rgba(100,125,255,0.13);
  border-color: #fe8c00cc;
}
@keyframes popin {
  0% {transform: scale(0.98) translateY(40px); opacity: 0;}
  100% {transform: scale(1) translateY(0); opacity: 1;}
}

/* Navigation */
nav {
  width: 100%;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  background: rgba(19, 18, 37, 0.82);
  backdrop-filter: blur(20px);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  box-sizing: border-box;
  border-bottom: 1.5px solid rgba(255,255,255,0.08);
  user-select: none;
  box-shadow: 0 2px 12px 0 rgba(34,22,80,0.10);
}
.logo-glow {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #eebbc3;
  letter-spacing: 2.5px;
  text-shadow: 0 5px 32px #fe8c0056, 0 2px 4px #19182536;
  position: relative;
  display: flex;
  align-items: center;
}
.pulse-dot {
  display: inline-block;
  width: 0.7em; height: 0.7em;
  border-radius: 50%;
  background: #fe8c00;
  margin-left: 0.5em;
  box-shadow: 0 0 12px #fe8c00cc, 0 0 2px #eebbc3;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% {box-shadow: 0 0 7px #fe8c00cc, 0 0 2px #eebbc3;}
  50% {box-shadow: 0 0 22px #fe8c00cc, 0 0 7px #eebbc3;}
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2.8vw;
  margin: 0; padding: 0;
}
nav ul li a {
  color: #f2f2f2;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.14rem;
  position: relative;
  transition: color 0.22s;
  padding: 0.7em 0.8em;
  border-radius: 22px;
  display: flex; align-items: center;
  gap: 0.5em;
}
nav ul li a::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #eebbc3 40%, #fe8c00 100%);
  border-radius: 3px;
  transition: width 0.29s;
  position: absolute;
  bottom: 3px;
  left: 10%;
}
nav ul li a:hover, nav ul li a:focus {
  color: #eebbc3;
  background: rgba(255,255,255,0.04);
}
nav ul li a:hover::after, nav ul li a:focus::after {
  width: 80%;
}

/* Header Section */
.main-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 75vh;
  padding-top: 108px;
  z-index: 4;
  position: relative;
  animation: popin 1.7s cubic-bezier(.17,.67,.83,.67);
}
.intro {
  text-align: center;
  z-index: 3;
  max-width: 680px;
  margin: auto;
  padding: 0 1rem;
  position: relative;
}
.avatar-glow {
  margin: 0 auto 1.6rem auto;
  background: linear-gradient(120deg, #eebbc3 0%, #fe8c00 100%);
  border-radius: 50%;
  padding: 0.3em;
  box-shadow: 0 0 32px #fe8c00aa, 0 0 5px #eebbc3bb;
  width: 104px; height: 104px;
  display: flex; align-items: center; justify-content: center;
}
.avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  box-shadow: 0 3px 13px #eebbc366, 0 3px 13px #fe8c0050;
  background: #232946;
}
.intro h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 1.2px;
}
.intro h1 span {
  color: #eebbc3;
  text-shadow: 0 2px 16px #fe8c00cc;
}
.intro h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #fe8c00;
  margin-bottom: 1.1rem;
  letter-spacing: 0.03em;
}
.intro p {
  color: #e0e0e0;
  font-size: 1.17rem;
  margin-bottom: 2rem;
  margin-top: 0.7rem;
}
.intro-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2em;
  margin-top: 1.8em;
  flex-wrap: wrap;
}
.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, #eebbc3 0%, #fe8c00 100%);
  color: #232946;
  padding: 0.95rem 2.3rem;
  font-size: 1.24rem;
  font-weight: bold;
  border-radius: 32px;
  box-shadow: 0 2px 24px #fe8c00bb;
  text-decoration: none;
  margin-top: 0.4rem;
  transition: background 0.21s, color 0.21s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.cta-btn:hover {
  background: linear-gradient(90deg, #fe8c00 10%, #eebbc3 90%);
  color: #191825;
  transform: translateY(-3px) scale(1.06);
}
.cta-btn.secondary {
  background: linear-gradient(90deg, #647dee 0%, #eebbc3 100%);
  color: #fff;
  box-shadow: 0 2px 14px #647dee88;
}
.cta-btn.secondary:hover {
  background: linear-gradient(90deg, #eebbc3 10%, #647dee 90%);
  color: #232946;
}

/* Typewriter effect */
.typewriter {
  font-family: 'Montserrat', monospace;
  font-size: 1.19rem;
  color: #eebbc3;
  font-weight: 600;
  min-height: 1.45em;
  margin: 0.3em auto 0.2em auto;
  letter-spacing: 0.06em;
}
.blinker {
  animation: blinker 1.1s infinite;
  color: #fe8c00;
}
@keyframes blinker {
  0% { opacity: 1; }
  49% { opacity: 1;}
  50% { opacity: 0;}
  100% { opacity: 1;}
}

/* Section Headings */
section h2 {
  font-family: 'Montserrat', sans-serif;
  color: #eebbc3;
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px #7f53ac55;
  letter-spacing: 1.2px;
}
section h2 i {
  color: #fe8c00;
  margin-right: 10px;
}

/* About Section Extras */
.about-extra {
  display: flex;
  gap: 2.2em;
  justify-content: center;
  margin-top: 1.3em;
  flex-wrap: wrap;
}
.about-extra div {
  background: rgba(255,255,255,0.07);
  border-radius: 17px;
  padding: 1.1em 1.5em;
  margin: 0.5em 0;
  box-shadow: 0 1px 8px #23294633;
  min-width: 160px;
}
.about-extra h3 {
  font-size: 1.12rem;
  color: #fe8c00;
  margin: 0 0 0.3em 0;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.skill-card {
  background: rgba(255,255,255,0.11);
  border: 2px solid rgba(255,255,255,0.10);
  border-radius: 17px;
  padding: 1.14rem 0.7rem;
  text-align: center;
  font-size: 1.14rem;
  color: #fff;
  font-weight: 550;
  box-shadow: 0 1.5px 8px #fe8c0026;
  transition: transform 0.17s, box-shadow 0.18s, border-color 0.16s;
  cursor: pointer;
  backdrop-filter: blur(3px);
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  line-height: 1.5;
}
.skill-card i {
  font-size: 1.7em;
  margin-bottom: 0.27em;
  display: block;
  color: #fe8c00;
  transition: color 0.22s;
}
.skill-card.highlight {
  border: 2.5px solid #eebbc355;
  background: linear-gradient(80deg, #eebbc324 60%, #fe8c0015 100%);
  color: #fe8c00;
}
.skill-card:hover {
  transform: translateY(-7px) scale(1.07);
  box-shadow: 0 14px 38px #fe8c00aa, 0 1.5px 6px #647dee66;
  border-color: #fe8c00;
}
.skill-card:hover i, .skill-card:focus i {
  color: #eebbc3;
}

/* Project Cards */
.featured-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5vw;
  justify-content: center;
}
.project-card {
  background: rgba(255,255,255,0.09);
  border: 2.5px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 1.6rem 1.1rem 1.1rem 1.1rem;
  margin-bottom: 1.7rem;
  box-shadow: 0 1.5px 10px #7f53ac22;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.15s;
  backdrop-filter: blur(2.5px);
  min-width: 260px;
  max-width: 340px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.project-card:hover {
  box-shadow: 0 10px 38px #647dee6a, 0 1.5px 6px #fe8c0099;
  transform: translateY(-8px) scale(1.04) rotate(-1deg);
  border-color: #fe8c00bb;
}
.project-img {
  width: 100%;
  max-width: 310px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.8em;
  box-shadow: 0 2px 18px #eebbc344;
  background: #232946;
}
.project-card h3 {
  color: #fe8c00;
  margin-bottom: 0.45em;
  font-size: 1.19em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  display: flex; align-items: center; gap: 0.45em;
}
.project-card .tag {
  background: linear-gradient(90deg,#fe8c00,#eebbc3);
  color: #232946;
  border-radius: 7px;
  padding: 0.14em 0.6em;
  font-size: 0.84em;
  margin-left: 0.5em;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.project-card a, .btn-small {
  display: inline-block;
  color: #eebbc3;
  background: rgba(34,25,70,0.13);
  border-radius: 8px;
  padding: 0.32em 0.95em;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98em;
  margin-top: 0.5em;
  transition: background 0.17s, color 0.15s;
  border: none;
}
.project-card a:hover, .btn-small:hover {
  background: linear-gradient(90deg,#fe8c00 10%,#eebbc3 90%);
  color: #232946;
}

.project-magnetic {
  border: 2.5px solid #fe8c00cc;
  background: linear-gradient(100deg, #191825 40%, #eebbc327 100%);
}

/* Contact Section */
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em 2em;
  justify-content: center;
  margin-top: 1.1em;
}
.contact-card {
  background: rgba(255,255,255,0.10);
  border-radius: 13px;
  box-shadow: 0 1px 7px #23294622;
  padding: 1em 1.3em;
  font-size: 1.06em;
  color: #fff;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.12em;
  min-width: 180px;
  max-width: 260px;
  margin-bottom: 0.5em;
  border-left: 3.5px solid #fe8c00;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-card i {
  color: #fe8c00;
  margin-bottom: 0.15em;
  font-size: 1.2em;
}
.contact-card a {
  color: #eebbc3;
  word-break: break-all;
  font-weight: 600;
  transition: color 0.16s;
  text-decoration: none;
}
.contact-card a:hover {
  color: #fe8c00;
}
.contact-card:hover {
  border-color: #eebbc3;
  box-shadow: 0 0 18px #fe8c0044;
}

/* Animations */
.animated {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
.animated.visible {
  opacity: 1;
  transform: none;
}
.fadeInDown {
  transform: translateY(-36px);
}
.fadeInLeft {
  transform: translateX(-36px);
}
.fadeInRight {
  transform: translateX(36px);
}

/* Footer */
footer {
  text-align: center;
  padding: 2.2rem 0 1.2rem 0;
  color: #eebbc3;
  font-size: 1.13rem;
  z-index: 3;
  background: transparent;
  position: relative;
}
footer a {
  color: #fe8c00;
  text-decoration: underline;
  transition: color 0.13s;
}
footer a:hover {
  color: #eebbc3;
}

/* Responsive Design */
@media (max-width: 1100px) {
  .main-header { min-height: 60vh; padding-top: 90px; }
  .glass { padding: 2rem 0.7rem; }
  .skills-grid { gap: 0.8rem; }
  .featured-projects { gap: 1.2vw; }
}

@media (max-width: 800px) {
  .main-header { min-height: 47vh; padding-top: 80px; }
  .intro h1 { font-size: 2.15rem; }
  .intro h2 { font-size: 1.1rem; }
  .glass { margin: 1.2rem 0.1rem; padding: 1.05rem 0.3rem; }
  .featured-projects { flex-direction: column; align-items: center; gap: 0.2em; }
  .about-extra { flex-direction: column; gap: 1.1em;}
  nav {padding: 0 1.2vw;}
}

@media (max-width: 550px) {
  nav { flex-direction: column; height: auto; padding: 0.5rem 1vw;}
  nav .logo-glow { font-size: 1.25rem; margin-bottom: 0.5rem;}
  nav ul { gap: 0.9em; }
  .avatar-glow, .avatar { width: 72px; height: 72px;}
  .intro h1 { font-size: 1.45rem; }
  .glass { max-width: 99vw; }
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 0.42rem; }
  .featured-projects { gap: 0.8em;}
  .project-card { min-width: 90vw; max-width: 99vw;}
}

/* SCROLLBAR */
::-webkit-scrollbar {width: 8px; background: #232946;}
::-webkit-scrollbar-thumb {background: #647dee; border-radius: 4px;}
::-webkit-scrollbar-thumb:hover {background: #fe8c00;}
/* ...[keep all your beautiful styles above, then add/replace these for improved layout]... */

/* Add spacing between stacked sections */
main > section {
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}

/* About dual panel layout */
.about-double {
  display: flex;
  gap: 3vw;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 2.7rem 1.5rem 2.5rem 1.5rem;
  max-width: 1100px;
}
.about-panel {
  flex: 1 1 320px;
  margin: 0 1vw;
  background: rgba(255,255,255,0.04);
  border-radius: 22px;
  padding: 2.2rem 1.2rem 1.3rem 1.2rem;
  box-shadow: 0 1.5px 8px #647dee22;
  min-width: 280px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.about-list {
  list-style: none;
  padding: 0.5em 0 0 0;
  margin: 0;
  font-size: 1.05em;
}
.about-list li {
  padding: 0.18em 0 0.18em 0;
  color: #eebbc3;
}

/* About section heading tweaks */
.about-panel h2 {
  font-size: 1.5em;
  letter-spacing: 0.02em;
  margin-bottom: 0.8em;
  color: #fe8c00;
}

/* Grid layout for projects */
.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
  justify-items: center;
  align-items: stretch;
  margin-top: 1.8em;
}

/* Subtle note in header */
.subtle {
  color: #b5b5b5;
  font-size: 1rem;
  font-style: italic;
  margin-top: 0.5em;
  display: block;
}

/* Alias in nav and header */
.logo-glow .alias {
  font-size: 1rem;
  color: #647dee;
  margin-left: 0.6em;
  letter-spacing: 0.01em;
  font-weight: 400;
  font-family: 'Roboto', Arial, sans-serif;
}
.aka {
  font-size: 1rem;
  color: #647dee;
  font-weight: 400;
  margin-left: 0.5em;
}

/* Responsive tweaks for double about panel and project grid */
@media (max-width: 1100px) {
  .about-double {
    flex-direction: column;
    gap: 2.2em;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    max-width: 99vw;
  }
  .about-panel {max-width: 99vw;}
  .featured-projects-grid { grid-template-columns: 1fr; gap: 1.2em;}
}