@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #fafafa;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --border-color: #e5e5e5;
    --border-light: #eee;
    --accent-color: #e74c3c;
    --grid-color: rgba(0,0,0,0.02);
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-primary: #e5e5e5;
    --text-secondary: #b5b5b5;
    --text-muted: #888;
    --border-color: #333;
    --border-light: #2a2a2a;
    --accent-color: #ff6b6b;
    --grid-color: rgba(255,255,255,0.03);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
    background-image:
            linear-gradient(var(--grid-color) 1px, transparent 1px),
            linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
    transition: all 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-color);
    background-image:
            linear-gradient(var(--grid-color) 1px, transparent 1px),
            linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
}

p {
    color: var(--text-secondary) !important;
}

/* Ensure all text elements use theme colors */
* {
    color: inherit;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100vh;
    padding: 60px 40px 40px 40px;
    z-index: 100;
    transition: all 0.3s ease;
}

#about-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.nav-menu {
    list-style: none;
    margin-top: 60px;
}

.nav-item {
    margin-bottom: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    padding-left: 15px;
}

.nav-text {
    display: block;
    transition: color 0.3s ease;
}

.nav-underline {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

.nav-link:hover .nav-underline {
    width: 8px;
}

.nav-link.active .nav-text {
    color: var(--accent-color);
}

.nav-link.active .nav-underline {
    width: 8px;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--text-primary);
    border: 2px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

.dark-mode-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--bg-color);
    transition: all 0.3s ease;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 200;
    background: var(--text-primary);
    border: 2px solid var(--text-primary);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    display: none;
    color: var(--bg-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .mobile-menu-btn {
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .mobile-menu-btn:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* Hamburger Icon */
.hamburger {
    display: flex;
    flex-direction: column;
    width: 20px;
    height: 16px;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--bg-color);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Main Content */
.main-content {
    margin-left: 200px;
    flex: 1;
}

.section {
    min-height: 100vh;
    padding: 80px 80px 80px 120px;
    max-width: 800px;
}

.section h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary) !important;
}

.section .subtitle {
    font-size: 16px;
    color: var(--text-secondary) !important;
    margin-bottom: 40px;
}

.section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.section-subtitle {
    font-size: 12px;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
}

.section p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary) !important;
    margin-bottom: 20px;
}

.contact-links {
    margin-top: 40px;
}

.contact-links a {
    color: var(--text-secondary) !important;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 30px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.contact-links a:hover {
    color: var(--accent-color) !important;
    border-bottom-color: var(--accent-color);
}

/* Work Experience */
.work-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
}

.work-item:last-child {
    border-bottom: none;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.work-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary) !important;
}

.work-company {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary) !important;
    text-align: right;
}

.work-period {
    font-size: 14px;
    color: var(--text-secondary) !important;
    white-space: nowrap;
    text-align: right;
}

.work-description {
    font-size: 14px;
    color: var(--text-secondary) !important;
    margin-top: 5px;
}

/* Projects */
.project-item {
    margin-bottom: 60px;
    position: relative;
}

.project-status {
    position: absolute;
    left: -80px;
    top: 0;
    font-size: 12px;
    color: var(--accent-color) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.project-year {
    position: absolute;
    left: -80px;
    top: 0;
    font-size: 14px;
    color: var(--text-primary) !important;
    font-weight: 600;
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary) !important;
    margin-bottom: 8px;
}

.project-client {
    font-size: 14px;
    color: var(--text-secondary) !important;
    margin-bottom: 15px;
}

.project-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary) !important;
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.project-role,
.project-deliverables {
    font-size: 14px;
    color: var(--text-secondary) !important;
}

.project-role strong,
.project-deliverables strong {
    color: var(--text-primary) !important;
}

/* Now Section */
.now-list {
    list-style: none;
}

.now-item {
    margin-bottom: 25px;
    padding-left: 20px;
    position: relative;
}

.now-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 16px;
}

.now-item p {
    margin-bottom: 0;
}

/* Animations */


/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        top: 30px;
        left: 30px;
        transform: none;
    }

    .mobile-menu-btn:hover {
        transform: scale(1.05);
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        padding: 80px 50px 50px 50px;
        z-index: 100;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.open {
        opacity: 1;
        visibility: visible;
    }

    /* Remove red sidebar accent */
    .sidebar::before {
        display: none;
    }

    .nav-menu {
        margin-top: 0;
        padding: 0;
        text-align: center;
    }

    .nav-item {
        margin-bottom: 35px;
    }

    .nav-link {
        font-size: 18px;
        font-weight: 400;
        padding-left: 0;
        text-align: center;
        display: block;
        justify-content: center;
    }

    .nav-text {
        color: var(--text-primary);
        display: block;
    }

    .nav-underline {
        display: none;
    }

    .nav-link.active .nav-text {
        color: var(--text-primary);
        font-weight: 600;
    }

    .nav-link:hover .nav-text {
        color: var(--accent-color);
    }

    /* Dark mode toggle inside menu */
    .mobile-dark-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 0 0 0;
        border-top: 1px solid var(--border-color);
        margin-top: 20px;
    }

    .dark-mode-toggle {
        position: static;
        width: 44px;
        height: 44px;
        margin: 0;
        background: var(--text-primary);
        border: none;
        visibility: hidden;
    }

    .dark-mode-toggle svg {
        color: var(--bg-color);
    }

    .main-content {
        margin-left: 0;
    }

    .section {
        padding: 60px 30px;
    }

    .project-status,
    .project-year {
        position: static;
        writing-mode: initial;
        text-orientation: initial;
        margin-bottom: 10px;
        display: inline-block;
    }

    .work-header {
        flex-direction: column;
        gap: 10px;
    }

    .work-company,
    .work-period {
        text-align: left;
    }

    .contact-links a {
        display: block;
        margin-bottom: 15px;
        margin-right: 0;
    }

    /* Mobile overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.3);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 99;
    }

    .mobile-overlay.open {
        opacity: 1;
        visibility: visible;
    }
}

/* Additional responsive breakpoints for different iPhone models */
@media (max-width: 414px) {
    /* iPhone 11 Pro Max, iPhone XS Max, iPhone 11, iPhone XR */
    .mobile-menu-btn {
        top: 20px;
        left: 20px;
        padding: 10px;
    }

    .dark-mode-toggle {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .dark-mode-toggle svg {
        width: 18px;
        height: 18px;
    }

    .section {
        padding: 40px 20px;
    }
}

@media (max-width: 375px) {
    /* iPhone 13 mini, iPhone 12 mini, iPhone SE, iPhone X/XS/11 Pro */
    .mobile-menu-btn {
        top: 20px;
        left: 20px;
        padding: 10px;
    }

    .dark-mode-toggle {
        bottom: 20px;
        right: 16px;
        width: 38px;
        height: 38px;
    }

    .dark-mode-toggle svg {
        width: 16px;
        height: 16px;
    }

    .section {
        padding: 40px 16px;
    }
}

@media (max-width: 320px) {
    /* Very small devices */
    .mobile-menu-btn {
        top: 16px;
        left: 16px;
        padding: 8px;
    }

    .dark-mode-toggle {
        bottom: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }

    .dark-mode-toggle svg {
        width: 14px;
        height: 14px;
    }
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100vh;
    padding: 80px 50px 50px 50px;
    z-index: 100;
}

.nav-menu {
    list-style: none;
    margin-top: 80px;
}

.nav-item {
    margin-bottom: 35px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.8px;
    transition: all 0.4s ease;
    position: relative;
    display: block;
}

.nav-text {
    display: block;
    transition: all 0.4s ease;
    transform: translateX(0);
}

.nav-underline {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover .nav-text {
    color: #333;
    transform: translateX(8px);
}

.nav-link:hover .nav-underline {
    width: calc(100% + 8px);
}

.nav-link.active .nav-text {
    color: #e74c3c;
    font-weight: 600;
    transform: translateX(8px);
}

.nav-link.active .nav-underline {
    width: calc(100% + 8px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 200;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    display: none;
}

/* Main Content */
.main-content {
    margin-left: 220px;
    flex: 1;
    position: relative;
}

.section {
    min-height: 100vh;
    padding: 100px 100px 100px 140px;
    max-width: 900px;
    position: relative;
}

.section h1 {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section .subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 50px;
    font-weight: 500;
}

.section p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    font-weight: 400;
}

.contact-links {
    margin-top: 50px;
}

.contact-links a {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 40px;
    border-bottom: 2px solid transparent;
    transition: all 0.4s ease;
    font-weight: 500;
    padding-bottom: 4px;
}

.contact-links a:hover {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
    transform: translateY(-2px);
}

/* Work Experience */
.work-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.work-item:last-child {
    border-bottom: none;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 20px;
}

.work-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.work-company {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: right;
    margin-bottom: 12px;
}

.work-period {
    font-size: 14px;
    color: #888;
    white-space: nowrap;
    text-align: right;
    font-weight: 400;
}

.work-description {
    font-size: 15px;
    color: #666;
    margin-top: 8px;
    font-weight: 400;
    line-height: 1.6;
}

/* Projects */
.project-item {
    margin-bottom: 60px;
    position: relative;
}

.project-status {
    position: absolute;
    left: -100px;
    top: 40px;
    font-size: 13px;
    color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 600;
}

.project-year {
    position: absolute;
    left: -100px;
    top: 40px;
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 700;
}

.project-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.project-client {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    font-weight: 400;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.project-role,
.project-deliverables {
    font-size: 14px;
    color: #333;
    font-weight: 400;
}

.project-role strong,
.project-deliverables strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* Now Section */
.now-list {
    list-style: none;
}

.now-item {
    margin-bottom: 25px;
    padding-left: 20px;
    position: relative;
}

.now-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-size: 16px;
}

.now-item p {
    margin-bottom: 0;
}

/* Animations */


/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.open {
        transform: translateX(0);
        background-color: var(--bg-color);
    }

    .main-content {
        margin-left: 0;
    }

    .section {
        padding: 80px 30px;
    }

    .section h1 {
        font-size: 32px;
    }

    .project-status,
    .project-year {
        position: static;
        writing-mode: initial;
        text-orientation: initial;
        margin-bottom: 15px;
        display: inline-block;
    }

    .project-item {
        padding: 0px 0px;
    }

    .work-header {
        flex-direction: column;
        gap: 15px;
    }

    .work-company {
        text-align: left;
        margin-bottom: 0.7rem;
    }

    .work-period {
        text-align: left;
    }

    .contact-links a {
        display: block;
        margin-bottom: 15px;
        margin-right: 0;
    }
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .faq-item:hover {
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-color);
    transition: all 0.3s ease;
    border: none;
    user-select: none;
}

.faq-question:hover {
    background: var(--border-light);
}

.faq-question span:first-child {
    flex: 1;
    margin-right: 16px;
    line-height: 1.5;
}

.faq-icon {
    font-size: 20px;
    font-weight: 300;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    min-width: 20px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-color);
}

.faq-answer.open {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 24px 24px;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .faq-question {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .faq-answer p {
        padding: 0 20px 20px 20px;
        font-size: 14px;
    }
    
    .faq-answer.open {
        max-height: 300px;
    }
}