/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
  }

html {
scroll-behavior: smooth;
}

body {
background: #ffffff;
color: #111;
overflow-x: hidden;
}

/* ================= NAVBAR ================= */
.navbar {
display: flex;
justify-content: space-between;
padding: 20px 60px;
position: fixed;
width: 100%;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-bottom: 1px solid #eee;
transition: all 0.3s ease;
z-index: 1000;
}

.navbar.scrolled {
background: rgba(255, 255, 255, 0.98);
box-shadow: 0 5px 20px rgba(0,0,0,0.1);
padding: 15px 60px;
}

.navbar nav a {
margin-left: 25px;
text-decoration: none;
color: #333;
position: relative;
transition: all 0.3s ease;
}

.navbar nav a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -5px;
left: 0;
background: #6a5cff;
transition: width 0.3s ease;
}

.navbar nav a:hover::after {
width: 100%;
}

.navbar nav a:hover {
color: #6a5cff;
transform: translateY(-2px);
}

/* ================= HERO ================= */
.hero {
display: flex;
justify-content: space-between;
align-items: center;
padding: 120px 60px;
background: linear-gradient(135deg, #6a5cff, #9d7bff);
color: white;
}

.hero-text h1 {
font-size: 48px;
animation: fadeInUp 1s ease forwards;
}

.hero-text span {
color: #ffd369;
}

.hero-text p {
margin-top: 10px;
animation: fadeInUp 1.2s ease forwards;
}

/* BUTTONS */
.buttons {
margin: 20px 0;
}

.btn {
padding: 12px 24px;
background: white;
color: black;
border-radius: 25px;
text-decoration: none;
margin-right: 10px;
transition: 0.3s;
}

.btn:hover {
transform: translateY(-3px);
}

.btn.outline {
background: transparent;
border: 1px solid white;
color: white;
}

/* IMAGE */
.hero-img img {
width: 280px;
border-radius: 50%;
}

/* ================= SECTION ================= */
.section {
min-height: 100vh;
scroll-snap-align: start;

display: flex;
flex-direction: column;
justify-content: center;
align-items: center;

padding: 100px 60px;
text-align: center;
gap: 20px;
}

/* fix navbar overlap */
section {
scroll-margin-top: 80px;
}

.section h2 {
font-size: 34px;
margin-bottom: 15px;
position: relative;
}

/* underline */
.section h2::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 3px;
background: linear-gradient(90deg, #6a5cff, #9d7bff);
border-radius: 2px;
}

.subtitle {
color: #666;
margin-bottom: 40px;
max-width: 600px;
}

/* ================= BACKGROUND ================= */
.light {
background: #f5f6fa;
}

/* ================= GRID ================= */
.grid {
display: flex;
justify-content: center;
gap: 25px;
flex-wrap: wrap;
max-width: 1000px;
}

/* ================= CARD ================= */
.card {
background: white;
padding: 25px;
width: 300px;
border-radius: 14px;

text-align: left;

box-shadow: 0 10px 25px rgba(0,0,0,0.05);
border: 1px solid rgba(255,255,255,0.5);

transition: all 0.4s ease;

opacity: 0;
transform: translateY(40px) scale(0.95);
animation: fadeUpScale 0.8s ease forwards;
}

.card:hover {
transform: translateY(-12px) scale(1.03);
box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* top gradient bar */
.card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #6a5cff, #9d7bff);
border-radius: 14px 14px 0 0;
opacity: 0;
transition: opacity 0.3s ease;
}

.card:hover::before {
opacity: 1;
}

/* stagger animation */
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.4s; }
.card:nth-child(4) { animation-delay: 0.6s; }

/* ================= PROJECT ================= */
.project h3 {
color: #6a5cff;
}

/* ================= CONTACT ================= */
.contact-box {
display: flex;
justify-content: center;
gap: 40px;
flex-wrap: wrap;
}

form {
display: flex;
flex-direction: column;
width: 300px;
}

form input,
form textarea {
margin-bottom: 10px;
padding: 10px;
border: 1px solid #ddd;
border-radius: 8px;
}

button {
background: linear-gradient(135deg, #6a5cff, #9d7bff);
color: white;
padding: 12px;
border: none;
border-radius: 8px;
cursor: pointer;
}

/* ================= ANIMATION ================= */
@keyframes fadeUpScale {
from {
opacity: 0;
transform: translateY(40px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}

@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
.navbar, .hero, .section {
padding-left: 20px;
padding-right: 20px;
}

.hero {
flex-direction: column;
text-align: center;
}

.hero-img img {
width: 200px;
margin-top: 30px;
}
}