/* --- Reset & Base Layouts --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --accent-color: #00A8FB; 
    --accent-hover: #33baff;
    --accent-gradient: linear-gradient(135deg, #00A8FB 0%, #0066cc 100%);
    --accent-glow: rgba(0, 168, 251, 0.35);
    --glass-bg: rgba(10, 12, 22, 0.45); 
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-hover: rgba(255, 255, 255, 0.08);
}

body, html {
    height: 100%;
    background-color: #030712; 
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- Direct Page-To-Page Sliding Core --- */
.content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    will-change: transform, opacity;
    transform-origin: center center;
}

/* Exit: Scale down to background */
.content-wrapper.scale-down-exit {
    animation: scaleDownOut 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Entrance: Slide from right */
.content-wrapper.slide-in-right-entrance {
    animation: slideInRight 0.55s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Exit: Slide to right (for going back) */
.content-wrapper.slide-out-right-exit {
    animation: slideOutRight 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Entrance: Scale up from background (for coming back to home) */
.content-wrapper.scale-up-entrance {
    animation: scaleUpIn 0.55s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes scaleDownOut {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.85); opacity: 0; }
}

@keyframes slideInRight {
    from { transform: translateX(100vw); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100vw); opacity: 0; }
}

@keyframes scaleUpIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- Page Entrance Pre-Set (avoids a flash of unanimated content before JS applies the real animation) --- */
html.entrance-slide-in-right .content-wrapper {
    opacity: 0;
    transform: translateX(100vw);
}

html.entrance-scale-up .content-wrapper {
    opacity: 0;
    transform: scale(0.85);
}

/* --- Floating Navbar --- */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--glass-bg); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 8px 16px;
}

.nav-left { display: flex; justify-content: flex-start; }
.nav-right { display: flex; justify-content: flex-end; }

.nav-logo { display: flex; align-items: center; }
.nav-logo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.nav-logo:hover img {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 100px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: 100px;
    display: block;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--text-main);
    background: var(--glass-hover);
}

.nav-link.active {
    color: var(--text-main);
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px var(--accent-glow);
    font-weight: 600;
}

.btn-hire {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: var(--accent-gradient);
    color: var(--text-main);
    padding: 12px 26px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.icon-right {
    margin-left: 8px;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.btn-hire:hover {
    box-shadow: 0 0 25px rgba(0, 168, 251, 0.5);
    transform: translateY(-1.5px);
}

.btn-hire:hover .icon-right { transform: translateX(4px); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.nav-toggle:hover { background: var(--glass-hover); }
.mobile-only { display: none; }

/* --- Fixed Background Layer (lives outside content-wrapper, so it never animates) --- */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Hero Section Layout --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1; 
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; 
    pointer-events: none; 
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(3, 7, 18, 0.4) 0%, rgba(3, 7, 18, 0.8) 100%);
    z-index: 2; 
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 3; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    gap: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 168, 251, 0.1);
    border: 1px solid rgba(0, 168, 251, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    color: #89dcff;
    animation: fadeInUp 0.6s ease both;
}

.badge .dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-color);
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.1; color: var(--text-main); animation: fadeInUp 0.6s ease 0.1s both;}
.solid-name { color: var(--accent-color); text-shadow: 0 0 30px rgba(0, 168, 251, 0.25); }
.subtitle { font-size: clamp(1rem, 3vw, 1.25rem); color: var(--text-muted); font-weight: 300; min-height: 1.8em; animation: fadeInUp 0.6s ease 0.2s both;}

.cursor { display: inline-block; width: 2px; background-color: var(--accent-color); animation: blink 1s step-end infinite; margin-left: 4px; }
@keyframes blink { 50% { opacity: 0; } }

.button-group { display: flex; gap: 15px; margin-top: 10px; flex-wrap: wrap; justify-content: center; animation: fadeInUp 0.6s ease 0.3s both;}
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 28px; border-radius: 50px; font-size: 0.95rem; font-weight: 600; text-decoration: none; color: var(--text-main); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.btn-outline { background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); }
.btn-outline:hover { background: var(--glass-hover); border-color: rgba(0, 168, 251, 0.4); box-shadow: 0 0 15px rgba(0, 168, 251, 0.15); transform: translateY(-3px); }
.btn-solid { background: var(--accent-gradient); border: none; box-shadow: 0 4px 15px var(--accent-glow); }
.btn-solid:hover { box-shadow: 0 6px 20px rgba(0, 168, 251, 0.5); transform: translateY(-3px); }

.socials { display: flex; gap: 12px; margin-top: 20px; animation: fadeInUp 0.6s ease 0.4s both;}
.social-icon { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-muted); text-decoration: none; font-size: 1.1rem; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); backdrop-filter: blur(10px); }
.social-icon:hover { background: var(--glass-hover); color: var(--accent-color); transform: translateY(-4px); border-color: rgba(0, 168, 251, 0.3); box-shadow: 0 5px 15px var(--accent-glow); }

/* --- Breakpoints --- */
@media screen and (max-width: 992px) {
    .nav-container { display: flex; justify-content: space-between; padding: 8px 12px; }
    .navbar { top: 15px; width: 92%; }
    .nav-action { display: none; }
    .nav-toggle { display: block; }
    .nav-menu {
        position: absolute; top: 125%; left: 0; width: 100%; flex-direction: column; background: rgba(10, 12, 22, 0.96); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8); padding: 16px; gap: 8px; opacity: 0; transform: translateY(-15px) scale(0.98); pointer-events: none; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .nav-menu.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
    .nav-link { width: 100%; text-align: center; padding: 12px; }
    .mobile-only { display: block; width: 100%; }
    .mobile-btn { justify-content: center; width: 100%; margin-top: 8px; }
}