/* Modern Technical Design - Single Page */
:root {
    --bg: #e8e6e3;
    --text-main: #4d4d4d;
    --text-secondary: #777;
    --text-tertiary: #999;
    --accent: #2563eb;
    /* Tech Blue */
    --divider: #d4d0ca;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --max-width: 1300px;
    --spacing-unit: 24px;

    /* Border Radius Standards */
    --radius-pill: 50px;
    --radius-card: 16px;
    --radius-small: 8px;

    /* Grid Color */
    --grid-color: rgba(0, 0, 0, 0.03);

    /* Neumorphic Light */
    --card-bg: linear-gradient(145deg, #f5f3f0, #d2cec8);
    --card-shadow: 5px 5px 10px #b8b4ae, -5px -5px 10px #ffffff;
    --card-border: 1px solid rgba(255, 255, 255, 0.4);
    --text-shadow: 1px 1px 0 #ffffff;
    --border-highlight: 0 1px 0 #ffffff;
}

[data-theme="dark"] {
    --bg: #1f1f1f;
    --text-main: #777;
    /* Lighter grey for visibility */
    --text-secondary: #888;
    --text-tertiary: #555;
    --accent: #42a778;
    --divider: #151515;
    /* Darker divider base */

    --grid-color: rgba(255, 255, 255, 0.03);
    --card-bg: linear-gradient(145deg, #232323, #1c1c1c);
    --card-shadow: 5px 5px 10px #151515, -5px -5px 10px #292929;
    --card-border: none;

    --text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8), -1px -1px 0 rgba(255, 255, 255, 0.1);
    /* Deep pressed look */
    --border-highlight: 0 1px 0 rgba(255, 255, 255, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    /* Prevent global scroll */
}

/* Technical Grid Background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: radial-gradient(var(--grid-color) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px;
    height: 100%;
    display: grid;
    grid-template-columns: 250px 1fr;
    /* Reduced sidebar */
    gap: 60px;
    align-items: start;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] .brand {
    text-shadow: var(--text-shadow);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--divider);
    padding-bottom: 12px;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#profile-role {
    font-size: 1.1rem;
    margin-bottom: 16px;
    border-bottom: none;
    padding-bottom: 0;
    box-shadow: none;
    margin-top: 0;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(66, 167, 120, 0.4);
}

h2 {
    /* Engraved style for all themes */
    text-shadow: var(--text-shadow);
}

[data-theme="dark"] h2 {
    border-bottom: 1px solid var(--divider);
    box-shadow: var(--border-highlight);
}

/* Remove border from collapsible section headers */
.collapsible-header h2 {
    border-bottom: none;
    padding-bottom: 0;
    box-shadow: none;
}

h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: var(--text-tertiary);
}

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
}

small {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

a {
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--divider);
    transition: all 0.2s;
}

a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(37, 99, 235, 0.05);
}

/* Sidebar / Header */
header {
    padding: 40px;
    border-right: 1px solid var(--divider);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

[data-theme="dark"] header {
    border-right: 1px solid var(--divider);
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.05);
}

.brand {
    font-family: 'Tourney', cursive;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
    text-decoration: none;
    white-space: nowrap;
}

.brand::before {
    content: "> ";
    color: var(--text-tertiary);
}

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

/* View Toggle */
.view-toggle {
    display: flex;
    flex-direction: column;
    /* Vertical Stack */
    gap: 12px;
    margin: 32px 0;
}

.toggle-btn {
    background: var(--card-bg);
    border: none;
    padding: 12px 16px;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border-radius: 50px;
    box-shadow: var(--card-shadow);
}

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

.toggle-btn.active {
    color: var(--accent);
    font-weight: 700;
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.3), inset -4px -4px 8px rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .toggle-btn.active {
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.15), inset -4px -4px 8px rgba(255, 255, 255, 0.5);
}

/* Main Content Area */
main {
    height: 100%;
    overflow: hidden;
    /* Views scroll internally */
    position: relative;
}

.view-section {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    padding: 40px 60px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;

    /* Hide Scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.view-section::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.view-section.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.view-section.hidden {
    display: none;
}

/* Projects List */
.project-item {
    padding: 32px;
    padding-bottom: 16px;
    border: var(--card-border);
    border-radius: var(--radius-card);
    margin-bottom: 24px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-item:hover {
    transform: translateY(-2px);
    /* box-shadow will need to be theme specific if we want different hover shadows, 
       but for now let's keep it simple or use a variable if needed. 
       Actually, let's just use transform. */
}

[data-theme="dark"] .project-item {
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    border: var(--card-border);
    border-radius: var(--radius-card);
    margin-bottom: 24px;
    padding: 32px;
}

[data-theme="dark"] .project-item:hover {
    transform: translateY(-2px);
    box-shadow: 7px 7px 14px #151515, -7px -7px 14px #292929;
}

/* Collapsible Sections */
/* Collapsible Sections */
.collapsible-section {
    margin-bottom: 24px;
    padding: 32px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    border: var(--card-border);
    border-radius: var(--radius-card);
}

[data-theme="dark"] .collapsible-section {
    /* Variables handle the theme switch */
    border-bottom: none;
}

.collapsible-section:last-child {
    border-bottom: none;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 16px 0;
    user-select: none;
}

.collapsible-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
    padding-bottom: 0;
}

.collapsible-header .section-arrow {
    font-size: 1.2rem;
    color: var(--text-tertiary);
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.expanded .section-arrow {
    transform: rotate(90deg) !important;
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent), 0 0 12px var(--accent);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    padding: 0 4px;
    /* Prevent border clipping */
}

.collapsible-section.expanded .collapsible-content {
    max-height: 10000px;
    /* Large enough to fit content */
    opacity: 1;
    margin-top: 16px;
    overflow: visible;
    /* Allow shadows/borders to show */
}

.collapsible-section.expanded {
    margin-bottom: 40px;
    padding-bottom: 24px;
}

.collapsible-section.expanded .collapsible-header h2,
.collapsible-section.expanded .collapsible-header h4 {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(66, 167, 120, 0.4);
}

/* Experience List */
.experience-item {
    padding: 32px;
    border: var(--card-border);
    border-radius: var(--radius-card);
    margin-bottom: 24px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: all 0.2s ease;
}

.experience-item:last-child {
    border-bottom: none;
    box-shadow: none;
}

[data-theme="dark"] .experience-item {
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    border: var(--card-border);
    border-radius: var(--radius-card);
    margin-bottom: 24px;
    padding: 32px;
}

.experience-item:hover {
    transform: translateY(-2px);
}

[data-theme="dark"] .experience-item:hover {
    transform: translateY(-2px);
    box-shadow: 7px 7px 14px #151515, -7px -7px 14px #292929;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.exp-main-info {
    display: flex;
    align-items: baseline;
    gap: 24px;
    flex: 1;
}

.exp-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.exp-role {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.exp-company {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.exp-period {
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.experience-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.experience-item.expanded .experience-details {
    max-height: 200px;
    opacity: 1;
    margin-top: 16px;
}

.experience-itemarticle.project-item.expanded .project-header .project-arrow {
    transform: rotate(90deg) !important;
    color: var(--accent);
}

.experience-item.expanded .experience-header .project-arrow {
    transform: rotate(90deg) !important;
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent), 0 0 12px var(--accent);
}

.experience-item.expanded .exp-role {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(66, 167, 120, 0.4);
}

@media (max-width: 768px) {
    .experience-header {
        flex-direction: column;
        gap: 8px;
    }

    .exp-main-info {
        flex-direction: column;
        gap: 4px;
    }

    .exp-meta {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
    }
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
}

.project-title {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    color: var(--text-main);
}

.project-summary {
    font-size: 0.95rem;
    color: var(--text-secondary);
    flex: 1;
}

.project-arrow {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-tertiary);
    display: inline-block;
    transition: transform 0.2s ease;
}

article.project-item.expanded .project-header .project-arrow {
    transform: rotate(90deg) !important;
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent), 0 0 12px var(--accent);
}

.project-item.expanded .project-title {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(66, 167, 120, 0.4);
}

.project-item.expanded {
    background: var(--bg);
    border: 1px solid var(--accent);
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.project-item.expanded .project-details {
    max-height: 2000px;
    opacity: 1;
    margin-top: 24px;
    border-top: 1px dashed var(--divider);
    padding-top: 24px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.metric-box {
    border-left: 2px solid var(--accent);
    padding-left: 16px;
    margin-bottom: 12px;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    /* Reduced from 1.25rem */
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    /* Reduced from 0.8rem */
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-links {
    display: flex;
    gap: 0;
    margin-top: 24px;
    margin-bottom: 16px;
    padding: 0 8px;
    flex-wrap: wrap;
}

/* Live Text in Heading */
.live-text {
    font-size: 0.6em;
    color: var(--accent);
    margin-left: 8px;
    vertical-align: middle;
    animation: blink-dot 1.5s infinite;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.collapsible-section.expanded .collapsible-header .live-text {
    display: none;
}

.project-item.expanded .live-text {
    display: none;
}

/* Live indicator - blinking dot inside button */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg);
    margin-left: 8px;
    animation: blink-dot 1.5s infinite;
}

[data-theme="dark"] .live-dot {
    background: #ffffff;
}

/* Restored Green Blink for Experience Section */
.live-wrapper {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #42a778;
    box-shadow: 0 0 0 4px rgba(66, 167, 120, 0.2);
    animation: blink-live 2s infinite;
}

[data-theme="light"] .live-indicator {
    background: #4a90e2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
    animation: blink-live-light 2s infinite;
}

@keyframes blink-live {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(66, 167, 120, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(66, 167, 120, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(66, 167, 120, 0);
    }
}

@keyframes blink-live-light {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(74, 144, 226, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
    }
}

@keyframes blink-dot {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

.project-links a {
    text-decoration: none;
    font-size: 0.85rem;
    color: white;
    background-color: #42a778;
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 8px 20px;
    margin: 0.5em;
    border-radius: 50px;
    box-shadow: 4px 4px 12px rgba(50, 44, 44, 0.78), -4px -4px 12px rgba(221, 220, 220, 0.37);
    border-top: 1px solid white;
    border-left: 1px solid white;
    border-right: 1px solid black;
    border-bottom: 1px solid black;
    transition: all 0.1s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.project-links a:hover {
    transform: translateY(-1px);
    box-shadow: 6px 6px 16px rgba(50, 44, 44, 0.85), -6px -6px 16px rgba(221, 220, 220, 0.45);
}

.project-links a:active {
    box-shadow: 4px 4px 12px rgba(50, 44, 44, 0.78), -4px -4px 12px rgba(221, 220, 220, 0.37);
    border-top: 1px solid black;
    border-left: 1px solid black;
    border-right: 1px solid white;
    border-bottom: 1px solid white;
}

/* Stats / Tech */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.stat-block {
    padding: 32px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    border: var(--card-border);
    border-radius: var(--radius-card);
    margin-bottom: 24px;
}

.stat-block p {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
}

/* About View */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    height: 100%;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-photo {
    height: 100%;
    background: var(--divider);
    border-radius: var(--radius-small);
    overflow: hidden;
    position: relative;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(45deg,
            var(--divider),
            var(--divider) 10px,
            var(--bg) 10px,
            var(--bg) 20px);
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.personality-list {
    list-style: none;
    margin-top: 16px;
}

.personality-list li {
    font-family: var(--font-mono);
    color: var(--text-main);
    margin-bottom: 8px;
}

/* Footer */
footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--divider);
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    position: relative;
    z-index: 0;
}

/* Hide footer in non-active views */
.view-section:not(.active) footer {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

[data-theme="dark"] footer {
    border-top: 1px solid var(--divider);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Utilities */
.btn-text {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-tertiary);
    padding: 0;
    text-transform: uppercase;
}

.btn-text:hover {
    color: var(--text-main);
}

/* Mobile / Tablet */
@media (max-width: 1023px) {
    body {
        height: auto;
        overflow: auto;
    }

    .container {
        display: block;
        height: auto;
        padding: 12px;
    }

    header {
        height: auto;
        border-right: none;
        border-bottom: none;
        padding: 0 0 24px 0;
        margin-bottom: 40px;
    }

    [data-theme="dark"] header {
        border-right: none;
        border-bottom: none;
        box-shadow: none;
    }

    main {
        height: auto;
        overflow: visible;
    }

    .view-section {
        position: relative;
        opacity: 1;
        pointer-events: auto;
        padding: 0;
        display: block !important;
    }

    .project-item,
    .collapsible-section {
        padding: 16px;
    }

    .view-section.hidden {
        display: block !important;
        margin-top: 60px;
        border-top: none;
        padding-top: 60px;
    }

    #view-work footer {
        display: none;
    }

    .view-toggle {
        display: none;
    }

    /* Show everything on mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-photo {
        height: 300px;
    }

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

    /* Compact Mobile Layout */
    .project-item.expanded .project-details {
        margin-top: 16px;
        padding-top: 16px;
    }

    .details-grid {
        gap: 16px;
    }

    .metric-value {
        font-size: 1.1rem;
    }

    .project-details h4 {
        margin-bottom: 4px;
        font-size: 0.85rem;
    }

    .project-details p {
        margin-bottom: 12px;
        font-size: 0.9rem;
    }

    .metric-box {
        margin-bottom: 8px;
        padding-left: 12px;
    }

    .project-links {
        margin-top: 16px;
        margin-bottom: 8px;
    }

    .project-links a {
        padding: 6px 16px;
        font-size: 0.8rem;
        margin: 4px;
    }
}

/* Mentorship Styles */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.pricing-card {
    border: 1px solid var(--divider);
    padding: 24px;
    border-radius: var(--radius-card);
    transition: all 0.3s ease;
    background: var(--bg);
}

[data-theme="dark"] .pricing-card {
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    border: var(--card-border);
}

.pricing-card:hover {
    border-color: var(--accent);
}

[data-theme="dark"] .pricing-card:hover {
    box-shadow: 8px 8px 16px #121212, -8px -8px 16px #2c2c2c;
}

[data-theme="light"] .pricing-card {
    background: #ffffff;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1), -4px -4px 12px rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .pricing-card:hover {
    box-shadow: 6px 6px 16px rgba(0, 0, 0, 0.15), -6px -6px 16px rgba(255, 255, 255, 1);
}

.pricing-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.pricing-card small {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Contact Block */
.contact-block {
    border: 1px solid var(--divider);
    padding: 32px;
    border-radius: var(--radius-card);
    margin-bottom: 32px;
    background: var(--bg);
    text-align: center;
}

[data-theme="dark"] .contact-block {
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    border: var(--card-border);
}

[data-theme="light"] .contact-block {
    background: #ffffff;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1), -4px -4px 12px rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-block h4 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.contact-block p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.contact-block .btn-outline {
    width: auto;
    display: inline-block;
    margin-top: 8px;
}

.btn-outline {
    text-decoration: none;
    display: inline-block;
    margin-top: 16px;
    font-size: 0.85rem;
    color: white;
    background-color: #42a778;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 4px 4px 12px rgba(50, 44, 44, 0.78), -4px -4px 12px rgba(221, 220, 220, 0.37);
    border: 1px solid;
    border-top-color: white;
    border-left-color: white;
    border-right-color: black;
    border-bottom-color: black;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
    text-align: center;
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 16px rgba(50, 44, 44, 0.85), -6px -6px 16px rgba(221, 220, 220, 0.45);
    border-top-color: white !important;
    border-left-color: white !important;
    border-right-color: black !important;
    border-bottom-color: black !important;
    background: #42a778 !important;
    color: white !important;
}

.btn-outline:active {
    transform: translateY(0);
    box-shadow: 4px 4px 12px rgba(50, 44, 44, 0.78), -4px -4px 12px rgba(221, 220, 220, 0.37);
    border-top-color: black !important;
    border-left-color: black !important;
    border-right-color: white !important;
    border-bottom-color: white !important;
}

[data-theme="light"] .btn-outline {
    background: #4a90e2;
    color: white;
    box-shadow: 4px 4px 12px rgba(74, 144, 226, 0.4), -4px -4px 12px rgba(255, 255, 255, 0.8);
    border-top-color: rgba(255, 255, 255, 0.8);
    border-left-color: rgba(255, 255, 255, 0.8);
    border-right-color: rgba(0, 0, 0, 0.15);
    border-bottom-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 16px rgba(74, 144, 226, 0.5), -6px -6px 16px rgba(255, 255, 255, 0.9);
    background: #4a90e2 !important;
    color: white !important;
    border-top-color: rgba(255, 255, 255, 0.8) !important;
    border-left-color: rgba(255, 255, 255, 0.8) !important;
    border-right-color: rgba(0, 0, 0, 0.15) !important;
    border-bottom-color: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .btn-outline:active {
    box-shadow: 4px 4px 12px rgba(74, 144, 226, 0.4), -4px -4px 12px rgba(255, 255, 255, 0.8);
    border-top-color: rgba(0, 0, 0, 0.15) !important;
    border-left-color: rgba(0, 0, 0, 0.15) !important;
    border-right-color: rgba(255, 255, 255, 0.8) !important;
    border-bottom-color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="light"] .project-links a {
    background: #4a90e2;
    box-shadow: 4px 4px 12px rgba(74, 144, 226, 0.4), -4px -4px 12px rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    border-right: 1px solid rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .project-links a:active {
    box-shadow: 4px 4px 12px rgba(74, 144, 226, 0.4), -4px -4px 12px rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    border-left: 1px solid rgba(0, 0, 0, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.upi-block {
    margin-top: 60px;
    padding: 32px;
    background: var(--bg);
    border: 1px dashed var(--divider);
    text-align: center;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background: #f0f0f0;
    margin: 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    border: 1px solid var(--divider);
}

[data-theme="dark"] .qr-placeholder {
    background: #1a1a1a;
}

.upi-id {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.03);
    padding: 8px 16px;
    border-radius: var(--radius-small);
    font-family: var(--font-mono);
    font-weight: 600;
}

[data-theme="dark"] .upi-id {
    background: rgba(255, 255, 255, 0.05);
}

.btn-copy {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg);
    padding: 32px;
    border-radius: var(--radius-card);
    width: 90%;
    max-width: 400px;
    border: 1px solid var(--divider);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    display: inline-block;
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}



.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--divider);
    border-radius: var(--radius-small);
    background: var(--bg);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-actions button {
    margin-top: 0;
    text-align: center;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

#modal-step-1.hidden,
#modal-step-2.hidden {
    display: none;
}

/* Theme Toggle Switch */
/* Theme Toggle Switch - High Fidelity Skeuomorphism */
.theme-toggle {
    display: inline-block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    padding: 10px;
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
}

.theme-toggle input {
    display: none;
}

.toggle-track {
    width: 50px;
    height: 26px;
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border-radius: 40px;
    position: relative;
    box-shadow:
        inset 5px 5px 10px #151515,
        inset -5px -5px 10px #353535,
        0 0 0 2px #252525;
    /* Bezel */
    transition: all 0.3s ease;
}

[data-theme="light"] .toggle-track {
    background: linear-gradient(145deg, #e6e6e6, #ffffff);
    box-shadow:
        inset 5px 5px 10px #d1d1d1,
        inset -5px -5px 10px #ffffff,
        0 0 0 2px #f0f0f0;
}

.toggle-knob {
    width: 20px;
    height: 20px;
    background: linear-gradient(145deg, #3a3a3a, #2e2e2e);
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    box-shadow:
        5px 5px 10px #1a1a1a,
        -2px -2px 5px #404040,
        inset 0 0 2px rgba(0, 0, 0, 0.5);
    /* Subtle rim */
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Bouncy spring */
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .toggle-knob {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    box-shadow:
        5px 5px 10px #d1d1d1,
        -2px -2px 5px #ffffff,
        inset 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Indicator Light */
.toggle-indicator {
    width: 6px;
    height: 6px;
    background: #1a1a1a;
    /* Off state */
    border-radius: 50%;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* Active State (Dark Mode - Default Checked) */
input:checked+.toggle-track .toggle-knob {
    transform: translateX(24px);
    background: linear-gradient(145deg, #2e2e2e, #252525);
    /* Darker when active */
}

input:checked+.toggle-track .toggle-indicator {
    background: #42a778;
    /* Neon Green */
    box-shadow:
        0 0 5px #42a778,
        0 0 10px #42a778,
        0 0 20px #42a778;
}

/* Music Toggle */
.music-toggle {
    display: inline-block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    padding: 10px;
    position: fixed;
    top: 24px;
    /* Align with theme toggle */
    right: 84px;
    /* 60px to the left of theme toggle (24px + 60px) */
    z-index: 1000;
}

.music-toggle input {
    display: none;
}

.music-icon {
    font-size: 12px;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
}

input:checked+.toggle-track .music-icon {
    color: #42a778;
    text-shadow:
        0 0 5px #42a778,
        0 0 10px #42a778;
}

/* Light Mode State (Unchecked) */
/* Modal Buttons */
.btn-primary {
    display: inline-block;
    text-decoration: none;
    background: var(--accent);
    color: white;
    border: 1px solid var(--accent);
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 16px rgba(0, 0, 0, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    display: inline-block;
    text-decoration: none;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--divider);
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Inset Panel (Below the page look) */
.inset-panel {
    padding: 24px;
    border-radius: var(--radius-card);
    background: var(--bg);
    /* Match background to look transparent/embedded */
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.15), inset -4px -4px 8px rgba(255, 255, 255, 0.5);
    margin-bottom: 40px;
}

[data-theme="dark"] .inset-panel {
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.3), inset -4px -4px 8px rgba(255, 255, 255, 0.05);
}

/* Skill Search Input */
/* Skill Search Input */
.skill-search-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    background: var(--bg);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    /* Inset Shadow for Light Mode */
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.15), inset -4px -4px 8px rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .skill-search-input {
    /* Inset Shadow for Dark Mode */
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.3), inset -4px -4px 8px rgba(255, 255, 255, 0.05);
}

.skill-search-input:focus {
    outline: none;
    /* Slightly deeper inset on focus or just a glow */
    box-shadow: inset 6px 6px 12px rgba(0, 0, 0, 0.2), inset -6px -6px 12px rgba(255, 255, 255, 0.5), 0 0 0 1px var(--accent);
}

[data-theme="dark"] .skill-search-input:focus {
    box-shadow: inset 6px 6px 12px rgba(0, 0, 0, 0.4), inset -6px -6px 12px rgba(255, 255, 255, 0.05), 0 0 0 1px var(--accent);
}

/* Highlighted Skill Tag */
.tech-tag.highlight {
    background-color: rgba(74, 144, 226, 0.2);
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    font-weight: 600;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.3);
}

/* Booking Section Overrides to match Contact Block style but left aligned */
#section-booking.contact-block {
    text-align: left;
}

#section-booking.contact-block .collapsible-header h4 {
    margin-bottom: 0;
}

/* Neumorphic Skill Tags */
.tech-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg);
    border: none;
    /* Remove border for true neumorphism */

    /* Neumorphic Shadow - Light Mode Default */
    box-shadow: 3px 3px 6px #d1cdc7, -3px -3px 6px #ffffff;
}

[data-theme="dark"] .tech-tag {
    background: var(--bg);
    color: var(--text-secondary);
    /* Neumorphic Shadow - Dark Mode */
    box-shadow: 4px 4px 8px #151515, -4px -4px 8px #292929;
}

.tech-tag:hover {
    transform: translateY(-1px);
    color: var(--accent);
}

[data-theme="dark"] .tech-tag:hover {
    box-shadow: 5px 5px 10px #151515, -5px -5px 10px #292929;
}

/* Selected State - Pressed/Inset Look */
.tech-tag.selected {
    color: var(--accent) !important;
    background: var(--bg);
    box-shadow: inset 3px 3px 6px #d1cdc7, inset -3px -3px 6px #ffffff;
    border: none !important;
    font-weight: 600;
}

[data-theme="dark"] .tech-tag.selected {
    background: var(--bg);
    box-shadow: inset 4px 4px 8px #111111, inset -4px -4px 8px #2d2d2d;
    color: var(--accent) !important;
}

/* Project Link Tag - Matching Style */
.project-link-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-mono);
    border: none;
    box-shadow: 3px 3px 6px #d1cdc7, -3px -3px 6px #ffffff;
    margin-right: 8px;
    margin-bottom: 8px;
}

[data-theme="dark"] .project-link-tag {
    background: var(--bg);
    box-shadow: 4px 4px 8px #151515, -4px -4px 8px #292929;
}

.project-link-tag:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

.project-link-tag:active {
    box-shadow: inset 2px 2px 4px #d1cdc7, inset -2px -2px 4px #ffffff;
}

[data-theme="dark"] .project-link-tag:active {
    box-shadow: inset 3px 3px 6px #151515, inset -3px -3px 6px #292929;
}

/* Project Details Grid - Responsive */
.project-details-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Reduced from 24px for mobile */
    margin-bottom: 16px;
    /* Reduced from 24px */
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.project-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .project-details-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        margin-bottom: 24px;
    }

    .project-desc {
        margin-bottom: 16px;
        line-height: 1.6;
    }

    .project-metrics-grid {
        margin-bottom: 16px;
    }
}

/* Project Tech Stack Tag (Non-clickable, Inset Neumorphism) */
.project-tech-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    background: var(--bg);
    border: 1px solid var(--divider);
    /* Subtle inset shadow for "embedded" look */
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -2px -2px 5px rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .project-tech-tag {
    background: var(--bg);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: inset 2px 2px 5px #151515, inset -2px -2px 5px #292929;
}