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

:root {
    --bg-primary: #000000;
    --bg-secondary: #1d1d1f;
    --bg-elevated: #2d2d2f;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --border: #424245;
    --shadow: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-elevated: #fafafa;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --border: #f0f0f0;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    padding: 1.25rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.875rem;
    font-weight: 400;
}

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

.theme-toggle {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.theme-icon {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s;
}

.theme-icon path[fill="currentColor"],
.theme-icon path[fill="currentColor"] {
    fill: var(--text-primary);
    stroke: none;
}

.hero {
    padding: 10rem 0 6rem;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 20px 60px var(--shadow);
    object-fit: cover;
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
    color: var(--text-primary);
}

.hero .subtitle {
    font-size: 1.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
    min-height: 2.5rem;
    margin-top: -5px;
}

#typingText {
    font-weight: 600;
}

.typing-cursor {
    color: var(--accent);
    font-weight: 500;
    display: inline-block;
    animation: blink 0.8s ease-in-out infinite;
    -webkit-animation: blink 0.8s ease-in-out infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@-webkit-keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.hero .description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2.25rem;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.btn-secondary {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
}

section {
    padding: 6rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -1.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.25rem;
    font-weight: 400;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.strengths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.strength-card {
    background: var(--bg-elevated);
    padding: 2.5rem 2rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    transition: transform 0.5s ease;
    cursor: default;
}

.strength-card:hover {
    transform: translateY(-15px)!important;
}

.icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1.25rem;
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
}

.strength-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.strength-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* Project Filters */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-elevated);
    border-radius: 18px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    transition: all 0.5s ease;
    cursor: default;
}

.project-card.hidden {
    display: none;
}

.project-card:hover {
     transform: translateY(-15px)!important;
}

.project-status {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.status-current {
    background: rgba(52, 199, 89, 0.15);
    color: #30d158;
}

.status-launched {
    background: rgba(0, 113, 227, 0.15);
    color: var(--accent);
}

.status-archived {
    background: rgba(142, 142, 147, 0.15);
    color: #98989d;
}

.project-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.project-card .role {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1.5rem;
}

.tech-tag {
    padding: 0.375rem 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.skill-category {
    padding: 2.5rem;
    border-radius: 18px;
    border: none;
    transition: transform 0.5s ease;
    position: relative;
    overflow: hidden;
}

.skill-category:nth-child(1) {
    background: linear-gradient(135deg, #34f2e9 0%, #f7588c 100%);
}

.skill-category:nth-child(2) {
    background: linear-gradient(135deg, #edb567 0%, #fd7f55 100%);
}

.skill-category:nth-child(3) {
    background: linear-gradient(135deg, #5591f2 0%, #6bccf9 100%);
}

[data-theme="light"] .skill-category:nth-child(1) {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

[data-theme="light"] .skill-category:nth-child(2) {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

[data-theme="light"] .skill-category:nth-child(3) {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.skill-category:hover {
     transform: translateY(-15px)!important;
}

.skill-category h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
}

.skill-category li:last-child {
    border-bottom: none;
}

[data-theme="light"] .skill-category h3 {
    color: #1d1d1f;
}

[data-theme="light"] .skill-category li {
    color: rgba(29, 29, 31, 0.85);
    border-bottom: 1px solid rgba(29, 29, 31, 0.1);
}

.contact-content {
    margin: 0 auto;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.contact-item {
    background: var(--bg-elevated);
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    transition: transform 0.5s ease;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact-item:hover {
    transform: translateY(0px) !important;
}

.contact-icon {
    width: 32px;
    height: 32px;
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}

.contact-info-text {
    flex: 1;
}

.contact-item .label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
    font-weight: 500;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-item .info-text {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 500;
}

.track-record {
    margin-top: 4rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.track-record h3 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.track-record ul {
    list-style: none;
    padding: 0;
}

.track-record li {
    color: var(--text-secondary);
    font-size: 1.125rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
}

.track-record li:last-child {
    border-bottom: none;
}

footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.75rem;
        letter-spacing: -1px;
    }

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

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

    .profile-photo {
        width: 130px;
        height: 130px;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

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

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

    section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .section-subtitle {
        font-size: 1.125rem;
    }

    .project-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
}

html {
    scroll-behavior: smooth;
}
