:root {
    --bg-start: #1d1d1b;
    --bg-end: #2b4c9a;
    --text: #000000;
    --muted: #000000;
    --card: rgba(255, 255, 255, 0.10);
    --border: rgba(255, 255, 255, 0.20);
    --shadow: 0 20px 40px rgba(0, 0, 0, 1);
    --accent: #2b4c9a;
    --accent2: #e52621;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    cursor: default;
    min-height: 100%;
}

body {
    line-height: 1.6;
    background: linear-gradient(135deg, rgba(229,38,33,0.35), rgba(43,76,154,0.35)),
                linear-gradient(135deg, var(--bg-start), var(--bg-end));
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(229,38,33,0.3), transparent 45%),
                radial-gradient(circle at bottom right, rgba(43,76,154,0.3), transparent 50%);
    filter: blur(26px);
    pointer-events: none;
    z-index: -1;
}

.hidden {
    display: none !important;
}

a {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

.pp{
    border-radius: 10px 100px / 120px;;
}

header {
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    background: rgba(45, 79, 150, 0.08);
    backdrop-filter: blur(12px);
}

header h1 {
    margin: 0.5rem 0 0.2rem;
    font-size: 2.6rem;
    letter-spacing: 0.1em;
}

header p {
    margin: 0;
    color: var(--muted);
    font-size: 1.1rem;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
}

nav a {
    background: rgba(255, 255, 255, 0.65);
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, background 0.2s ease;
}

nav a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
}

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.section {
    margin-bottom: 2.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2.2rem 1.9rem;
    box-shadow: var(--shadow);
}

.section h2 {
    margin-top: 0;
    font-size: 1.8rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.card {
    padding: 1.6rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.06);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.card p,
.card ul {
    margin: 0;
    color: var(--muted);
}

.card ul {
    padding-left: 1.2rem;
}

.card a.cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.2rem;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.card a.cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 14px 25px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.10);
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.project-card p {
    margin: 0;
    color: var(--muted);
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill {
    margin: 1.2rem 0;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 0.55rem;
    color: var(--muted);
}

.skill-bar {
    height: 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 999px;
    transition: width 1.2s ease;
}

form {
    display: grid;
    gap: 0.9rem;
}

input,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
    font-size: 1rem;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.18);
}

button {
    padding: 0.85rem 1.25rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

button.primary {
    background: linear-gradient(120deg, var(--accent), var(--accent2));
}

button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

footer {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    display: grid;
    place-items: center;
    padding: 2rem;
    z-index: 1000;
}

.overlay.hidden {
    display: none;
}

.overlay-card {
    width: min(420px, 95vw);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.2rem;
    padding: 2rem;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.overlay-card h2 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.75rem;
}

.overlay-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: rgba(15, 23, 42, 0.6);
    cursor: pointer;
}

.overlay-close:hover {
    color: rgba(15, 23, 42, 0.9);
}

.overlay form {
    display: grid;
    gap: 0.9rem;
}

.overlay input {
    padding: 0.95rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.15);
    font-size: 1rem;
}

.overlay button {
    padding: 0.95rem 1.2rem;
}

.error {
    margin-top: 0.75rem;
    color: #b02a37;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2.2rem;
    }

    .section {
        padding: 1.6rem;
    }
}
