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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Ensure modal appears above everything */
.modal {
    z-index: 9999 !important;
}


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

/* Header Section */
.header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 60px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* Button Container */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
}

/* Common Button Styles */
.btn-base {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: none;
    cursor: pointer;
    min-width: 200px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-base:hover::before {
    left: 100%;
}

/* Primary CTA Button */
.cta-button {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.cta-button:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.5);
    background: linear-gradient(45deg, #ff5252, #ff6b6b);
}

.cta-button:active {
    transform: translateY(-5px) scale(1.02);
}

/* View Online Button */
.btn-view {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-view:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.btn-view:active {
    transform: translateY(-3px) scale(1.01);
}

/* Download Button */
.btn-download {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.3);
}

.btn-download:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 30px rgba(245, 87, 108, 0.5);
    background: linear-gradient(135deg, #ec4899 0%, #ef4444 100%);
}

.btn-download:active {
    transform: translateY(-3px) scale(1.01);
}

/* Icons */
.btn-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-base:hover .btn-icon {
    transform: scale(1.2);
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Gradient animation for title */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}



/* Responsive Design */
@media (min-width: 768px) {
    .button-group {
        flex-direction: row;
        justify-content: center;
        gap: 25px;
    }
}

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

    .hero-subtitle {
        font-size: 1.2em;
    }

    .btn-base {
        padding: 12px 25px;
        font-size: 14px;
        min-width: 180px;
    }
}

/* Loading state */
.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Floating Particles */
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 10px;
    height: 10px;
}

.particle:nth-child(2) {
    top: 60%;
    left: 20%;
    width: 15px;
    height: 15px;
}

.particle:nth-child(3) {
    top: 30%;
    right: 10%;
    width: 8px;
    height: 8px;
}

.particle:nth-child(4) {
    bottom: 20%;
    left: 30%;
    width: 12px;
    height: 12px;
}

.particle:nth-child(5) {
    bottom: 40%;
    right: 20%;
    width: 6px;
    height: 6px;
}

/* Projects Section */
.projects {
    padding: 50px 0;
    background: #f8f9fa;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

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

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
    position: relative;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-header {
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: relative;
    overflow: hidden;
}

.project-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
}

.project-content {
    padding: 30px;
}

.project-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.project-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tech-tag {
    background: #e9ecef;
    color: #495057;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    outline: none;
}

.project-link:hover,
.project-link:focus {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

.project-link:active {
    transform: scale(0.98);
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    z-index: 1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    font-size: 2rem;
    color: #667eea;
}

.contact-text {
    color: #666;
    font-weight: 500;
}

/* Utility Classes */
.modal-open {
    overflow: hidden;
}

.text-center {
    text-align: center;
}

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

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

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.p-0 {
    padding: 0;
}

.p-1 {
    padding: 10px;
}

.p-2 {
    padding: 20px;
}

.p-3 {
    padding: 30px;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

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

.flex-between {
    justify-content: space-between;
}

.flex-around {
    justify-content: space-around;
}

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

.flex-wrap {
    flex-wrap: wrap;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.z-1 {
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

.z-3 {
    z-index: 3;
}

/* modal.css */

/* Modal Styles */
.modal {
    display: none !important;
    /* Ẩn modal mặc định - thêm !important để đảm bảo */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    scrollbar-width: none;
}

/* Khi modal được hiển thị */
.modal.show {
    display: block !important;
}

.modal.fade-in {
    opacity: 1;
}

.modal.fade-out {
    opacity: 0;
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border: none;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.modal.fade-in .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.modal-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 5px;
    border-radius: 50%;
    z-index: 1001;
    /* Đảm bảo button close luôn ở trên */
}

.close:hover,
.close:focus {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
    line-height: 1.6;
}

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

.demo-section h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.demo-section h4 {
    color: #555;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.demo-section p {
    color: #666;
    margin-bottom: 20px;
}

/* Swiper */
.mySwiper {
    width: 100%;
    max-width: 900px;
    height: 480px;
    margin: 40px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.mySwiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #007bff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: #aaa;
    opacity: 0.8;
}

.swiper-pagination-bullet-active {
    background: #007bff;
}

.swiper-slide {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    width: 100%;
    height: 400px;
    object-fit: contain;
}


.slide-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 0 0 10px 10px;
}

.slide-label .icon {
    font-size: 16px;
    line-height: 1;
}

/* Achievement Stats */
.achievement-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.feature-card h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Technical Details */
.tech-details {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.tech-details h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.tech-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tech-item span {
    font-size: 1.2rem;
}

.tech-item strong {
    color: #1C3DCE;
}

/* Demo Button Styles */
.demo-button {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e) !important;
    border: none;
    cursor: pointer;
}

.demo-button:hover {
    background: linear-gradient(45deg, #ff5252, #ff7979) !important;
}

/* Responsive Design for Modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 95vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 20px;
    }

    .close {
        top: 15px;
        right: 20px;
        font-size: 2rem;
    }

    .achievement-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .tech-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 1% auto;
        border-radius: 10px;
    }

    .modal-header {
        border-radius: 10px 10px 0 0;
    }

    .achievement-stats {
        grid-template-columns: 1fr;
    }
}

/* animation.css */

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }

    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.5);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-20px);
        opacity: 1;
    }
}

@keyframes cardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(2);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        visibility: hidden;
    }

    to {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.slide-in-left {
    animation: slideInLeft 1s ease-out 0.5s both;
}

.slide-in-right {
    animation: slideInRight 1s ease-out 1s both;
}

.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.float {
    animation: float 6s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s infinite;
}

.bounce {
    animation: bounce 2s infinite;
}

/* Hover Animations */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: all 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Transition Effects */
.smooth-transition {
    transition: all 0.3s ease;
}

.fast-transition {
    transition: all 0.2s ease;
}

.slow-transition {
    transition: all 0.5s ease;
}

/* responsive */

/* Responsive Design - Mobile First Approach */

/* Base styles for mobile (up to 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-content {
        padding: 30px 15px;
        margin: 0 10px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        margin: 0 10px;
    }

    .project-content {
        padding: 20px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-category {
        padding: 20px;
        margin: 0 10px;
    }

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

    .project-links {
        flex-direction: column;
        gap: 10px;
    }

    .project-link {
        text-align: center;
        justify-content: center;
    }
}

/* Tablet styles (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

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

/* Large tablet/Small desktop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .contact-info {
        gap: 40px;
    }
}

/* Desktop (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large desktop (1201px+) */
@media (min-width: 1201px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Modal Responsiveness */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header {
        padding: 20px 15px;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .tech-list {
        grid-template-columns: 1fr;
    }

    .achievement-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        min-height: auto;
        padding: 50px 0;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .project-icon {
        font-size: 3.5rem;
    }

    .contact-icon {
        font-size: 1.8rem;
    }
}

/* Print styles */
@media print {

    .particle,
    .cta-button,
    .project-links,
    .modal {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .header,
    .skills {
        background: white !important;
    }

    .hero-title,
    .section-title {
        color: black !important;
    }
}

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

    .particle {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {

    .projects,
    .contact {
        background: #1a1a1a;
        color: #f0f0f0;
    }

    .project-card {
        background: #2d2d2d;
        color: #f0f0f0;
    }

    .project-title {
        color: #f0f0f0;
    }

    .project-description {
        color: #cccccc;
    }

    .section-title {
        color: #f0f0f0;
    }

    .contact-text {
        color: #cccccc;
    }

    .tech-tag {
        background: #404040;
        color: #f0f0f0;
    }
}