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

body {
    font-family: 'Inter', sans-serif;
    color: #fff;
    overflow: hidden;
    /* Mobile optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Prevent horizontal overflow */
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Swiper Container */
.swiper {
    width: 100%;
    height: 100vh;
    /* Mobile optimizations */
    -webkit-overflow-scrolling: touch;
    will-change: transform;
    /* Vertical scrolling optimization */
    touch-action: pan-y;
    overscroll-behavior: contain;
    /* Prevent horizontal overflow on mobile */
    overflow-x: hidden;
}

.swiper-slide {
    width: 100vw;
    height: 100vh;
    position: relative;
    /* Mobile performance */
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Smooth vertical transitions */
    will-change: transform;
    /* Prevent content overflow */
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Fixed Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
}

.nav-logo {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.contact-btn {
    background: linear-gradient(45deg, #a855f7, #06b6d4);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
}

/* Section Indicators */
.section-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.indicator-dot.active {
    background: #a855f7;
    transform: scale(1.2);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: #000;
    position: relative;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    z-index: 2;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #a855f7, #06b6d4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.rotating-text {
    color: #a855f7;
    font-weight: 500;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

#skills-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.skills-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.skills-text {
    opacity: 0;
    transform: translateX(-50px);
}

.skills-title {
    font-size: clamp(1.8rem, 4vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #a855f7, #06b6d4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

.skills-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #a855f7;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
    display: block;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.2rem;
    opacity: 0;
    transform: translateX(50px);
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.1);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: block;
}

.skill-icon i {
    color: #a855f7;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon i {
    transform: scale(1.1);
    color: #06b6d4;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.skill-level {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 500;
}

/* ===== SHOWCASE SECTION ===== */
.showcase-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

#showcase-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.showcase-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
    text-align: center;
}

.showcase-title {
    font-size: clamp(1.8rem, 4vw, 4rem);
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #ffffff, #06b6d4, #a855f7);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    opacity: 0;
    transform: translateY(50px);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(50px);
    max-width: 100%;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.5s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
    transition: left 0.6s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 25px 50px rgba(6, 182, 212, 0.2);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #06b6d4;
}

.project-icon i {
    transition: all 0.3s ease;
}

.project-card:hover .project-icon i {
    transform: scale(1.1) rotateY(10deg);
    color: #a855f7;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.project-description {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.5;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    margin-top: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-link:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: #06b6d4;
    transform: translateY(-2px);
}

.project-link span {
    font-size: 1.1rem;
}

.project-link i {
    transition: all 0.3s ease;
}

.project-link:hover i {
    transform: scale(1.1);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

#contact-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: 1000px;
    width: 100%;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    opacity: 0;
    transform: translateX(-50px);
}

.contact-title {
    font-size: clamp(1.8rem, 4vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #06b6d4, #a855f7);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

.contact-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #a855f7, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.3);
}

.social-link span {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
}

.social-link i {
    transition: all 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.2);
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    opacity: 0;
    transform: translateX(50px);
}

.contact-form-container h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #fff;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group-contact {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group-contact input,
.form-group-contact textarea {
    width: 100%;
    padding: 1.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    font-size: 1.25rem;
    font-weight: 400;
    min-height: 70px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: 1.4;
    display: block;
}

.form-group-contact input:focus,
.form-group-contact textarea:focus {
    outline: none;
    border-color: #06b6d4;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
    transform: translateY(-1px);
}

.form-group-contact input::placeholder,
.form-group-contact textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    font-weight: 400;
}

.submit-btn-contact {
    width: 100%;
    padding: 1.5rem 1.2rem;
    background: linear-gradient(45deg, #06b6d4, #a855f7);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 70px;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.submit-btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

/* Specific Email Input Styling - Desktop */
#contact-email {
    min-height: 70px !important;
    font-size: 1.25rem !important;
    padding: 1.5rem 1.2rem !important;
    border-radius: 15px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    display: block !important;
}

#contact-email:focus {
    border-color: #06b6d4 !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2) !important;
    outline: none !important;
    transform: translateY(-1px) !important;
}

#contact-email::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
}

/* Modal Styling */

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    backdrop-filter: blur(20px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 320px;
}

.modal h2 {
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    min-height: 48px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #a855f7;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #a855f7, #06b6d4);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* Responsive */
/* Mobile Section Containment */
@media (max-width: 768px) {
    .swiper-slide {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 100vh;
        box-sizing: border-box;
    }
    
    .header {
        padding: 0.8rem 1rem;
        position: fixed;
        z-index: 9999;
        backdrop-filter: blur(10px);
        background: rgba(0, 0, 0, 0.8);
        height: 60px;
        box-sizing: border-box;
    }
    
    .nav-logo {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
    
    .contact-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .section-indicator {
        right: 1rem;
    }
    
    .indicator-dot {
        width: 8px;
        height: 8px;
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-content p {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
    
    .skills-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
        top: 0;
        transform: none;
        left: auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        height: auto;
        overflow: visible;
        position: relative;
        min-height: calc(100vh - 80px);
        padding-bottom: 2rem;
    }
    
    .skills-text {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
        justify-items: center;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 0.5rem;
    }
    
    .skill-card {
        padding: 1rem;
        min-height: 100px;
        width: 100%;
        max-width: 150px;
    }
    
    .skill-icon {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    
    .skill-name {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }
    
    .skill-level {
        font-size: 0.7rem;
    }
    
    .stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .showcase-content {
        padding: 1rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        top: 0;
        left: auto;
        transform: none;
        height: auto;
        overflow: visible;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 0.5rem;
    }

    .project-card {
        min-height: 200px;
        padding: 1rem;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .project-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .project-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .project-description {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
        line-height: 1.3;
    }
    
    .tech-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    .project-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        text-align: center;
        padding: 1rem;
        gap: 1.5rem;
        display: block;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        min-height: calc(100vh - 80px);
        padding-bottom: 3rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
        margin: 0 auto 2rem auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-description {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
        min-height: 44px;
    }
    
    .modal-content {
        padding: 2.5rem 2rem;
        max-width: 480px;
        width: 85%;
        border-radius: 18px;
    }
    
    .form-group-contact input,
    .form-group-contact textarea {
        padding: 1rem;
        font-size: 1rem;
        min-height: 50px;
        border-radius: 12px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-form-container {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-form-container h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .form-group-contact input:focus,
    .form-group-contact textarea:focus {
        border-color: #06b6d4;
        box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
    }
    
    .submit-btn-contact {
        padding: 1.2rem 1rem;
        font-size: 1.1rem;
        min-height: 50px;
        border-radius: 12px;
    }
    
    /* Tablet Email Input Override */
    #contact-email {
        min-height: 54px !important;
        font-size: 1.15rem !important;
        padding: 1.3rem 1rem !important;
        border-radius: 12px !important;
        border: 2px solid rgba(255, 255, 255, 0.25) !important;
    }

    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
        min-height: 44px;
        border-radius: 10px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .submit-btn {
        padding: 1rem;
        font-size: 1rem;
        min-height: 44px;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header {
        padding: 0.6rem 0.8rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .skills-content,
    .contact-content {
        padding: 0.8rem;
        gap: 1rem;
        top: 0;
        transform: none;
        left: auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        height: auto;
        overflow: visible;
        position: relative;
    }
    
    .skills-text {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .skills-title {
        margin-bottom: 1rem;
    }
    
    .skills-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.8rem;
        justify-items: center;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 0.5rem;
    }
    
    .skill-card {
        padding: 0.8rem;
        min-height: 90px;
        border-radius: 12px;
        width: 100%;
        max-width: 120px;
    }
    
    .skill-icon {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }
    
    .skill-name {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
        line-height: 1.1;
    }
    
    .skill-level {
        font-size: 0.65rem;
    }
    
    .stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .showcase-content {
        padding: 0.8rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        top: 0;
        left: auto;
        transform: none;
        height: auto;
        overflow: visible;
    }
    
    .showcase-grid {
        gap: 1rem;
        margin-top: 1rem;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 0.5rem;
    }

    .project-card {
        min-height: 160px;
        max-height: 200px;
        padding: 0.8rem;
        border-radius: 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        overflow: hidden;
    }
    
    .project-icon {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }
    
    .project-title {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
        line-height: 1.2;
    }
    
    .project-description {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .project-tech {
        gap: 0.3rem;
        margin-top: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .project-link {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
        gap: 0.3rem;
    }
    
    .contact-content {
        padding: 0.8rem;
        gap: 1rem;
        display: block;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        min-height: calc(100vh - 70px);
        padding-bottom: 3rem;
    }
    
    .contact-info {
        margin-bottom: 1.5rem;
        padding: 0 0.2rem;
    }
    
    .contact-text {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .contact-form-container {
        padding: 1rem;
        margin: 0 auto 2rem auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .contact-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-height: 48px; /* Touch-friendly */
        border-radius: 12px;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: 400px;
        padding: 2rem 1.5rem;
        min-height: auto;
        border-radius: 16px;
    }
    
    .form-group-contact input,
    .form-group-contact textarea {
        padding: 1rem;
        font-size: 1rem;
        min-height: 50px;
        border-radius: 12px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        font-weight: 400;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-form-container {
        padding: 1rem;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-form-container h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .form-group-contact input:focus,
    .form-group-contact textarea:focus {
        border-color: #06b6d4;
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.25);
    }
    
    .submit-btn-contact {
        padding: 1rem;
        font-size: 1rem;
        min-height: 50px;
        width: 100%;
        box-sizing: border-box;
        border-radius: 12px;
        font-weight: 600;
        margin-top: 1rem;
    }
    
    /* Mobile Email Input Override */
    #contact-email {
        min-height: 64px !important;
        font-size: 1.3rem !important;
        padding: 1.5rem 1.2rem !important;
        border-radius: 14px !important;
        border: 3px solid rgba(255, 255, 255, 0.3) !important;
    }
    
    #contact-email:focus {
        border-color: #06b6d4 !important;
        box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.25) !important;
    }

    .form-group input,
    .form-group textarea {
        padding: 1.2rem;
        font-size: 1.1rem;
        min-height: 48px; /* Touch-friendly */
        border-radius: 12px;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #a855f7;
        outline: none;
        box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
    }
    
    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .submit-btn {
        padding: 1.2rem;
        font-size: 1.1rem;
        min-height: 48px;
        border-radius: 12px;
        font-weight: 600;
    }
}

/* Site Notification */
.site-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 90vw;
    background: #06b6d4;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    font-size: 1rem;
    z-index: 9999;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.site-notification.show {
    opacity: 1;
    pointer-events: auto;
}

.site-notification.success {
    background: #22c55e; /* green for success */
}

.site-notification.error {
    background: #ef4444; /* red for error */
}

/* Touch-specific optimizations for all mobile devices */
@media (hover: none) and (pointer: coarse) {
    .skill-card:hover,
    .project-card:hover,
    .social-link:hover {
        transform: none;
    }
    
    .skill-card:active,
    .project-card:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .social-link:active {
        transform: scale(0.9);
        transition: transform 0.1s ease;
    }
    
    /* Better touch targets */
    button,
    .contact-btn,
    .submit-btn-contact,
    .project-link,
    .social-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Disable hover effects on touch devices */
    .nav-logo:hover,
    .contact-btn:hover,
    .submit-btn-contact:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Active states for better touch feedback */
    .nav-logo:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.2);
    }
    
    .contact-btn:active {
        transform: scale(0.95);
    }
    
    .submit-btn-contact:active {
        transform: scale(0.98);
    }
}
