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

html {
    scroll-behavior: smooth;
}

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

/* Brand colors */
:root {
    --brand-purple: #9D4EDD;
    --brand-purple-2: #C77DFF;
    --bg-dark: #050505;
    --card-bg: #0A0A0A;
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Background */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    object-fit: cover;
    z-index: -2;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    opacity: 0.9;
}

.logo-background {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.03;
    mix-blend-mode: overlay;
}

.background-logo {
    width: 600px;
    height: auto;
    filter: invert(1) grayscale(1);
}

.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: transparent;
    backdrop-filter: blur(4px);
    width: 100%;
    padding-bottom: 0px;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.1) 0%, rgba(5, 5, 5, 0) 100%);
}

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

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

.nav-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(1.2);
}

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

.nav-link {
    color: #E0E0E0;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    /* color: #c70039; */
}

/* Hero Section */
.hero {
    text-align: left;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    padding-top: 250px;
}

.hero-title {
    font-size: clamp(34px, 5vw + 1rem, 72px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #d1d1d1;
    text-shadow: 0 0 40px rgba(0,0,0,0.8);
    mix-blend-mode: hard-light;
}

.highlight {
    background: linear-gradient(90deg, #a0a0a0 0%, #ff3e1d 50%, #606060 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 25px rgba(255, 62, 29, 0.4));
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Services Section - RPG Style */
.services {
    margin-bottom: 96px;
    /* text-align: center; removed for left align title */
}

.rpg-title {
    font-size: 56px;
    color: #ffffff;
    margin-bottom: 60px;
}

/* Potion Glow Effects */
@keyframes potion-glow-blue {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(66, 153, 225, 0.4)); transform: translateY(0); }
    50% { filter: drop-shadow(0 0 30px rgba(66, 153, 225, 0.8)); transform: translateY(-5px); }
}

@keyframes potion-glow-red {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(245, 101, 101, 0.4)); transform: translateY(0); }
    50% { filter: drop-shadow(0 0 30px rgba(245, 101, 101, 0.8)); transform: translateY(-5px); }
}

@keyframes potion-glow-orange {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(237, 137, 54, 0.4)); transform: translateY(0); }
    50% { filter: drop-shadow(0 0 30px rgba(237, 137, 54, 0.8)); transform: translateY(-5px); }
}

@keyframes potion-glow-green {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(72, 187, 120, 0.4)); transform: translateY(0); }
    50% { filter: drop-shadow(0 0 30px rgba(72, 187, 120, 0.8)); transform: translateY(-5px); }
}

@keyframes potion-glow-purple {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(157, 78, 221, 0.4)); transform: translateY(0); }
    50% { filter: drop-shadow(0 0 30px rgba(157, 78, 221, 0.8)); transform: translateY(-5px); }
}

.rpg-potion {
    width: auto;
    height: 140px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* 1. SaaS - Blue Potion */
.rpg-card:nth-child(1) .rpg-potion {
    animation: potion-glow-blue 3s infinite ease-in-out;
}

/* 2. Mobile Apps - Red Potion */
.rpg-card:nth-child(2) .rpg-potion {
    animation: potion-glow-red 3.2s infinite ease-in-out 0.5s; /* Staggered */
}

/* 3. Chrome Extensions - Orange Potion */
.rpg-card:nth-child(3) .rpg-potion {
    animation: potion-glow-orange 3.4s infinite ease-in-out 1s; /* Staggered */
}

/* 4. Websites - Green Potion */
.rpg-card:nth-child(4) .rpg-potion {
    animation: potion-glow-green 3.1s infinite ease-in-out 0.2s; /* Staggered */
}

/* 5. Native Desktop Apps - Orange Potion */
.rpg-card:nth-child(5) .rpg-potion {
    animation: potion-glow-orange 3.3s infinite ease-in-out 0.7s; /* Staggered */
}

/* 6. AI-powered - Purple Potion */
.rpg-card:nth-child(6) .rpg-potion {
    animation: potion-glow-purple 3.5s infinite ease-in-out 1.2s; /* Staggered */
}

/* 7. Progressive Web Apps - Red Potion */
.rpg-card:nth-child(7) .rpg-potion {
    animation: potion-glow-red 3.2s infinite ease-in-out 0.4s; /* Staggered */
}

.rpg-card:hover .rpg-potion {
    animation-play-state: paused;
    transform: scale(1.1);
}

/* Hover glow intensification */
.rpg-card:nth-child(1):hover .rpg-potion {
    filter: drop-shadow(0 0 40px rgba(66, 153, 225, 0.9));
}
.rpg-card:nth-child(2):hover .rpg-potion {
    filter: drop-shadow(0 0 40px rgba(245, 101, 101, 0.9));
}
.rpg-card:nth-child(3):hover .rpg-potion {
    filter: drop-shadow(0 0 40px rgba(237, 137, 54, 0.9));
}
.rpg-card:nth-child(4):hover .rpg-potion {
    filter: drop-shadow(0 0 40px rgba(72, 187, 120, 0.9));
}
.rpg-card:nth-child(5):hover .rpg-potion {
    filter: drop-shadow(0 0 40px rgba(237, 137, 54, 0.9));
}
.rpg-card:nth-child(6):hover .rpg-potion {
    filter: drop-shadow(0 0 40px rgba(157, 78, 221, 0.9));
}
.rpg-card:nth-child(7):hover .rpg-potion {
    filter: drop-shadow(0 0 40px rgba(245, 101, 101, 0.9));
}

.services-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.rpg-card {
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
    flex: 1;
    min-width: 240px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rpg-icon-wrapper {
    height: 160px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
}

.rpg-potion {
    width: auto;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.rpg-service-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #F0F0F0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

.rpg-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin: 0 auto;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .services-grid {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }
    
    .rpg-card {
        max-width: 100%;
        width: 100%;
    }
}

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

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 40px;
    color: #ffffff;
}

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

.portfolio-card {
    background: #0F0F0F;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 350px;
}

.portfolio-card.featured {
    /* grid-column: span 2; Removed to make it less overwhelming */
    border-color: rgba(157, 78, 221, 0.5);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
    background: linear-gradient(to bottom, #131313, #0F0F0F);
}

@media (max-width: 768px) {
    .portfolio-card.featured {
        grid-column: span 1;
    }
}

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

.portfolio-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
}

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

.portfolio-card:hover .portfolio-info {
    background: #141414;
}

.portfolio-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    background: #050505;
}

/* RateCollector brand accent */
.app-ratecollector {
    background: radial-gradient(400px 200px at 20% 30%, rgba(157, 78, 221, 0.15), transparent 55%),
                radial-gradient(400px 240px at 80% 70%, rgba(255, 107, 53, 0.15), transparent 55%),
                #080808;
}

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

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

.app-five { 
    background: #080808;
}

.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.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.under-construction .portfolio-tech {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.2);
    color: #ffd700;
}

@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.05);
    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.5);
    border-radius: 2px;
    margin: 0 auto 10px auto;
}

.app-header {
    height: 20px;
    background: rgba(255, 255, 255, 0.08);
    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.08);
    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.08);
    border-radius: 50%;
    margin-bottom: 8px;
}

.portfolio-info {
    padding: 24px;
    background: #0F0F0F;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

.portfolio-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #ffffff;
}

.portfolio-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.portfolio-tech {
    background: rgba(255, 255, 255, 0.1);
    color: #E0E0E0;
    padding: 6px 10px;
    border-radius: 16px;
    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: 56px;
    align-items: start;
    margin-top: 150px;
    margin-bottom: 150px;
}

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

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

.social-link {
    width: 48px;
    height: 48px;
    background: #0F0F0F;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E0E0E0;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
    border-color: rgba(157, 78, 221, 0.5);
    box-shadow: 0 10px 24px rgba(157, 78, 221, 0.2);
    transform: translateY(-2px);
    color: #ffffff;
}

.project-info {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

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

.feature {
    background: #0F0F0F;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 22px;
    font-size: 18px;
    font-weight: 500;
    color: #E0E0E0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    background: #141414;
}

.tech-badges {
    margin-top: 20px;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Process Section */
.process {
    margin-bottom: 150px;
    /* text-align: center; removed for left align title */
}

.process-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.step-icon {
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.step-img {
    max-width: 180px; 
    height: auto;
    /* Removed drop-shadow filter */
}

.step-title {
    font-size: 24px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 600;
}

.step-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    max-width: 240px;
    margin: 0 auto;
    line-height: 1.4;
}

.process-step:hover .step-icon {
    transform: translateY(-10px);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .navigation {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .hero-subtitle {
        font-size: 19px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .why-null0 {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 100px;
        margin-bottom: 100px;
    }
    
    .process-grid {
        gap: 40px;
    }
    
    .process {
        margin-bottom: 100px;
    }

    .background-logo {
        width: 400px;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 17px;
    }
    
    .background-logo {
        width: 300px;
    }
}