* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f9fafb;
    color: #0f172a;
    line-height: 1.7;
}

/* ================= GLOBAL ================= */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.section {
    padding: 120px 0;
}

.alt {
    background: #ffffff;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

p {
    max-width: 700px;
    margin: auto;
    text-align: center;
    color: #475569;
}

/* ================= HEADER ================= */
.header {
    position: fixed;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 100;
}

.header-inner {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
}

.logo span {
    color: #6366f1;
}

nav a {
    margin-left: 24px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 500;
}

nav a.active {
    color: #6366f1;
}

/* ================= HERO ================= */
.hero {
    min-height: 100vh;
    padding-top: 70px;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #eef2ff, #f9fafb);
}

.hero-content {
    max-width: 680px;
}

.badge {
    display: inline-block;
    background: #6366f1;
    color: white;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 22px;
}

.hero h1 span {
    color: #6366f1;
}

.hero p {
    margin-bottom: 36px;
}

/* ================= BUTTONS ================= */
.hero-buttons a {
    padding: 20px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-right: 26px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #6366f1;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: #e5e7eb;
    color: #0f172a;
}

/* ================= CARDS ================= */
.project-card {
    background: white;
    padding: 36px 32px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);

    /* CENTER CONTENT */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;

    transition: transform 0.4s ease, box-shadow 0.4s ease;
}


/* ================= SKILLS ================= */
.skills {
    max-width: 560px;
    margin: 40px auto 0;
}

.skill {
    margin-bottom: 22px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-weight: 500;
}

.percent {
    color: #6366f1;
}

.bar {
    height: 7px;
    background: #e5e7eb;
    border-radius: 999px;
}

.bar div {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 999px;
    transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================= PROJECTS ================= */
.projects-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* ================= CONTACT ================= */
form {
    max-width: 480px;
    margin: 40px auto 0;
}

input,
textarea,
button {
    width: 100%;
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

button {
    background: #6366f1;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* ================= FOOTER ================= */
footer {
    text-align: center;
    padding: 24px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

/* ================= ANIMATIONS ================= */
.slide {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= HEADER NAV UNDERLINE ANIMATION ================= */

nav a {
    position: relative;
    padding: 6px 2px;
    transition: color 0.3s ease;
}

/* underline */
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 999px;
    transition: width 0.35s ease;
}

/* hover underline */
nav a:hover::after {
    width: 100%;
}

/* active state */
nav a.active {
    color: #6366f1;
}

nav a.active::after {
    width: 100%;
}

/* ================= TECH ABSTRACT BACKGROUND ================= */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.08), transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.06), transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(56, 189, 248, 0.06), transparent 40%);
}

/* ================= SECTION TECH OVERLAY ================= */

.section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.25;
    pointer-events: none;
}

nav a::after {
    will-change: width;
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}

.project-card p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}