/* --- 4. Fullscreen Menu (Premium Glass Version) --- */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Glassmorphism gradient */
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(20, 20, 20, 0.9));
    backdrop-filter: blur(15px); /* The Blur Effect */
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 2rem 5%;
    
    /* Animation State */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.fullscreen-menu.open {
    opacity: 1;
    visibility: visible;
}

/* Close Button */
.menu-close-btn {
    align-self: flex-end;
    font-size: 3rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.menu-close-btn:hover {
    color: var(--primary-orange);
    transform: rotate(90deg) scale(1.1);
}

.menu-content {
    display: flex;
    flex: 1;
    width: 100%;
    height: 100%;
}

/* --- Left Column: Abstract VS Code Window --- */
.menu-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 4rem;
}

.menu-image-placeholder {
    margin: 0;
    background: #1e1e1e; /* VS Code Dark */
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    transform: perspective(1000px) rotateY(10deg); /* 3D tilt */
    transition: transform 0.5s ease;
}

.menu-image-placeholder:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Fake Window Header */
.menu-image-placeholder::before {
    content: '● ● ●  digital_architect.js';
    display: block;
    background: #252526;
    color: #888;
    padding: 10px 15px;
    font-size: 0.8rem;
    font-family: sans-serif;
    letter-spacing: 2px;
    border-bottom: 1px solid #333;
}

.code-snippet-visual {
    padding: 2rem;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: #d4d4d4;
}

/* Syntax Highlighting */
.code-snippet-visual .keyword { color: #c678dd; } /* Purple */
.code-snippet-visual .class-name { color: #e5c07b; } /* Yellow */
.code-snippet-visual .string { color: #98c379; } /* Green */
.code-snippet-visual .this { color: #e06c75; } /* Red */
.code-snippet-visual .cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: var(--primary-orange);
    animation: blink 1s infinite;
    vertical-align: middle;
}

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

/* Services List Cleanup */
.services-list { margin-bottom: 2rem; }
.services-list h3 { display: none; } /* Hide header for cleaner look */
.services-list ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.services-list li {
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #aaa;
    border: 1px solid transparent;
    transition: all 0.3s;
}
.services-list li:hover {
    border-color: var(--primary-orange);
    color: white;
    background: rgba(0, 229, 255, 0.1);
}

/* Contact Info */
.menu-contact-info { margin-top: 2rem; opacity: 0.7; }

/* --- Right Column: The Links --- */
.menu-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.main-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0; /* Tight spacing for big text */
}

.nav-link {
    font-family: 'Oswald', sans-serif;
    font-size: 5.5vw; /* Responsive huge sizing */
    font-weight: 700;
    color: white; /* Default color */
    text-decoration: none;
    text-transform: uppercase;
    line-height: 1;
    transition: color 0.3s, transform 0.3s, opacity 0.3s;
    opacity: 0; /* Hidden for animation */
    transform: translateY(50px);
}

/* Staggered Entrance Animation */
.fullscreen-menu.open .nav-link {
    opacity: 1;
    transform: translateY(0);
}
.fullscreen-menu.open .nav-link:nth-child(1) { transition-delay: 0.1s; }
.fullscreen-menu.open .nav-link:nth-child(2) { transition-delay: 0.2s; }
.fullscreen-menu.open .nav-link:nth-child(3) { transition-delay: 0.3s; }
.fullscreen-menu.open .nav-link:nth-child(4) { transition-delay: 0.4s; }
.fullscreen-menu.open .nav-link:nth-child(5) { transition-delay: 0.5s; }

/* Focus Effect: When hovering the NAV container, fade all links */
.main-nav-links:hover .nav-link {
    color: rgba(255, 255, 255, 0.2); /* Dim all */
    filter: blur(2px);
}

/* Then light up the specific hovered one */
.main-nav-links .nav-link:hover {
    color: var(--primary-orange);
    filter: blur(0);
    transform: translateX(-30px) scale(1.05);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .menu-content { flex-direction: column-reverse; justify-content: flex-end; }
    .menu-left { display: none; } /* Hide code on mobile to focus on links */
    .menu-right { justify-content: center; align-items: center; padding: 0; }
    .nav-link { font-size: 3.5rem; }
    .main-nav-links { align-items: center; text-align: center; }
    .main-nav-links .nav-link:hover { transform: scale(1.1); } /* Simpler hover on mobile */
}
