/* ==========================================================================
   PAGE SECTIONS & LAYOUTS
   Muhammad Saad Qasim - Portfolio (Red / Sunset Palette)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. NAVBAR / HEADER
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(14, 7, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    height: 64px;
    background: rgba(14, 7, 10, 0.96);
    border-bottom: 1px solid rgba(244, 63, 94, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.85rem;
    list-style: none;
}

.nav-link {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 0.2rem;
    position: relative;
    transition: color var(--transition-fast);
    text-decoration: none;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nav-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
}

/* Reading Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    width: 0%;
    z-index: 1001;
    transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   2. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 1.5rem);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero-typing-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 1.5rem;
    min-height: 2.2rem;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 620px;
    margin-bottom: 2.25rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Hero Visual / Avatar */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-avatar-container {
    position: relative;
    width: 320px;
    height: 320px;
}

.hero-avatar-glow {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.4;
    filter: blur(25px);
    animation: avatar-pulse 4s ease-in-out infinite alternate;
}

.hero-avatar-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 6px;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
}

.hero-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    background: var(--bg-secondary);
}

.hero-floating-pill {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    animation: float 6s ease-in-out infinite;
}

.hero-floating-pill i {
    font-size: 1.25rem;
}

.pill-mern {
    top: 5%;
    left: -15%;
    animation-delay: 0s;
}

.pill-ts {
    bottom: 10%;
    left: -10%;
    animation-delay: 2s;
}

.pill-aws {
    top: 20%;
    right: -15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes avatar-pulse {
    0% { transform: scale(0.95); opacity: 0.3; }
    100% { transform: scale(1.05); opacity: 0.6; }
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* --------------------------------------------------------------------------
   3. STATS STRIP
   -------------------------------------------------------------------------- */
.stats-strip {
    padding: 2.5rem 0;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-box {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-box:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.35rem;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   4. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.about-credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.credential-card {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all var(--transition-normal);
}

.credential-card:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.credential-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.credential-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.credential-content p {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin: 0;
}

.education-banner {
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12) 0%, rgba(249, 115, 22, 0.06) 100%);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.education-logo {
    width: 56px;
    height: 56px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

.education-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.education-details span {
    color: var(--secondary-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.education-details p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   5. TECH STACK MATRIX
   -------------------------------------------------------------------------- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.25rem;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.tech-card:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px var(--primary-glow);
}

.tech-icon {
    font-size: 2.5rem;
    transition: transform var(--transition-bounce);
}

.tech-card:hover .tech-icon {
    transform: scale(1.15);
}

.tech-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.tech-level-pill {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   6. PROJECTS SHOWCASE
   -------------------------------------------------------------------------- */
.project-search-bar {
    max-width: 480px;
    margin: 0 auto 2.5rem auto;
    position: relative;
}

.project-search-input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.project-search-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 15px var(--primary-glow);
}

.project-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-smooth);
}

.project-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px var(--primary-glow);
}

.project-preview-wrap {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.project-card:hover .project-img {
    transform: scale(1.06);
}

.project-category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 19, 34, 0.9);
    backdrop-filter: blur(8px);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    border: 1px solid var(--border-medium);
}

.project-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    color: var(--text-main);
}

.project-summary {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.project-links {
    display: flex;
    gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   7. INTERACTIVE SIMULATORS SECTION
   -------------------------------------------------------------------------- */
.simulators-section {
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-secondary) 50%, var(--bg-main) 100%);
}

.simulator-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.sim-nav-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
}

.sim-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.sim-nav-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.sim-content-pane {
    display: none;
}

.sim-content-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.sim-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.sim-input-group {
    margin-bottom: 1.25rem;
}

.sim-input-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.sim-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 0.95rem;
}

.sim-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 10px var(--primary-glow);
}

.sim-result-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.totp-display-wrap {
    text-align: center;
    padding: 1.5rem 0;
}

.totp-code-display {
    font-family: var(--font-mono);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--secondary-light);
    text-shadow: 0 0 20px var(--secondary-glow);
}

.totp-timer-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}

.totp-timer-fill {
    height: 100%;
    background: var(--secondary-light);
    width: 100%;
    transition: width 1s linear;
}

/* --------------------------------------------------------------------------
   8. EXPERIENCE & TIMELINE
   -------------------------------------------------------------------------- */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2.2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-bullet {
    position: absolute;
    left: -2.2rem;
    top: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 3px solid var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    transition: all var(--transition-normal);
}

.timeline-card:hover {
    border-color: var(--border-glow);
    transform: translateX(6px);
    box-shadow: var(--shadow-glow);
}

.timeline-role-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.timeline-company {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 1.05rem;
}

.timeline-date {
    font-size: 0.88rem;
    color: #cbd5e1;
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}

.timeline-list {
    margin-top: 1rem;
    padding-left: 1.2rem;
    color: #cbd5e1;
}

.timeline-list li {
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
    line-height: 1.65;
}

.timeline-list li::marker {
    color: var(--primary-light);
}

/* --------------------------------------------------------------------------
   9. INTERACTIVE BOOKING SECTION
   -------------------------------------------------------------------------- */
.booking-wizard {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.booking-steps-nav {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
}

.booking-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    z-index: 2;
    cursor: pointer;
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: all var(--transition-fast);
}

.booking-step-indicator.active .step-circle {
    background: var(--primary);
    border-color: var(--primary-light);
    color: #ffffff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.booking-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.booking-type-card {
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.booking-type-card:hover, .booking-type-card.selected {
    border-color: var(--primary-light);
    background: rgba(244, 63, 94, 0.12);
    transform: translateY(-3px);
}

.booking-type-card i {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.time-slot-btn {
    padding: 0.65rem 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.time-slot-btn:hover, .time-slot-btn.selected {
    background: var(--primary);
    border-color: transparent;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   10. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
    transition: all var(--transition-normal);
}

.contact-info-card:hover {
    border-color: var(--border-glow);
    transform: translateX(4px);
    box-shadow: var(--shadow-glow);
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(244, 63, 94, 0.15);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 15px var(--primary-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.footer {
    padding: 3.5rem 0 2rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-dim);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
