/* ===== GLOBAL STYLES ===== */
body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #fdf6ff, #e6f0ff, #fff0f6);
    color: #444;
}

/* ===== HEADER ===== */

.header {
    display: flex;
    justify-content: space-between; /* pushes left & right apart */
    align-items: center;
    padding: 25px 50px;
}

/* Left side container */
.nav-left {
    display: flex;
    gap: 40px; /* space between Emily Nguyen & About Me */
}

/* Text Styling */
.nav-text {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #77a1fc;
    cursor: pointer;
}

/* Menu Icon */
.menu-icon {
    font-size: 28px;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    padding: 60px 20px;  /* reduced from 110px */
    background: radial-gradient(circle at top, #ffffff, #e8f0ff);
}

.hero h1 {
    font-size: 36px;   /* slightly smaller */
    margin-bottom: 10px;
    color: #77a1fc;
}

.hero p {
    font-size: 16px;
    color: #777;
}

/* ===== PROJECTS LAYOUT ===== */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    padding: 80px 60px;
}

/* ===== PROJECT CARDS ===== */
.project-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 35px;
    padding: 25px 20px 30px 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(150, 170, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 25px 50px rgba(150, 170, 255, 0.35);
}

/* Image styling */
.project-card img {
    width: 100%;
    height: 420px;
    object-fit: fill;
    border-radius: 25px;
    margin-bottom: 20px;
}

/* Text */
.project-card h2 {
    font-size: 20px;
    color: #7a88ff;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 14px;
    color: #666;
    padding: 0 10px;
}

/* ===== MAGICAL BUTTONS ===== */
.project-card button {
    margin-top: 18px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #a8b8ff, #ffb3e6);
    border: none;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(170, 150, 255, 0.4);
    transition: all 0.3s ease;
}

.project-card button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(170, 150, 255, 0.6);
}

/* ===== EXTRA WHIMSICAL TOUCH ===== */

/* Floating animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.project-card {
    animation: float 4s ease-in-out infinite;
}