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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Mozilla Headline', sans-serif;
    color: white;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(115deg, 
        #1f1f1f 0%,
        #581845 20%,
        #900c3f 40%,
        #c70039 60%,
        #ff5733 80%,
        #ffc305 100%);
    z-index: -2;
}

.logo-background {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.30;
}

.background-logo {
    width: 540px;
    height: auto;
    filter: brightness(0.6);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Navigation */
.navigation {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-brand {
    font-size: 24px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link.active {
    opacity: 1;
}

/* Hero Section */
.hero {
    text-align: left;
    padding: 80px 0 60px 0;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
}

.highlight {
    color: white;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 50px;
    opacity: 0.9;
}

.cta-button {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Services Section */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 120px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: left;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

.service-card:nth-child(1) {
    background: rgba(255, 255, 255, 0.08);
}

.service-card:nth-child(2) {
    background: rgba(255, 255, 255, 0.08);
}

.service-card:nth-child(3) {
    background: rgba(255, 255, 255, 0.08);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 160px;
}

.service-icon-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.1);
    display: block;
    margin: 0 auto;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-description {
    font-size: 16px;
    opacity: 0.8;
    line-height: 1.5;
}

/* Portfolio Section */
.portfolio {
    margin-bottom: 120px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
}

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

.portfolio-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 350px;
}

a.portfolio-card {
    text-decoration: none;
    color: inherit;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.portfolio-card:hover .portfolio-preview {
    background: rgba(255, 255, 255, 0.1);
}

.portfolio-card:hover .portfolio-info {
    background: rgba(31, 31, 31, 0.8);
}

.portfolio-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.app-screenshot {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Portfolio preview backgrounds are now handled by .portfolio-preview */

.app-five { 
    background: rgba(255, 255, 255, 0.05);
}

.construction-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.construction-emoji {
    font-size: 48px;
    animation: bounce 2s infinite;
}

.construction-text {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.under-construction .portfolio-tech {
    background: rgba(255, 165, 0, 0.3);
    border: 1px solid rgba(255, 165, 0, 0.5);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.app-mockup {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    width: 120px;
    height: 160px;
    position: relative;
}

.app-mockup.mobile {
    width: 80px;
    height: 160px;
    border-radius: 20px;
}

.mobile-notch {
    width: 40px;
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    margin: 0 auto 10px auto;
}

.app-header {
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-bottom: 10px;
}

.app-content, .mobile-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100px;
}

.app-bar, .mobile-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

.app-bar:first-child, .mobile-bar:first-child {
    height: 16px;
}

.app-circle {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-bottom: 8px;
}

.portfolio-info {
    padding: 25px;
    background: rgba(31, 31, 31, 0.6);
    backdrop-filter: blur(10px);
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

.portfolio-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.portfolio-description {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.portfolio-tech {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    width: fit-content;
    margin-top: auto;
    align-self: flex-start;
    margin-bottom: 0;
}

/* Why Null0 Section */
.why-null0 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.why-content .section-title {
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.project-info {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .navigation {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .services {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .why-null0 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .background-logo {
        width: 400px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .background-logo {
        width: 300px;
    }
}