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

body {
    background: linear-gradient(135deg, #0b0f3a, #1b1f6b, #2a6cf0, #7a2df3);
    min-height: 100vh;
}

/* LOGIN */

#loginPage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #001f4d, #0099cc);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

}

.login-box {
    position: relative;
    background: white;
    padding: 50px 50px;
    border-radius: 18px;
    width: 500px;
    /* size bada */
    max-width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Welcome text left upper side */
.welcome-text {
    position: absolute;
    top: 120px;
    left: 50px;
    color: white;
}

.welcome-text h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
}

.welcome-text h2 {
    font-size: 22px;
    font-weight: 400;
}

/* Login note text */
.login-note {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
}

.skip {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box h2 {
    margin-bottom: 20px;
    text-align: center
}

input,
textarea,
select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 6px;

}

textarea {
    width: 100%;
    max-width: 100%;
    resize: vertical;
}

/* container overflow control */
.section {
    overflow: hidden;
}

.grid textarea {
    box-sizing: border-box;
}

button {
    padding: 11px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.primary {
    background: #2a6cf0;
    color: white;
    width: 100%
}

/* NAVBAR */

nav {
    display: none;
    background: linear-gradient(90deg, #111, #1f2a44, #243b6b);
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
}

/* HERO */

.hero {
    display: none;
    color: white;
    padding: 70px 8%;
    display: flex;
    flex-wrap: wrap;
    align-items: top;
    justify-content: space-between;
    gap: 40px;
    min-height: 30vh;
}

.hero img {
    width: 280px;
    animation: float 3s infinite ease-in-out;

}



@keyframes float {
    50% {
        transform: translateY(-14px)
    }
}

.start-btn {
    background: #ffb347;
    padding: 12px 22px;
    margin-top: 15px;
}

/* SECTIONS */

.section {
    display: none;
    background: white;
    margin: 40px auto;
    padding: 35px;
    width: 92%;
    max-width: 1000px;
    border-radius: 18px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .18);
}

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

.full {
    grid-column: 1
}

/* PREVIEW */

#preview {
    display: none
}

/* CONTACT */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-card {
    background: #2a148b;
    color: white;
    padding: 25px;
    border-radius: 10px;
}

/* FOOTER */

footer {
    display: none;
    text-align: center;
    color: white;
    padding: 30px;
}

/* RESPONSIVE */

@media(max-width:700px) {
    .grid {
        grid-template-columns: 1fr
    }

    .full {
        grid-column: 1
    }

    .contact-grid {
        grid-template-columns: 1fr
    }
}

#resume {
    display: none;
}

.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}


.top-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.top-buttons button {
    padding: 10px 20px;
    margin: 5px;
    background: #2a6cf0;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.top-buttons button:hover {
    background: #1f50b5;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    font-size: 14px;
    color: #555;
}

/* ===== MOBILE FIX PACK ===== */

/* login mobile layout */
@media(max-width:700px){

  #loginPage{
    flex-direction: column;
    padding:20px;
  }

  .welcome-text{
    position: static;
    text-align:center;
    margin-bottom:20px;
  }

  .welcome-text h1{
    font-size:22px;
  }

  .welcome-text h2{
    font-size:16px;
  }

  .login-box{
    width:100%;
    padding:30px 20px;
  }

  /* navbar */
  nav{
    flex-direction: column;
    gap:10px;
    text-align:center;
  }

  .nav-links{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
  }

  .nav-links a{
    margin-left:0;
  }

  /* hero */
  .hero{
    flex-direction: column;
    text-align:center;
  }

  .hero img{
    width:180px;
  }

  /* sections padding */
  .section{
    padding:20px;
    margin:20px 10px;
  }

  /* contact */
  .contact-grid{
    grid-template-columns: 1fr;
  }

}

/* text overflow safety */
.contact-card{
  word-wrap: break-word;
}
.hero{
  align-items:center;
}

.hero img{
  display:block;
  margin-left:auto;
  margin-top:20px;
}

#animatedText{
  display:inline-block;
}

.typed-cursor{
  display:inline-block;
  vertical-align: baseline;
}
nav,
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
}
/* HERO IMAGE CENTER ON MOBILE */
@media (max-width: 700px) {
    .hero img {
        display: block;
        margin: 20px auto 0 auto; /* top margin thoda rakha, left-right auto */
    }
}
