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

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

@keyframes gradientFlow {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

html {
    /* Smooth scrolling */
    scroll-behavior: smooth;
    /* Better font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent text size adjust after orientation change */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    /* Better touch scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    /* Minimum font size */
    min-width: 320px;
}

/* Touch-friendly elements */
a, button {
    -webkit-tap-highlight-color: rgba(168, 85, 247, 0.2);
}

/* Better focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #A855F7;
    outline-offset: 2px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    z-index: 1000;
    border-bottom: 1px solid #1a1a1a;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #A855F7 0%, #EC4899 50%, #F97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

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

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: linear-gradient(135deg, #A855F7 0%, #EC4899 50%, #F97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #A855F7 0%, #EC4899 50%, #F97316 100%);
}

.mobile-menu-btn {
    display: none;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px 12px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 8px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn:hover {
    background: rgba(168, 85, 247, 0.1);
}

.mobile-menu-btn:active {
    background: rgba(168, 85, 247, 0.2);
    transform: scale(0.95);
}

.mobile-menu-btn.active {
    background: rgba(168, 85, 247, 0.15);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 5px;
    align-items: center;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

.lang-btn.active {
    background: linear-gradient(135deg, #A855F7 0%, #EC4899 50%, #F97316 100%);
    border-color: transparent;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 20px;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #1a0a2e 0%, #000 100%);
}

.hero .container {
    text-align: center;
    width: 100%;
}

.hero p {
    margin-left: auto;
    margin-right: auto;
}

.hero-logo {
    width: 380px;
    height: 380px;
    margin: 0 auto 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.2)) drop-shadow(0 0 14px rgba(168, 85, 247, 0.15));
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.logo-hero {
    width: 180px;
    height: 180px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.3), 0 0 40px rgba(236, 72, 153, 0.2);
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #aaa;
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, #A855F7 0%, #EC4899 50%, #F97316 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.3);
    position: relative;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 60px rgba(168, 85, 247, 0.5);
}

/* Services Section */
.services {
    padding: 100px 20px;
    background: #0a0a0a;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 60px;
    color: #fff;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.25), 0 0 30px rgba(236, 72, 153, 0.15);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #A855F7, #EC4899, #F97316);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #A855F7;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-card p {
    color: #888;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.service-features {
    list-style: none;
    margin-top: 20px;
}

.service-features li {
    color: #aaa;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #A855F7;
    font-weight: bold;
}

/* Tech Stack */
.tech-stack {
    padding: 100px 20px;
    background: #000;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.tech-tag {
    padding: 12px 24px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 50px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.tech-tag:hover {
    background: linear-gradient(135deg, #A855F7 0%, #EC4899 50%, #F97316 100%);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Portfolio Section */
.portfolio {
    padding: 100px 20px;
    background: #0a0a0a;
}

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

.portfolio-item {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    transition: all 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: #A855F7;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #A855F7 0%, #EC4899 50%, #F97316 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.portfolio-content {
    padding: 30px;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.portfolio-content p {
    color: #888;
    margin-bottom: 15px;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tag {
    padding: 5px 15px;
    background: #2a2a2a;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #aaa;
}

/* About Section */
.about {
    padding: 100px 20px;
    background: #000;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #aaa;
    margin-bottom: 30px;
}

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

.stat-card {
    text-align: center;
    padding: 30px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #A855F7 0%, #EC4899 50%, #F97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: #888;
    font-size: 1.1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Contact Section */
.contact {
    background: transparent;
    padding: 60px 20px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    text-align: center;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.contact .contact-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

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

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.contact-link:hover {
    background: linear-gradient(135deg, #A855F7 0%, #EC4899 50%, #F97316 100%);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.contact-link svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

/* Footer */
footer {
    padding: 40px 20px;
    text-align: center;
    background: #000;
    border-top: 1px solid #1a1a1a;
    color: #666;
}

/* Page Header (for inner pages) */
.page-header {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 150px 20px 50px;
    background: radial-gradient(circle at 50% 50%, #1a0a2e 0%, #000 100%);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
}

.page-header h1 {
    position: relative;
    z-index: 1;
}

.page-header p {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    color: #aaa;
    margin-top: 20px;
    max-width: 600px;
}

/* Responsive */

/* Tablets and below */
@media (max-width: 1024px) {
    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 15px 0;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 60px !important;
        left: -100% !important;
        flex-direction: column !important;
        background: rgba(0, 0, 0, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        width: 100% !important;
        max-height: calc(100vh - 60px) !important;
        padding: 30px !important;
        transition: left 0.3s ease !important;
        border-bottom: 1px solid #1a1a1a !important;
        gap: 20px !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .nav-menu.active {
        left: 0 !important;
    }

    /* Disable page scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        z-index: 10000 !important;
        position: relative !important;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }

    /* Hero section */
    .hero {
        padding: 100px 15px 40px;
        min-height: 90vh;
    }
    
    .hero-logo {
        width: 150px;
        height: 150px;
        margin: 0 auto 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: 15px;
    }
    
    .tagline {
        font-size: clamp(1rem, 4vw, 1.3rem);
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .cta-button {
        padding: 15px 35px;
        font-size: 1rem;
    }

    /* Page header */
    .page-header {
        min-height: 35vh;
        padding: 120px 15px 40px;
    }
    
    .page-header h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    
    .page-header p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Sections */
    .services, 
    .tech-stack, 
    .contact, 
    .portfolio, 
    .about {
        padding: 50px 15px;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 40px;
    }

    /* Service cards */
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }

    /* Portfolio */
    .portfolio-image {
        height: 200px;
        font-size: 3rem;
    }
    
    .portfolio-content {
        padding: 20px;
    }
    
    .portfolio-content h3 {
        font-size: 1.3rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }

    /* Contact links */
    .contact-links {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 15px;
        width: 100%;
        flex-wrap: wrap;
        margin: 30px auto 0 !important;
    }
    
    .contact-link {
        width: auto !important;
        justify-content: center;
        padding: 18px 30px;
        font-size: 1.1rem;
    }

    /* Tech tags */
    .tech-tags {
        gap: 10px;
    }
    
    .tech-tag {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Footer */
    footer {
        padding: 30px 15px;
        font-size: 0.9rem;
    }
    
    /* About content */
    .about-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .navbar {
        padding: 12px 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .mobile-menu-btn {
        font-size: 1.3rem;
    }
    
    h1 {
        font-size: clamp(1.8rem, 12vw, 2.5rem);
    }
    
    .hero {
        padding: 90px 10px 30px;
    }
    
    .hero-logo {
        width: 150px;
        height: 150px;
        margin: 0 auto 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: clamp(1.3rem, 8vw, 1.8rem);
        margin-bottom: 30px;
    }
    
    .services, 
    .tech-stack, 
    .contact, 
    .portfolio, 
    .about {
        padding: 40px 10px;
    }
    
    .service-card,
    .portfolio-item {
        padding: 25px 15px;
    }
    
    .service-icon {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .service-card h3,
    .portfolio-content h3 {
        font-size: 1.2rem;
    }
    
    .service-card p,
    .portfolio-content p {
        font-size: 0.95rem;
    }
    
    .contact-link {
        padding: 16px 25px;
        font-size: 1rem;
    }
    
    .tech-tag {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .portfolio-image {
        height: 180px;
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero,
    .page-header {
        min-height: auto;
        padding: 100px 15px 40px;
    }
    
    .hero-logo {
        width: 120px;
        height: 120px;
        margin: 0 auto 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Very small devices */
@media (max-width: 320px) {
    .nav-logo {
        font-size: 1.1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}

/* Portfolio Modal Styles */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.portfolio-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 40px;
    max-width: 900px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #A855F7;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #9333ea;
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #A855F7;
}

.modal-subtitle {
    color: #888;
    font-size: 1.1rem;
}

.modal-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.modal-photo {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-photo:hover {
    transform: scale(1.02);
    border-color: #A855F7;
}

.modal-video {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

.archive-button {
    display: inline-block;
    background: linear-gradient(135deg, #A855F7 0%, #9333ea 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.archive-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

.modal-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-tag {
    background: rgba(168, 85, 247, 0.2);
    color: #A855F7;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #A855F7;
}

/* Make portfolio items clickable */
.portfolio-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Mobile modal styles */
@media (max-width: 768px) {
    .portfolio-modal {
        padding: 15px;
        padding-top: 60px;
    }

    .portfolio-modal-content {
        padding: 25px;
        border-radius: 12px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

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

    .modal-photos {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .modal-photo {
        height: 250px;
        border-radius: 6px;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }
}

/* Very Small Phones (< 480px) */
@media (max-width: 480px) {
    .portfolio-modal {
        padding: 8px;
        padding-top: 45px;
    }

    .portfolio-modal-content {
        padding: 12px;
        border-radius: 10px;
        box-shadow: 0 10px 40px rgba(168, 85, 247, 0.05);
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
        top: 8px;
        right: 8px;
    }

    .modal-header h2 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .modal-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .modal-subtitle {
        font-size: 0.9rem;
    }

    .modal-photos {
        gap: 8px;
        margin-bottom: 12px;
    }

    .modal-photo {
        height: 220px;
        border-radius: 6px;
    }

    .modal-video {
        border-radius: 6px;
        overflow: hidden;
        margin: 12px 0;
    }

    .modal-video iframe {
        height: 280px !important;
    }

    .archive-button {
        width: 100%;
        padding: 10px !important;
        font-size: 0.9rem;
        margin: 10px 0;
    }

    .modal-tags {
        flex-wrap: wrap;
        gap: 6px;
        margin: 10px 0;
    }

    .modal-tag {
        font-size: 0.8rem;
        padding: 5px 8px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    h3 {
        font-size: 1rem;
        margin-bottom: 8px;
        margin-top: 8px;
    }

    p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    /* Fullscreen Gallery Optimization */
    .fullscreen-gallery {
        padding: 3px;
        justify-content: flex-start;
        padding-top: 40px;
    }

    .gallery-main {
        min-height: 280px;
        margin-bottom: 10px;
    }

    .gallery-container {
        gap: 8px;
    }

    .gallery-thumbnails {
        max-height: 80px;
        gap: 6px;
        padding: 6px 0;
    }

    .gallery-thumbnail {
        width: 65px;
        height: 65px;
    }

    .gallery-counter {
        bottom: 8px;
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .gallery-close,
    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Tablets (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .portfolio-modal {
        padding: 15px;
        padding-top: 70px;
    }

    .portfolio-modal-content {
        padding: 25px;
        max-width: 750px;
    }

    .modal-header h2 {
        font-size: 1.7rem;
    }

    .modal-header {
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .modal-photos {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 18px;
    }

    .modal-photo {
        height: 300px;
    }

    .modal-video iframe {
        height: 380px !important;
    }

    h3 {
        font-size: 1.2rem;
        margin-top: 14px;
        margin-bottom: 10px;
    }

    p {
        font-size: 0.95rem;
    }

    /* Fullscreen Gallery */
    .fullscreen-gallery {
        padding: 15px;
    }

    .gallery-main {
        min-height: 480px;
    }

    .gallery-container {
        gap: 15px;
    }

    .gallery-thumbnails {
        gap: 10px;
        padding: 12px 0;
    }
}

/* Large Screens (> 1024px) */
@media (min-width: 1025px) {
    .portfolio-modal {
        padding: 25px;
        padding-top: 90px;
    }

    .portfolio-modal-content {
        padding: 35px;
        max-width: 900px;
    }

    .modal-header h2 {
        font-size: 1.9rem;
    }

    .modal-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .modal-photos {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin-bottom: 25px;
    }

    .modal-photo {
        height: 350px;
    }

    .modal-video iframe {
        height: 420px !important;
    }

    h3 {
        font-size: 1.3rem;
        margin-top: 18px;
        margin-bottom: 12px;
    }

    p {
        font-size: 1rem;
    }

    /* Fullscreen Gallery */
    .fullscreen-gallery {
        padding: 25px;
    }

    .gallery-main {
        min-height: 550px;
    }

    .gallery-container {
        max-width: 1000px;
        gap: 20px;
    }

    .gallery-thumbnails {
        gap: 12px;
        padding: 15px 0;
    }
}

/* ==================== FULLSCREEN GALLERY STYLES ==================== */

.fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.gallery-container {
    width: 100%;
    max-width: 900px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.gallery-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
}

.gallery-main img {
    animation: fadeIn 0.3s ease-in-out;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    opacity: 1;
    transition: opacity 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navigation Buttons - Fixed positioning relative to viewport */
.gallery-close,
.gallery-prev,
.gallery-next {
    background: rgba(168, 85, 247, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    padding: 0;
    position: fixed !important;
}

.gallery-close {
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    width: 40px;
    height: 40px;
    font-size: 24px;
}

.gallery-prev {
    left: 20px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.gallery-next {
    right: 20px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.gallery-close:hover {
    background: #A855F7;
    transform: scale(1.1);
}

.gallery-prev:hover,
.gallery-next:hover {
    background: #A855F7;
    transform: scale(1.1);
}

.gallery-prev:active,
.gallery-next:active,
.gallery-close:active {
    transform: scale(0.95);
}

/* Thumbnail Strip */
.gallery-thumbnails {
    width: 100%;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 15px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-thumbnail:hover {
    border-color: #A855F7;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: #A855F7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

/* Counter */
.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    pointer-events: none;
    z-index: 2002;
    font-size: 1rem;
    white-space: nowrap;
}

/* ==================== GALLERY RESPONSIVE STYLES ==================== */

/* Mobile Gallery */
@media (max-width: 768px) {
    .fullscreen-gallery {
        padding: 10px;
    }

    .gallery-main {
        min-height: 300px;
    }

    .gallery-close,
    .gallery-prev,
    .gallery-next {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .gallery-thumbnail {
        width: 70px;
        height: 70px;
    }

    .gallery-counter {
        bottom: 15px;
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .gallery-thumbnails {
        padding: 10px 0;
    }
}

/* Very Small Phones (< 480px) */
@media (max-width: 480px) {
    .fullscreen-gallery {
        padding: 5px;
        justify-content: space-between;
        padding-top: 35px;
        padding-bottom: 5px;
    }

    .gallery-main {
        min-height: 320px;
        flex-grow: 1;
        margin-bottom: 5px;
    }

    .gallery-container {
        gap: 5px;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .gallery-close,
    .gallery-prev,
    .gallery-next {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }

    .gallery-counter {
        bottom: 75px;
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .gallery-thumbnails {
        max-height: 75px;
        gap: 5px;
        padding: 5px;
        flex-shrink: 0;
    }
}

/* Tablets (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .fullscreen-gallery {
        padding: 20px;
    }

    .gallery-main {
        min-height: 480px;
    }

    .gallery-close,
    .gallery-prev,
    .gallery-next {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .gallery-thumbnail {
        width: 90px;
        height: 90px;
    }

    .gallery-counter {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* Large Screens (> 1024px) */
@media (min-width: 1025px) {
    .fullscreen-gallery {
        padding: 30px;
    }

    .gallery-main {
        min-height: 550px;
    }

    .gallery-container {
        max-width: 1000px;
        gap: 20px;
    }

    .gallery-close,
    .gallery-prev,
    .gallery-next {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    .gallery-thumbnail {
        width: 100px;
        height: 100px;
    }

    .gallery-counter {
        font-size: 1.1rem;
        padding: 12px 24px;
    }

    .gallery-thumbnails {
        gap: 12px;
        padding: 15px 0;
    }
}

/* ==================== MODAL RESPONSIVE STYLES ==================== */

