*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:Inter, sans-serif;
  background:#f6f7fb;
  color:#111;
}

/* HEADER */

header{
  position:fixed;
  width:100%;
  padding:20px 80px;
  display:flex;
  justify-content:space-between;
  backdrop-filter:blur(20px);
  background:rgba(255,255,255,0.9);
  z-index:10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo{
  height: 120px;
  width: auto;
  cursor: pointer;
}

nav a{
  margin-left:30px;
  cursor:pointer;
  color:#555;
  font-weight:600;
  transition:.3s;
}

nav a:hover{
  color:#667eea;
}

/* HERO */

.home{
  height:100vh;
  position:relative;
}

#bg3d{
  position:absolute;
  width:100%;
  height:100%;
}

.home-inner{
  position:relative;
  z-index:2;
  top:50%;
  transform:translateY(-50%);
  padding-left:12%;
  max-width:720px;
}

.home h1{
  font-size:64px;
  font-weight:800;
  line-height:1.05;
  margin-bottom:26px;
}

.home p{
  font-size:20px;
  color:#666;
  margin-bottom:32px;
}

/* BUTTON */

button{
  padding:18px 34px;
  border-radius:16px;
  border:none;
  font-weight:600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color:white;
  cursor:pointer;
  transition:.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

button:hover{
  transform:translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* SECTIONS */

.main-section{
  padding:120px 80px;
  max-width:1200px;
  margin:0 auto;
}

.portfolio-section{
  background:#eef1f6;
}

h2{
  font-size:42px;
  margin-bottom:60px;
  text-align:center;
}

/* PORTFOLIO */

.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:40px;
}

.portfolio-item{
  background:white;
  padding:30px;
  border-radius:20px;
  box-shadow:0 10px 40px rgba(0,0,0,0.1);
  transition:.3s;
  text-align:center;
}

.portfolio-item:hover{
  transform:translateY(-10px);
  box-shadow:0 20px 60px rgba(0,0,0,0.15);
}

.portfolio-preview{
  height:180px;
  border-radius:16px;
  background:linear-gradient(135deg,#667eea,#764ba2);
  margin-bottom:20px;
  transition:.3s;
}

.portfolio-item:hover .portfolio-preview{
  background:linear-gradient(135deg,#764ba2,#667eea);
}

.portfolio-item h4{
  margin-bottom:10px;
  color:#333;
}

.portfolio-item p{
  color:#666;
  margin-bottom:20px;
}

.portfolio-link{
  display:inline-block;
  color:#667eea;
  text-decoration:none;
  font-weight:600;
  transition:.3s;
}

.portfolio-link:hover{
  color:#764ba2;
}

/* SKILLS */

.skills-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:40px;
}

.skill-card{
  background:white;
  padding:40px 30px;
  border-radius:20px;
  box-shadow:0 10px 40px rgba(0,0,0,0.1);
  text-align:center;
  transition:.3s;
}

.skill-card:hover{
  transform:translateY(-10px);
  box-shadow:0 20px 60px rgba(0,0,0,0.15);
}

.skill-card i{
  font-size:48px;
  color:#667eea;
  margin-bottom:20px;
}

.skill-card h3{
  margin-bottom:10px;
  color:#333;
}

.skill-card p{
  color:#666;
  font-size:14px;
}

/* CONTACT */

.contact-form{
  max-width:600px;
  margin:0 auto;
  padding:40px;
  background:white;
  border-radius:20px;
  box-shadow:0 10px 40px rgba(0,0,0,0.1);
  display:flex;
  flex-direction:column;
  gap:20px;
}

.contact-form .form-field{
  position: relative;
  display:flex;
  flex-direction:column;
}

.contact-form input,
.contact-form textarea{
  padding:16px 16px 16px 50px;
  border-radius:12px;
  border:1px solid #ddd;
  background:#fafafa;
  font-size:16px;
  transition:.3s;
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  border-color:#667eea;
  background:#fff;
}

.contact-form textarea{
  resize:none;
  min-height:120px;
}

.form-field i{
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color:#667eea;
  font-size:18px;
  pointer-events: none;
  transition:.3s;
}

.form-field input:focus + i,
.form-field textarea:focus + i{
  color:#764ba2;
}

.contact-form .form-checkbox{
  flex-direction:row;
  align-items:flex-start;
  gap:10px;
  font-size:14px;
}

.contact-form .form-checkbox input{
  margin-top:4px;
}

.contact-form button{
  padding:16px;
  border-radius:14px;
  border:none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color:white;
  font-weight:600;
  cursor:pointer;
  transition:.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.contact-form button:hover{
  transform:translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

#formMsg{
  font-size:14px;
  margin-top:10px;
  text-align:center;
}

/* FOOTER */

footer{
  text-align:center;
  padding:60px 80px;
  color:#777;
  background:#eef1f6;
}

/* REVEAL */

.reveal{
  opacity:0;
  transform:translateY(50px);
  transition:1s;
}

.reveal.visible{
  opacity:1;
  transform:none;
}

/* RESPONSIVE */

@media (max-width:768px){
  .hero-inner{
    padding:0 40px;
  }
  
  .hero h1{
    font-size:48px;
  }
  
  .main-section{
    padding:80px 40px;
  }
  
  header{
    padding:20px 40px;
  }
  
  nav a{
    margin-left:20px;
  }
}
