/* 
 * Premium Platform Architecture Portfolio Stylesheet
 * Inspired by workwithharryy.com
 */

:root {
    --bg-primary: #060608;
    --bg-secondary: #0c0c10;
    --bg-card: rgba(15, 15, 22, 0.55);
    --bg-card-hover: rgba(22, 22, 32, 0.75);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-border-hover: rgba(168, 85, 247, 0.35);
    
    --text-primary: #f4f4f6;
    --text-secondary: #a0a0ba;
    --text-muted: #62627a;
    
    --color-purple: #a855f7;
    --color-pink: #ec4899;
    --color-orange: #f59e0b;
    --color-cyan: #06b6d4;
    --color-blue: #3b82f6;
    --color-green: #10b981;
    
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --glass-bg: rgba(6, 6, 8, 0.75);
    --bg-grid-color: rgba(255, 255, 255, 0.02);
    --bg-dots-color: rgba(255, 255, 255, 0.05);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Grids, Dots and Orbs */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, var(--bg-grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--bg-grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
}

.bg-dots {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image: radial-gradient(circle at center, var(--bg-dots-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-purple {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-purple) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.orb-pink {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-pink) 0%, transparent 70%);
    bottom: 10%;
    right: -10%;
    animation-delay: -5s;
}

.orb-cyan {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
    top: 40%;
    left: 45%;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

/* Glassmorphism Navigation Bar */
.navbar-fixed {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 950px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
}

.navbar-fixed:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.nav-brand {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition-fast);
    letter-spacing: 0.2px;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    padding: 0.45rem 1.25rem;
    border-radius: 50px;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(131,58,180,0.35);
    transition: var(--transition-smooth);
}

.nav-cta:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(131,58,180,0.5);
}

/* Glass Card Global Styles */
.glass-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--card-border-hover);
    background-color: var(--bg-card-hover);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.08);
}

/* Hero Section */
.hero-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 0.4rem 1.1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--color-purple);
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.hero-tagline .dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-purple);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-purple);
    animation: pulseGlow 1.6s infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.hero-shimmer {
    background: linear-gradient(90deg, #a855f7 0%, #ec4899 35%, #f59e0b 65%, #a855f7 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerFlow 4s linear infinite;
    display: inline-block;
}

.hero-title-name {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 950;
}

@keyframes shimmerFlow {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.hero-desc {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 4rem;
}

.btn-primary {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    background-size: 200% auto;
    color: white;
    text-decoration: none;
    padding: 1.1rem 2.2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 30px rgba(131, 58, 180, 0.4);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(131, 58, 180, 0.55);
}

.btn-secondary {
    background-color: var(--bg-card);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    text-decoration: none;
    padding: 1.1rem 2.2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: var(--bg-card-hover);
    transform: translateY(-2px);
}

/* Avatar Frame inside Hero */
.hero-avatar-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.25);
    transition: var(--transition-smooth);
}

.hero-avatar:hover {
    transform: scale(1.05);
    border-color: var(--color-pink);
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.4);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.4);
    transform-origin: center 25%;
}

.avatar-info {
    text-align: center;
}

.avatar-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
}

.avatar-info p {
    font-size: 0.8rem;
    color: var(--color-cyan);
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Endless Logo Marquee */
.marquee-container {
    width: 100%;
    border-y: 1px solid var(--card-border);
    background-color: rgba(12, 12, 16, 0.4);
    padding: 1.75rem 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.marquee-container::before, .marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.marquee-track {
    display: flex;
    gap: 5rem;
    width: max-content;
    animation: scrollLoop 25s linear infinite;
}

@keyframes scrollLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.marquee-item i {
    font-size: 1.35rem;
}

.marquee-item:hover {
    color: var(--text-primary);
}

/* Main Content Section Grid */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.75px;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-purple), var(--color-pink));
    border-radius: 10px;
}

/* About Me Section */
.about-card {
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: start;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-skill-item .skill-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.about-skill-item .skill-meter {
    height: 6px;
    background-color: var(--bg-secondary);
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.about-skill-item .skill-meter .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-purple), var(--color-pink));
    border-radius: 100px;
}

.credentials-seals h4 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.seals-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.seal-icon img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.seal-icon:hover img {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.25);
}

/* Specialties Section */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 8rem;
}

.specialty-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.specialty-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background-color: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.15);
    color: var(--color-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.specialty-card:hover .specialty-icon {
    transform: scale(1.08) rotate(5deg);
    background-color: var(--color-purple);
    color: white;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.35);
}

.specialty-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

.specialty-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Experience Redesign: Vertical Interactive Timeline */
.timeline-section {
    margin-bottom: 8rem;
}

.timeline-track {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-purple) 0%, var(--color-pink) 50%, var(--card-border) 100%);
}

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

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 2rem;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 3px solid var(--color-purple);
    z-index: 10;
    transition: var(--transition-fast);
}

.timeline-node:hover .timeline-marker {
    background-color: var(--color-purple);
    box-shadow: 0 0 12px var(--color-purple);
    transform: translateX(-50%) scale(1.2);
}

.timeline-card {
    padding: 2rem;
    cursor: pointer;
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.timeline-meta h3 {
    font-size: 1.25rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.timeline-node:hover .timeline-meta h3 {
    color: var(--color-purple);
}

.timeline-meta .company {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-cyan);
    background-color: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    white-space: nowrap;
}

.timeline-card-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-card.active {
    border-color: var(--card-border-hover);
    background-color: var(--bg-card-hover);
}

.timeline-card.active .timeline-card-body {
    max-height: 800px;
    opacity: 1;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.timeline-card-body .summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.timeline-achievements {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.timeline-achievements li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.timeline-achievements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-purple);
    font-weight: bold;
}

.timeline-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-techs .tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.04);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--card-border);
}

/* Architecture Simulator Panel */
.simulator-section {
    margin-bottom: 8rem;
}

.simulator-card {
    padding: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.sim-intro {
    text-align: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.sim-intro h3 {
    font-size: 1.75rem;
    font-weight: 850;
    margin-bottom: 0.5rem;
}

.sim-intro p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.sim-body {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
}

.sim-controls-wrapper h4, .sim-telemetry-wrapper h4 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.sim-switches {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sim-switch-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.switch-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.switch-title {
    font-weight: 700;
    font-size: 1rem;
}

.switch-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 90%;
    line-height: 1.4;
}

/* Custom CSS Toggles */
.toggle-control {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    cursor: pointer;
}

.toggle-control input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    transition: var(--transition-smooth);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.toggle-control input:checked + .toggle-slider {
    background-color: rgba(168, 85, 247, 0.15);
    border-color: var(--color-purple);
}

.toggle-control input:checked + .toggle-slider::before {
    transform: translateX(24px);
    background-color: var(--color-purple);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Telemetry Display */
.sim-telemetry-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.telemetry-meter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meter-heading {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.meter-heading span:last-child {
    font-family: var(--font-mono);
    color: var(--color-cyan);
    font-weight: 700;
}

.meter-track {
    height: 8px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-purple), var(--color-cyan));
    border-radius: 100px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-stack-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.02);
}

.sim-stack-card h5 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.sim-stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sim-stack-badges .badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
}

/* Technical Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 280px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-category {
    color: var(--color-purple);
}

.blog-readtime {
    color: var(--text-muted);
}

.blog-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.75rem 0 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.blog-date {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.blog-link {
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.blog-card:hover .blog-link {
    color: var(--color-purple);
    transform: translateX(3px);
}

/* Instagram Reels Section */
.reels-row {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--card-border) transparent;
}

.reels-row::-webkit-scrollbar {
    height: 6px;
}

.reels-row::-webkit-scrollbar-track {
    background: transparent;
}

.reels-row::-webkit-scrollbar-thumb {
    background-color: var(--card-border);
    border-radius: 10px;
}

.reel-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
}

.reel-video-frame {
    height: 480px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
    /* Static layout design placeholder */
    background-image: radial-gradient(circle at 50% 50%, #201a30 0%, #0c0813 100%);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 5;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon-center {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}

.reel-video-frame:hover .play-icon-center {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.25);
}

/* Audio visualizer columns inside play states */
.sound-visualizer {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
    z-index: 10;
    opacity: 0;
    transition: var(--transition-smooth);
}

.sound-visualizer span {
    width: 3px;
    background-color: white;
    border-radius: 10px;
    transition: height 0.2s;
}

.sound-visualizer span:nth-child(1) { height: 30%; }
.sound-visualizer span:nth-child(2) { height: 60%; }
.sound-visualizer span:nth-child(3) { height: 40%; }
.sound-visualizer span:nth-child(4) { height: 80%; }

.sound-visualizer.active-waves {
    opacity: 1;
}

.sound-visualizer.active-waves span {
    animation: waveBounce 0.8s ease-in-out infinite alternate;
}

.sound-visualizer.active-waves span:nth-child(1) { animation-delay: 0.1s; }
.sound-visualizer.active-waves span:nth-child(2) { animation-delay: 0.3s; }
.sound-visualizer.active-waves span:nth-child(3) { animation-delay: 0.2s; }
.sound-visualizer.active-waves span:nth-child(4) { animation-delay: 0.4s; }

@keyframes waveBounce {
    0% { height: 20%; }
    100% { height: 100%; }
}

/* Reel Header & Footer metadata overlay */
.reel-header {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.reel-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid white;
}

.reel-user-info {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.badge-reels {
    color: #3897f0;
    font-size: 0.75rem;
}

.reel-footer-details {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 65px;
    z-index: 10;
    color: white;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.reel-footer-details .description {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sound-track {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

/* Side controls */
.reel-side-controls {
    position: absolute;
    right: 15px;
    bottom: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: white;
    font-size: 1.15rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

.action-btn span {
    font-size: 0.65rem;
    font-weight: 600;
}

.action-btn:hover {
    transform: scale(1.1);
}

.duration-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: white;
    pointer-events: none;
}

.reel-info {
    padding: 1.25rem;
    background-color: var(--bg-card);
    border-top: 1px solid var(--card-border);
}

.reel-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.reel-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Contact Console Card */
.contact-section {
    margin-bottom: 4rem;
}

.contact-card {
    max-width: 650px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-card h2 {
    font-size: 2rem;
    font-weight: 850;
    letter-spacing: -0.5px;
}

.contact-card p {
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin-top: 0.5rem;
}

.social-links a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.social-links a[aria-label="GitHub"] {
    background-color: #24292e;
}
.social-links a[aria-label="LinkedIn"] {
    background-color: #0077b5;
}
.social-links a[aria-label="Twitter"] {
    background-color: #14171a;
    border-color: rgba(255, 255, 255, 0.1);
}
.social-links a[aria-label="Facebook"] {
    background-color: #1877f2;
}
.social-links a[aria-label="Instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-links a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.15);
}

/* Scroll-based reveals (Intersection Observer hooks) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animations classes for Hero load */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-in-up:nth-child(2) { animation-delay: 0.15s; }
.animate-fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.animate-fade-in-up:nth-child(4) { animation-delay: 0.45s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Queries */
@media (max-width: 992px) {
    .about-card {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem;
    }
    .sim-body {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar-fixed {
        padding: 0.75rem 1.5rem;
    }
    .nav-links {
        gap: 1.25rem;
    }
    .nav-links a:not(.nav-cta) {
        display: none;
    }
    .hero-container {
        padding-top: 7rem;
    }
    .specialties-grid {
        grid-template-columns: 1fr;
    }
    .timeline-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .timeline-date {
        align-self: flex-start;
    }
    .contact-card {
        padding: 2.5rem 1.5rem;
    }
}

/* Navigation Brand Highlight Styling */
.nav-brand-highlight {
    background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.brand-underline-wrap {
    position: relative;
    white-space: nowrap;
    z-index: 10;
    display: inline-block;
}

.brand-wave-underline {
    position: absolute;
    width: 100%;
    height: 10px;
    left: 0;
    bottom: -6px;
    pointer-events: none;
}

/* Theme Toggle Button Style */
.theme-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
}

.theme-toggle-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1) rotate(15deg);
}

/* Light Mode Theme Variable Overrides */
:root.light-mode, body.light-mode, .light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --card-border: rgba(0, 0, 0, 0.08);
    --card-border-hover: rgba(168, 85, 247, 0.45);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --glass-bg: rgba(255, 255, 255, 0.82);
    --bg-grid-color: rgba(0, 0, 0, 0.02);
    --bg-dots-color: rgba(0, 0, 0, 0.04);
}

:root.light-mode .glow-orb, .light-mode .glow-orb {
    opacity: 0.05;
}

:root.light-mode .marquee-container, .light-mode .marquee-container {
    background-color: rgba(241, 245, 249, 0.4);
}

:root.light-mode .sim-stack-card, .light-mode .sim-stack-card {
    background-color: rgba(0, 0, 0, 0.02);
}

:root.light-mode .social-links a[aria-label="Twitter"], .light-mode .social-links a[aria-label="Twitter"] {
    background-color: #000000;
    border-color: transparent;
}

/* Global Transition for Theme Switching */
body, header, nav, main, section, footer, .glass-card, p, h1, h2, h3, a, span, button, i, input {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Custom Trailing Cursor & Click Ripple Animations */
@media (pointer: fine) {
    html, body, a, button, input, select, textarea, [role="button"], .toggle-slider, .filter-btn, .action-btn {
        cursor: none !important;
    }
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-purple);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.15s ease, height 0.15s ease, background-color 0.15s ease;
}

.cursor-outline {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    /* Soft lag transition */
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

/* Hover active states */
.cursor-dot.hover-active {
    width: 4px;
    height: 4px;
    background-color: var(--color-pink);
}

.cursor-outline.hover-active {
    width: 48px;
    height: 48px;
    border-color: var(--color-pink);
    background-color: rgba(236, 72, 153, 0.04);
}

/* Clicking Ripple Burst Effect */
.click-ripple {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-pink);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 9997;
    animation: ripple-out-pulse 0.45s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes ripple-out-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.8);
        opacity: 0;
    }
}

