:root {
    --bg: #ffffff;
    --text: #0f1720;
    --muted: #596579;
    --accent: #0b63ff;
    --card: #f7f9fc;
    --radius: 14px;
    --transition: 0.25s ease;
    font-family: Inter, system-ui, Arial;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    scroll-behavior: smooth;
}

/* Fade animation */
.fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .9s ease, transform .9s ease;
}

.appear {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Float animation */
.float {
    animation: floatAni 4s ease-in-out infinite;
}

@keyframes floatAni {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero {
    padding: 110px 24px;
    text-align: center;
    max-width: 900px;
    margin: auto;
}

.hero h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero p {
    font-size: 18px;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 26px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 14px 30px;
    border-radius: var(--radius);
    display: inline-block;
    font-weight: 600;
    transition: 0.3s;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 99, 255, 0.25);
}

section {
    padding: 80px 24px;
    max-width: 1100px;
    margin: auto;
}

h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;
}

/* Generic Card */
.card {
    background: var(--card);
    padding: 28px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid #e6e9ee;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Grid */
.grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

/* Skills Pills */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.skill {
    background: var(--card);
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--accent);
    border: 1px solid #d7dce4;
    transition: .3s;
    font-size: 15px;
}

.skill:hover {
    background: white;
    transform: scale(1.08);
}

/* Projects */
.project-card {
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid #e6e9ee;
    background: #fff;
    transition: .3s;
}

a {
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

input,
textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid #cfd6e0;
    margin-bottom: 14px;
    font-size: 15px;
    font-family: inherit;
}

textarea {
    height: 140px;
    resize: none;
}

.btn-submit {
    background: var(--accent);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 16px;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: .3s;
}

.btn-submit:hover {
    background: #004acc;
}

.social-icons a {
    display: inline-block;
    margin: 6px;
    font-size: 16px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 38px;
    font-size: 14px;
    color: var(--muted);
    margin-top: 40px;
    border-top: 1px solid #e6e9ee;
}