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

html {
    scroll-behavior: smooth;
}

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

/* Brand colors */
:root {
    --brand-purple: #581845;
    --brand-purple-2: #7A2B8F;
}

/* Background */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(900px 900px at 12% 12%, rgba(255, 107, 53, 0.22), transparent 60%),
                radial-gradient(1100px 1100px at 88% 18%, rgba(199, 0, 57, 0.22), transparent 60%),
                radial-gradient(800px 800px at 30% 85%, rgba(255, 195, 5, 0.18), transparent 60%),
                radial-gradient(1000px 1000px at 50% 50%, rgba(88, 24, 69, 0.12), transparent 65%);
    filter: saturate(120%) contrast(110%);
    z-index: -2;
}

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

.background-logo {
    width: 540px;
    height: auto;
    filter: grayscale(1) contrast(1.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: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(11, 12, 14, 0.06);
    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: #0B0C0E;
    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: #0B0C0E;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

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

.nav-link.active {
    color: #900c3f;
}

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

.hero-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(90deg, #1f1f1f 0%, #581845 20%, #900c3f 40%, #c70039 60%, #ff5733 80%, #ffc305 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 40px;
    color: rgba(11, 12, 14, 0.72);
}

.cta-button {
    background: #0B0C0E;
    border: 1px solid rgba(11, 12, 14, 0.08);
    color: #ffffff;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-button:hover {
    background: linear-gradient(90deg, #900c3f, #c70039);
    box-shadow: 0 8px 24px rgba(199, 0, 57, 0.25);
    transform: translateY(-2px);
}

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

.service-card {
    background: #ffffff;
    border: 1px solid rgba(11, 12, 14, 0.08);
    border-radius: 16px;
    padding: 20px 18px;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 12, 14, 0.16);
    box-shadow: 0 12px 30px rgba(11, 12, 14, 0.08);
}

/* unify service cards */

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

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

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

.service-description {
    font-size: 14px;
    color: rgba(11, 12, 14, 0.72);
    line-height: 1.6;
}

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

.section-title {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 40px;
}

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

.portfolio-card {
    background: #ffffff;
    border: 1px solid rgba(11, 12, 14, 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;
    border-color: rgba(122, 43, 143, 0.35);
    box-shadow: 0 18px 48px rgba(122, 43, 143, 0.16);
}

@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(11, 12, 14, 0.16);
    box-shadow: 0 14px 36px rgba(11, 12, 14, 0.10);
}

.portfolio-card:hover .portfolio-preview {
    background: rgba(122, 43, 143, 0.06);
}

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

.portfolio-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    background: rgba(11, 12, 14, 0.03);
}

/* RateCollector brand accent */
.app-ratecollector {
    background: radial-gradient(400px 200px at 20% 30%, rgba(122, 43, 143, 0.10), transparent 55%),
                radial-gradient(400px 240px at 80% 70%, rgba(199, 0, 57, 0.10), transparent 55%),
                rgba(11, 12, 14, 0.03);
}

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

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

.app-five { 
    background: rgba(11, 12, 14, 0.03);
}

.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(11, 12, 14, 0.72);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.app-mockup {
    background: rgba(11, 12, 14, 0.06);
    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(11, 12, 14, 0.12);
    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(11, 12, 14, 0.12);
    border-radius: 6px;
}

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

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

.portfolio-info {
    padding: 24px;
    background: #ffffff;
    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;
}

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

.portfolio-tech {
    background: rgba(11, 12, 14, 0.06);
    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;
}

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

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

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

.social-link:hover {
    border-color: rgba(199, 0, 57, 0.35);
    box-shadow: 0 10px 24px rgba(199, 0, 57, 0.12);
    transform: translateY(-2px);
}

.project-info {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(11, 12, 14, 0.72);
}

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

.feature {
    background: #ffffff;
    border: 1px solid rgba(11, 12, 14, 0.08);
    border-radius: 12px;
    padding: 18px 22px;
    font-size: 18px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
    transform: translateX(8px);
    border-color: rgba(11, 12, 14, 0.16);
    box-shadow: 0 12px 28px rgba(11, 12, 14, 0.08);
}

/* 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: 44px;
    }
    
    .hero-subtitle {
        font-size: 19px;
    }
    
    .services {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .why-null0 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .background-logo {
        width: 400px;
    }
}

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