@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');

:root {
    --trimble-blue: #0063a3;
    --trimble-blue-deep: #004f86;
    --trimble-blue-mid: #0b78bf;
    --trimble-blue-light: #e8f4fd;
    --ink: #1c2a38;
    --muted: #5f748a;
    --panel: #ffffff;
    --line: #d5e4f2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(1000px 420px at 10% -10%, rgba(255, 255, 255, 0.12) 0%, transparent 62%),
        radial-gradient(920px 380px at 100% 0%, rgba(255, 255, 255, 0.09) 0%, transparent 62%),
        linear-gradient(165deg, var(--trimble-blue) 0%, var(--trimble-blue-mid) 48%, var(--trimble-blue-deep) 100%);
    color: #f3f8fd;
    min-height: 100vh;
}

/* Header */
.hero {
    text-align: center;
    padding: 50px 20px;
    background: transparent;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    right: -120px;
    top: -140px;
    background: rgba(255, 255, 255, 0.13);
}

.hero h1 {
    margin-bottom: 0;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
}

.tagline {
    margin-top: 10px;
    font-size: 1.2rem;
    opacity: 0.92;
}

.social-links {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 14px;
}

.social-links a {
    display: inline-flex;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 180ms ease, background-color 180ms ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.28);
}

.social-icon {
    display: block;
    width: 22px;
    min-width: 22px;
    max-width: 22px;
    height: 22px;
    object-fit: contain;
}

/* About section */
.about {
    margin: 8px auto 24px;
    padding: 30px 24px;
    max-width: 1080px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(8, 43, 72, 0.2);
}

.about h2 {
    margin: 0 0 14px;
    text-align: center;
    color: #103a5e;
}

.about p {
    margin: 0;
    color: var(--ink);
    line-height: 1.7;
    max-width: 940px;
    margin-inline: auto;
}

/* Projects */
.projects {
    margin: 4px auto 0;
    padding: 34px 24px 40px;
    max-width: 1080px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(8, 43, 72, 0.28);
}

.projects h2 {
    text-align: center;
    margin-bottom: 6px;
    color: #103a5e;
}

.projects-subtitle {
    margin: 0 auto 30px;
    max-width: 760px;
    text-align: center;
    color: var(--muted);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 980px;
    margin: auto;
}

.project-card {
    background: var(--panel);
    padding: 22px;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(18, 53, 84, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease;
    animation: cardReveal 520ms ease both;
}

.project-card:nth-child(2) {
    animation-delay: 80ms;
}

.project-card:nth-child(3) {
    animation-delay: 160ms;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(22, 52, 78, 0.14);
}

.card-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--trimble-blue-light);
    color: var(--trimble-blue-deep);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.project-card h3 {
    margin: 0 0 10px;
    color: #123b60;
}

.project-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.download-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--trimble-blue) 0%, var(--trimble-blue-deep) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(0, 79, 134, 0.24);
}

.download-btn:hover {
    filter: brightness(1.06);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: transparent;
    color: white;
    margin-top: 20px;
    opacity: 0.9;
}

.hero .profile-pic,
.hero h1,
.hero .tagline,
.hero .social-links {
    animation: heroReveal 620ms ease both;
}

.hero .tagline {
    animation-delay: 80ms;
}

.hero .social-links {
    animation-delay: 150ms;
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 44px 16px;
    }

    .tagline {
        font-size: 1rem;
    }

    .projects {
        margin: 0 12px;
        padding: 26px 16px 30px;
        border-radius: 14px;
    }

    .about {
        margin: 0 12px 16px;
        padding: 24px 16px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
