:root {
    --bg-black: #050505;
    --bg-card: rgba(25, 25, 25, 0.4);
    --accent-orange: #ff4d00; /* From the glasses in your image */
    --accent-blue: #00d4ff;
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-dim: #888888;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

h1, h2, h3, .font-space {
    font-family: 'Space Grotesk', sans-serif;
}

.mono {
    font-family: monospace;
}

/* --- OVERLAY MENU --- */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.menu-overlay.active {
    right: 0;
}

.menu-close {
    position: absolute;
    top: 40px;
    right: 50px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-white);
    transition: transform 0.3s ease;
}

.menu-close:hover {
    transform: rotate(90deg);
    color: var(--accent-orange);
}

.overlay-nav ul li {
    margin: 20px 0;
    text-align: center;
}

.menu-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: -2px;
    transition: all 0.3s ease;
    display: inline-block;
}

.menu-link:hover {
    color: var(--accent-orange);
    transform: skewX(-10deg);
}

/* --- NAVIGATION --- */
.custom-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.custom-nav.scrolled {
    padding: 15px 50px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #4ade80; /* Active green */
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
}

/* --- HERO SECTION --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px; /* Increased top padding for fixed nav */
    gap: 2rem; /* Add space between elements */
}

.hero-image-container {
    display: grid;
    place-items: center;
    width: 100%;
    /* max-width removed to allow text to overflow evenly */
    z-index: 1;
    margin-bottom: 2rem;
}

.hero-img {
    grid-area: 1 / 1;
    width: 100%;
    max-width: 800px; /* Constraint moved here */
    height: auto;
    max-height: 60vh; /* Responsive height limit */
    object-fit: contain;
    transition: transform .2s ease-in-out;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hero-img:hover {
    transform: scale(1.5); /* Reduced scale to avoid overflow */
}

.hero-name {
    grid-area: 1 / 1;
    position: relative;
    z-index: 2;
    font-size: 180px; /* Fixed pixel size as requested */
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.1;
    pointer-events: none;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center; /* Ensure text centering */
    display: flex; /* Flex to center content */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    width: 100%; /* Take full width of container */
    transform: translateY(100px); /* Move text 50px down */
}

.reg-mark {
    font-size: 0.2em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8em; /* Slightly increased for better breathing room */
    height: 1.8em;
    line-height: 1; /* Reset line-height to center text vertically */
    margin-left: 10px;
    border: 2px solid white;
    border-radius: 50%;
    vertical-align: top;
    margin-top: -200px;
    padding: 0 5px 0 0px; /* Optical adjustment for font baseline */
}

/* --- HERO DETAILS GRID --- */
.hero-details {
    margin-top: 0; /* Removed negative margin */
    width: 100%;
    max-width: 1200px; /* Standard container max-width */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 40px;
    text-align: left;
    z-index: 3;
    padding: 0 20px;
}

.detail-item {
    position: relative;
}

.detail-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 1px;
    background: var(--accent-orange);
}

.detail-label {
    display: block;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 10px;
    margin-top: 10px;
}

.detail-text {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* --- TECH STACK BAR (BOTTOM) --- */
.tech-bar {
    margin-top: 80px;
    width: 100%;
    overflow-x: auto;
    display: flex;
    gap: 15px;
    padding: 20px 0;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.tech-bar::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.tech-pill {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 12px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s ease;
}

.tech-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.tech-icon {
    font-size: 1.2rem;
    color: var(--text-dim);
}

/* --- MOBILE ADAPTATION --- */
@media (max-width: 992px) {
    .hero-name {
        font-size: 100px;
    }
}

@media (max-width: 768px) {
    .hero-name {
        font-size: 60px;
    }
    .custom-nav { 
        padding: 15px 20px; 
        background: rgba(5, 5, 5, 0.9); /* Ensure visibility on mobile */
    }
    
    .custom-nav.scrolled { padding: 10px 20px; }
    
    .hero-details {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .detail-item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .detail-item::before { 
        left: 50%; 
        transform: translateX(-50%); 
        width: 40px; /* Wider accent line on mobile */
    }
    
    .detail-text {
        max-width: 400px; /* Limit line width for readability */
    }
}