@import url('theme.css');

/* Main Layout Styles */
html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    background-color: #000000;
    color: #ffffff;
    /* Fallback white */
    font-family: 'Inter', sans-serif;
    -webkit-text-size-adjust: 100%;
    padding: 0.5rem;
    /* Reduced from 1rem to save vertical space */
}

h1,
h2,
h3,
h4,
.nav-item {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
}

h1,
h2,
h3,
h4,
.nav-item {
    font-family: 'Outfit', sans-serif;
}

.landing-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    /* Fill the padded body */
    width: 100%;
    border-radius: 24px;
    /* Rounded corners */
    overflow: hidden;
    /* Clip content at corners */
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    /* Depth */
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle edge definition */
    background-color: var(--bg-color);
    /* The main background color moves here */
}

/* Left Side: Photo & Hero */
.hero-panel {
    background: radial-gradient(circle at 30% 50%, rgba(122, 34, 255, 0.08) 0%, var(--bg-color) 100%);
    padding: 1.5rem;
    /* Reduced padding */
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 420px;
    /* Aggressively reduced */
}

.profile-container {
    position: relative;
    margin-bottom: 0.5rem;
    /* Reduced from 1rem */
}

.profile-photo {
    width: 180px;
    /* Substantially reduced to save vertical space */
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.9), var(--bg-color));
    border: 3px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 45px rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.profile-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-fallback {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.35);
}

/* Glow effect behind photo */
.profile-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 65%);
    z-index: 1;
    pointer-events: none;
}

@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(0, 240, 255, 0.1);
    padding: 0.4rem 1rem;
    /* Reduced padding */
    border-radius: 50px;
    margin-bottom: 0.4rem;
    /* Reduced from 0.5rem */
    font-size: 0.95rem;
    color: var(--primary-accent) !important;
    border: 1px solid rgba(0, 240, 255, 0.3);
    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;
}

.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: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.resume-btn.primary.github-btn {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(122, 34, 255, 0.15));
    border-color: rgba(0, 240, 255, 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);
}

/* Nav Panel (Right) */
.nav-panel {
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 4rem;
    /* Compressed from 4rem 6rem */
    gap: 0.8rem;
    /* Slightly reduced gap */
}

.nav-item {
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    /* Brighter default */
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: -2px;
    position: relative;
    width: fit-content;
    display: inline-block;
    /* Ensure width calculation works */
    opacity: 0;
    animation: fadeUp 0.6s ease-out forwards;
}

.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;
}

.nav-item::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--primary-accent);
    width: 0;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
}

.nav-item:hover {
    color: #ffffff;
    transform: translateX(20px);
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-accent);
    animation: pulse 2s infinite;
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    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: 1200px;
    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.5rem 2.5rem;
    /* Shorter header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(21, 21, 26, 0.95);
    z-index: 10;
}

.modal-title {
    font-size: 2rem;
    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-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.project-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dynamically injected project card content */
.project-card h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    font-family: 'Outfit', sans-serif;
}

.project-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--primary-accent);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.8;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
}


.project-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

.project-details p strong {
    color: #ffffff;
    font-weight: 600;
}

.project-header {
    margin-bottom: 0.5rem;
}

/* 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;
}

.tech-specs-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.8;
}

.tech-specs-link:hover {
    opacity: 1;
    transform: translateX(5px);
}

.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 */
@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;
        /* Remove frame on mobile for max space */
    }

    .landing-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        border-radius: 0;
        /* Remove radius on mobile */
        border: none;
        height: auto;
        min-height: 100dvh;
        width: 100%;
        overflow-x: hidden;
    }

    .hero-panel {
        padding: 2.25rem 1rem 1.25rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        /* Separator */
        justify-content: flex-start;
    }

    .profile-container {
        margin-bottom: 1.25rem;
    }

    .profile-photo {
        width: 140px;
        height: 140px;
        font-size: 2rem;
        border-width: 2px;
    }

    .status-indicator {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        max-width: 90%;
        margin: 0 auto 1.5rem auto;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        height: auto;
        justify-content: center;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
        line-height: 1.1;
        word-wrap: break-word;
        /* Prevent overflow */
        padding: 0 0.5rem;
    }

    .hero-text .subtitle {
        max-width: 26rem;
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-group {
        flex-wrap: wrap;
        gap: 0.5rem;
        /* Tightened gap */
        margin-top: 0.5rem;
    }

    .resume-btn {
        padding: 0.5rem 1rem;
        /* Smaller buttons on mobile */
        justify-content: center;
        font-size: 0.85rem;
    }

    .resume-btn.primary,
    .resume-btn.secondary {
        flex: 0 1 auto;
        max-width: none;
        margin-bottom: 0.15rem;
        /* Minimized margin */
        padding: 0.4rem 0.8rem;
        /* Even smaller buttons */
        font-size: 0.8rem;
    }



    .nav-panel {
        padding: 2rem;
        align-items: center;
        overflow-y: auto;
        /* Allow menu scroll if needed on short screens */
        justify-content: flex-start;
    }

    .nav-item {
        font-size: 2.25rem;
        letter-spacing: -1px;
    }

    .main-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 100%;
        height: 100dvh;
        /* Dynamic viewport height */
        border-radius: 0;
        max-width: none;
        transform: none;
        display: flex;
        flex-direction: column;
    }

    .modal-overlay {
        padding: 0;
        /* Full screen on mobile */
        align-items: flex-start;
        /* Start from top */
        height: 100dvh;
    }

    .modal-header {
        padding: 1.25rem 1.5rem;
    }

    .modal-body {
        padding: 1.25rem 1.5rem;
        flex: 1;
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
        /* Smooth scrolling on iOS */
    }

    /* Resume specific mobile fixes */
    .resume-container {
        padding: 1.5rem !important;
        /* Reduce padding on mobile */
    }
}