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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: white;
}

/* Design & Development: Harshad Mahajan | 2025 */

/* Animated Background Stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); }
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item a:hover {
    color: #4ecdc4;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    transition: width 0.3s ease;
}

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

/* Projects Section */
.projects-section {
    min-height: 100vh;
    padding: 120px 2rem 4rem;
    position: relative;
    background: radial-gradient(circle at 20% 30%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 50% 20%, rgba(69, 183, 209, 0.05) 0%, transparent 50%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out;
}

.section-title {
    font-size: 4rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleFloat 3s ease-in-out infinite;
}

.section-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    animation: subtitleFloat 3s ease-in-out infinite 0.5s;
}

.section-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

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

@keyframes titleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes subtitleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Projects Stats */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(20, 20, 40, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: statGlow 3s ease-in-out infinite;
    min-width: 140px;
}

.stat-item:nth-child(1) { animation-delay: 0s; }
.stat-item:nth-child(2) { animation-delay: 1s; }
.stat-item:nth-child(3) { animation-delay: 2s; }
.stat-item:nth-child(4) { animation-delay: 3s; }

@keyframes statGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 0 20px rgba(78, 205, 196, 0.3); }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4ecdc4;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.project-card {
    background: rgba(20, 20, 40, 0.8);
    border-radius: 25px;
    padding: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: projectFloat 6s ease-in-out infinite;
}

.project-card:nth-child(odd) { animation-delay: 0s; }
.project-card:nth-child(even) { animation-delay: 3s; }

@keyframes projectFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

.project-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(78, 205, 196, 0.5);
}

.project-video {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 25px 25px 0 0;
    transition: transform 0.3s ease;
}

.project-card:hover .project-video-player {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, rgba(20, 20, 40, 0.8), transparent);
    pointer-events: none;
}

.video-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.project-video-player:not([data-loaded="true"]) + .video-overlay::before {
    opacity: 1;
}

.project-content {
    padding: 2rem;
    position: relative;
}

.project-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.project-features {
    margin-bottom: 2rem;
}

.project-features h4 {
    color: #4ecdc4;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

.features-list li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
}

.features-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #4ecdc4;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.tech-tag:hover::before {
    left: 100%;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.status-completed { background: #4ecdc4; }
.status-inprogress { background: #feca57; }
.status-planned { background: #ff6b6b; }

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

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

.project-link {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: 2px solid rgba(78, 205, 196, 0.5);
    border-radius: 25px;
    color: #4ecdc4;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(78, 205, 196, 0.1);
    transition: width 0.3s ease;
}

.project-link:hover::before {
    width: 100%;
}

.project-link:hover {
    background: rgba(78, 205, 196, 0.1);
    border-color: #4ecdc4;
    transform: translateY(-2px);
}

/* Features Showcase */
.features-showcase {
    margin: 6rem 0;
    text-align: center;
}

.features-title {
    font-size: 3rem;
    color: #4ecdc4;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-card {
    background: rgba(20, 20, 40, 0.6);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.highlight-card:hover {
    transform: translateY(-10px);
    border-color: rgba(78, 205, 196, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.highlight-card h3 {
    color: #4ecdc4;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.highlight-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.9);
    padding: 3rem 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

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

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

.social-link:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.link-content {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.social-icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.link-name {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Warp Overlay */
.warp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 0%, rgba(10, 10, 10, 0.9) 100%);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.warp-overlay.active {
    opacity: 1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(10, 10, 10, 1) 80%);
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

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

/* RESPONSIVE DESIGN */

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .section-title {
        font-size: 5rem;
    }
    
    .features-title {
        font-size: 3.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 4rem;
    }
    
    .highlight-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-container {
        gap: 5rem;
    }
}

/* Desktop (1024px - 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
    .header {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .features-title {
        font-size: 2.8rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        gap: 2.5rem;
    }
}

/* Large Tablet (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .header {
        padding: 0.8rem 1.5rem;
    }
    
    .projects-section {
        padding: 100px 1.5rem 3rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .section-subtitle {
        font-size: 1.3rem;
    }
    
    .section-description {
        font-size: 1rem;
        max-width: 600px;
    }
    
    .features-title {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
        padding: 1.5rem 0;
    }
    
    .project-video {
        height: 220px;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.6rem;
    }
    
    .project-description {
        font-size: 0.95rem;
    }
    
    .stats-container {
        gap: 2.5rem;
        margin: 2.5rem 0;
    }
    
    .stat-item {
        padding: 1.3rem;
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .highlight-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .highlight-card {
        padding: 1.5rem;
    }
    
    .highlight-icon {
        font-size: 2.5rem;
    }
    
    .highlight-card h3 {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        gap: 1.2rem;
    }
    
    .nav-item a {
        font-size: 0.95rem;
    }
}

/* Small Tablet / Large Phone (480px - 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .header {
        padding: 0.8rem 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item a {
        font-size: 0.9rem;
    }
    
    .projects-section {
        padding: 120px 1rem 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .section-description {
        font-size: 0.95rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .features-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .features-showcase {
        margin: 4rem 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem 0;
    }
    
    .project-card {
        margin: 0 0.5rem;
        border-radius: 20px;
    }
    
    .project-video {
        height: 200px;
        border-radius: 20px 20px 0 0;
    }
    
    .project-video-player {
        border-radius: 20px 20px 0 0;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .project-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .project-features {
        margin-bottom: 1.5rem;
    }
    
    .project-features h4 {
        font-size: 1rem;
    }
    
    .features-list li {
        font-size: 0.85rem;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .project-tech {
        gap: 0.6rem;
        margin-bottom: 1.5rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .project-link {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .stats-container {
        gap: 1.5rem;
        margin: 2rem 0;
        justify-content: space-around;
    }
    
    .stat-item {
        padding: 1rem;
        min-width: 100px;
        flex: 1;
        max-width: 140px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .highlight-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .highlight-card {
        padding: 1.5rem;
    }
    
    .highlight-icon {
        font-size: 2.3rem;
    }
    
    .highlight-card h3 {
        font-size: 1.15rem;
    }
    
    .highlight-card p {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .social-link {
        min-width: 100px;
        padding: 10px 16px;
    }
    
    .link-name {
        font-size: 0.8rem;
    }
    
    .social-icon {
        width: 18px;
        height: 18px;
    }
    
    .footer-text {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* Mobile (320px - 479px) */
@media (max-width: 479px) {
    .header {
        padding: 0.6rem 0.8rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item a {
        font-size: 0.8rem;
    }
    
    .projects-section {
        padding: 100px 0.8rem 2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .section-description {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .features-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .features-showcase {
        margin: 3rem 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.8rem 0;
    }
    
    .project-card {
        margin: 0 0.3rem;
        border-radius: 15px;
    }
    
    .project-video {
        height: 180px;
        border-radius: 15px 15px 0 0;
    }
    
    .project-video-player {
        border-radius: 15px 15px 0 0;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .project-description {
        font-size: 0.8rem;
        margin-bottom: 1.2rem;
        line-height: 1.5;
    }
    
    .project-features {
        margin-bottom: 1.2rem;
    }
    
    .project-features h4 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .features-list li {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        border-radius: 20px;
    }
    
    .project-tech {
        gap: 0.5rem;
        margin-bottom: 1.2rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .project-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    .project-status {
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }
    
    .status-indicator {
        width: 8px;
        height: 8px;
    }
    
    .stats-container {
        gap: 1rem;
        margin: 1.5rem 0;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-item {
        padding: 0.8rem;
        min-width: 80px;
        flex: 1;
        max-width: 120px;
    }
    
    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .highlight-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.3rem;
    }
    
    .highlight-card {
        padding: 1.2rem;
        border-radius: 15px;
    }
    
    .highlight-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .highlight-card h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .highlight-card p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .footer {
        padding: 1.5rem 0.8rem 1rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        margin-bottom: 1.5rem;
    }
    
    .social-link {
        min-width: 140px;
        padding: 8px 12px;
        width: 100%;
        max-width: 200px;
    }
    
    .link-name {
        font-size: 0.75rem;
    }
    
    .social-icon {
        width: 16px;
        height: 16px;
    }
    
    .footer-text {
        font-size: 0.75rem;
        line-height: 1.4;
        padding: 0 1rem;
        text-align: center;
    }
}

/* Extra Small Mobile (280px - 319px) */
@media (max-width: 319px) {
    .header {
        padding: 0.5rem 0.5rem;
    }
    
    .nav-container {
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .nav-menu {
        gap: 0.6rem;
    }
    
    .nav-item a {
        font-size: 0.75rem;
    }
    
    .projects-section {
        padding: 90px 0.5rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .section-description {
        font-size: 0.8rem;
        padding: 0 0.2rem;
    }
    
    .features-title {
        font-size: 1.6rem;
    }
    
    .projects-grid {
        padding: 0.5rem 0;
        gap: 1.2rem;
    }
    
    .project-card {
        margin: 0 0.1rem;
    }
    
    .project-content {
        padding: 0.8rem;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 0.75rem;
    }
    
    .features-list li {
        font-size: 0.7rem;
    }
    
    .tech-tag {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .project-link {
        font-size: 0.75rem;
        padding: 0.5rem 0.6rem;
    }
    
    .stats-container {
        gap: 0.8rem;
        margin: 1.2rem 0;
    }
    
    .stat-item {
        padding: 0.6rem;
        min-width: 70px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .highlight-card {
        padding: 1rem;
    }
    
    .highlight-icon {
        font-size: 1.8rem;
    }
    
    .highlight-card h3 {
        font-size: 0.9rem;
    }
    
    .highlight-card p {
        font-size: 0.75rem;
    }
    
    .social-link {
        min-width: 120px;
        padding: 6px 10px;
    }
    
    .footer-text {
        font-size: 0.7rem;
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 0.5rem 1rem;
    }
    
    .nav-container {
        flex-direction: row;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .projects-section {
        padding: 80px 1rem 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .stats-container {
        margin: 1.5rem 0;
    }
    
    .features-showcase {
        margin: 3rem 0;
    }
    
    .project-video {
        height: 160px;
    }
}

/* High DPI / Retina Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .star {
        width: 1px;
        height: 1px;
    }
    
    .status-indicator {
        border: 0.5px solid rgba(255, 255, 255, 0.1);
    }
    
    .tech-tag {
        border: 0.5px solid rgba(255, 255, 255, 0.1);
    }
    
    .project-link {
        border-width: 1px;
    }
}

/* Dark Mode Specific Adjustments */
@media (prefers-color-scheme: dark) {
    .project-card {
        background: rgba(15, 15, 30, 0.9);
        border-color: rgba(255, 255, 255, 0.05);
    }
    
    .highlight-card {
        background: rgba(15, 15, 30, 0.7);
        border-color: rgba(255, 255, 255, 0.05);
    }
    
    .stat-item {
        background: rgba(15, 15, 30, 0.7);
        border-color: rgba(255, 255, 255, 0.05);
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .star {
        animation: none;
    }
    
    .project-card {
        animation: none;
    }
    
    .stat-item {
        animation: none;
    }
    
    .status-indicator {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .stars,
    .warp-overlay {
        display: none;
    }
    
    .projects-section {
        padding: 1rem;
    }
    
    .project-card {
        break-inside: avoid;
        margin-bottom: 2rem;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .project-video {
        display: none;
    }
    
    .project-links {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-title,
    .project-title,
    .features-title {
        color: black;
    }
}

/* Focus and Accessibility Improvements */
.project-link:focus,
.social-link:focus,
.nav-item a:focus {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
}

/* Smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
}

/* Container max-width for very large screens */
@media (min-width: 1920px) {
    .nav-container,
    .projects-grid,
    .highlight-cards {
        max-width: 1600px;
        margin: 0 auto;
    }
}