/* --- RESET & BASE --- */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Poppins', sans-serif; line-height:1.6; background:#f4f4f4; color:#333; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }

/* --- HEADER --- */
header { position:fixed; top:0; width:100%; background:rgba(255,255,255,0.95); backdrop-filter:blur(10px); z-index:1000; transition:0.3s; display:flex; justify-content:space-between; align-items:center; padding:20px 40px; }
header.scrolled { box-shadow:0 4px 15px rgba(0,0,0,0.1); }
header .logo { font-weight:700; font-size:1.8rem; color:#3498db; }
nav ul { display:flex; gap:30px; }
nav a { font-weight:500; transition:0.3s; }
nav a:hover { color:#2980b9; }

/* Hamburger Mobile */
.hamburger { display:none; font-size:1.5rem; cursor:pointer; }
@media(max-width:768px){
  nav ul { position:fixed; top:0; right:-100%; height:100vh; width:60%; background:white; flex-direction:column; align-items:center; justify-content:center; gap:30px; transition:0.3s; padding:0; }
  nav ul.active { right:0; }
  .hamburger { display:block; color:#3498db; }
}

/* --- HERO --- */
.hero { height:100vh; display:flex; align-items:center; justify-content:center; flex-direction:column; text-align:center; background:linear-gradient(135deg,#667eea,#764ba2); color:white; padding:0 20px; }
.hero h2 { font-size:2.8rem; margin-bottom:15px; animation:fadeInUp 1s ease forwards; }
.hero p { font-size:1.2rem; margin-bottom:30px; animation:fadeInUp 1.2s ease forwards; }
.btn-primary { padding:15px 35px; background:#3498db; border-radius:50px; color:white; font-weight:600; transition:0.3s; box-shadow:0 4px 15px rgba(0,0,0,0.2); }
.btn-primary:hover { background:#2980b9; transform:translateY(-3px); }

/* --- SECTIONS --- */
section { padding:100px 20px 60px; opacity:0; transform:translateY(50px); transition:0.6s ease; }
section.visible { opacity:1; transform:translateY(0); }
h3 { font-size:2rem; text-align:center; margin-bottom:50px; color:#2c3e50; }

/* --- SKILLS --- */
.skills-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:20px; }
.skill-item { background:white; padding:20px; border-radius:10px; text-align:center; box-shadow:0 4px 10px rgba(0,0,0,0.1); transition:0.3s; }
.skill-item:hover { transform:translateY(-5px); box-shadow:0 8px 20px rgba(0,0,0,0.15); }
.skill-item i { font-size:2.5rem; color:#3498db; margin-bottom:10px; }
.skill-item p { margin-top:10px; font-weight:600; }

/* --- PROJECTS --- */
.section-bg { background:#f9f9f9; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.project-card { position: relative; border-radius: 15px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.15); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.project-card:hover { transform: scale(1.03); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.project-card img.project-image { width: 100%; height: 300px; object-fit: cover; display: block; }
.project-info { padding: 20px; background: white; }
.project-info h4 { font-size: 1.5rem; margin-bottom: 10px; color: #2c3e50; display:flex; align-items:center; gap:10px; }
.project-info ul { margin-top: 10px; }
.project-info ul li { margin-bottom: 8px; }

/* --- PROFILE IMAGE --- */
.profile-wrapper { width: 250px; height: 250px; border-radius: 50%; overflow: hidden; border: 5px solid white; box-shadow: 0 10px 25px rgba(0,0,0,0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; margin: 0 auto; }
.profile-wrapper:hover { transform: scale(1.05); box-shadow: 0 15px 35px rgba(0,0,0,0.4); }
.profile-image { width: 100%; height: 180%; object-fit: cover; display: block; }

/* Hero container */
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding: 50px 0; }
.hero-left { flex: 1; color: white; text-align: left; }
.hero-left h2 { font-size: 2.5rem; margin-bottom: 20px; }
.hero-left p { font-size: 1.2rem; margin-bottom: 30px; }

/* Responsive */
@media (max-width: 768px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-left h2 { font-size: 2rem; }
    .profile-wrapper { width: 200px; height: 200px; margin-top: 20px; }
    .projects-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* --- CONTACT --- */
.contact-icons { margin-top:30px; }
.contact-icons a { margin: 0 10px; font-size:1.8rem; color:#3498db; transition:0.3s; }
.contact-icons a:hover { color:#2980b9; }

.modal {
  display: none; 
  position: fixed; 
  z-index: 2000; 
  padding-top: 60px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.9); 
}
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #fff;
  padding: 10px 0;
}
.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.modal-close:hover {
  color: #bbb;
}

/* --- FOOTER --- */
footer { background:#2c3e50; color:white; text-align:center; padding:25px 20px; }

/* --- ANIMATIONS --- */
@keyframes fadeInUp { from {opacity:0; transform:translateY(30px);} to{opacity:1; transform:translateY(0);} }