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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent: #ff6f00;
    --accent-dim: #666666;
    --orange: #ff6f00;
    --orange-dim: rgba(169, 61, 244, 0.3);
    --border: #2a2a2a;
    --transition: all 0.3s ease;
    --section-border-width: 6px;
}

html {
    scroll-behavior: smooth;
}

/* Gaming cursor */
body {
    cursor: none;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px var(--orange), 0 0 20px rgba(255, 111, 0, 0.4);
    transition: width 0.15s ease, height 0.15s ease, background 0.15s ease;
}

.cursor-dot.clicking {
    width: 5px;
    height: 5px;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 2px solid var(--orange);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.cursor-ring.hovering {
    width: 50px;
    height: 50px;
    border-color: var(--accent);
    border-width: 3px;
}

.cursor-dot.hidden,
.cursor-ring.hidden {
    opacity: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 4rem;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-photo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-wrapper {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 4px solid var(--orange);
    box-shadow: 0 0 30px var(--orange-dim), 0 0 60px rgba(169, 61, 244, 0.1);
    overflow: hidden;
    position: relative;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-wrapper img {
    width: 95%;
    height: 95%;
    object-fit: cover;
}

/* Fallback placeholder when no image */
.photo-wrapper.photo-placeholder::after {
    content: "MS";
    font-size: 4rem;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 2px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.greeting {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.name {
    color: var(--orange);
    background: none;
    -webkit-text-fill-color: var(--orange);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 550;
    color: var(--orange);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid;
    cursor: pointer;
}

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

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

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

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

/* Sections */
section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

/* Alternating thick colored side borders */
.section-accent-right {
    border-right: var(--section-border-width) solid var(--orange);
    box-shadow: inset -2px 0 20px rgba(169, 61, 244, 0.08);
}

.section-accent-left {
    border-left: var(--section-border-width) solid var(--orange);
    box-shadow: inset 2px 0 20px rgba(169, 61, 244, 0.08);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--orange);
}

/* About Section */
.about {
    background-color: var(--bg-secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-content p {
    margin-bottom: 1.5rem;
}

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

.project-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(169, 61, 244, 0.15);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.link-to-code-editor {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.link-to-pr-reviewer {
    color: var(--text-secondary);
    margin-top: 4.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tag {
    padding: 0.4rem 0.8rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Skills Section */
.skills {
    background-color: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

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

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

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

.devil {
    max-width: 800px;
    margin: 2rem auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
}

.os {
    max-width: 800px;
    margin: 2rem auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(169, 61, 244, 0.2);
}

.contact-link svg {
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .photo-wrapper {
        width: 200px;
        height: 200px;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .greeting {
        font-size: 1.5rem;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

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

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

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Reduce border width on mobile */
    .section-accent-right,
    .section-accent-left {
        border-right: none;
        border-left: none;
        border-top: var(--section-border-width) solid var(--orange);
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-links {
        font-size: 0.85rem;
        gap: 0.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    section {
        padding: 3rem 0;
    }
}