﻿/* Material Design Color Variables - Accessibility Enhanced */
:root {
    --primary: #990000;
    --primary-rgb: 153, 0, 0;
    --primary-light: #660000;
    --primary-dark: #660000;
    --accent: #ff9800;
    --accent-light: #ffb74d;
    --accent-dark: #f57c00;
    --background: #ffffff;
    --background-rgb: 255, 255, 255;
    --surface: #f8f9fa;
    --surface-variant: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-disabled: #6c757d;
    --link-color: #1976d2;
    --link-hover: #1565c0;
    --border-color: #dee2e6;
    --shadow: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.25);
    --success: #28a745;
    --warning: #ffc107;
    --error: #dc3545;
}

body.dark {
    --primary: #990000;
    --primary-rgb: 153, 0, 0;
    --primary-light: #990000;
    --primary-dark: #990000;
    --accent: #ffb74d;
    --accent-light: #ffd54f;
    --accent-dark: #ff9800;
    --background: #0d1117;
    --background-rgb: 13, 17, 23;
    --surface: #161b22;
    --surface-variant: #21262d;
    --text-primary: #f0f6fc;
    --text-secondary: #c9d1d9;
    --text-disabled: #8b949e;
    --link-color: #58a6ff;
    --link-hover: #79c0ff;
    --border-color: #30363d;
    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-dark: rgba(0, 0, 0, 0.6);
    --success: #3fb950;
    --warning: #d29922;
    --error: #f85149;
}

body {
    padding: 0;
    margin: 0;
    border: 0;
    font-size: 12pt;
    font-family: 'Oxygen', Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img,
a {
    border: none;
}

h1 {
    font-size: 1.6em;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Links with Material Design colors */
a {
    color: var(--link-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover);
}

a:visited {
    color: var(--primary);
}

a:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
    background-color: var(--surface-variant);
}

.floatLeft {
    float: left;
}

.floatRight {
    float: right;
}

/* Header-specific overrides for flexbox layout */
header .floatLeft {
    float: none;
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 140px);
    /* Reserve space for toggle button */
    overflow: hidden;
}

header .floatRight {
    float: none;
    order: 3;
    margin-left: auto;
    flex-shrink: 0;
    /* Prevent button from shrinking */
}

.clear {
    clear: both;
}

.mainImg {
    width: 100%;
    max-width: 40em;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow-dark);
    transition: all 0.3s ease;
}

.mainImg:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px var(--shadow-dark);
}

.titleName {
    color: #ffffff;
    font-size: 10pt;
    font-weight: bold;
    transition: color 0.3s ease;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.name-primary {
    font-size: 14pt;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 2px;
    display: block;
}

.name-subtitle {
    font-size: 11pt;
    font-weight: normal;
    opacity: 0.9;
    line-height: 1.1;
    display: block;
}

/* Header styles with Material Design */
header {
    background-color: var(--primary);
    padding: 16px 24px;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.shower {
    display: none;
}

.tabbar {
    max-width: 50em;
    margin: auto;
    display: flex;
    gap: 4px;
}

.tabbar a {
    flex: 1;
    display: block;
    padding: 12px 16px;
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    background-color: var(--surface);
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    box-sizing: border-box;
    text-align: center;
}

.tabbar a:hover {
    background-color: var(--surface-variant);
    color: var(--primary);
}

.tabbar .selectedTab {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-decoration-thickness: 2pt;
    background-color: var(--background);
    border-bottom-color: var(--primary);
}

.tabbar a:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
    background-color: var(--surface-variant);
}

.tabbar a:focus:not(:focus-visible) {
    outline: none;
}

.tabbar a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.fillFrameWidth {
    width: 100%;
}

.wrapper {
    margin-bottom: 40px;
    padding: 32px;
    background-color: var(--surface);
    border-radius: 12px;
    box-shadow: 0 4px 8px var(--shadow);
    transition: all 0.3s ease;
}

.wrapper:hover {
    box-shadow: 0 8px 16px var(--shadow-dark);
    transform: translateY(-2px);
}

/* Theme toggle button styles with Material Design */
.btn-toggle {
    background: transparent;
    border: 2px solid var(--text-primary);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 6px 10px;
    margin-top: 4px;
    margin-right: 8px;
    transition: all 0.3s ease;
    color: var(--text-primary);
    box-shadow: 0 1px 3px var(--shadow);
    min-width: 60px;
}

.btn-toggle:hover {
    background-color: var(--primary-light);
    color: #ffffff;
    border-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px var(--shadow-dark);
}

.btn-toggle:focus {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    background-color: var(--surface);
}

.btn-toggle:focus:not(:focus-visible) {
    outline: none;
}

.btn-toggle:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.btn-toggle:active {
    transform: translateY(0px);
    box-shadow: 0 2px 4px var(--shadow);
}

/* Dark mode styles for gallery items */
body.dark .gallery li a {
    border-color: #444;
}

body.dark .gallery li img {
    -moz-box-shadow: 0.063em 0 0.313em 0 #000;
    -webkit-box-shadow: 0.063em 0 0.313em 0 #000;
    box-shadow: 0.063em 0.063em 0.313em 0 #000;
}

/* Dark mode styles for app containers */
body.dark .app:not(:last-child) {
    border-bottom-color: #444;
}

body.dark .appInfo h3 {
    color: #fff;
}

body.dark .appInfo p {
    color: #ccc;
}

/* Dark mode styles for links */
body.dark a {
    color: #64b5f6;
}

body.dark a:visited {
    color: #ba68c8;
}

body.dark a:hover {
    color: #90caf9;
}

/* Material UI card-like styling for content sections */
.innerContainer {
    background-color: var(--surface);
    border-radius: 12px;
    padding: 32px;
    margin: 40px auto;
    max-width: 62.5em;
    box-shadow: 0 4px 6px var(--shadow), 0 1px 3px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.innerContainer:hover {
    box-shadow: 0 8px 15px var(--shadow-dark), 0 2px 5px var(--shadow);
    transform: translateY(-2px);
}

.gallery {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery:after {
    clear: both;
    content: ".";
    display: block;
    height: 0;
    visibility: hidden;
}

.gallery li {
    float: left;
    width: 33.33333333%;
    max-width: 11.625em;
}

.gallery li a {
    display: block;
    margin-right: 0.5em;
    margin-top: 0;
    margin-bottom: 0;
    border: 0.063em solid var(--border-color);
    transition: all 0.3s ease;
}

.gallery li a:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.gallery li img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0.063em 0.063em 0.313em 0 var(--shadow);
    transition: box-shadow 0.3s ease;
}

.gallery li a:hover img {
    box-shadow: 0 4px 12px var(--shadow-dark);
}


/* For inline examples only */
#PhotoSwipeTarget {
    width: 100%;
    height: 12.500em;
}

#Indicators {
    text-align: center;
    margin-top: 1.250em;
}

#Indicators span {
    display: inline-block;
    height: 0.625em;
    width: 0.625em;
    margin: 0 0.625em 0 0;
    padding: 0;
    -webkit-border-radius: 0.313em;
    -moz-border-radius: 0.313em;
    -o-border-radius: 0.313em;
    border-radius: 0.313em;
    background: #c5c5c5;
    overflow: hidden;
}

#Indicators span.current {
    background: #EEBF02;
}

.innerContainer {
    max-width: 62.500em;
    margin: auto;
}

.listCaseing {
    width: 100%;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0.5em 0;
}

.appIcon {
    padding: 0.5em 0.25em 0;
    width: 25%;
    max-width: 4em;
    height: auto;
}

.appInfo {
    text-align: left;
    width: 70%
}

.appInfo h3 {
    margin-bottom: 8px;
    margin-top: 12px;
    color: var(--text-primary);
}

.appInfo p {
    margin: 8px 0;
    font-size: 10pt;
    color: var(--text-secondary);
}

.dlText {
    text-align: left;
}

.seeMore {
    display: inline;
    vertical-align: top;
    padding-left: 0.313em;
    text-align: left;
}

.moreInfo {
    text-align: left;
    padding-top: 0.25em;
}

.moreInfo p {
    cursor: pointer;
}

.showInfo {
    display: none;
    font-size: 10pt;
}

.pmBttn {
    width: 1.25em;
    height: auto;
}

.minus {
    display: none;
}

.app:not(:last-child) {
    padding-bottom: 0.75em;
    border-bottom: 0.063em solid var(--border-color);
}

.jwlogo {
    display: none;
}

#integrateIphoneVid {
    width: 100%;
    max-width: 20.000em;
    background: #FFFFFF;
    margin: auto;
}

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

html,
body {
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
}

#container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 20px 40px 20px;
    margin: auto;
    max-width: 800px;
    width: 100%;
}

.wrapper {
    margin-top: 24px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
}

.sectionTitle {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    font-weight: bold;
    font-size: 1.4em;
    border-bottom: 2px solid var(--accent);
    color: var(--primary);
}

.sectionTitle::after {
    content: "";
    display: block;
    height: 3px;
    width: 40px;
    background-color: var(--primary);
    margin-top: 8px;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

ul li {
    padding: 16px 20px;
    margin: 12px 0;
}

.shower {
    margin-bottom: 24px;
}

/* Utility section class for consistent section layout */
.section {
    margin: 48px auto;
    padding: 32px;
    background-color: var(--surface);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
}

/* Material Design responsive enhancements */
.contact {
    margin-bottom: 24px;
    padding: 20px;
    background-color: var(--surface);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow);
    transition: all 0.3s ease;
}

.contact:hover {
    box-shadow: 0 4px 8px var(--shadow-dark);
    transform: translateY(-1px);
}

.contact p {
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Contact icons styling */
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 16px;
    border-radius: 8px;
    background-color: var(--surface-variant);
    border: 1px solid var(--border-color);
    font-size: 0.9em;
    font-weight: 500;
    min-height: 56px;
    box-sizing: border-box;
    width: 100%;
}

.contact-icon:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-dark);
    border-color: var(--primary);
}

.contact-icon::before {
    font-size: 1.4em;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: color 0.3s ease;
}

.contact-icon:hover::before {
    color: #ffffff;
}

.contact-icon span {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* SVG icons alignment */
.contact-icon svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.icon-linkedin::before {
    background: linear-gradient(45deg, #0077b5, #005885);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.contact-icon.icon-linkedin:hover {
    background-color: #0077b5;
    border-color: #0077b5;
}

.contact-icon.icon-linkedin svg {
    transition: all 0.3s ease;
}

.contact-icon.icon-linkedin:hover svg path:first-child {
    fill: #ffffff;
}

.contact-icon.icon-linkedin:hover svg path:last-child {
    fill: #0077b5;
}

/* Contact info container */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    align-items: stretch;
    justify-content: center;
    margin: 20px 0;
    padding: 24px;
    background-color: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    max-width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95em;
    color: var(--text-secondary);
    padding: 8px 12px;
    background-color: var(--surface-variant);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.contact-item .icon {
    font-size: 1.2em;
    color: var(--primary);
    flex-shrink: 0;
}

/* Material Design list styling */
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul li {
    padding: 12px 16px;
    margin: 8px 0;
    background-color: var(--surface);
    border-radius: 4px;
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
    color: var(--text-primary);
    position: relative;
}

ul li:hover {
    background-color: var(--surface-variant);
    transform: translateX(4px);
    box-shadow: 0 2px 4px var(--shadow);
}

ul li:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    background-color: var(--surface-variant);
}

/* Enhanced typography */
h1,
h2,
h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.4;
}

h2 {
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
    display: inline-block;
}

p {
    color: var(--text-secondary);
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9em;
    color: var(--text-disabled);
}

/* Responsive Styles */
@media screen and (max-width: 600px) {
    header {
        padding: 16px;
    }

    #container {
        padding: 16px 12px;
    }

    .wrapper,
    .innerContainer {
        padding: 16px;
    }

    .sectionTitle {
        font-size: 1.1em;
    }

    .wrapper {
        margin-bottom: 24px;
    }

    /* Responsive header adjustments */
    header .floatLeft {
        max-width: calc(100% - 100px);
        /* Smaller toggle button on mobile */
    }

    .titleName {
        white-space: normal;
        /* Allow wrapping for two-line layout */
    }

    .name-primary {
        font-size: 12pt;
    }

    .name-subtitle {
        font-size: 9pt;
    }

    /* Contact icons responsive */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .contact-icon {
        padding: 16px;
        font-size: 0.85em;
        min-height: 56px;
        justify-content: flex-start;
        gap: 12px;
    }

    .contact-icon::before {
        width: 20px;
        height: 20px;
        font-size: 1.2em;
    }

    .contact-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-icon span {
        font-size: 0.9em;
    }

    .contact-item {
        padding: 10px 14px;
        font-size: 0.9em;
    }
}

/* Medium screens (tablets) */
@media screen and (max-width: 768px) and (min-width: 601px) {
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 20px;
    }

    .contact-icon {
        padding: 16px;
        font-size: 0.88em;
        min-height: 56px;
        justify-content: flex-start;
        gap: 12px;
    }

    .contact-icon::before {
        width: 22px;
        height: 22px;
        font-size: 1.3em;
    }

    .contact-icon svg {
        width: 22px;
        height: 22px;
    }

    .contact-item {
        grid-column: span 2;
        justify-self: center;
        max-width: 200px;
    }
}

/* Extra small screens */
@media screen and (max-width: 400px) {
    header {
        padding: 12px 16px;
    }

    header .floatLeft {
        max-width: calc(100% - 80px);
        /* Even more space for button */
    }

    .name-primary {
        font-size: 11pt;
    }

    .name-subtitle {
        font-size: 8pt;
    }

    .btn-toggle {
        font-size: 0.7rem;
        padding: 4px 8px;
        min-width: 50px;
    }

    /* Extra small contact adjustments */
    .contact-info {
        padding: 12px;
        gap: 10px;
    }

    .contact-icon {
        padding: 14px;
        font-size: 0.8em;
        min-height: 52px;
        justify-content: flex-start;
        gap: 10px;
    }

    .contact-icon::before {
        width: 18px;
        height: 18px;
        font-size: 1.1em;
    }

    .contact-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Accessibility enhancements */

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --link-color: #0000ee;
        --link-hover: #0000aa;
        --border-color: #000000;
        --shadow: rgba(0, 0, 0, 0.5);
        --shadow-dark: rgba(0, 0, 0, 0.8);
    }

    body.dark {
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --background: #000000;
        --background-rgb: 0, 0, 0;
        --surface: #111111;
        --link-color: #ffff00;
        --link-hover: #ffff99;
    }

    .btn-toggle,
    .tabbar a,
    a {
        border-width: 2px;
    }

    .sectionTitle::after {
        height: 4px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .wrapper:hover,
    .innerContainer:hover,
    .contact:hover,
    .mainImg:hover,
    .gallery li a:hover,
    ul li:hover {
        transform: none !important;
    }
}

/* ===== ACCESSIBILITY STYLES ===== */

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast focus indicators */
:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Enhanced focus for interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(var(--primary-rgb, 153, 0, 0), 0.2);
}

/* Ensure sufficient contrast for interactive elements */
button:focus,
a:focus {
    background-color: var(--primary);
    color: white;
    text-decoration: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --shadow: rgba(0, 0, 0, 0.8);
    }
    
    body.dark {
        --border-color: #ffffff;
        --text-primary: #ffffff;
        --background: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .loading-spinner {
        animation: none;
    }
}

/* Large text support */
@media (min-resolution: 2dppx) {
    body {
        font-size: 18px;
        line-height: 1.6;
    }
}

/* Ensure sufficient color contrast */
.btn-toggle,
.nav-pill,
.download-btn,
.contact-icon {
    border: 2px solid var(--border-color);
}

/* ===== NEW ENHANCED STYLES ===== */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Content-specific loading overlay */
.content-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--background-rgb, 255, 255, 255), 0.95);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    min-height: 400px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--surface-variant);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-dark);
    background: var(--primary-dark);
}

.back-to-top:active {
    transform: translateY(0);
}

/* Quick Navigation */
.quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
    justify-content: center;
}

.nav-pill {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-pill:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow);
}

/* Download Section Enhancement */
.download-section {
    text-align: right;
    margin-bottom: 24px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 4px;
}

.download-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

/* Fade-in Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Effect */
.parallax-section {
    transform: translateZ(0);
    will-change: transform;
}

/* Enhanced Contact Section */
.enhanced-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 24px 0;
    padding: 24px;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.enhanced-contact .contact-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    min-width: 200px;
}

.enhanced-contact .contact-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow);
    border-color: var(--primary);
    background: var(--surface-variant);
}

.enhanced-contact .contact-icon svg {
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.enhanced-contact .contact-icon:hover svg {
    color: var(--primary);
    transform: scale(1.1);
}

/* Skills Section Enhancement */
.skills-section {
    margin: 32px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.skill-category {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--primary);
}

.skill-category h4 {
    color: var(--primary);
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(1.05);
}

/* Experience Section Enhancement */
.experience-section {
    margin: 32px 0;
}

.job-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.job-card:hover::before {
    transform: scaleY(1);
}

.job-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--primary);
}

.job-header {
    margin-bottom: 16px;
}

.job-header h3 {
    color: var(--text-primary);
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
}

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

.job-meta span {
    font-size: 14px;
    color: var(--text-secondary);
}

.company {
    font-weight: 600;
    color: var(--primary) !important;
}

.location {
    position: relative;
}

.location::before {
    content: "📍";
    margin-right: 4px;
}

.duration {
    background: var(--surface-variant);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px !important;
    font-weight: 500;
}

.achievements {
    margin: 16px 0 0 0;
    padding: 0;
}

.achievements li {
    margin: 8px 0;
    padding-left: 8px;
    position: relative;
    list-style: none;
    transition: all 0.3s ease;
}

.achievements li::before {
    content: "▶";
    color: var(--primary);
    position: absolute;
    left: -16px;
    top: 2px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.achievements li:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.achievements li:hover::before {
    transform: scale(1.2);
}

/* Education Section Enhancement */
.education-section {
    margin: 32px 0;
}

.education-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '🎓';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 32px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.education-card:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow);
    border-color: var(--primary);
}

.education-card h3 {
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
}

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

.education-meta span {
    font-size: 14px;
    color: var(--text-secondary);
}

.institution {
    font-weight: 600;
    color: var(--primary) !important;
}

/* Enhanced Button Animations */
.btn-toggle {
    position: relative;
    overflow: hidden;
}

.btn-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.btn-toggle:active::before {
    width: 100px;
    height: 100px;
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

/* Section Title Enhancements */
.sectionTitle {
    position: relative;
    text-align: center;
    color: var(--text-primary);
    margin: 24px 0;
    font-size: 24px;
    font-weight: 700;
}

.sectionTitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .quick-nav {
        gap: 6px;
    }
    
    .nav-pill {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .enhanced-contact {
        flex-direction: column;
        gap: 12px;
    }
    
    .enhanced-contact .contact-icon {
        min-width: auto;
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .job-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .education-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .fade-in-section,
    .contact-icon,
    .skill-tag,
    .job-card,
    .education-card,
    .btn-toggle,
    .nav-pill,
    .download-btn,
    .back-to-top {
        transition: none;
    }
    
    .loading-spinner {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== CONTACT PAGE SPECIFIC STYLES ===== */

/* Hero Section */
.hero-section {
    position: relative;
    margin: 24px 0;
    text-align: center;
}

.photo-link {
    position: relative;
    display: inline-block;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.photo-link:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 40px var(--shadow-dark);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.photo-link:hover .photo-overlay {
    transform: translateY(0);
}

.email-hint {
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Bio Section */
.bio-section {
    margin: 32px 0;
    padding: 32px;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.bio-section h1 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.bio-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* Contact Section */
.contact-section {
    margin: 32px 0;
    padding: 24px;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.contact-section .sectionTitle {
    margin-bottom: 24px;
}

/* Tech Skills Showcase */
.skills-showcase {
    margin: 32px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.tech-category {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tech-category:hover::before {
    transform: scaleX(1);
}

.tech-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow);
    border-color: var(--primary);
}

.tech-category h4 {
    color: var(--primary);
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.tech-tag:hover::before {
    left: 100%;
}

.tech-tag:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(1.05);
}

.tech-tag.featured {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
}

.tech-tag.featured:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

/* Enhanced Main Image */
.mainImg {
    transition: all 0.4s ease;
    filter: brightness(1) saturate(1);
}

.photo-link:hover .mainImg {
    filter: brightness(1.1) saturate(1.2);
}

/* Mobile Responsive for Contact Page */
@media (max-width: 768px) {
    .bio-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .bio-text {
        font-size: 15px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tech-category {
        padding: 16px;
    }
    
    .contact-section {
        padding: 16px;
        margin: 20px 0;
    }
    
    .hero-section {
        margin: 16px 0;
    }
    
    .email-hint {
        font-size: 14px;
    }
}

/* Job Card Styles */
.job-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-dark);
}

.job-header {
    margin-bottom: 16px;
}

.job-title {
    color: var(--primary);
    margin: 0 0 12px 0;
    font-size: 1.4em;
    font-weight: 600;
    text-align: center;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.job-meta span {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.company {
    color: var(--accent-dark);
    font-weight: 600;
}

.location {
    color: var(--text-secondary);
}

.duration {
    color: var(--primary);
    font-weight: 600;
}

.job-achievements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-achievements li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.6;
}

.job-achievements li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Education Card */
.education-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-dark);
}

.education-card h3 {
    color: var(--primary);
    margin: 0 0 12px 0;
    font-size: 1.3em;
    font-weight: 600;
    text-align: center;
}

.education-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.education-meta span {
    font-weight: 500;
}

.school {
    color: var(--accent-dark);
    font-weight: 600;
}

/* Mobile responsive for job cards */
@media (max-width: 768px) {
    .job-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .education-meta {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .job-title {
        font-size: 1.2em;
    }
}