/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles are defined below with animated gradient */

.container {
    text-align: center;
    max-width: 1000px;
    padding: 2rem 1.25rem;
}

.title {
    font-size: 3.25rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 0.2em;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1em;
    color: #66ffff;
}

.tagline {
    font-size: 1.05rem;
    color: #99ffff;
    max-width: 820px;
    margin: 0.25rem auto 1.25rem auto;
    line-height: 1.7;
}

.description p, .about p {
    font-size: 1.1rem;
    color: #99ffff;
    max-width: 600px;
    margin: 0 auto 2em auto;
    line-height: 1.6;
}

.hero {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* Removed old diagram styles */

/* Removed coming soon pulse */

/* (pulse animation removed) */

/* (svg text styles removed) */

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .description p {
        font-size: 1rem;
    }
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff9a76 0%, #ff7e6b 22%, #6e64ff 65%, #1a1a40 100%);
    background-attachment: fixed;
    background-size: 260% 260%;
    animation: gradientDrift 28s ease-in-out infinite alternate;
    color: #00ffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

@keyframes gradientDrift {
    0% {
        background-position: 0% 40%;
    }
    100% {
        background-position: 60% 60%;
    }
}

/* Actions / Buttons */
.actions {
    margin: 1.25rem 0 2rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid #00ffff80;
    color: #00ffff;
    text-decoration: none;
    background: transparent;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: #00ffffcc;
    background-color: rgba(0, 255, 255, 0.08);
}

.btn.primary {
    background-color: #00ffff;
    color: #0d0d1a;
    border-color: #00ffff;
}

.btn.small {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
}

.btn .icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    margin-right: 0.45rem;
    fill: currentColor;
}

/* Sections */
.section {
    margin-top: 2.5rem;
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #66ffff;
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.card {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(13, 13, 26, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-title a {
    color: #00ffff;
    text-decoration: none;
}

.card-title a:hover {
    text-decoration: underline;
}

.card-body {
    color: #99ffff;
    line-height: 1.6;
}

.project-card .eyebrow {
    text-transform: none;
    letter-spacing: 0.3px;
    font-size: 0.85rem;
    color: #66ffff;
    opacity: 0.9;
    margin-bottom: 0.4rem;
}

.card-actions {
    margin-top: 0.8rem;
    display: flex;
    gap: 0.5rem;
}

/* Tags */
.tags {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: #66ffff;
    background: rgba(0, 255, 255, 0.06);
}

/* Footer */
.footer {
    margin-top: 2.5rem;
    color: #66ffff;
    opacity: 0.85;
}

/* About grid */
.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.25rem;
    align-items: center;
    text-align: left;
    margin-top: 1rem;
}

.avatar {
    display: flex;
    justify-content: center;
}

.avatar-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 720px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .title {
        font-size: 2.25rem;
    }
    .subtitle {
        font-size: 1rem;
    }
}