/* CSS Variables for consistent theming */
:root {
    --primary-color: #374151;
    --text-primary: #374151;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background-primary: #ffffff;
    --background-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.2), 0 2px 4px -2px rgb(0 0 0 / 0.2);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.2);
    --font-primary: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Macondo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #e5e7eb;
    --text-primary: #d1d5db;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --background-primary: #111827;
    --background-secondary: #1f2937;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.6), 0 4px 6px -4px rgb(0 0 0 / 0.6);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('image/background.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.25;
    z-index: -1;
    pointer-events: none;
}

[data-theme="dark"] body::before {
    opacity: 0.15;
}

/* Typography - All headings use display font */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo-img {
    max-width: none;
}

/* Prevent horizontal overflow */
* {
    max-width: 100%;
}

html, body {
    overflow-x: hidden;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] header {
    background: rgba(17, 24, 39, 0.9);
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}
blockquote {
    font-style: italic;
    color: var(--text-primary);
    border-left: 2px solid var(--text-light);
    margin: 1rem 0;
    padding-left: 1rem;
    font-size: 2rem;

}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    text-decoration: none;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

[data-theme="dark"] nav a {
    color: var(--text-primary);
}

[data-theme="dark"] nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
}

/* Dark Mode Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.theme-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    background: var(--background-secondary);
    border-color: var(--text-secondary);
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg);
}


/* Main Content */
main {
    margin-top: 60px;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-inner {
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-name {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 1100;
    line-height: 1.1;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.hero-description strong {
    color: var(--text-primary);
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 1rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
}

.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration-container {
    position: relative;
    width: 500px;
    height: 500px;
}

.circular-illustration {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, #126831 0%, #16a34a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 50px auto;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.personal-photo {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    transition: transform 0.7s ease;
}

.personal-photo:hover {
    transform:scale(1.2);
    cursor:move
}

.skill-tag {
    position: absolute;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 450;
    font-size: 1rem;
    color: white;
    white-space: nowrap;
    box-shadow: var(--shadow-md);

}
.skill-tag:hover {
    transform:rotate(20deg);
    transition: transform 1s ease;
    cursor: cell;
}

.design-systems {
    background: #e24848;
    top: 20px;
    right: 30px;
}

.motion-design {
    background: #1ea6be;
    top: 40%;
    right: -70px;
    transform: translateY(-50%);
}

.product-thinking {
    background: #5d34be;
    top: 60%;
    left: -50px;
    transform: translateY(-50%);
}

.ux-research {
    background: #479d14;
    bottom: 40px;
    left: 55%;
    transform: translateX(-50%);
}

/* Section Styles */
section {
    padding: 0rem 0;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

section h1, section h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
    color: var(--text-primary);
}

section hr {
    border: none;
    height: 2px;
    background: var(--border-color);
    margin: 2rem 0;
}

/* Work Experience */
#work {
    background: transparent;
}
#colored-card {
    background: var(--background-secondary);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    margin-top: 1rem;
    width: 100%;
}

.work-card {
    background: var(--background-primary);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border: 1px solid var(--border-color);
}

.work-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.work-image {
    margin: 0;
    padding: 1rem;
}


.sales-order {
    background: linear-gradient(135deg, #e1e1e1 0%, #7d7d7d 100%);
    padding: 1.5rem;
}

.cms {
    background: linear-gradient(135deg, #e1e1e1 0%, #7d7d7d 100%);
    padding: 1.5rem;
}

.desktop-mockup {
    width: 100%;
    height: 200px;
    background: #1f2937;
    border-radius: 0.75rem;
    padding: 0.5rem;
    position: relative;
}

.dashboard-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.loyalty-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0.5rem;
}

.badge {
    background: #f59e0b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-display);
}

.form-field, .product-list, .edit-options, .ticket-list, .agent-assignments, .color-palette, .typography, .components {
    background: #f3f4f6;
    padding: 2rem ;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    color: #1f2937;
}

.work-card p {
    padding: 1.5rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Case Studies */
#case-studies {
    background: var(--background-secondary);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
    gap: 2rem;
    margin-top: 1rem;
    width: 100%;
}

.case-study-card {
    background: var(--background-primary);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.case-study-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.case-study-image {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.image-placeholder {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.promo-engine {
    background: linear-gradient(135deg, #1f2937 0%, #ffffff 100%);
    padding: 2rem;
}



.phone-mockup {
    width: 200px;
    height: 400px;
    background: #1f2937;
    border-radius: 2rem;
    padding: 0.5rem;
    margin: 0 auto;
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 1.5rem;
    padding: 0.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.case-study-content {
    padding: 1rem;
}

.case-study-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.case-study-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.case-study-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: var(--background-secondary);
    border-radius: 0.5rem;
    display: inline-block;
    transition: background-color 0.5s ease;
}

.case-study-btn:hover {
    background: var(--text-light);
    font-weight: 1000;
}

/* Selected Project */
#design-system {
    background: var(--background-secondary);
}

.design-system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 2rem;
    margin-top: 0.25rem;
    width: 100%;
}

.design-system-card {
    background: var(--background-primary);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.design-system-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.design-system-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.design-system-image {
    margin: 0;
    padding: 1rem;
}

.design-system-img, .support-dashboard {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 1.5rem;
}

.design-system-card p {
    padding: 1.5rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Design Stack */
#design-stack {
    background: var(--background-secondary);
}

.design-stack-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stack-item {
    background: var(--background-primary);
    border-radius: 0.5rem;
    padding: 1rem 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid #747b7a;
    border: 1px solid var(--border-color);
    border-left: 4px solid #747b7a;
}

.stack-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    border-left-color: var(--secondary-color);
    cursor: text
}

.category-name {
    font-weight: 650;
    color: var(--text-primary);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.tools {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 450;
    letter-spacing: 0.6px;
}

/* About Section */
#about {
    background: var(--background-secondary);
}

.about-me {
    max-width: 100%;
        text-align: center;
}

.about-me h3, .about-me h4 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 1rem;
    font-size: 1.5rem;
}

.about-me h3:first-child {
    margin-top: 0;
}

.about-me p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.3rem;
    font-size: 1rem;
}
.slang {
    text-align: center;
}
.about-me ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 1rem 0 1rem 0;
}

.about-me ul li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    padding-left: 0.25rem;
}

.about-me ul li::marker {
    color: var(--primary-color);
    font-size: 1.2em;
}

/* Dual Timeline */
.dual-timeline {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    padding: 2rem 0;
    margin: 3rem 0;
}

.timeline-line-dual {
    position: absolute;
    width:: calc(100% );
    top: 50%;
    left: 140px;
    right: 1rem;
    height: 2px;
    background: linear-gradient(to right, var(--border-color), var(--text-secondary), var(--border-color));
    transform: translateY(-70%);
    z-index: 0;
}

.timeline-track {
    display: flex;
    gap: 0.5rem;
    padding-left: 160px;
    padding-right: 2rem;
    position: relative;
    align-items: center;
}

.track-label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--background-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    border: 2px solid var(--border-color);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    z-index: 3;
}

.education-track {
    margin-bottom: 1rem;
}

.timeline-item-dual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.0rem;
    flex-shrink: 0;
    min-width: 25%;
    position: relative;
}

.education-track .timeline-item-dual {
    flex-direction: column-reverse;
}

/* Connector lines from dots to main line */
.timeline-item-dual::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--border-color);
    z-index: 1;
}



.timeline-dot-dual {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--background-primary);
    border: 3px solid;
    z-index: 2;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.timeline-dot-dual.education {
    border-color: #10b981;
}

.timeline-dot-dual.work {
    border-color: #f97316;
}

.timeline-item-dual:hover .timeline-dot-dual {
    transform: scale(1.3);
    box-shadow: var(--shadow-md);
}

.timeline-content-dual {
    text-align: center;
    padding: 0.5rem;
    background: var(--background-primary);
    border: 2px solid;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
}

.education-track .timeline-content-dual {
    border-color: #10b981;
}

.experience-track .timeline-content-dual {
    border-color: #f97316;
}

.timeline-item-dual:hover .timeline-content-dual {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    cursor: grab;
}

.timeline-content-dual h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1;
}

.timeline-year {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin: 0;
}

.timeline-org {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
}

.timeline-content-dual p:last-child:not(.timeline-year):not(.timeline-org) {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
}

/* Dark mode adjustments */
[data-theme="dark"] .timeline-dot-dual.education {
    border-color: #34d399;
}

[data-theme="dark"] .timeline-dot-dual.work {
    border-color: #fb923c;
}

[data-theme="dark"] .education-track .timeline-content-dual {
    border-color: #34d399;
}

[data-theme="dark"] .experience-track .timeline-content-dual {
    border-color: #fb923c;
}

[data-theme="dark"] .track-label {
    border-color: var(--text-secondary);
}

/* About Cards */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.about-card {
    background-image: none;
    width: 100%;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--text-secondary);
}

.about-card-icon {
    font-size: 1.4rem;
    line-height: 1;

}

.about-card h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.about-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */

#contact {
    background: var(--background-secondary);
    text-align: center;
}

#contact p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

address {
    font-style: normal;
    margin: 0.5rem 0;
}

address p {
    margin: 1rem 0;
    color: var(--text-primary);
    font-weight: 450;
}

address a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

address a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    padding: 0.5rem 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.8rem;
    color: rgb(163, 163, 163);
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    margin: 0 1rem;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.5;
    text-decoration: underline;
    transition: text-decoration 0.3s ease;
}

/* ===================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   =================================== */

/* Large Desktops (1440px and above) */
@media (min-width: 1440px) {
    section {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .hero-inner {
        max-width: 1400px;
    }
}

/* Extra Large Desktops (1920px and above) */
@media (min-width: 1920px) {
    section {
        max-width: 1800px;
    }
    
    .hero-inner {
        max-width: 1800px;
        gap: 6rem;
    }

    .container {
        max-width: 1800px;
        padding: 0 4rem;
    }

    .hero-name {
        font-size: 5rem;
    }

    .hero-description {
        font-size: 1.5rem;
    }

    .work-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

/* Ultra Wide Screens (2560px and above) */
@media (min-width: 2560px) {
    :root {
        --content-max: 2200px;
    }

    section {
        max-width: var(--content-max);
        padding: 4rem 6rem;
    }
    
    .hero-inner {
        max-width: var(--content-max);
        gap: 8rem;
    }

    .container {
        max-width: var(--content-max);
        padding: 0 6rem;
    }

    /* Larger typography for ultra-wide screens */
    .hero-name {
        font-size: 10rem;
    }
    .hero-stats {
        font-size: 2rem;
    }
    .hero-description {
        font-size: 3.75rem;
    }

    blockquote {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 3.25rem;
    }

    /* Larger illustrations and images */
    .illustration-container {
        width: 800px;
        height: 800px;
    }

    .circular-illustration {
        width: 700px;
        height: 700px;
    }

    .personal-photo {
        width: 680px;
        height: 680px;
    }

    /* Adjust grid layouts */
    .work-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }

    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .design-system-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }

    /* Larger section headings */
    section h1, section h2 {
        font-size: 6rem;
    }

    /* Adjust card content */
    .work-card p,
    .case-study-content p,
    .design-system-card p {
        font-size: 2.125rem;
    }

    /* Larger skill tags */
    .skill-tag {
        padding: 1rem 2rem;
        font-size: 2.25rem;
    }

    /* Adjust timeline for larger screens */
    .timeline-content-dual {
        height: 160px;
        padding: 2.5rem;
    }

    .timeline-content-dual h4 {
        font-size: 2.25rem;
    }

    .timeline-year {
        font-size: 2.1rem;
    }

    /* Improved readability for ultra-wide screens */
    .about-me p {
        font-size: 1.25rem;
        line-height: 1.8;
        max-width: 75ch;
        margin-left: 2rem;
        margin-right: auto;
        
    }
}

/* Standard Desktop (1200px to 1439px) */
@media (max-width: 1439px) and (min-width: 1200px) {
    .hero-inner {
        max-width: 1200px;
        gap: 3rem;
    }
    
    .work-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 2rem;
    }
    
    .hero-name {
        font-size: 3.5rem;
    }
    
    .illustration-container {
        width: 350px;
        height: 350px;
    }
    
    .circular-illustration {
        width: 260px;
        height: 260px;
    }
    
    .personal-photo {
        width: 240px;
        height: 240px;
    }
    
    .skill-tag {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    section h1, section h2 {
        font-size: 2.5rem;
    }
    
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .case-studies-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    }
    
    .design-system-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    }
    
    .phone-mockup {
        width: 180px;
        height: 360px;
    }
}

/* Medium Tablets (900px and below) */
@media (max-width: 900px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 1rem;
    }
    
    .header-right {
        gap: 0.75rem;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
    }
    
    .theme-icon {
        font-size: 0.9rem;
    }
    
    nav ul {
        gap: 0.5rem;
    }
    
    nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Dual Timeline responsive */
    .timeline-track {
        padding-left: 140px;
        gap: 1.5rem;
    }
    
    .timeline-item-dual {
        min-width: 140px;
    }
    
    .timeline-content-dual {
        height: 110px;
        padding: 0.875rem;
    }
    
    .timeline-content-dual h4 {
        font-size: 0.9rem;
    }
    
    .track-label {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .timeline-line-dual {
        left: 120px;
    }
    
    .timeline-dot-dual {
        width: 14px;
        height: 14px;
        border-width: 2px;
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .hero-left {
        align-items: center;
    }
    
    .hero-name {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-right {
        order: -1; /* Move image above text on mobile */
    }
    
    .illustration-container {
        width: 300px;
        height: 300px;
    }
    
    .circular-illustration {
        width: 220px;
        height: 220px;
    }
    
    .personal-photo {
        width: 200px;
        height: 200px;
    }
    
    .skill-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .design-systems {
        top: 10px;
        right: 10px;
    }
    
    .motion-design {
        right: -30px;
    }
    
    .product-thinking {
        left: -10px;
    }
    
    .ux-research {
        bottom: 10px;
    }
    
    section {
        padding: 2rem 1rem;
    }
    
    section h1, section h2 {
        font-size: 2rem;
    }
    
    .work-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
        gap: 1.5rem;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 600px;
        margin: 2rem auto 0;
    }
    
    .design-system-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 600px;
        margin: 0.25rem auto 0;
    }
    
    .stack-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .category-name {
        font-size: 0.95rem;
    }
    
    .tools {
        font-size: 0.85rem;
    }
}

/* Small Mobile Landscape and Portrait (600px and below) */
@media (max-width: 600px) {
    .work-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .hero-description br,
    .hero-subtitle br {
        display: none;
    }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
    header {
        padding: 0.5rem 1rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    .theme-toggle {
        width: 30px;
        height: 30px;
        border-width: 1px;
    }
    
    .theme-icon {
        font-size: 0.85rem;
    }
    
    nav ul {
        gap: 0.3rem;
        flex-wrap: wrap;
    }
    
    nav a {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Dual Timeline mobile */
    .timeline-track {
        padding-left: 110px;
        gap: 1rem;
        padding-right: 1rem;
    }
    
    .timeline-item-dual {
        min-width: 120px;
    }
    
    .timeline-content-dual {
        height: 100px;
        padding: 0.75rem 0.6rem;
    }
    
    .timeline-content-dual h4 {
        font-size: 0.85rem;
    }
    
    .timeline-year {
        font-size: 0.8rem;
    }
    
    .timeline-org {
        font-size: 0.7rem;
    }
    
    .timeline-dot-dual {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }
    
    .education-track .timeline-item-dual::before,
    .experience-track .timeline-item-dual::before {
        height: 0.6rem;
    }
    
    .track-label {
        font-size: 0.85rem;
        padding: 0.5rem 0.85rem;
    }
    
    .timeline-line-dual {
        left: 95px;
    }
    
    .education-track {
        margin-bottom: 2.5rem;
    }
    
    .hero-inner {
        padding: 1.5rem 1rem;
        gap: 2rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
        line-height: 1;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .illustration-container {
        width: 250px;
        height: 250px;
    }
    
    .circular-illustration {
        width: 180px;
        height: 180px;
        margin: 40px auto;
    }
    
    .personal-photo {
        width: 160px;
        height: 160px;
    }
    
    .skill-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .design-systems {
        top: 5px;
        right: 5px;
    }
    
    .motion-design {
        top: 50%;
        right: -25px;
    }
    
    .product-thinking {
        top: 65%;
        left: -5px;
    }
    
    .ux-research {
        bottom: 5px;
        left: 50%;
    }
    
    section {
        padding: 1.5rem 1rem;
    }
    
    section h1, section h2 {
        font-size: 1.75rem;
    }
    
    section hr {
        margin: 1.5rem 0;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .desktop-mockup {
        height: 150px;
    }
    
    .phone-mockup {
        width: 160px;
        height: 320px;
    }
    
    .case-study-content h3 {
        font-size: 1.25rem;
    }
    
    .case-study-content p {
        font-size: 0.9rem;
    }
    
    .design-system-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    footer a {
        display: inline-block;
        margin: 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Better text wrapping on mobile */
    .hero-description,
    .hero-subtitle,
    .case-study-content p,
    .work-card p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Adjust section padding for better spacing */
    #work, #case-studies, #design-stack, #about, #contact {
        padding: 1.5rem 1rem;
    }
}

/* Landscape Mobile Devices */
@media (max-width: 896px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    
    .hero-right {
        order: 0;
    }
    
    .illustration-container {
        width: 200px;
        height: 200px;
    }
    
    .circular-illustration {
        width: 160px;
        height: 160px;
    }
    
    .personal-photo {
        width: 140px;
        height: 140px;
    }
    
    .skill-tag {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 360px) {
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .illustration-container {
        width: 200px;
        height: 200px;
    }
    
    .circular-illustration {
        width: 150px;
        height: 150px;
    }
    
    .personal-photo {
        width: 130px;
        height: 130px;
    }
    
    .skill-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }
    
    section h1, section h2 {
        font-size: 1.5rem;
    }
    
    nav ul {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .container, section {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Print Styles */
@media print {
    header {
        position: relative;
    }
    
    #hero {
        background: white;
        min-height: auto;
    }
    
    .skill-tag,
    .case-study-btn,
    nav {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body::before {
        background-attachment: scroll;
    }
}

/* ===================================
   LIVE CHAT / CALENDAR WIDGET
   =================================== */

/* Floating Chat Button */
.chat-button {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    font-size: 1.9rem;
    color: var(--background-primary);
}

.chat-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.chat-button:active {
    transform: scale(1.1);
}

[data-theme="dark"] .chat-button {
    background: var(--background-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Chat Modal/Popup */
.chat-modal {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    max-width: calc(100vw - 40px);
    background: var(--background-primary);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.chat-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

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

.chat-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
}

.chat-close {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chat-close:hover {
    background: var(--border-color);
    transform: rotate(90deg);
}

.chat-body {
    padding: 1.25rem;
    max-height: 400px;
    overflow-y: auto;
}

.chat-body p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.calendar-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calendar-btn {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.calendar-btn:hover {
    background: var(--background-secondary);
    border-color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.calendar-icon {
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    background: var(--background-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.calendar-text {
    flex: 1;
}

.calendar-text strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.calendar-text span {
    font-size: 0.825rem;
    color: var(--text-secondary);
}

.contact-info {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.contact-info h4 {
    margin: 0 0 0.625rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-info p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.contact-info a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive for Chat Widget */
@media (max-width: 768px) {
    .chat-button {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }
    
    .chat-modal {
        bottom: 85px;
        right: 20px;
        width: calc(100vw - 40px);
    }
    
    .chat-body {
        max-height: 350px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .chat-button {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .chat-header {
        padding: 1rem;
    }
    
    .chat-header h3 {
        font-size: 1rem;
    }
    
    .chat-close {
        width: 26px;
        height: 26px;
        font-size: 1.3rem;
    }
    
    .calendar-btn {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .calendar-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    
    .calendar-text strong {
        font-size: 0.9rem;
    }
    
    .calendar-text span {
        font-size: 0.8rem;
    }
}


