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

::selection {
    background: var(--primary);
    color: #000;
}

::-moz-selection {
    background: var(--primary);
    color: #000;
}

/* Custom Scrollbar - Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
    border-left: 1px solid var(--border);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    border: 2px solid var(--bg);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7de0a3 0%, var(--primary) 100%);
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(91, 210, 135, 0.5);
}

::-webkit-scrollbar-thumb:active {
    background: var(--primary);
}

::-webkit-scrollbar-corner {
    background: var(--bg);
}

/* Custom Scrollbar - Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg);
}

:root {
    --primary: #5bd287;
    --primary-dark: #45a872;
    --bg: #0a0a0a;
    --bg-light: #111111;
    --text: #e4e4e7;
    --text-dim: #a1a1aa;
    --border: rgba(91, 210, 135, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: url('cur/pointer.cur'), auto;
    position: relative;
}


a, button, .btn, .nav-link, .project-btn, .project-item {
    cursor: url('cur/link.cur'), pointer !important;
}

.click-ripple {
    position: fixed;
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
}

.click-ripple lottie-player {
    width: 100%;
    height: 100%;
    filter: brightness(0) saturate(100%) invert(79%) sepia(18%) saturate(1285%) hue-rotate(88deg) brightness(93%) contrast(87%);
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    z-index: 9999;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    cursor: url('cur/link.cur'), pointer !important;
    transition: color 0.3s;
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3rem;
    position: relative;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(91, 210, 135, 0.1);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-title .line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #45a872 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.hero-description-sub {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.8;
    opacity: 0.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(91, 210, 135, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

section {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.section-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    max-width: 800px;
}

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

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.project-item:hover {
    padding-left: 1rem;
}

.project-num {
    font-size: 1rem;
    color: var(--text-dim);
    font-weight: 500;
    min-width: 3rem;
}

.project-info {
    flex: 1;
}

.project-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-dim);
}

.project-actions {
    display: flex;
    gap: 0.75rem;
}

.project-btn {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.project-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(91, 210, 135, 0.05);
}

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

.project-year {
    font-size: 0.95rem;
    color: var(--text-dim);
}

.project-badge {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: lowercase;
    border: 1px solid;
}

.project-badge.live {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(91, 210, 135, 0.1);
}

.project-badge.discontinued {
    border-color: var(--text-dim);
    color: var(--text-dim);
    background: rgba(161, 161, 170, 0.1);
}

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

.skill-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark), var(--primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card:hover::before {
    opacity: 1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark), var(--primary));
    }
    25% {
        background: linear-gradient(225deg, var(--primary), var(--primary-dark), var(--primary));
    }
    50% {
        background: linear-gradient(315deg, var(--primary), var(--primary-dark), var(--primary));
    }
    75% {
        background: linear-gradient(45deg, var(--primary), var(--primary-dark), var(--primary));
    }
    100% {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark), var(--primary));
    }
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.skill-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(91, 210, 135, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    border-radius: 10px;
    transition: width 1s ease;
}

.skill-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact {
    background: #0a0a0a00;
}

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

.contact-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.contact-description {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer {
    padding: 3rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        gap: 1.5rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 0 1.5rem;
    }

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

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

    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 5rem 0;
    }

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

    .section-line {
        display: none;
    }

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

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

@media (max-width: 480px) {
    .nav-menu {
        gap: 1rem;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }

    .project-item {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .project-num {
        min-width: 2rem;
    }

    .project-info {
        flex: 1 1 100%;
    }

    .project-actions {
        flex: 1 1 100%;
        order: 3;
    }

    .project-meta {
        flex: 1 1 auto;
        order: 2;
    }
}
