
/* =========================
   1. COLORS
========================= */

:root {
    --background: #fffaf8;
    --surface: #ffffff;
    --soft: #fdf0f5;
    --pink: #b65f85;
    --pink-dark: #954365;
    --light-pink: #f5dce7;
    --purple: #e9def5;
    --text: #493344;
    --muted: #806b79;
    --border: #eedce5;
    --shadow: 0 10px 35px rgba(143, 75, 111, 0.08);
}


/* Dark mode */

body.dark {
    --background: #211a26;
    --surface: #2e2434;
    --soft: #281f30;
    --pink: #eda2c6;
    --pink-dark: #f5b9d5;
    --light-pink: #513249;
    --purple: #42334f;
    --text: #f7eaf2;
    --muted: #c5afbf;
    --border: #49394d;
    --shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}


/* =========================
   2. GENERAL STYLE
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.8;
    transition: background 0.4s, color 0.4s;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
    cursor: pointer;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 4px;
}

img {
    display: block;
    width: 100%;
}

p {
    color: var(--muted);
}

[hidden] {
    display: none !important;
}

::selection {
    background: #e9a9c7;
    color: #493344;
}

.pink-bg {
    background: #f5dce7;
}

.purple-bg {
    background: #e9def5;
}

.peach-bg {
    background: #fae7dc;
}

.green-bg {
    background: #e0eee5;
}


/* =========================
   3. NAVIGATION
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.navbar {
    max-width: 1350px;
    min-height: 80px;
    margin: auto;
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 35px;
    font-style: italic;
    font-weight: 700;
    color: var(--text);
}

.logo span {
    color: var(--pink);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--pink);
}

.nav-links a::after {
    content: '';
    width: 0;
    height: 2px;
    position: absolute;
    bottom: -6px;
    left: 0;
    background: var(--pink);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

#themeBtn,
#menuBtn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--pink);
    transition: transform 0.3s;
}

#themeBtn:hover {
    transform: rotate(20deg);
}

#menuBtn {
    display: none;
}


/* =========================
   4. HOME
========================= */

.hero {
    min-height: calc(100vh - 80px);
    padding: 90px 10% 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 90% 20%,
            var(--light-pink),
            transparent 45%
        ),
        radial-gradient(
            ellipse at 5% 90%,
            var(--purple),
            transparent 40%
        );
}

.hero-content {
    flex: 1.3;
    max-width: 680px;
    position: relative;
    z-index: 2;
    animation: fadeUp 0.9s ease both;
}

.welcome {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--surface);
    color: var(--pink);
    font-size: 12px;
    margin-bottom: 25px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pink);
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(48px, 5.5vw, 85px);
    font-weight: 600;
    line-height: 1.13;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--pink);
    font-style: italic;
}

.typing {
    min-height: 2.8em;
    color: var(--pink-dark);
    font-size: clamp(20px, 2.4vw, 29px);
    font-weight: 400;
    margin-bottom: 15px;
}

#typingText::after {
    content: '|';
    margin-left: 4px;
    animation: blink 0.8s infinite;
}

.hero p {
    max-width: 540px;
    font-size: 15px;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 50px;
    padding: 13px 24px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.primary-btn {
    background: #ad557c;
    color: white;
    box-shadow: 0 8px 20px rgba(173, 85, 124, 0.2);
}

.primary-btn:hover {
    background: #914164;
    transform: translateY(-4px);
}

.secondary-btn {
    border-color: var(--pink);
    color: var(--pink);
    background: transparent;
}

.secondary-btn:hover {
    background: var(--light-pink);
    transform: translateY(-4px);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--pink);
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ad557c;
    color: white;
    transform: translateY(-5px);
}


/* Profile picture */

.hero-image {
    flex: 1;
    max-width: 420px;
    position: relative;
    animation: fadeUp 1.1s ease both;
}

.photo-frame {
    aspect-ratio: 3 / 4;
    background: linear-gradient(
        140deg, var(--light-pink), var(--purple)
    );
    border-radius: 50% 50% 24px 24px;
    border: 7px solid var(--surface);
    outline: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.photo-frame img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    inset: 0;
}

.photo-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    color: var(--pink);
}

.photo-placeholder i {
    font-size: 90px;
    opacity: 0.5;
}

.photo-placeholder span {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-style: italic;
}

.floating-card {
    position: absolute;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
    padding: 13px 18px;
    border: 1px solid var(--border);
    border-radius: 15px;
    font-size: 12px;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    color: var(--pink);
    margin-right: 8px;
}

.card-one {
    top: 22%;
    left: -35px;
}

.card-two {
    bottom: 15%;
    right: -30px;
    animation-delay: 1s;
}

.photo-star {
    position: absolute;
    right: -20px;
    top: -25px;
    color: var(--pink);
    font-size: 65px;
    animation: float 5s infinite;
}

.decoration {
    position: absolute;
    color: var(--pink);
    opacity: 0.45;
    animation: float 6s infinite;
    pointer-events: none;
}

.star-one {
    top: 8%;
    left: 5%;
    font-size: 35px;
}

.star-two {
    top: 12%;
    right: 7%;
    font-size: 22px;
    animation-delay: 1s;
}

.star-three {
    bottom: 12%;
    left: 43%;
    font-size: 35px;
    animation-delay: 2s;
}

.star-four {
    bottom: 8%;
    right: 4%;
    font-size: 28px;
}

.scroll-down {
    position: absolute;
    bottom: 25px;
    left: calc(50% - 20px);
    color: var(--pink);
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 50%;
    display: grid;
    place-items: center;
    animation: float 2s infinite;
}


/* =========================
   5. SECTIONS
========================= */

.section {
    padding: 95px 10%;
}

.soft-section {
    background: var(--soft);
}

.section-heading {
    text-align: center;
    margin: 0 auto 50px;
    max-width: 750px;
}

.section-label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pink);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-heading h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    margin-bottom: 15px;
}

.section-heading em {
    color: var(--pink);
}

.section-heading p {
    font-size: 14px;
}


/* =========================
   6. ABOUT
========================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.about-text h3 {
    font-size: 30px;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 14px;
    margin-bottom: 18px;
}

.text-link {
    color: var(--pink);
    font-size: 13px;
    font-weight: 600;
}

.text-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.text-link:hover i {
    transform: translateX(5px);
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.info-card {
    background: var(--surface);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-6px);
}

.info-card i {
    font-size: 25px;
    color: var(--pink);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.info-card p {
    font-size: 13px;
}

.info-card small {
    color: var(--muted);
    font-size: 10px;
}

.quote {
    margin: 55px auto 0;
    max-width: 900px;
    text-align: center;
    background: var(--light-pink);
    border-radius: 25px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.quote p {
    font-family: 'Playfair Display', serif;
    font-size: 23px;
    font-style: italic;
    color: var(--text);
}

.quote span {
    color: var(--pink);
    font-size: 28px;
}


/* =========================
   7. EDUCATION & EXPERIENCE
========================= */

.timeline {
    max-width: 850px;
    margin: auto;
    position: relative;
    padding-left: 65px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 25px;
    bottom: 25px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -65px;
    top: 22px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--light-pink);
    color: var(--pink);
    border: 4px solid var(--background);
}

.timeline-content {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    background: var(--surface);
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateX(5px);
}

.date {
    color: var(--pink);
    font-size: 12px;
    font-weight: 600;
}

.timeline h3 {
    font-size: 24px;
    margin: 10px 0;
}

.timeline h4 {
    font-weight: 500;
    font-size: 14px;
    color: var(--pink);
    margin-bottom: 12px;
}

.timeline p {
    font-size: 13px;
    margin-bottom: 10px;
}

.tag {
    background: var(--soft);
    color: var(--pink);
    font-size: 11px;
    padding: 5px 13px;
    display: inline-block;
    border-radius: 50px;
    margin-top: 10px;
}


/* =========================
   8. PROJECTS
========================= */

.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.filter-btn {
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #ad557c;
    color: white;
    border-color: #ad557c;
}

.projects-grid {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s, box-shadow 0.4s;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(173, 85, 124, 0.15);
}


/* Project icons instead of pictures */

.project-image {
    height: 160px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.project-image > i {
    font-size: 45px;
    color: #97617e;
    background: rgba(255, 255, 255, 0.5);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image > i {
    transform: scale(1.12) rotate(-8deg);
}

.project-number {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--surface);
    color: var(--pink);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    font-size: 12px;
}

.project-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.category {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
    color: var(--pink);
    font-weight: 600;
}

.project-content h3 {
    font-size: 23px;
    margin: 10px 0;
}

.project-content p {
    font-size: 13px;
    margin-bottom: 18px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tags span {
    padding: 4px 10px;
    border-radius: 30px;
    background: var(--soft);
    color: var(--pink);
    font-size: 10px;
    border: 1px solid var(--border);
}

.project-btn {
    background: none;
    border: none;
    color: var(--pink);
    font-weight: 600;
    font-size: 12px;
    padding-top: 22px;
    margin-top: auto;
}

.project-btn:hover {
    color: var(--pink-dark);
}


/* =========================
   9. SKILLS
========================= */

.skills-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-6px);
}

.skill-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #97617e;
    font-size: 23px;
    margin-bottom: 18px;
}

.skill-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11px;
    color: var(--muted);
    transition: all 0.3s;
}

.skill-tags span:hover {
    background: var(--light-pink);
    color: var(--text);
    border-color: var(--pink);
}


/* Languages */

.languages {
    max-width: 1200px;
    margin: 45px auto 0;
    padding: 30px;
    background: var(--surface);
    border-radius: 22px;
    border: 1px solid var(--border);
}

.languages h3 {
    text-align: center;
    font-size: 25px;
    margin-bottom: 25px;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.language {
    text-align: center;
    background: var(--soft);
    border-radius: 15px;
    padding: 20px 10px;
}

.language span {
    display: block;
    color: var(--pink);
    font-weight: 600;
    font-size: 14px;
}

.language small {
    color: var(--muted);
    font-size: 11px;
}


/* =========================
   10. CERTIFICATIONS
========================= */

.certifications-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.certificate {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.certificate:hover {
    transform: translateY(-6px);
}

.certificate > i {
    font-size: 40px;
    color: var(--pink);
    display: block;
    margin-bottom: 20px;
}

.certificate h3 {
    font-size: 21px;
    margin: 12px 0;
}

.certificate p {
    font-size: 12px;
}


/* =========================
   11. HOBBIES
========================= */

.hobbies-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.hobby {
    text-align: center;
    padding: 20px 10px;
}

.hobby-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    font-size: 32px;
    color: #97617e;
    transition: transform 0.4s;
}

.hobby:hover .hobby-icon {
    transform: rotate(-10deg) scale(1.1);
}

.hobby h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.hobby p {
    font-size: 12px;
}


/* =========================
   12. CONTACT
========================= */

.contact-section {
    background: linear-gradient(
        135deg, var(--soft), var(--purple)
    );
}

.contact-cards {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 35px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--pink);
}

.contact-circle {
    width: 65px;
    height: 65px;
    margin: 0 auto 18px;
    background: var(--light-pink);
    color: var(--pink);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 25px;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-circle {
    background: var(--pink);
    color: var(--background);
    transform: rotate(-10deg);
}

.contact-card h3 {
    font-size: 23px;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 12px;
    overflow-wrap: anywhere;
}


/* =========================
   13. FOOTER
========================= */

footer {
    padding: 45px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
}

footer p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 18px;
    margin: 12px 0;
}

footer small {
    color: var(--muted);
    font-size: 11px;
}


/* =========================
   14. PROJECT POPUP
========================= */

.modal {
    width: min(90%, 600px);
    max-height: 85vh;
    margin: auto;
    border: 1px solid var(--border);
    border-radius: 25px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
}

.modal::backdrop {
    background: rgba(40, 22, 37, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    padding: 40px;
    position: relative;
    animation: fadeUp 0.35s ease;
}

.modal h2 {
    font-size: 32px;
    margin: 15px 0;
    color: var(--pink);
}

.modal p {
    font-size: 14px;
    margin-bottom: 25px;
}

.modal h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: none;
    color: var(--pink);
    font-size: 30px;
}


/* =========================
   15. BACK TO TOP
========================= */

#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: #ad557c;
    color: white;
    border: none;
    border-radius: 50%;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px);
}


/* =========================
   16. ANIMATIONS
========================= */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes blink {

    50% {
        opacity: 0;
    }
}

@keyframes pulse {

    0%, 100% {
        box-shadow: 0 0 0 0 rgba(182, 95, 133, 0.4);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(182, 95, 133, 0);
    }
}

.js .reveal:not(.show) {
    opacity: 0;
    translate: 0 25px;
}

.js .reveal {
    transition: opacity 0.7s ease,
                translate 0.7s ease,
                transform 0.3s ease;
}

.js .reveal.show {
    opacity: 1;
    translate: 0 0;
}


/* =========================
   17. RESPONSIVE DESIGN
========================= */

@media (max-width: 1100px) {

    .nav-links {
        gap: 14px;
    }

    .hero,
    .section {
        padding-left: 7%;
        padding-right: 7%;
    }

    .projects-grid,
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 900px) {

    #menuBtn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--background);
        padding: 25px;
        display: none;
        flex-direction: column;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 65px;
    }

    .hero-content {
        max-width: 650px;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero .social-links {
        justify-content: center;
    }

    .hero-image {
        width: 70%;
        max-width: 340px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .hobbies-grid,
    .certifications-grid,
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-cards {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
}


@media (max-width: 550px) {

    .section {
        padding: 65px 5%;
    }

    .hero {
        padding: 55px 5% 95px;
        gap: 40px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero-image {
        width: 78%;
    }

    .welcome {
        font-size: 10px;
    }

    .floating-card {
        font-size: 9px;
        padding: 9px;
    }

    .card-one {
        left: -20px;
    }

    .card-two {
        right: -20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: min(100%, 270px);
    }

    .projects-grid,
    .skills-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .about-cards {
        gap: 10px;
    }

    .info-card {
        padding: 16px;
    }

    .info-card h3 {
        font-size: 18px;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline::before {
        left: 13px;
    }

    .timeline-icon {
        left: -40px;
        width: 28px;
        height: 28px;
        font-size: 10px;
        border-width: 2px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline h3 {
        font-size: 20px;
    }

    .quote {
        padding: 20px;
        gap: 10px;
    }

    .quote p {
        font-size: 18px;
    }

    .modal-content {
        padding: 28px;
    }
}


/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .reveal:not(.show) {
        opacity: 1;
        translate: none;
    }
}
