@import url('theme.css');

/* Cinematic Background */
@keyframes starPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.starfield {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0.3;
    animation: starPulse 4s infinite ease-in-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Main Layout Styles */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #000000;
    color: #ffffff;
    /* Fallback white */
    font-family: 'Inter', sans-serif;
    -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4,
.nav-item {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
}

.landing-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    height: 100vh;
    max-height: 100vh;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
    border: 1px solid var(--border-dim);
    background-color: var(--bg-color);
    background-image: var(--wave-gradient);
    padding: 2.5rem 3rem;
    position: relative;
    z-index: 1;
    overflow-y: auto;
}

/* Identity & Hero */
.hero-panel {
    background: transparent;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.profile-container {
    position: relative;
    margin-bottom: 0.5rem;
    /* Reduced from 1rem */
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(145deg, #111116, #050508);
    border: 3px solid rgba(224, 187, 107, 0.4);
    box-shadow: 0 0 60px rgba(224, 187, 107, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.profile-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wave-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, var(--primary-accent) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: waveMotion 10s infinite linear;
    z-index: 1;
}

@keyframes waveMotion {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    33% {
        transform: translate(-50%, -50%) rotate(120deg) scale(1.1);
        border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%;
    }
    66% {
        transform: translate(-50%, -50%) rotate(240deg) scale(0.9);
        border-radius: 30% 70% 60% 40% / 60% 40% 70% 30%;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-panel>* {
    animation: fadeUp 0.8s ease-out forwards;
}

.hero-text {
    text-align: center;
    z-index: 2;
    animation-delay: 0.2s;
    opacity: 0;
    /* Set initial state for animation */
    animation-fill-mode: forwards;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(224, 187, 107, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: var(--primary-accent) !important;
    border: 1px solid var(--border-dim);
    font-weight: 500;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 7vw, 3.5rem);
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    line-height: 1.1;
    margin: 0.15rem 0;
    /* Tightened from 0.25rem */
    font-weight: 800;
}

.hero-text .subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85) !important;
    letter-spacing: 0.2px;
    margin-bottom: 0.6rem;
    /* Further reduced from 0.75rem */
    line-height: 1.5;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.hero-text .subtitle strong {
    color: var(--primary-accent) !important;
    font-weight: 600;
}

.cta-group {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 95%;
    margin: 0 auto 1.5rem auto;
    padding-bottom: 0.5rem;
}

/* Inline About Section */
.inline-about {
    max-width: 85%;
    margin: 0 auto;
    text-align: center;
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.inline-about .intro-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.inline-about strong {
    color: var(--primary-accent);
    font-weight: 600;
}

.inline-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

.stat-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-accent);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.project-links {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.resume-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: 0.5s;
}

.resume-btn:hover::before {
    left: 100%;
}

.resume-btn.primary {
    background: #111116;
    color: #ffffff;
    border: 1px solid var(--border-dim);
}

.resume-btn.primary.github-btn {
    background: linear-gradient(135deg, rgba(224, 187, 107, 0.1), rgba(74, 58, 255, 0.1));
    border-color: rgba(224, 187, 107, 0.3);
}

.resume-btn.secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: rgba(255, 255, 255, 0.08);
}

.resume-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.2);
    color: white;
}

.resume-btn.primary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-accent);
}

.resume-btn.github-btn:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(122, 34, 255, 0.25));
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

.resume-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.vcard-btn {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 110, 255, 0.2)) !important;
    border: 1px solid rgba(0, 240, 255, 0.4) !important;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.1);
}

.vcard-btn:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 110, 255, 0.3)) !important;
    border-color: var(--primary-accent) !important;
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.3) !important;
}


.contact-card .btn.primary {
    background: linear-gradient(135deg, var(--primary-accent), #0072ff);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-card .btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.4);
    filter: brightness(1.1);
}

/* Navigation Hub (Vertical Stack on Desktop Split, Grid on Responsive) */
.nav-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-dim);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.nav-item {
    font-size: 1.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.4s var(--fluid-motion);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    position: relative;
    padding: 1.35rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    animation: fadeUp 0.6s ease-out forwards;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 100%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s var(--fluid-motion);
    pointer-events: none;
}

.nav-item:hover::before {
    transform: rotate(45deg) translateX(100%);
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary-accent);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(224, 187, 107, 0.1);
}

.nav-item:nth-child(1) { animation-delay: 0.3s; }
.nav-item:nth-child(2) { animation-delay: 0.4s; }
.nav-item:nth-child(3) { animation-delay: 0.5s; }
.nav-item:nth-child(4) { animation-delay: 0.6s; }
.nav-item:nth-child(5) { animation-delay: 0.7s; }

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #15151a;
    width: 95%;
    max-width: 1440px;
    height: auto;
    max-height: 92vh;
    /* Dynamic height instead of fixed 85vh */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    /* For header/body split */
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    /* Prevent body scroll bleed */
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111116;
    border-bottom: 1px solid var(--border-dim);
    z-index: 10;
}

.modal-title {
    font-size: 1.7rem;
    color: var(--primary-accent);
    font-family: 'Outfit', sans-serif;
}

.close-modal {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: rgba(255, 64, 64, 0.1);
    color: #ff4040;
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem 2rem;
    /* Reduced padding to remove scroll */
    overflow-y: auto;
    flex: 1;
    /* Take remaining height */
    min-height: 0;
    /* Important for flex child scrolling */
    line-height: 1.6;
    position: relative;
    display: block;
    /* Ensure block layout */
}

.next-section-hint {
    padding: 1.25rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #15151a;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    z-index: 10;
}

.prev-section-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.prev-section-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-5px);
    color: white;
}

.prev-section-btn svg {
    transition: transform 0.3s ease;
}

.prev-section-btn:hover svg {
    transform: translateX(-3px);
}

.next-section-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 50px;
    color: var(--primary-accent);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.next-section-btn:hover {
    background: rgba(0, 210, 255, 0.2);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.2);
}

.next-section-btn svg {
    transition: transform 0.3s ease;
}

.next-section-btn:hover svg {
    transform: translateX(3px);
}

/* Content Styles */
/* Content Styles */
.timeline-item,
.project-card,
.skill-category,
.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    /* Remove padding for flush media */
    gap: 0;
    overflow: hidden;
}

.project-card .project-media {
    width: 100%;
    margin-bottom: 0;
    border-radius: 0;
}

.project-card .project-content-wrapper {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.project-card:hover {
    border-color: rgba(0, 210, 255, 0.3);
    transform: translateY(-2px);
}

.project-media {
    width: 100%;
    height: auto;
    max-height: 200px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

.hover-video-container {
    cursor: pointer;
    background: linear-gradient(45deg, #0a0a0f 25%, #151520 25%, #151520 50%, #0a0a0f 50%, #0a0a0f 75%, #151520 75%, #151520 100%);
    background-size: 40px 40px;
    animation: blueprintScroll 20s linear infinite;
}

@keyframes blueprintScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 40px 40px;
    }
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    border: 1px solid rgba(0, 210, 255, 0.1);
}

.hover-video-container:hover .media-overlay {
    opacity: 0;
    backdrop-filter: blur(0px);
}

.blueprint-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0, 210, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    opacity: 0.5;
}

.media-overlay svg {
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
}

.media-overlay span {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
}

.media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-secondary);
    opacity: 0.6;
    transition: var(--transition);
}

.project-card:hover .project-media {
    background: rgba(0, 210, 255, 0.05);
    border-color: rgba(0, 210, 255, 0.2);
}

.project-card:hover .media-placeholder {
    opacity: 1;
    color: var(--primary-accent);
    transform: scale(1.05);
}

.detail-section h4 {
    display: none;
    /* Hide the bulky headers */
}

.detail-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.main-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Slightly wider left side for better balance */
    gap: 3rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.15rem;
    padding: 0.25rem 0 1.5rem 0;
}

@media (min-width: 768px) and (max-width: 1099px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.15rem;
    }
}

@media (min-width: 1100px) {
    .project-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.15rem;
    }
}

.project-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    padding: 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

.project-card:hover {
    border-color: rgba(0, 210, 255, 0.35);
    transform: translateY(-2px);
}

.project-header {
    margin-bottom: 0.35rem;
}

.project-card h3 {
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0 0 0.15rem;
    font-family: 'Outfit', sans-serif;
}

.project-subtitle {
    display: block;
    font-size: 0.7rem;
    color: var(--primary-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 0.35rem;
    font-family: 'Inter', sans-serif;
}

.project-media {
    width: 100%;
    height: 110px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-details p {
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 0.2rem;
}

.project-details p strong {
    color: #ffffff;
    font-weight: 600;
}

/* Loading state in project grid - force correct colors */
.project-grid .status-indicator {
    color: var(--primary-accent);
    background: rgba(0, 210, 255, 0.08);
    border-color: rgba(0, 210, 255, 0.2);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Inter', monospace;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    width: fit-content;
}

.project-grid .status-indicator .pulse {
    width: 8px;
    height: 8px;
    background: var(--primary-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-accent);
    animation: pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

/* Removed old .project-image style since we removed the placeholder div */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-category h4 {
    color: var(--primary-accent);
    margin-bottom: 0.5rem;
}

.skill-category p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-links {
    margin-top: auto;
    padding-top: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.tech-specs-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.16) 0%, rgba(0, 114, 255, 0.26) 100%);
    border: 1.5px solid rgba(0, 240, 255, 0.55);
    border-radius: 10px;
    color: #ffffff !important;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.6px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
    cursor: pointer;
}

.tech-specs-link:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.35) 0%, rgba(0, 114, 255, 0.5) 100%);
    border-color: #00f0ff;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.tech-specs-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 240, 255, 0.25);
}

.tags span {
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary-accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Inter', sans-serif;
}

.btn.primary {
    background: linear-gradient(135deg, var(--secondary-accent), var(--primary-accent));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
}

/* Utility Classes */
.intro-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.intro-text strong {
    color: white;
    font-weight: 600;
}

.clean-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clean-list li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.clean-list strong {
    color: var(--primary-accent);
}

.section-label {
    color: var(--primary-accent);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.job-header h3 {
    color: white;
    font-size: 1.3rem;
    margin: 0;
}

.job-header .date {
    color: var(--primary-accent);
    font-size: 0.9rem;
}

.company {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.job-content p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.job-content strong {
    color: white;
}

/* ==========================================================================
   Responsive Design & Mobile Optimization
   ========================================================================== */

@media (max-width: 900px) {
    html,
    body {
        height: auto;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        position: relative;
    }

    body {
        padding: 0;
        margin: 0;
    }

    .landing-container {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        border-radius: 0;
        border: none;
        height: auto;
        min-height: 100dvh;
        max-height: none;
        width: 100%;
        overflow-x: hidden;
        overflow-y: visible;
        padding: 1.5rem 1rem 3rem;
        gap: 1.25rem;
        box-sizing: border-box;
    }

    /* Unpack hero-panel so its children order seamlessly with nav-panel */
    .hero-panel {
        display: contents;
    }

    .profile-container {
        order: 1;
        margin: 0.5rem auto 0.5rem auto;
        text-align: center;
        position: relative;
    }

    .profile-photo {
        width: 115px;
        height: 115px;
        border-width: 2px;
        box-shadow: 0 0 35px rgba(224, 187, 107, 0.2);
    }

    .wave-bg {
        width: 160px;
        height: 160px;
    }

    .hero-text {
        order: 2;
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
        padding: 0 0.5rem;
        box-sizing: border-box;
    }

    .status-indicator {
        font-size: 0.72rem;
        padding: 0.35rem 0.8rem;
        max-width: 95%;
        margin: 0 auto 0.5rem auto;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        height: auto;
        justify-content: center;
    }

    .hero-text h1 {
        font-size: clamp(1.9rem, 7vw, 2.5rem);
        line-height: 1.15;
        word-wrap: break-word;
        padding: 0;
        margin: 0.1rem 0 0.35rem 0;
    }

    .hero-text .subtitle {
        max-width: 26rem;
        font-size: 0.92rem;
        line-height: 1.45;
        margin: 0 auto 0.8rem auto;
    }

    .cta-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin: 0 auto 0.5rem auto;
        max-width: 100%;
    }

    .resume-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.78rem;
        border-radius: 30px;
        justify-content: center;
    }

    /* Primary Navigation Hub — Prominently accessible on mobile screen */
    .nav-panel {
        order: 3;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        width: 100%;
        max-width: 480px;
        margin: 0.5rem auto 1.5rem auto;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        box-sizing: border-box;
    }

    .nav-item {
        font-size: 1.1rem;
        font-weight: 700;
        padding: 1rem 0.5rem;
        border-radius: 14px;
        letter-spacing: 1.5px;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.04);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    /* Inline About & Stats — Placed below the primary navigation */
    .inline-about {
        order: 4;
        width: 100%;
        max-width: 480px;
        margin: 0 auto 1.5rem auto;
        padding: 1.25rem 1rem;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 16px;
        box-sizing: border-box;
        text-align: center;
    }

    .inline-about .intro-text {
        font-size: 0.86rem;
        line-height: 1.55;
        margin-bottom: 1rem;
        color: rgba(255, 255, 255, 0.8);
    }

    .inline-stats {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        width: 100%;
    }

    .stat-item {
        width: 100%;
        min-width: 0;
        padding: 0.5rem 0.8rem;
        box-sizing: border-box;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-value {
        font-size: 0.8rem;
    }

    /* Admin trigger on mobile */
    .spaceship-trigger {
        order: 5;
        position: static;
        margin: 0 auto 2rem auto;
        align-self: center;
        padding: 6px 14px;
        font-size: 0.72rem;
    }

    /* Mobile Modals (Full-screen, sticky headers, single-column scroll) */
    .modal-overlay {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        background: rgba(5, 5, 8, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 9999;
        padding: 0;
        margin: 0;
        display: none;
        align-items: flex-start;
        justify-content: center;
        overflow: hidden;
    }

    .modal-overlay.active {
        display: flex;
    }

    .modal-content {
        width: 100% !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        background: #0c0c11 !important;
        transform: none !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .modal-header {
        width: 100% !important;
        padding: 0.85rem 1.1rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: #121218 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 20 !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }

    .modal-title {
        font-size: 1.25rem !important;
        margin: 0 !important;
        color: var(--primary-accent) !important;
    }

    .close-modal {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        font-size: 1.4rem !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }

    .modal-body {
        width: 100% !important;
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        padding: 0.75rem 0.85rem !important;
        box-sizing: border-box !important;
    }

    /* Projects Grid Mobile (Compact multi-card view) */
    .project-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 0.75rem !important;
        padding: 0 0 1.25rem 0 !important;
        box-sizing: border-box !important;
    }

    .project-card {
        width: 100% !important;
        max-width: 100% !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 10px !important;
        padding: 0.75rem 0.85rem !important;
        box-sizing: border-box !important;
        transform: none !important;
    }

    .project-card h3 {
        font-size: 0.95rem !important;
        line-height: 1.25 !important;
        margin: 0 0 0.1rem 0 !important;
    }

    .project-subtitle {
        font-size: 0.68rem !important;
        margin-bottom: 0.35rem !important;
        word-break: break-all;
    }

    .project-media {
        width: 100% !important;
        height: 105px !important;
        max-height: 115px !important;
        margin-bottom: 0.45rem !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        position: relative !important;
        background: rgba(0, 0, 0, 0.5) !important;
    }

    .project-media.icon-mode {
        height: 60px !important;
    }

    .project-media img,
    .project-media video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }

    .project-details p {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
        color: var(--text-secondary) !important;
        margin-bottom: 0.2rem !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        overflow: visible !important;
    }

    .tags {
        margin-top: 0.3rem !important;
    }

    .tags span {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.45rem !important;
        margin-right: 0.25rem !important;
        margin-bottom: 0.25rem !important;
    }

    .project-links {
        margin-top: 0.45rem !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .tech-specs-link {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.3rem !important;
        padding: 0.35rem 0.75rem !important;
        background: rgba(0, 240, 255, 0.08) !important;
        border: 1px solid rgba(0, 240, 255, 0.3) !important;
        border-radius: 6px !important;
        color: var(--primary-accent) !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        text-decoration: none !important;
    }

    .next-section-hint {
        padding: 0.8rem 1.1rem !important;
        background: #121218 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }

    .prev-section-btn,
    .next-section-btn {
        padding: 0.55rem 1rem !important;
        font-size: 0.82rem !important;
    }

    /* Skills Grid Mobile */
    .skills-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .main-grid {
        grid-template-columns: 1fr;
    }

    .resume-container {
        padding: 1.25rem !important;
    }
}

/* ==========================================================================
   Desktop Mission Control Admin Trigger (Screens > 900px)
   ========================================================================== */
@media (min-width: 901px) {
    .spaceship-trigger {
        position: absolute;
        bottom: 1rem;
        right: 1.5rem;
        color: rgba(0, 240, 255, 0.7);
        background: rgba(0, 240, 255, 0.08);
        border: 1px solid rgba(0, 240, 255, 0.25);
        border-radius: 20px;
        padding: 6px 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 1.2px;
        cursor: pointer;
        transition: all 0.3s var(--fluid-motion);
        z-index: 2000;
        -webkit-tap-highlight-color: transparent;
        backdrop-filter: blur(4px);
    }

    .spaceship-trigger:hover {
        color: #00f0ff;
        background: rgba(0, 240, 255, 0.18);
        border-color: rgba(0, 240, 255, 0.6);
        transform: translateY(-2px);
        box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
    }

    .spaceship-trigger:active {
        transform: scale(0.95);
        color: var(--primary-accent);
    }
}

.admin-access-text {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    user-select: none;
}

/* ── "Jacob OS Shell" Terminal Styling ── */
.terminal-modal-content {
    background: #08080c !important;
    border: 1px solid rgba(0, 240, 255, 0.35) !important;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.15) !important;
}

.terminal-header {
    background: rgba(0, 240, 255, 0.05) !important;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2) !important;
}

.terminal-title-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.term-dot.red { background: #ff5f56; }
.term-dot.yellow { background: #ffbd2e; }
.term-dot.green { background: #27c93f; }

.term-title {
    font-family: 'Courier New', monospace !important;
    font-size: 0.9rem !important;
    color: var(--primary-accent) !important;
    letter-spacing: 1px;
}

.terminal-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.terminal-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.term-chip {
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
}

.term-chip:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.6);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.terminal-output {
    background: #050508;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.85rem;
    height: 230px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #d0d0d0;
    box-sizing: border-box;
}

.term-line {
    margin-bottom: 0.4rem;
    word-break: break-word;
}

.term-line.banner-line {
    color: #00f0ff;
    font-weight: bold;
}

.term-line.info-line {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.76rem;
}

.term-line.user-line {
    color: #e0bb6b;
    font-weight: 600;
}

.term-line.ai-line {
    color: #a0f0ff;
}

.term-line.error-line {
    color: #ff6b6b;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
}

.term-prompt-symbol {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: #00f0ff;
    white-space: nowrap;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
}

.term-send-btn {
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: #00f0ff;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.term-send-btn:hover {
    background: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}