/*reset basic spacing*/
body,h1,h2,h3,h4,p,ul{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    max-width: 100%;
    overflow-x: hidden;
    background: linear-gradient(to bottom, #a3d8ff, #c59bff, #ff8dc7);
    text-align: center;
    font-size: 20px;
    text-transform: capitalize;
    color: rgb(0, 255, 255);
    margin: 0;
    padding: 0;
}

section,header,footer{
  width: 100%;
}    

/* Main CSS */
header{
    height: 1000px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

header h1{
    font-size: 100px;
    font-family: Sofia;
    color: hotpink;
    text-shadow: 2px 2px 3px #fff;
    margin-bottom: 40px;
    border-radius: 60% 60% 50% 70%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}


/*style the top nav links*/
nav ul {
  display: flex;
    list-style: none;
    gap: 25px;
    justify-content: center;
    margin-top: 30px;
}

nav ul li{
  position: relative;
}

nav ul li a {
    color: #000;
    font-weight: bold;
    padding: 10px 18px;
    border: 2px solid #000;
    border-radius: 5px;
    text-decoration: none;
    font-family: Sofia;
}

nav li a:hover {
    background: color #FF8DC7;
}

/* DROPDOWN MENU */
.dropdown-content {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    background-color: #fff;
    min-width: 150px;
    border-radius: 10px;
    z-index: 10;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-align: left;
    color: rgb(252, 152, 243);
    border-bottom: 1px solid #ddd;
    font-family: Averia Gruesa Libre;
}


/* SHOW DROPDOWN ON HOVER */
.dropdown:hover .dropdown-content {
    display: block;
}

section{
  width: 100%;
  padding: 220px 20px;
  text-align: center;
  margin: 60px 0;
  box-sizing: border-box;
}

#Introduction, #Works{
  background: transparent;
}

/*first part*/
#Introduction{
  display: flex;
    justify-content: center;
    padding: 120px 40px;
    gap: 40px;
    align-items: center;
    background: transparent;
}

.Introduction-container {
  display: flex;
    align-items: center;
    max-width: 1200px;
    gap: 60px;
    width: 100%;
    flex-wrap: wrap;
    position: relative;
}

/* LEFT SIDE: two stacked photos */
.intro-photos {
  position: relative;
  width: 320px;   
  height: 420px;  
}

/* TOP PHOTO  */
.top-photo {
  position: absolute;
  width: 400px;
  border-radius: 14px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);

  top: -40px;         
  left: -350px;         
  transform: rotate(-8deg);  
  z-index: 3;
}

/* BOTTOM PHOTO */
.bottom-photo {
    position: absolute;
    width: 350px;
    border-radius: 14px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    bottom: -94px;
    left: 1200px;
    transform: rotate(10deg);
    z-index: 1;
}

.Introduction-text {
  flex: 1;
    text-align: left;
    background: white;
    border: 3px solid #4a00ff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#Introduction h2{
  font-size: 45px;
  margin-bottom: 20px;
  font-family: Bubblegum Sans;
  color:rgb(68, 0, 255);

}

#Introduction p{
  font-family: ADLaM Display;
  color: rgb(0, 0, 0);
  font-size: 25px;
  margin-bottom: 25px;
  line-height: 1.5;
}


/* Mobile */
@media (max-width: 800px) {
  .Introduction-container {
    flex-direction: column;
    text-align: center;
  }

  .intro-photos {
    align-items: center;
  }

  .intro-photos .photo {
    width: 80%;
    max-width: 260px;
  }
}

/*second part*/
#Works{
  padding: 200px 20px;
  margin-top: 20px;
  background: transparent;
}

#Works h4{
  text-align: center;
  margin-bottom: 20px;
  font-family: Bubblegum Sans;
  font-size: 50px;
  color: #000000;
}

/* Projects grid */
.Projects{
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;  
  transition: 0.2s ease-in-out;
}

.Project{
  position: relative;
    background: #fff;
    padding: 40px 30px;
    width: 260px;
    border-radius: 50px;
    text-align: center;
    font-family: Bubblegum Sans;
    font-size: 22px;
    color: #ff6ac5;
    border: 3px solid #ffd7ef;
    box-shadow: 0 8px 25px rgba(255, 150, 203, 0.35);
}

.Project:hover {
    transform: translateY(-5px);    
    background-color: #000000;
}

/* Hover Effect */
.Project:hover {
  transform: translateY(-10px);
  background: #ffe3f2;
}

/* Header star decorations */
.starfield {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ffffff;
    clip-path: polygon(
        50% 0%, 
        61% 35%, 
        98% 35%, 
        68% 57%, 
        79% 91%, 
        50% 70%, 
        21% 91%, 
        32% 57%, 
        2% 35%, 
        39% 35%
    );
    filter: drop-shadow(0 0 6px rgba(255,255,200,0.8));
    animation: twinkle 3s infinite ease-in-out;

}

.star--s { width: 10px; height: 10px; }
.star--m { width: 20px; height: 20px; animation-duration: 3.6s; }
.star--l { width: 40px; height: 40px; animation-duration: 4.2s; }

@keyframes twinkle {
    0% { opacity: 0.95; transform: scale(1); }
    40% { opacity: 0.25; transform: scale(0.85); }
    60% { opacity: 0.9; transform: scale(1.05); }
    100% { opacity: 0.95; transform: scale(1); }
}

/* Smaller screens */
@media (max-width:600px) {
    .star--l { width: 7px; height: 7px; }
    .star--m { width: 5px; height: 5px; }
    .star--s { width: 3px; height: 3px; }
    .star { box-shadow: 0 0 4px rgba(255,255,200,0.8); }
}

/* Footer */
footer{
  background-color: #222;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}