 /* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #e7ebf5;
    color: #0f172a;
}

html {
    scroll-behavior: smooth;
}

/* ================= NAVBAR ================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

nav h2 {
    font-weight: 700;
}

nav h2 a {
    text-decoration: none;
    color: #0f172a;
    transition: 0.3s;
}

nav h2 a:hover {
    color: #2563eb;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 500;
    position: relative;
    padding-bottom: 3px;
    transition: 0.3s;
}

/* Hover underline */
nav ul li a:hover {
    color: #2563eb;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #2563eb;
    transition: 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Active page */
nav ul li a.active {
    color: #2563eb;
    font-weight: 600;
}

nav ul li a.active::after {
    width: 100%;
}

/* ================= HERO ================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px;
    min-height: 90vh;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 10px;
    animation: slideInLeft 1s ease forwards;
}

.hero-text h2 {
    font-size: 22px;
    margin-bottom: 30px;
    animation: slideInLeft 1.2s ease forwards;
}

.hero-text button {
    background: #1e40af;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 30px;
    transition: 0.3s;
    animation: fadeIn 1.5s ease forwards;
}

.hero-text button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* ================= SOCIAL ================= */
.social {
    display: flex;
    gap: 15px;
    animation: fadeIn 1.7s ease forwards;
}

.social a {
    width: 42px;
    height: 42px;
    background: #0f172a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

.social a:hover {
    transform: translateY(-4px);
}

.social a:nth-child(1):hover { background: #0A66C2; }
.social a:nth-child(2):hover { background: #25D366; }
.social a:nth-child(3):hover {
    background: radial-gradient(circle at 30% 30%,
        #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

/* ================= AVATAR ================= */
.avatar, .about-avatar {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
    animation: fadeIn 2s ease forwards;
}

.avatar img, .about-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= ABOUT ME ================= */
.about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px;
    gap: 50px;
    min-height: 90vh;
    background: #f5f7fb;
}

.about-text {
    flex: 1;
    animation: slideInLeft 1s ease forwards;
}

.about-text h1 {
    font-size: 40px;
    margin-bottom: 20px;
    color: #1e293b;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 20px;
}

.about-text strong {
    color: #2563eb;
}

/* ================= WORK / PROJECTS ================= */
.work {
    padding: 80px;
    text-align: center;
}

.work h1 {
    font-size: 40px;
    margin-bottom: 50px;
}

.work-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 30px;
}

/* Make entire card clickable */
.work-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.work-card:hover {
    transform: translateY(-8px);
}

.work-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.work-card h3 {
    padding: 15px;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    nav { flex-direction: column; gap: 15px; }
    .hero, .about { flex-direction: column; text-align: center; }
    .social { justify-content: center; }
    .avatar, .about-avatar { margin-top: 40px; }
}