/* Modern Portfolio Design - 2026 */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a27;
    --text-primary: #ffffff;
    --text-secondary: #b4b4c8;
    --text-muted: #6e6e8f;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-hover: #4f46e5;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Side Navigation */
.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    z-index: 1000;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 60px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent-primary);
}

.nav-dots {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 1;
}

.nav-dots li {
    list-style: none;
}

.nav-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
}

.nav-dot::before {
    content: attr(data-label);
    position: absolute;
    left: 56px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-dot:hover::before {
    opacity: 1;
}

.nav-dot.active,
.nav-dot:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

/* Main Content */
.main-content {
    margin-left: 80px;
    min-height: 100vh;
}

.section {
    min-height: auto;
    padding: 40px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-label {
    font-size: 16px;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 7vw, 64px);
    line-height: 0.9;
    margin-bottom: 12px;
    font-weight: 700;
}

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

.last-name {
    display: block;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.name-cursor,
.role-cursor {
    color: var(--accent-primary);
    font-weight: bold;
    animation: blink 1s infinite;
    display: inline-block;
    margin-left: 2px;
    width: 0;
    overflow: visible;
}

.name-cursor {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 7vw, 64px);
    line-height: 1.1;
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
}

.hero-name > span {
    display: flex;
    align-items: center;
}

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

.hero-roles {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-secondary);
    animation: fadeInUp 0.6s ease 0.5s both;
}

.role-divider {
    color: var(--accent-primary);
    font-weight: 300;
}

.hero-description {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 24px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.6s ease 0.7s both;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 80px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 14px;
    animation: fadeInUp 0.6s ease 0.8s both;
}

.scroll-line {
    width: 40px;
    height: 1px;
    background: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.section-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: var(--accent-primary);
    font-weight: 600;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 4vw, 32px);
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 300px;
    height: 1px;
    background: var(--border-color);
    position: absolute;
    right: -324px;
    top: 50%;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    max-width: 1100px;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.large-text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
}

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

.education-highlight {
    display: flex;
    gap: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-top: 16px;
}

.edu-icon {
    font-size: 24px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.edu-details h3 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 4px;
}

.edu-details p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.edu-spec {
    color: var(--accent-secondary) !important;
    font-weight: 500;
}

.edu-year {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 500;
}

.about-skills {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skills-title {
    color: var(--text-primary);
    font-size: 20px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Experience Section */
.experience-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 900px;
}

.experience-item {
    border-left: 2px solid var(--border-color);
    padding-left: 24px;
    position: relative;
    transition: border-left-color 0.25s ease;
}

.experience-item:hover {
    border-left-color: var(--accent-primary);
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -8px;
    bottom: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 16px;
}

.exp-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exp-role {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 700;
}

.exp-company {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.exp-company:hover {
    color: var(--accent-hover);
}

.exp-company i {
    font-size: 14px;
    margin-left: 4px;
}

.exp-date {
    color: var(--text-muted);
    font-size: 14px;
    white-space: nowrap;
}

.exp-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.exp-tech span {
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 5px;
    font-size: 12px;
    color: var(--accent-primary);
}

.exp-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
}

.exp-projects {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exp-project {
    padding-left: 16px;
    border-left: 2px solid rgba(99, 102, 241, 0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    gap: 12px;
}

.project-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.project-date {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.inline-link {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.inline-link:hover {
    color: var(--accent-primary);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    transform: scale(1);
}

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

.project-card:hover {
    transform: scale(1.08) translateX(16px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
    z-index: 10;
}

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

.project-card.featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-color: transparent;
    padding: 24px;
}

.project-card.featured:hover {
    transform: scale(1.08) translateX(16px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
    z-index: 10;
}

.project-label {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 5px;
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.project-title {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.project-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: var(--accent-primary);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 14px;
}

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

.project-tech span {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 220px;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.contact-details {
    text-align: left;
    overflow: hidden;
}

.contact-details h3 {
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 12px;
    word-break: break-all;
}

/* Footer */
.footer {
    padding: 32px 80px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
}

.footer-year {
    margin-top: 8px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section {
        padding: 40px 40px;
    }

    .scroll-indicator {
        left: 40px;
    }

    .footer {
        padding: 32px 40px;
    }
}

@media (max-width: 968px) {
    .side-nav {
        width: 100%;
        height: 70px;
        flex-direction: row;
        justify-content: space-between;
        padding: 0 40px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .logo {
        margin-bottom: 0;
    }

    .nav-dots {
        flex-direction: row;
        gap: 20px;
        flex: 0;
    }

    .nav-dot::before {
        display: none;
    }

    .social-links {
        flex-direction: row;
    }

    .main-content {
        margin-left: 0;
        margin-top: 70px;
    }

    .section {
        padding: 60px 40px;
        min-height: auto;
    }

    .scroll-indicator {
        left: 40px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title::after {
        width: 150px;
        right: -174px;
    }
}

@media (max-width: 640px) {
    .side-nav {
        padding: 0 20px;
    }

    .section {
        padding: 40px 20px;
    }

    .hero-name {
        font-size: 48px;
    }

    .hero-roles {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 18px;
    }

    .role-divider {
        display: none;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .scroll-indicator {
        display: none;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title::after {
        display: none;
    }

    .exp-header {
        flex-direction: column;
    }

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

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