/* ==========================================================================
   Mohammad Qasim — Senior Mobile Application Developer Portfolio Stylesheet
   ========================================================================== */

:root {
    /* Color Palette — Modern Dark Theme Defaults */
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.85);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(16, 185, 129, 0.3);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Accent Colors */
    --accent-emerald: #10b981;
    --accent-cyan: #06b6d4;
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-amber: #f59e0b;

    /* RGB values for transparent fills */
    --emerald-rgb: 16, 185, 129;
    --cyan-rgb: 6, 182, 212;
    --indigo-rgb: 99, 102, 241;
    --purple-rgb: 168, 85, 247;

    /* Fonts */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;

    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.6);
    --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);
    --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.25);

    /* Transition Speeds */
    --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Navbar backgrounds */
    --nav-bg-base: transparent;
    --nav-bg-scrolled: rgba(11, 15, 25, 0.88);
}

/* Light Theme Overrides */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);

    --border-color: rgba(0, 0, 0, 0.1);
    --border-glow: rgba(16, 185, 129, 0.4);

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;

    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);

    /* Navbar backgrounds for light theme */
    --nav-bg-base: rgba(248, 250, 252, 0.7);
    --nav-bg-scrolled: rgba(248, 250, 252, 0.95);
}

/* CSS Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--trans-normal), color var(--trans-normal);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--trans-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Text Accent Colors & Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-cyan) 50%, var(--accent-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-emerald { color: var(--accent-emerald); }
.text-cyan { color: var(--accent-cyan); }
.text-indigo { color: var(--accent-indigo); }
.text-purple { color: var(--accent-purple); }
.text-amber { color: var(--accent-amber); }

/* Background Glow Effects */
.bg-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    animation: orbFloat 18s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: var(--accent-emerald);
}

.orb-2 {
    top: 40%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: var(--accent-cyan);
    animation-delay: -6s;
}

.orb-3 {
    bottom: -10%;
    left: 30%;
    width: 550px;
    height: 550px;
    background: var(--accent-indigo);
    animation-delay: -12s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -40px) scale(1.1); }
    100% { transform: translate(-40px, 50px) scale(0.95); }
}

.bg-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.6;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: transform var(--trans-normal), border-color var(--trans-normal), box-shadow var(--trans-normal);
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-md);
}

/* Layout Container */
.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Navigation Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: var(--nav-bg-base);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: padding var(--trans-fast), background-color var(--trans-fast), border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.navbar.scrolled {
    padding: 0.6rem 0;
    background: var(--nav-bg-scrolled);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-code {
    font-family: var(--font-code);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-emerald);
    background: rgba(var(--emerald-rgb), 0.15);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(var(--emerald-rgb), 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.1;
}

.logo-title {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-emerald);
    transition: width var(--trans-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

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

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform var(--trans-fast), border-color var(--trans-fast);
}

.theme-toggle-btn:hover {
    transform: rotate(15deg);
    border-color: var(--accent-cyan);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.25rem;
    color: var(--text-main);
    padding: 0.5rem;
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--trans-fast);
    white-space: nowrap;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

.btn-md {
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
    color: #ffffff;
    box-shadow: var(--shadow-glow-emerald);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #0891b2 100%);
    color: #ffffff;
    box-shadow: var(--shadow-glow-cyan);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.45);
}

.btn-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-emerald);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--accent-emerald);
    color: var(--accent-emerald);
}

.btn-outline:hover {
    background: rgba(var(--emerald-rgb), 0.15);
}

/* Hero Section */
.hero-section {
    padding: 9rem 0 4rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.9rem;
    background: rgba(var(--emerald-rgb), 0.12);
    border: 1px solid rgba(var(--emerald-rgb), 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-emerald);
    margin-bottom: 1.25rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 15px var(--accent-emerald); }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero-subtitle-role {
    display: block;
    font-size: 1.4rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.4rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tech-chip {
    padding: 0.25rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-pitch {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 620px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-contacts-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.quick-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--trans-fast);
    min-width: 0;
    max-width: 100%;
}

.quick-contact-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1 1 0;
}

.quick-contact-item:hover {
    color: var(--accent-emerald);
    border-color: var(--accent-emerald);
    background: rgba(var(--emerald-rgb), 0.08);
}

.copy-icon {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Smartphone Mockup CSS Frame */
.hero-mockup-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.phone-mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.smartphone-frame {
    width: 100%;
    height: 600px;
    background: #000000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.15);
    border: 3px solid #334155;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 22px;
    background: #000000;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-speaker {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 4px;
    background: #1e293b;
    border-radius: 2px;
    z-index: 11;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0f172a;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.phone-status-bar {
    height: 38px;
    padding: 8px 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    z-index: 5;
}

.status-icons {
    display: flex;
    gap: 6px;
    font-size: 0.7rem;
}

.phone-app-content {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

.phone-home-indicator {
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-home-indicator::after {
    content: '';
    width: 110px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

/* App Mockup Dynamic Screen Views */
.app-screen-view {
    display: none;
    padding: 0.75rem;
    animation: fadeInApp 0.3s ease-in-out;
}

.app-screen-view.active {
    display: block;
}

@keyframes fadeInApp {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.app-header-bar {
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.travello-theme { background: linear-gradient(135deg, #0284c7, #0f172a); color: #fff; }
.avm-theme { background: linear-gradient(135deg, #e11d48, #0f172a); color: #fff; }
.honda-theme { background: linear-gradient(135deg, #dc2626, #0f172a); color: #fff; }
.winkel-theme { background: linear-gradient(135deg, #7c3aed, #0f172a); color: #fff; }
.g1cabs-theme { background: linear-gradient(135deg, #059669, #0f172a); color: #fff; }

.app-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.app-badge-pill {
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.app-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.app-user-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.user-avatar-mini {
    width: 32px;
    height: 32px;
    background: var(--accent-emerald);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

.user-name-sm { font-size: 0.8rem; font-weight: 600; }
.user-sub-sm { font-size: 0.68rem; color: #94a3b8; }

.app-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.app-stat-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
}

.stat-num { font-size: 1rem; font-weight: 700; display: block; }
.stat-lbl { font-size: 0.65rem; color: #94a3b8; }

.app-section-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.app-card-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
}

.card-item-top {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.card-item-sub {
    font-size: 0.68rem;
    color: #94a3b8;
}

.badge-status {
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.status-confirmed { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.status-live { background: rgba(225, 29, 72, 0.3); color: #fb7185; animation: pulseLive 1.5s infinite; }

@keyframes pulseLive {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.progress-bar-sm {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.4rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-cyan);
}

.app-action-btn {
    width: 100%;
    padding: 0.45rem;
    background: var(--accent-emerald);
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Phone Selector Controls */
.mockup-controls-overlay {
    margin-top: 1rem;
    text-align: center;
}

.controls-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.mockup-selector-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.app-select-pill {
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all var(--trans-fast);
}

.app-select-pill.active, .app-select-pill:hover {
    background: var(--accent-emerald);
    color: #ffffff;
    border-color: var(--accent-emerald);
}

/* Stats Section */
.stats-section {
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-counter {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

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

/* Section Common Headers */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-emerald);
    margin-bottom: 0.5rem;
}

.section-heading {
    font-size: 2.2rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

.section-header-center {
    text-align: center;
    margin-bottom: 3rem;
}

/* Summary Section */
.summary-section {
    padding: 4rem 0;
}

.summary-card {
    padding: 3rem;
}

.summary-header {
    margin-bottom: 1.5rem;
}

.summary-content .lead-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.summary-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.summary-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}

.summary-feature-item {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.summary-feature-item i {
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.summary-feature-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.summary-feature-item p {
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* Technical Skills Section */
.skills-section {
    padding: 5rem 0;
}

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

.skill-category-card {
    padding: 1.5rem;
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;

    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.skill-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.bg-emerald-dim { background: rgba(var(--emerald-rgb), 0.15); }
.bg-cyan-dim { background: rgba(var(--cyan-rgb), 0.15); }
.bg-indigo-dim { background: rgba(var(--indigo-rgb), 0.15); }
.bg-purple-dim { background: rgba(var(--purple-rgb), 0.15); }
.bg-amber-dim { background: rgba(245, 158, 11, 0.15); }

.skill-category-header h3 {
    font-size: 1.15rem;
}

.skill-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-pill {
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--trans-fast);
}

.skill-pill:hover {
    border-color: var(--accent-emerald);
    color: var(--text-main);
    transform: translateY(-1px);
}

.skill-pill.highlight {
    background: rgba(var(--emerald-rgb), 0.1);
    border-color: rgba(var(--emerald-rgb), 0.3);
    color: var(--accent-emerald);
    font-weight: 600;
}

/* Projects Showcase Section */
.projects-section {
    padding: 5rem 0;
}

.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--trans-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-emerald);
    color: #ffffff;
    border-color: var(--accent-emerald);
    box-shadow: var(--shadow-glow-emerald);
}

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

/* 3D Tilt Card base */
.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.08s linear, box-shadow var(--trans-normal);
    will-change: transform;
}

.project-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--shadow-glow-emerald);
}

.project-card > *:not(.proj-banner) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.project-card > .project-card-header { padding-top: 1.25rem; }
.project-card > .project-card-actions { padding-bottom: 1.5rem; }

/* ── Project Illustrated 3D Banner ── */
.proj-banner {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 0;
    flex-shrink: 0;
}

.banner-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Animated shimmer sweep */
.proj-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: bannerShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

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

/* Banner glow overlay */
.banner-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--trans-normal);
    pointer-events: none;
    border-radius: inherit;
}

.project-card:hover .banner-glow {
    opacity: 1;
}

/* Banner label at bottom */
.banner-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
    backdrop-filter: blur(2px);
}

/* Per-project banner themes */
.banner-travello {
    background: linear-gradient(135deg, #020d1a 0%, #0c2340 40%, #071830 100%);
}
.banner-travello .banner-label { color: #38bdf8; }
.banner-travello .banner-glow {
    background: radial-gradient(ellipse at 50% 50%, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
}

.banner-avmlite {
    background: linear-gradient(135deg, #0f0209 0%, #2d0a16 40%, #1a0510 100%);
}
.banner-avmlite .banner-label { color: #fb7185; }
.banner-avmlite .banner-glow {
    background: radial-gradient(ellipse at 50% 50%, rgba(225, 29, 72, 0.2) 0%, transparent 70%);
}

.banner-honda {
    background: linear-gradient(135deg, #0e0404 0%, #2a0c0c 40%, #1a0505 100%);
}
.banner-honda .banner-label { color: #f87171; }
.banner-honda .banner-glow {
    background: radial-gradient(ellipse at 50% 50%, rgba(220, 38, 38, 0.2) 0%, transparent 70%);
}

.banner-winkel {
    background: linear-gradient(135deg, #08051a 0%, #1e1240 40%, #110d22 100%);
}
.banner-winkel .banner-label { color: #c084fc; }
.banner-winkel .banner-glow {
    background: radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
}

.banner-g1cabs {
    background: linear-gradient(135deg, #020e09 0%, #071f14 40%, #041208 100%);
}
.banner-g1cabs .banner-label { color: #34d399; }
.banner-g1cabs .banner-glow {
    background: radial-gradient(ellipse at 50% 50%, rgba(5, 150, 105, 0.2) 0%, transparent 70%);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.project-type-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-tag-pill {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    background: rgba(var(--cyan-rgb), 0.15);
    color: var(--accent-cyan);
    border-radius: 4px;
    font-weight: 600;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.project-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.project-contributions {
    margin-bottom: 1.25rem;
    flex: 1;
}

.project-contributions h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 0.6rem;
}

.project-contributions ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-contributions li {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.project-contributions li i {
    margin-top: 0.2rem;
    font-size: 0.8rem;
}

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

.badge-mini {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
}

.project-card-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Professional Experience Timeline Section */
.experience-section {
    padding: 5rem 0;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-emerald) 0%, var(--accent-cyan) 50%, var(--accent-indigo) 100%);
}

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

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

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 1.5rem;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 3px solid var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-emerald);
}

.timeline-card {
    padding: 2rem;
}

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

.role-title {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
}

.company-name {
    font-size: 1rem;
    font-weight: 600;
}

.role-date-badge {
    padding: 0.3rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.role-highlights {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.role-highlights li {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.role-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-pill {
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    background: rgba(var(--emerald-rgb), 0.1);
    color: var(--accent-emerald);
    border-radius: 4px;
    font-weight: 500;
}

/* Engineering & Deployment Grid */
.practices-section {
    padding: 4rem 0;
}

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

.practice-card {
    padding: 2rem;
}

.practice-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.practice-card-header i {
    font-size: 1.5rem;
}

.practice-card-header h3 {
    font-size: 1.25rem;
}

.practice-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.practice-checklist li {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.practice-checklist li i {
    margin-top: 0.25rem;
}

/* Education & Achievements Section */
.education-section {
    padding: 3rem 0;
}

.info-box {
    padding: 2rem;
}

.info-box-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.info-box-header i {
    font-size: 1.5rem;
}

.edu-degree {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.edu-field {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.edu-school {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.edu-year {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.achievements-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.achievements-list li {
    font-size: 0.92rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.achievements-list li i {
    margin-top: 0.25rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0 6rem;
}

.contact-wrapper {
    padding: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-heading {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.02rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-card-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all var(--trans-fast);
    min-width: 0;
}

.contact-card-item:hover {
    border-color: var(--accent-emerald);
    background: rgba(var(--emerald-rgb), 0.05);
}

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

.contact-lbl {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-val {
    font-size: 0.95rem;
    font-weight: 600;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.copy-btn {
    margin-left: auto;
    color: var(--text-muted);
    padding: 0.5rem;
    font-size: 1rem;
    transition: color var(--trans-fast);
}

.copy-btn:hover {
    color: var(--accent-emerald);
}

.external-icon {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.career-focus-box {
    padding: 1rem;
    background: rgba(var(--emerald-rgb), 0.08);
    border: 1px dashed rgba(var(--emerald-rgb), 0.3);
    border-radius: var(--radius-sm);
}

.career-focus-box h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.career-focus-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--trans-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.form-status-msg {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
}

.form-status-msg.success { color: var(--accent-emerald); }
.form-status-msg.error { color: #f43f5e; }

/* Footer */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
}

.footer-name {
    font-weight: 700;
}

.footer-role {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-tech-stack {
    font-size: 0.88rem;
    color: var(--text-dim);
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* Resume Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-close-btn {
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1;
}

.modal-close-btn:hover {
    color: #f43f5e;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    font-size: 0.95rem;
    color: var(--text-main);
}

.resume-header {
    border-bottom: 2px solid var(--accent-emerald);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.resume-name {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

.resume-title-role {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-emerald);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0.2rem 0;
}

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

.resume-contact-info {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-top: 0.4rem;
}

.resume-sec {
    margin-bottom: 1.75rem;
}

.resume-sec h3 {
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.35rem;
    margin-bottom: 0.85rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.resume-bullet-list {
    padding-left: 1.25rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.resume-exp-item, .resume-project-item {
    margin-bottom: 1.25rem;
}

.resume-exp-header {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.resume-exp-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-emerald);
    margin-bottom: 0.4rem;
}

.resume-tech-line {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-indigo);
    margin: 0.15rem 0 0.35rem;
}

/* Explicit PDF Export Mode — High Contrast Dark Text for White PDF Background */
.pdf-export-mode {
    background-color: #ffffff !important;
    color: #1e293b !important;
    padding: 1.5rem !important;
    border-radius: 0 !important;
}

.pdf-export-mode .resume-header {
    border-bottom: 2px solid #059669 !important;
}

.pdf-export-mode .resume-name {
    color: #0f172a !important;
}

.pdf-export-mode .resume-title-role {
    color: #059669 !important;
}

.pdf-export-mode .resume-subtext,
.pdf-export-mode .resume-contact-info,
.pdf-export-mode .resume-contact-info a {
    color: #334155 !important;
}

.pdf-export-mode .resume-sec h3 {
    color: #0284c7 !important;
    border-bottom: 1px solid #cbd5e1 !important;
}

.pdf-export-mode p,
.pdf-export-mode li,
.pdf-export-mode span,
.pdf-export-mode div,
.pdf-export-mode strong {
    color: #1e293b !important;
}

.pdf-export-mode .resume-exp-header strong,
.pdf-export-mode .resume-project-item strong {
    color: #0f172a !important;
}

.pdf-export-mode .resume-exp-role {
    color: #059669 !important;
}

.pdf-export-mode .resume-tech-line {
    color: #4f46e5 !important;
}

.pdf-export-mode .resume-bullet-list {
    color: #334155 !important;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 0.85rem 1.25rem;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--accent-emerald);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-md);
    animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-pitch {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-tags, .hero-cta-group, .hero-contacts-quick {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2col {
        grid-template-columns: 1fr;
    }

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

    .summary-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1.5rem 0;
        gap: 1.25rem;
        transform: translateY(-150%);
        transition: transform var(--trans-normal);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .mobile-menu-toggle {
        display: block;
    }

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

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-header {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .summary-card, .contact-wrapper {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    /* Quick contact strip — full width so email fits */
    .hero-contacts-quick {
        flex-direction: column;
        gap: 0.65rem;
    }

    .quick-contact-item {
        width: 100%;
        font-size: 0.82rem;
    }

    /* Contact section card — shrink value text slightly */
    .contact-val {
        font-size: 0.85rem;
    }

    /* Contact grid — ensure inner content does not overflow */
    .contact-card-item {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   3D MODERN DESIGN SYSTEM & SECTION ELEVATIONS
   ========================================================================== */

/* 1. Global 3D Perspective Context */
main {
    perspective: 1200px;
    perspective-origin: 50% 30%;
}

section {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

/* 3D Section Ambient Divider Lighting */
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 30%, rgba(var(--emerald-rgb), 0.4) 50%, var(--border-color) 70%, transparent 100%);
    box-shadow: 0 0 15px rgba(var(--emerald-rgb), 0.3);
    pointer-events: none;
}

/* 2. 3D Section Headers & Badges */
.section-tag {
    transform-style: preserve-3d;
    transform: translateZ(25px);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-heading {
    transform-style: preserve-3d;
    transform: translateZ(30px);
    text-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.section-sub {
    transform-style: preserve-3d;
    transform: translateZ(20px);
}

/* 3. Universal 3D Card Styling & Layering */
.glass-card,
.stat-card,
.summary-card,
.skill-category-card,
.project-card,
.timeline-card,
.practice-card,
.info-box,
.contact-wrapper,
.contact-card-item {
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* 3D Dynamic Glare Overlay */
.card-3d-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.15) 0%, transparent 65%);
    opacity: var(--glare-opacity, 0);
    transition: opacity 0.3s ease;
    z-index: 10;
}

/* Default 3D Card Hover Base (when JS tilt is inactive/touch) */
.glass-card:hover,
.stat-card:hover,
.summary-card:hover,
.skill-category-card:hover,
.project-card:hover,
.timeline-card:hover,
.practice-card:hover,
.info-box:hover,
.contact-wrapper:hover,
.contact-card-item:hover {
    border-color: rgba(var(--emerald-rgb), 0.4);
    box-shadow: 
        0 20px 45px -10px rgba(0, 0, 0, 0.6),
        0 0 30px 0 rgba(var(--emerald-rgb), 0.18),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .glass-card:hover,
[data-theme="light"] .stat-card:hover,
[data-theme="light"] .summary-card:hover,
[data-theme="light"] .skill-category-card:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .timeline-card:hover,
[data-theme="light"] .practice-card:hover,
[data-theme="light"] .info-box:hover,
[data-theme="light"] .contact-wrapper:hover,
[data-theme="light"] .contact-card-item:hover {
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.12),
        0 0 25px 0 rgba(16, 185, 129, 0.2),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.8);
}

/* 4. 3D Pop-Out Layer Depths for Inner Components */

/* Icons floating in 3D space */
.stat-icon-wrapper,
.skill-icon-badge,
.project-type-badge,
.banner-label,
.timeline-dot,
.practice-card-header i,
.contact-icon,
.summary-feature-item i,
.info-box-header i {
    transform: translateZ(35px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
}

/* Headings & Title Floating */
.stat-counter,
.project-title,
.role-title,
.skill-category-header h3,
.practice-card-header h3,
.info-box-header h3,
.contact-heading,
.summary-header h2 {
    transform: translateZ(28px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Subtitles, Paragraphs, & Lists Floating */
.stat-label,
.project-subtitle,
.project-contributions,
.role-highlights,
.summary-content p,
.practice-checklist,
.achievements-list {
    transform: translateZ(18px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Interactive Pills, Buttons, Badges Floating highest on hover */
.skill-pill,
.badge-mini,
.tag-pill,
.project-tag-pill,
.filter-btn,
.copy-btn,
.btn {
    transform: translateZ(22px);
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease, background-color 0.3s ease;
}

.skill-pill:hover,
.badge-mini:hover,
.tag-pill:hover,
.project-tag-pill:hover,
.filter-btn:hover,
.btn:hover {
    transform: translateZ(38px) scale(1.06);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* 5. Hero Smartphone Mockup 3D Elevation */
.phone-mockup-wrapper {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.smartphone-frame {
    transform-style: preserve-3d;
    transform: rotateY(-10deg) rotateX(6deg) translateZ(20px);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
    box-shadow: 
        -20px 30px 60px -10px rgba(0, 0, 0, 0.7),
        0 0 50px 0 rgba(6, 182, 212, 0.25),
        inset 0 0 0 2px rgba(255, 255, 255, 0.2);
    animation: phoneFloat3D 6s ease-in-out infinite alternate;
}

@keyframes phoneFloat3D {
    0% {
        transform: rotateY(-10deg) rotateX(6deg) translateY(0px) translateZ(20px);
    }
    100% {
        transform: rotateY(-6deg) rotateX(3deg) translateY(-14px) translateZ(35px);
    }
}

.smartphone-frame:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-8px) scale(1.03) translateZ(40px);
    box-shadow: 
        0 35px 70px -10px rgba(0, 0, 0, 0.8),
        0 0 60px 0 rgba(16, 185, 129, 0.35),
        inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.phone-screen {
    transform-style: preserve-3d;
}

.phone-app-content {
    transform: translateZ(10px);
}

/* Project Banners 3D Illustration SVG Depth */
.proj-banner {
    transform-style: preserve-3d;
}

.banner-svg {
    transform: translateZ(15px);
    transition: transform 0.4s ease;
}

.project-card:hover .banner-svg {
    transform: translateZ(30px) scale(1.04);
}

.banner-label {
    transform: translateZ(32px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* 6. Scroll-Driven 3D Section Entrance Reveal */
.reveal-3d {
    opacity: 0;
    transform: perspective(1000px) rotateX(7deg) translateY(40px) translateZ(-30px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-3d-active {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translateY(0) translateZ(0);
}

/* Print Stylesheet for Resume */

@media print {
    body * {
        visibility: hidden;
    }
    .printable-resume, .printable-resume * {
        visibility: visible;
    }
    .printable-resume {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        color: #1e293b !important;
        background: #ffffff !important;
    }
    .printable-resume .resume-header {
        border-bottom: 2px solid #059669 !important;
    }
    .printable-resume .resume-name {
        color: #0f172a !important;
    }
    .printable-resume .resume-title-role {
        color: #059669 !important;
    }
    .printable-resume .resume-subtext,
    .printable-resume .resume-contact-info,
    .printable-resume .resume-contact-info a {
        color: #334155 !important;
    }
    .printable-resume .resume-sec h3 {
        color: #0284c7 !important;
        border-bottom: 1px solid #cbd5e1 !important;
    }
    .printable-resume p,
    .printable-resume li,
    .printable-resume span,
    .printable-resume div,
    .printable-resume strong {
        color: #1e293b !important;
    }
    .printable-resume .resume-exp-header strong,
    .printable-resume .resume-project-item strong {
        color: #0f172a !important;
    }
    .printable-resume .resume-exp-role {
        color: #059669 !important;
    }
    .printable-resume .resume-tech-line {
        color: #4f46e5 !important;
    }
}
