/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

/* Main Content */
main {
    min-height: 100vh;
}

.page-section {
    padding: 4rem 0;
}

/* About Section */
#about {
    background: linear-gradient(160deg, #0d1526 0%, #101a30 55%, #0b1220 100%);
    color: white;
    display: flex;
    align-items: center;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    min-height: 3.6rem;
}

.highlight {
    color: #2dd4bf;
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

.description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.75);
}

.skills {
    margin-bottom: 2rem;
}

.skills h3 {
    margin-bottom: 1rem;
    color: #2dd4bf;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn.primary {
    background-color: #2dd4bf;
    color: #0b1220;
}

.btn.primary:hover {
    background-color: #14b8a6;
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn.secondary:hover {
    background-color: white;
    color: #0d1526;
}

.btn.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Glassmorphism CTA buttons in the hero */
.cta-buttons .btn {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.cta-buttons .btn.primary {
    background: rgba(45, 212, 191, 0.22);
    border-color: rgba(45, 212, 191, 0.5);
    color: #fff;
}

.cta-buttons .btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    transform: translateY(-3px);
}

.cta-buttons .btn.primary:hover {
    background: rgba(45, 212, 191, 0.35);
}

.about-image {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
}

.about-image .exploring-note {
    width: 100%;
    margin-bottom: 0;
}

.about-image .cta-buttons {
    width: 100%;
    justify-content: center;
}

.image-flip {
    width: 300px;
    height: 300px;
    perspective: 1200px;
}

.image-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease-in-out;
    transform-style: preserve-3d;
}

.image-flip.is-showing-back .image-flip-inner {
    transform: rotateY(180deg);
}

.image-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    backface-visibility: hidden;
    overflow: hidden;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #2dd4bf;
}

.image-placeholder img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.image-flip-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(45,212,191,0.22), rgba(255,255,255,0.08));
}

.cartoon-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    line-height: 1;
}

.cartoon-wave {
    position: absolute;
    top: -0.6rem;
    right: -1.2rem;
    font-size: 3.5rem;
    transform-origin: 70% 70%;
}

.image-flip.is-showing-back .cartoon-wave {
    animation: waveHand 0.6s ease-in-out 2;
    animation-delay: 0.5s;
}

@keyframes waveHand {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-12deg); }
}

/* Projects Section */
#projects {
    background: linear-gradient(160deg, #0d1526 0%, #101a30 55%, #0b1220 100%);
    position: relative;
    overflow: hidden;
}

#projects::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(45, 212, 191, 0.12), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(45, 212, 191, 0.1), transparent 40%);
    pointer-events: none;
}

#projects h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
    position: relative;
}

#projects .section-subtitle,
#certificates .section-subtitle {
    color: rgba(255, 255, 255, 0.65);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
}

.project-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(45, 212, 191, 0.5);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(45, 212, 191, 0.15);
}

.project-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.project-image i {
    font-size: 1.8rem;
    color: #0b1220;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2dd4bf, #14b8a6);
    box-shadow: 0 4px 16px rgba(45, 212, 191, 0.35);
    display: inline-block;
    transition: transform 0.35s ease;
}

.project-card:hover .project-image i {
    transform: scale(1.1) rotate(-6deg);
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.project-info p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.project-card:hover .tech-tag {
    border-color: rgba(45, 212, 191, 0.4);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links .btn.small {
    background: transparent;
    color: #5eead4;
    padding: 0;
    font-weight: 600;
    position: relative;
}

.project-links .btn.small::after {
    content: '\2192';
    display: inline-block;
    margin-left: 0.3rem;
    transition: transform 0.25s ease;
}

.project-links .btn.small:hover::after {
    transform: translateX(4px);
}

/* Contact Section */
#contact {
    background: linear-gradient(160deg, #0b1220 0%, #101a30 55%, #0d1526 100%);
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 15%, rgba(45, 212, 191, 0.1), transparent 40%),
        radial-gradient(circle at 90% 85%, rgba(45, 212, 191, 0.08), transparent 40%);
    pointer-events: none;
}

#contact h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    position: relative;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2dd4bf;
    margin-right: 1rem;
    width: 30px;
}

.contact-item h4 {
    color: #fff;
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.6);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.4);
    color: #2dd4bf;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #2dd4bf;
    color: #0b1220;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(45, 212, 191, 0.35);
}

.contact-form {
    background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 2px;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    font-size: 1rem;
    color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #2dd4bf;
    box-shadow: 0 2px 8px -2px rgba(45, 212, 191, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
}

.form-group textarea:focus {
    border-color: #2dd4bf;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0b1220 0%, #101a30 100%);
    color: white;
    padding: 1rem 0;
    border-top: 3px solid #2dd4bf;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-left, .footer-right {
    flex: 1;
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
}

.footer-center {
    flex: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social-link:hover {
    background: #2dd4bf;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-left p {
    color: #2dd4bf;
    font-weight: 600;
}

.footer-right p {
    font-size: 0.6rem;
}



/* Responsive Design */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .about-text h1 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        text-align: center;
        width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .about-text h1 {
        font-size: 1.8rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .footer-left, .footer-right {
        text-align: center;
    }
    
    .footer-social {
        margin: 0.5rem 0;
    }
}

/* Email sending feedback styles */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.sending {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    animation: sendPulse 1.4s ease-in-out infinite;
}

.btn.sending::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    margin: auto;
    border: 2px solid rgba(11, 18, 32, 0.25);
    border-top-color: #0b1220;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes sendPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); }
}

.form-success {
    background-color: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.4);
    color: #5eead4;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.form-error {
    background-color: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-group input.success,
.form-group textarea.success {
    border-color: #2dd4bf !important;
}

/* Certificates Section */
#certificates {
    background: linear-gradient(160deg, #0b1220 0%, #10192c 50%, #0d1526 100%);
    position: relative;
    overflow: hidden;
}

#certificates::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(45, 212, 191, 0.1), transparent 40%),
        radial-gradient(circle at 10% 85%, rgba(45, 212, 191, 0.08), transparent 40%);
    pointer-events: none;
}

#certificates h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
}

.certificate-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    overflow: hidden;
}

.certificate-card:hover {
    transform: translateY(-8px);
    border-color: rgba(45, 212, 191, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(45, 212, 191, 0.15);
}

.certificate-image {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.certificate-image:hover img {
    transform: scale(1.06);
}

.certificate-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d1526 0%, #1a2740 100%);
    color: white;
    border-radius: 10px;
}

.certificate-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2dd4bf;
}

.certificate-placeholder p {
    font-size: 1rem;
    font-weight: 500;
}

.certificate-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 600;
}

.certificate-issuer {
    color: #2dd4bf;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.certificate-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.certificate-description {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Certificate modal styles (for future enhancement) */
.certificate-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.certificate-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin-top: 2%;
}

.certificate-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.certificate-close:hover {
    color: #2dd4bf;
}

/* ==========================================================================
   Micro-animations & AI-era polish
   ========================================================================== */

/* --- "Currently exploring" callout --- */
.exploring-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.35);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.exploring-note:hover {
    background: rgba(45, 212, 191, 0.16);
    border-color: rgba(45, 212, 191, 0.6);
    transform: translateY(-2px);
}

.exploring-note i {
    color: #2dd4bf;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* --- A. Subtle micro-interactions --- */
.tag {
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.tag:hover {
    transform: translateY(-3px);
    background: rgba(45, 212, 191, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: scale(0.96);
}

/* --- B. Scroll-driven reveals --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: calc(var(--reveal-i, 0) * 80ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- C. Hero/heading flourish --- */
.highlight {
    background: linear-gradient(90deg, #2dd4bf, #5eead4, #14b8a6, #2dd4bf);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientSheen 7s ease infinite;
}

@keyframes gradientSheen {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.typing-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.55em;
    word-break: break-all;
    color: #ecf0f1;
}

.typing-cursor::after {
    content: '|';
    display: inline-block;
    margin-left: 2px;
    color: #2dd4bf;
    animation: blinkCursor 0.9s step-end infinite;
}

@keyframes blinkCursor {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* --- D. Loading/transition polish --- */
.page-section.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: 0s;
}

.page-section.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page-loaded .about-text > * {
    opacity: 0;
    animation: heroIntro 0.6s ease forwards;
}

.page-loaded .about-text h1 { animation-delay: 0.05s; }
.page-loaded .about-text .subtitle { animation-delay: 0.15s; }
.page-loaded .about-text .description { animation-delay: 0.25s; }
.page-loaded .about-text .skills { animation-delay: 0.35s; }
.page-loaded .about-text .exploring-note { animation-delay: 0.45s; }
.page-loaded .about-text .cta-buttons { animation-delay: 0.55s; }

@keyframes heroIntro {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Resume download FAB --- */
.resume-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2dd4bf, #14b8a6);
    color: #0b1220;
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(45, 212, 191, 0.4);
    z-index: 1500;
    opacity: 0;
    transform: scale(0.6);
    animation: fabIntro 0.5s ease 2s forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(45, 212, 191, 0.55);
}

.resume-fab-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #0b1220;
    color: #fff;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.resume-fab:hover .resume-fab-tooltip {
    opacity: 1;
}

@keyframes fabIntro {
    from {
        opacity: 0;
        transform: scale(0.6);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .resume-fab {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* --- Accessibility: respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .highlight {
        animation: none;
        background: none;
        -webkit-text-fill-color: currentColor;
        color: #2dd4bf;
    }

    .typing-cursor::after {
        animation: none;
    }

    .reveal {
        transition: opacity 0.2s ease;
        transform: none;
    }

    .page-loaded .about-text > * {
        animation: none;
        opacity: 1;
    }

    .image-flip-inner {
        transition: none;
    }

    .image-flip.is-showing-back .image-flip-inner {
        transform: none;
    }

    .image-flip.is-showing-back .cartoon-wave {
        animation: none;
    }

    .tag:hover,
    .btn:active,
    .exploring-note:hover {
        transform: none;
    }

    .resume-fab {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .resume-fab:hover {
        transform: none;
    }
}

/* Contact Section */
