/* Reset and Base Styles */
:root {
    --primary-color: #a855f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link.active {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Simple Audio Controls */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-btn {
    background: none;
    border: none;
    color: #a855f7;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.audio-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    transform: scale(1.1);
    color: #fff;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #a855f7;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: #9333ea;
    transform: scale(1.2);
}


/* Mobile Audio Controls */
@media (max-width: 768px) {
    .audio-controls {
        gap: 0.6rem;
        padding: 0.5rem 0.8rem;
    }
    
    .audio-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .volume-slider {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .audio-controls {
        gap: 0.5rem;
        padding: 0.4rem 0.6rem;
    }
    
    .audio-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .volume-slider {
        width: 50px;
    }
}
.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #a855f7;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    background: #9333ea;
    transform: scale(1.2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Container with Video Background */
.main-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
    z-index: -1;
}

/* Fallback background if video doesn't load */
.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -3;
}

/* Content Container */
.content-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    z-index: 1;
    padding-top: 80px;
}

/* Content Sections */
.content-section {
    display: none;
    min-height: calc(100vh - 80px);
    color: white;
    padding: 2rem 0;
}

.content-section.active {
    display: block;
}

/* Home section specific styles */
#home.content-section {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#home.content-section.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    color: #2c3e50;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 234, 167, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-animation {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.code-line {
    margin: 0.5rem 0;
    white-space: pre-wrap;
    min-height: 1.8em;
}

.cursor {
    display: inline-block;
    background: #ffffff;
    width: 2px;
    height: 1.2em;
    animation: blink 1s infinite;
    margin-left: 2px;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.keyword {
    color: #ff6b6b;
}

.class-name {
    color: #4ecdc4;
}

.type {
    color: #45b7d1;
}

.string {
    color: #96ceb4;
}

.number {
    color: #feca57;
}

.operator {
    color: #ffffff;
}

/* Override section styles for content sections */
.content-section h2.section-title {
    color: white;
}

.content-section .about-text p {
    color: rgba(255, 255, 255, 0.9);
}

.content-section .stat h3 {
    color: #ffeaa7;
}

.content-section .stat p {
    color: rgba(255, 255, 255, 0.8);
}

.content-section .profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-section .skill-category {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-section .skill-category h3 {
    color: white;
}

.content-section .skill-item span {
    color: rgba(255, 255, 255, 0.9);
}

.content-section .project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-section .project-content h3 {
    color: white;
}

.content-section .project-content p {
    color: rgba(255, 255, 255, 0.8);
}

.content-section .contact-info h3 {
    color: white;
}

.content-section .contact-info p {
    color: rgba(255, 255, 255, 0.9);
}

.content-section .contact-method {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-section .contact-method h4 {
    color: white;
}

.content-section .contact-method p {
    color: rgba(255, 255, 255, 0.8);
}

.content-section .contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-section .form-group input,
.content-section .form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.content-section .form-group input::placeholder,
.content-section .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.content-section .form-group input:focus,
.content-section .form-group textarea:focus {
    border-color: #ffeaa7;
    background: rgba(255, 255, 255, 0.15);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* About Section */
.about {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-weight: 500;
}

.profile-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.profile-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.profile-card p {
    opacity: 0.9;
}

/* Skills Section */
.skills {
    background: #f8f9fa;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 i {
    font-size: 1.5rem;
    color: #667eea;
}

.skill-item {
    margin-bottom: 1rem;
}

.skill-item span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.skill-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-in-out;
}

/* Projects Section */
.projects {
    background: white;
}

/* Project Categories */
.project-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.category-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.projects-category {
    display: none;
    animation: fadeIn 0.5s ease;
}

.projects-category.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.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.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
}

.project-image {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.project-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.project-screenshot {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.project-screenshot:hover {
    transform: scale(1.05);
}

/* Single image fallback */
.project-image:not(.project-gallery) .project-screenshot {
    height: 200px;
}

.project-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-features {
    margin: 1rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.3rem 0;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 0.8rem;
    width: 12px;
}

.project-content h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(168, 85, 247, 0.2);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Coming Soon Section */
.coming-soon {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    margin-top: 3rem;
}

.coming-soon-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.coming-soon-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.coming-soon-content h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.coming-soon-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Partners Section */
.partners {
    background: white;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.partner-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.partner-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.5s ease;
}

.partner-card:hover::before {
    left: 100%;
}

.partner-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
}

.partner-image {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.partner-content h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.partner-ip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.partner-ip i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.partner-plugins {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    background: rgba(168, 85, 247, 0.2);
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.partner-plugins i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Contact Section */
.contact-content-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.contact-info-main {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.contact-info-main h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.contact-info-main p {
    margin-bottom: 3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.contact-method:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.contact-method i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-method h4 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-method p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.contact-method a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: #c084fc;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #667eea;
    transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.back-to-top.show {
    display: flex;
}

/* View Counter */
.view-counter {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.view-counter:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
}

.view-counter i {
    color: var(--primary-color);
    font-size: 1rem;
}

.view-counter #viewCount {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.view-counter .counter-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .audio-player {
        min-width: 240px;
        padding: 0.6rem;
    }
    
    .track-title {
        font-size: 0.8rem;
    }
    
    .control-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .play-btn {
        font-size: 1.2rem;
    }
    
    .audio-progress {
        font-size: 0.7rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        justify-content: center;
    }

    .contact-methods-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-info-main h3 {
        font-size: 1.5rem;
    }

    .contact-info-main p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .contact-method {
        padding: 1.5rem;
    }

    .contact-method i {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .project-features {
        grid-template-columns: 1fr;
    }
    
    .project-screenshot {
        height: 150px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .partner-card {
        padding: 1.5rem;
    }

    .partner-logo {
        width: 70px;
        height: 70px;
    }

    .partner-content h3 {
        font-size: 1.2rem;
    }

    .partner-ip,
    .partner-plugins {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .code-animation {
        font-size: 0.8rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .audio-controls {
        gap: 0.3rem;
    }
    
    .audio-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .volume-slider {
        width: 50px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .project-card {
        margin: 0 10px;
    }

    .partner-card {
        padding: 1.2rem;
        margin: 0 10px;
    }

    .partner-logo {
        width: 60px;
        height: 60px;
    }

    .partner-content h3 {
        font-size: 1.1rem;
    }

    .partner-ip,
    .partner-plugins {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    .contact-methods-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-info-main h3 {
        font-size: 1.3rem;
    }

    .contact-info-main p {
        font-size: 0.9rem;
    }

    .contact-method {
        padding: 1rem;
    }

    .contact-method i {
        font-size: 1.8rem;
    }

    .contact-method h4 {
        font-size: 1rem;
    }

    .contact-method p {
        font-size: 0.9rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }

    .view-counter {
        bottom: 20px;
        left: 20px;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .view-counter i {
        font-size: 0.9rem;
    }

    .view-counter #viewCount {
        font-size: 0.9rem;
    }

    .view-counter .counter-label {
        font-size: 0.75rem;
        width: 45px;
        height: 45px;
    }
}

/* Smooth scrolling for all browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Print styles */
@media print {
    .navbar,
    .back-to-top {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
        break-inside: avoid;
    }
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(168, 85, 247, 0.8);
    transform: scale(1.1);
}

.modal-caption {
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile styles for modal */
@media (max-width: 768px) {
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .modal-caption {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .modal-image {
        max-height: 70vh;
    }
}