/* ========================
   Basic Reset
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  min-height: 100vh;
  color: white;
  padding-top: 70px; /* navbar offset */
  background: linear-gradient(-45deg, #020617, #0f172a, #020617, #082f49);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #020617;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  z-index: 1000;
}
nav .logo { font-size: 1.5rem; font-weight: bold; color: #38bdf8; }
nav ul { display: flex; list-style: none; gap: 25px; }
nav ul li a { color: white; text-decoration: none; font-weight: 500; transition: 0.3s; }
nav ul li a:hover { color: #38bdf8; }

/* Hero */
header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}
.profile-img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 4px solid #38bdf8;
  margin-bottom: 20px;
  object-fit: cover;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 0 25px #38bdf8;
}
@keyframes float { 0% { transform: translateY(0);} 50% {transform: translateY(-20px);} 100% {transform: translateY(0);} }
h1 { font-size: 3rem; text-align: center; }
h1 span { color: #38bdf8; }
p { max-width: 600px; margin: 15px auto; opacity: 0.9; }
.btn { text-decoration: none; background: #38bdf8; color: #020617; padding: 12px 28px; border-radius: 25px; font-weight: 600; transition: 0.3s; }
.btn:hover { background: #0ea5e9; transform: scale(1.05); }

/* Sections */
section { padding: 80px 10%; }
.section-title { text-align: center; color: #38bdf8; font-size: 2.2rem; margin-bottom: 40px; }

/* About */
.about-container { display: flex; align-items: center; gap: 40px; max-width: 1000px; margin: auto; }
.about-text { flex: 1; }
.about-img img { width: 280px; border-radius: 20px; box-shadow: 0 0 20px rgba(56,189,248,0.6); }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 25px; }
.skill-box { background: rgba(255,255,255,0.05); padding: 25px; border-radius: 15px; text-align: center; transition: 0.3s; }
.skill-box:hover { transform: translateY(-10px); box-shadow: 0 0 15px #38bdf8; }

/* Projects / Education */
.projects { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 25px; }
.project-card { background: rgba(255,255,255,0.05); padding: 20px; border-radius: 15px; transition: 0.3s; }
.project-card:hover { transform: scale(1.05); box-shadow: 0 0 15px #38bdf8; }
.project-card a { text-decoration: none; color: #38bdf8; font-weight: 500; margin-top: 10px; display:inline-block; }
.project-card a:hover { color: #0ea5e9; }

/* Contact Section */
.contact-section { background: #0f111a; }
.contact-container { display: flex; flex-wrap: wrap; gap: 50px; max-width: 1200px; margin: auto; justify-content: space-between; }
.contact-form { flex:1; min-width: 320px; display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea { background: rgba(255,255,255,0.05); border:1px solid #333; border-radius:10px; padding:15px; color:white; font-size:1rem; transition:0.3s; }
.contact-form input:focus, .contact-form textarea:focus { border-color:#38bdf8; box-shadow:0 0 10px #38bdf8; outline:none; }
.contact-form button { background:#38bdf8; color:#020617; border:none; padding:15px; border-radius:10px; font-weight:600; cursor:pointer; transition:0.3s; }
.contact-form button:hover { background:#0ea5e9; transform: scale(1.05); }

.contact-info { flex:1; min-width:280px; display:flex; flex-direction:column; gap:30px; }
.contact-info-item { display:flex; gap:20px; align-items:flex-start; }
.contact-info-item i { font-size:1.5rem; background:#1f1f1f; padding:15px; border-radius:50%; color:#38bdf8; box-shadow:0 0 10px #38bdf8; min-width:50px; text-align:center; }
.contact-info-item h3 { margin-bottom:5px; font-size:1.2rem; color:#38bdf8; }
.contact-info-item p { color: rgba(255,255,255,0.7); }

/* Footer */
footer { background:#020617; text-align:center; padding:20px; opacity:0.8; }

/* Responsive */
@media(max-width:900px){ .contact-container{ flex-direction: column; gap:40px; } }
@media(max-width:768px){ h1{ font-size:2.2rem;} .profile-img{ width:140px; height:140px;} .about-container{ flex-direction:column; text-align:center;} .about-img img{ width:220px; } }

/* Gradient Animation */
@keyframes gradientBG { 0%{background-position:0% 50%;}50%{background-position:100% 50%;}100%{background-position:0% 50%;} }
