/* ============================================
   Global Styles
   ============================================ */

:root {
    --primary-color: #2f50ab;
    --secondary-color: #a8c4f2;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
    --primary-alpha-10: rgba(47, 80, 171, 0.1);
    --primary-alpha-20: rgba(47, 80, 171, 0.2);
    --primary-alpha-90: rgba(47, 80, 171, 0.9);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-button: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-button-hover: 0 15px 40px rgba(0, 0, 0, 0.3);
    --white-alpha-05: rgba(255, 255, 255, 0.05);
    --white-alpha-10: rgba(255, 255, 255, 0.1);
    --white-alpha-30: rgba(255, 255, 255, 0.3);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

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

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--white-alpha-10);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--white-alpha-05);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    margin-bottom: 20px;
    animation: slideInDown 0.8s ease;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 28px);
    margin-bottom: 40px;
    opacity: 0.9;
    animation: slideInUp 0.8s ease 0.2s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-button);
    animation: slideInUp 0.8s ease 0.4s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-button-hover);
}

/* ============================================
   Section Styles
   ============================================ */

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ============================================
   About Section
   ============================================ */

.about {
    padding: 100px 20px;
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 16px;
}

.about-image {
    display: flex;
    justify-content: center;
}

.avatar-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: white;
    box-shadow: 0 20px 60px var(--primary-alpha-20);
}

/* ============================================
   Timeline Section
   ============================================ */

.timeline {
    padding: 100px 20px;
    background: white;
}

.timeline-content {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    align-items: center;
}

.timeline-item:nth-child(even) {
    direction: rtl;
}

.timeline-item:nth-child(even) > * {
    direction: ltr;
}

.timeline-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: white;
    font-size: 24px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 0 5px white, 0 0 0 8px var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 5px white, 0 0 0 8px var(--primary-color);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 0 0 5px white, 0 0 0 12px var(--primary-color);
    }
}

.timeline-body {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.timeline-body:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--secondary-color);
}

.timeline-body h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-location {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 15px;
}

/* ============================================
   Skills Section
   ============================================ */

.skills {
    padding: 100px 20px;
    background: white;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px var(--primary-alpha-10);
}

.skill-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.skill-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ============================================
   Projects Section
   ============================================ */

.projects {
    padding: 100px 20px;
    background: var(--light-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--white-alpha-30);
    background: linear-gradient(135deg, var(--primary-alpha-90), var(--secondary-color));
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--light-bg);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* ============================================
   Game Demo Animation
   ============================================ */

.project-image-game {
    background: linear-gradient(180deg, #87ceeb 0%, #90EE90 100%);
    position: relative;
    overflow: hidden;
}

.game-demo {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.game-ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(180deg, #8B7355 0%, #654321 100%);
    border-top: 3px solid #5C4033;
}

.game-player {
    width: 30px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    position: relative;
    z-index: 5;
    margin-bottom: 40px;
    animation: playerWalk 3s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-player::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #FFD700;
    border-radius: 50%;
}

@keyframes playerWalk {
    0%, 100% {
        transform: translateX(-60px);
    }
    25% {
        transform: translateX(-60px) translateY(-20px);
    }
    35% {
        transform: translateX(-60px) translateY(0);
    }
    50% {
        transform: translateX(0px);
    }
    75% {
        transform: translateX(60px) translateY(-20px);
    }
    85% {
        transform: translateX(60px) translateY(0);
    }
}

.game-bullets {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.game-bullets::before,
.game-bullets::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 4px;
    background: #FF4500;
    border-radius: 50%;
    bottom: 65px;
    animation: shoot 1s ease-in infinite;
}

.game-bullets::before {
    animation-delay: 0s;
    left: 35%;
}

.game-bullets::after {
    animation-delay: 1s;
    left: 65%;
}

@keyframes shoot {
    0% {
        right: 50%;
        opacity: 1;
    }
    100% {
        right: -10%;
        opacity: 0;
    }
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
    padding: 100px 20px;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 30px;
}

.contact-icon {
    font-size: 30px;
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-details p {
    color: var(--text-light);
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--secondary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-alpha-10);
}

.submit-button {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px var(--primary-alpha-20);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px var(--primary-alpha-20);
}

.submit-button:active {
    transform: translateY(0);
}

/* ============================================
   Social Links Section
   ============================================ */

.social-links {
    padding: 40px 20px;
    background: var(--light-bg);
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.footer p {
    margin: 0;
}

/* ============================================
   Responsive Design (Mobile First)
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .hero {
        padding: 60px 20px;
        min-height: 80vh;
    }

    .about,
    .skills,
    .projects,
    .contact,
    .social-links,
    .timeline {
        padding: 60px 20px;
    }

    .timeline-container::before {
        left: 30px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .timeline-item:nth-child(even) {
        direction: ltr;
    }

    .timeline-item:nth-child(even) > * {
        direction: ltr;
    }

    .timeline-marker {
        left: 30px;
    }

    .timeline-body {
        margin-left: 30px;
        padding: 20px;
    }
}

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

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .projects-grid,
    .skills-grid {
        gap: 20px;
    }

    .social-icons {
        gap: 20px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .project-card {
        box-shadow: var(--shadow-sm);
    }

    .avatar-placeholder {
        width: 200px;
        height: 200px;
        font-size: 80px;
    }

    .contact-item {
        gap: 20px;
    }

    .about-text p {
        font-size: 14px;
    }

    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .timeline-body {
        padding: 15px;
    }

    .timeline-body h3 {
        font-size: 18px;
    }
}

/* ============================================
   Accessibility & Print Styles
   ============================================ */

@media print {
    .navbar,
    .hero::before,
    .hero::after,
    .cta-button,
    .social-links,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ============================================
   Project Modal
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 15px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    z-index: 2001;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--light-bg);
    color: var(--text-dark);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

.modal-header {
    margin-bottom: 30px;
}

.modal-title {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.modal-subtitle {
    color: var(--text-light);
    font-size: 14px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h4 {
    font-size: 16px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 700;
}

.modal-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-tech-item {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.modal-features {
    list-style: none;
    padding: 0;
}

.modal-features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.modal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.modal-challenges {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
}

.modal-challenges h4 {
    margin-top: 0;
}

.modal-challenges p {
    color: var(--text-light);
    margin: 10px 0;
    line-height: 1.6;
}

.modal-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.modal-link {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-link.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.modal-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-link.secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.modal-link.secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        padding: 25px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-links {
        flex-direction: column;
    }

    .modal-link {
        width: 100%;
    }
}

/* Scroll behavior optimization */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
