:root{
  --bg-1: #04091a;
  --bg-2: #06102a;
  --accent: #39a6ff;
  --glass: rgba(255,255,255,0.04);
  --glass-2: rgba(20,40,70,0.16);
  --radius: 18px;
  --blur: 12px;
  --text: #e6f2ff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; font-family:'Poppins',system-ui,Segoe UI,Roboto,Helvetica,Arial;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(20,40,90,0.35), transparent), linear-gradient(180deg,var(--bg-1),var(--bg-2));
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ensure main content is above background effects */
main{position:relative;z-index:10}


/* Floating small squares animation (like your attachment) */
.bg-squares{position:fixed;inset:0;pointer-events:none;z-index:1;overflow:visible}
.bg-squares .sq{position:absolute;bottom:-10vh;background:rgba(255, 255, 255, 0);border:1px solid rgba(0, 204, 255, 0.685);backdrop-filter:blur(4px);mix-blend-mode:overlay;opacity:0;transform-origin:center;border-radius:6px}

@keyframes sqRise {
  0%{transform:translateY(0) rotate(0deg) scale(1);opacity:0}
  10%{opacity:0.6}
  50%{opacity:0.9}
  90%{opacity:0.3}
 100%{transform:translateY(-120vh) rotate(720deg) scale(0.9);opacity:0}
}

/* Position, size and timing per square - staggered */
.bg-squares .sq:nth-child(1){left:6%;width:32px;height:32px;animation:sqRise 18s linear infinite;animation-delay:0s}
.bg-squares .sq:nth-child(2){left:18%;width:24px;height:24px;animation:sqRise 20s linear infinite;animation-delay:2s}
.bg-squares .sq:nth-child(3){left:30%;width:36px;height:36px;animation:sqRise 22s linear infinite;animation-delay:4s}
.bg-squares .sq:nth-child(4){left:42%;width:28px;height:28px;animation:sqRise 19s linear infinite;animation-delay:1s}
.bg-squares .sq:nth-child(5){left:54%;width:20px;height:20px;animation:sqRise 24s linear infinite;animation-delay:6s}
.bg-squares .sq:nth-child(6){left:66%;width:30px;height:30px;animation:sqRise 21s linear infinite;animation-delay:3s}
.bg-squares .sq:nth-child(7){left:78%;width:24px;height:24px;animation:sqRise 17s linear infinite;animation-delay:5s}
.bg-squares .sq:nth-child(8){left:86%;width:32px;height:32px;animation:sqRise 23s linear infinite;animation-delay:2.5s}
.bg-squares .sq:nth-child(9){left:12%;width:18px;height:18px;animation:sqRise 19s linear infinite;animation-delay:7s}
.bg-squares .sq:nth-child(10){left:38%;width:22px;height:22px;animation:sqRise 16s linear infinite;animation-delay:4.5s}
.bg-squares .sq:nth-child(11){left:62%;width:18px;height:18px;animation:sqRise 20s linear infinite;animation-delay:8s}
.bg-squares .sq:nth-child(12){left:92%;width:30px;height:30px;animation:sqRise 25s linear infinite;animation-delay:1.2s}
.bg-squares .sq:nth-child(13){left:8%;width:26px;height:26px;animation:sqRise 19s linear infinite;animation-delay:0.5s}
.bg-squares .sq:nth-child(14){left:22%;width:28px;height:28px;animation:sqRise 21s linear infinite;animation-delay:2.8s}
.bg-squares .sq:nth-child(15){left:36%;width:24px;height:24px;animation:sqRise 20s linear infinite;animation-delay:5.5s}
.bg-squares .sq:nth-child(16){left:50%;width:32px;height:32px;animation:sqRise 23s linear infinite;animation-delay:3.2s}
.bg-squares .sq:nth-child(17){left:64%;width:26px;height:26px;animation:sqRise 18s linear infinite;animation-delay:6.8s}
.bg-squares .sq:nth-child(18){left:76%;width:30px;height:30px;animation:sqRise 22s linear infinite;animation-delay:1.5s}
.bg-squares .sq:nth-child(19){left:14%;width:22px;height:22px;animation:sqRise 19s linear infinite;animation-delay:4.2s}
.bg-squares .sq:nth-child(20){left:88%;width:28px;height:28px;animation:sqRise 21s linear infinite;animation-delay:3.8s}

/* Slight rotation offset for visual variety */
.bg-squares .sq:nth-child(odd){border-radius:4px}

/* reduce on small screens */
@media (max-width:720px){
  .bg-squares{display:block}
  .bg-squares .sq{opacity:0.14}
  .bg-squares .sq:nth-child(n+9){display:none}
}


/* Navbar */
.nav-wrap{position:fixed;left:0;right:0;top:16px;z-index:40;display:flex;justify-content:center}
.navbar{width:92%;max-width:1100px;display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-radius:14px;background:rgba(10,20,40,0.18);backdrop-filter:blur(var(--blur));box-shadow:0 4px 30px rgba(0,0,0,0.5);border:1px solid rgba(57,166,255,0.08)}
.brand{font-weight:700;color:var(--accent);text-decoration:none;font-size:1.05rem}
.hamburger{display:none;flex-direction:column;gap:6px;background:transparent;border:none;cursor:pointer;padding:8px;z-index:50}
.hamburger span{width:24px;height:2px;background:var(--accent);border-radius:2px;transition:all .3s}
.hamburger.active span:nth-child(1){transform:rotate(45deg) translate(10px,10px)}
.hamburger.active span:nth-child(2){opacity:0}
.hamburger.active span:nth-child(3){transform:rotate(-45deg) translate(7px,-7px)}
.nav-links{list-style:none;display:flex;gap:18px;margin:0;padding:0}
.nav-links a{color:var(--text);text-decoration:none;padding:6px 6px;border-radius:8px;position:relative;transition:color .18s}
.nav-links a::after{content:'';position:absolute;left:0;right:0;bottom:-6px;height:2px;border-radius:2px;transform:scaleX(0);transform-origin:left;background:linear-gradient(90deg,transparent,var(--accent));transition:transform .25s,opacity .25s;opacity:0}
.nav-links a:hover{color:var(--accent);text-shadow:0 0 8px rgba(57,166,255,0.14)}
.nav-links a:hover::after{transform:scaleX(1);opacity:1}

/* Hero */
.hero{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:120px 20px 80px}
.hero-inner{width:92%;max-width:600px;display:flex;flex-direction:column;align-items:center;gap:24px;text-align:center}
.hero-left{max-width:720px}
.name{font-size:3.2rem;margin:0 0 6px;font-weight:800;letter-spacing:-1px}
.subtitle{margin:-30px 0 18px;font-weight:600;color:rgba(230,242,255,0.9)}
.tagline{margin:-30px 0 18px;color:rgba(230,242,255,0.72)}
.hero-buttons{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.cta{display:inline-block;padding:12px 20px;background:linear-gradient(90deg,rgba(57,166,255,0.18),rgba(57,166,255,0.06));color:var(--accent);border-radius:12px;text-decoration:none;border:1px solid rgba(57,166,255,0.14);box-shadow:0 6px 22px rgba(57,166,255,0.06);transition:transform .18s,box-shadow .18s}
.cta:hover{transform:translateY(-4px);box-shadow:0 14px 40px rgba(57,166,255,0.12)}
.glass-btn{background:transparent;border:1px solid rgba(57,166,255,0.12);backdrop-filter:blur(8px);box-shadow:0 6px 22px rgba(0,0,0,0.2)}
.glass-btn:hover{background:rgba(20,40,70,0.08);box-shadow:0 14px 40px rgba(57,166,255,0.08)}

.profile-frame{
  width:250px;
  height:250px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px;
  border:1px solid rgba(0, 140, 255, 0.12);
  box-shadow:0 10px 30px rgba(0,0,0,0.6),
  inset 0 0 40px rgba(57,166,255,0.02);
  background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));
  backdrop-filter:blur(8px);
}
.profile-frame img{width:100%;height:auto;border-radius:50%;display:block}

/* Sections */
.section{padding:80px 20px}
.section-title{font-size:1.6rem;margin:0 auto 32px;text-align:center;color:var(--accent);}
.glass{background:var(--glass-2);border-radius:var(--radius);backdrop-filter:blur(var(--blur));border:1px solid rgba(57,166,255,0.06);box-shadow:0 8px 30px rgba(3,8,30,0.6)}

.about-card{padding:28px;max-width:900px;margin:0 auto}
.about-text{margin:0 0 18px;color:rgba(230,242,255,0.88)}
.skills{display:flex;gap:14px;flex-wrap:wrap}
.skill{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;min-width:120px;transition:transform .18s,box-shadow .18s}
.skill img{width:28px;height:28px}
.skill span{color:var(--text);font-weight:600}
.skill:hover{transform:translateY(-6px);box-shadow:0 10px 30px rgba(57,166,255,0.08)}

/* Gallery: masonry using CSS columns */
.gallery-grid{
  columns: 6 300px; /* prefer 6 columns of ~300px on wide screens */
  column-gap: 18px;
  padding: 0;
}
.gallery-item{
  display:inline-block;
  width:100%;
  margin:0 0 18px;
  position:relative;
  overflow:hidden;
  border-radius:14px;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  column-break-inside: avoid;
}
.gallery-item img{width:100%;height:auto;display:block;transition:transform .4s,filter .3s}
.gallery-item .overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;background:linear-gradient(180deg,rgba(0,0,0,0.24),rgba(0,0,0,0.48));transition:opacity .28s}
.gallery-item .overlay span{color:var(--text);font-weight:700;background:linear-gradient(90deg,var(--accent),#7ad8ff);-webkit-background-clip:text;background-clip:text;color:transparent;font-size:1.05rem}
.gallery-item:hover img{transform:scale(1.05);filter:brightness(0.76) blur(0.4px)}
.gallery-item:hover .overlay{opacity:1}

/* hidden items for load more */
.hidden{display:none}

/* Load more button */
.load-more{padding:12px 20px;border-radius:14px;border:1px solid rgba(57,166,255,0.1);color:var(--accent);background:linear-gradient(180deg,rgba(10,20,40,0.24),rgba(20,40,80,0.12));cursor:pointer;transition:transform .18s,box-shadow .18s}
.load-more:hover{transform:translateY(-6px);box-shadow:0 12px 36px rgba(57,166,255,0.08)}

/* reveal animations */
.gallery-item{opacity:0;transform:translateY(18px);transition:transform .6s cubic-bezier(.2,.9,.2,1),opacity .5s}
.gallery-item.in-view{opacity:1;transform:translateY(0)}

/* Contact improvements */
.contact-subtitle{text-align:center;color:rgba(230,242,255,0.72);margin-bottom:28px;max-width:600px;margin-left:auto;margin-right:auto}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px;max-width:1100px;margin:0 auto}
.contact-card{padding:32px;border-radius:18px}
.card-title{font-size:1.2rem;font-weight:700;margin:0 0 20px;color:var(--text)}
.contact-info{display:flex;flex-direction:column;gap:16px}
.info-item{display:flex;gap:12px;align-items:flex-start}
.info-icon{font-size:1.6rem;min-width:36px;text-align:center}
.info-label{margin:0;font-size:0.85rem;color:rgba(230,242,255,0.66);text-transform:uppercase;letter-spacing:0.5px}
.contact-info a{color:var(--accent);text-decoration:none;font-weight:600;transition:text-shadow .18s}
.contact-info a:hover{text-shadow:0 0 8px rgba(57,166,255,0.24)}
.socials-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.social-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px;border-radius:14px;text-decoration:none;color:var(--text);transition:transform .18s,box-shadow .18s}
.social-icon img{width:32px;height:32px}
.social-icon span{font-size:0.8rem;font-weight:600;text-align:center}
.social-icon:hover{transform:translateY(-6px);box-shadow:0 10px 30px rgba(57,166,255,0.12)}
.contact-form{display:flex;flex-direction:column;gap:16px}
.form-group{display:flex;flex-direction:column;gap:6px}
.form-group label{font-size:0.9rem;font-weight:600;color:var(--text)}
.contact-form input,.contact-form textarea{padding:12px 14px;border-radius:10px;border:1px solid rgba(255,255,255,0.06);background:rgba(255,255,255,0.02);color:var(--text);font-family:inherit;font-size:0.9rem;transition:border-color .18s,background .18s}
.contact-form input:focus,.contact-form textarea:focus{outline:none;border-color:rgba(57,166,255,0.24);background:rgba(255,255,255,0.04)}
.char-count{font-size:0.75rem;color:rgba(230,242,255,0.5);text-align:right;margin-top:-4px}
.submit-btn{padding:14px 24px;border-radius:12px;background:linear-gradient(135deg,var(--accent),#0278ff);border:none;color:#041020;font-weight:700;cursor:pointer;transition:transform .18s,box-shadow .18s;font-size:1rem}
.submit-btn:hover{transform:translateY(-4px);box-shadow:0 12px 36px rgba(57,166,255,0.18)}


/* Footer */
.footer{position:relative;padding:18px;margin:40px 20px;border-radius:14px;display:flex;justify-content:space-between;align-items:center}
.top-btn{background:transparent;color:var(--accent);text-decoration:none;padding:8px 12px;border-radius:10px;border:1px solid rgba(57,166,255,0.06)}

/* Responsive */
@media (max-width:1200px){
  .gallery-grid{columns:4 280px; column-gap:18px}
}
@media (max-width:980px){
  .gallery-grid{columns:3 250px; column-gap:16px}
  .contact-grid{grid-template-columns:1fr}
}
@media (max-width:720px){
  .hamburger{display:flex}
  .nav-links{position:absolute;top:60px;right:20px;left:20px;flex-direction:column;gap:0;background:rgba(10,20,40,0.24);backdrop-filter:blur(var(--blur));border-radius:12px;padding:12px;border:1px solid rgba(57,166,255,0.08);max-height:0;overflow:hidden;transition:max-height .3s}
  .nav-links.active{max-height:300px}
  .nav-links li{padding:12px 0}
  .navbar{padding:10px}
  .profile-frame{width:200px;height:200px;margin:0 auto}
  .gallery-grid{columns:2 180px; column-gap:14px}
  .contact-grid{grid-template-columns:1fr}
  .socials-grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:480px){
  .gallery-grid{columns:1 100%; column-gap:12px}
  .socials-grid{grid-template-columns:repeat(2,1fr)}
}
