:root {
    --bg-color: #000000;
    --text-color: #f0f0f0;
    --text-secondary: #aaaaaa;
    --accent-color: #ffffff;
    --accent-muted: #888888;
    --card-bg: #111111;
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
    border: 3px solid #000;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #000;
}

body {
    font-family: var(--font-main);
    background-color: transparent;
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
}

a,
button,
.skill-card,
.project-card,
.scroll-top-btn {
    cursor: none !important;
}

/* Custom Cursor */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 99999;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lang-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid #333;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    z-index: 5;
}

.scroll-indicator span {
    width: 6px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    margin-top: 10px;
    animation: scrollInfo 1.5s infinite;
}

@keyframes scrollInfo {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

.section {
    padding: 100px 20px 40px;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.reveal {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.about-content {
    max-width: 800px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.skill-card {
    text-decoration: none;
    background: #151515;
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #222;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.skill-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(1) brightness(1.5);
    transition: var(--transition);
}

.skill-card span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.skill-card:hover {
    border-color: #fff;
    transform: translateY(-5px);
    background: #222;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.skill-card:hover img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.1);
}

.skill-card:hover span {
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #222;
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: #fff;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.project-link {
    display: inline-block;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: #444;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link:hover {
    text-decoration-color: #fff;
}

.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.social-btn {
    text-decoration: none;
    color: #fff;
    border: 1.2px solid #444;
    padding: 12px 25px;
    border-radius: 10px;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

.footer {
    padding: 20px 0;
    text-align: center;
    color: #555;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: -1px;
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    bottom: 40px;
}

.scroll-top-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        height: auto;
        min-height: 90vh;
        padding: 120px 0 60px;
    }

    .section {
        padding-top: 60px;
    }

    .hero-content {
        width: 100%;
        padding: 0 10px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
        width: 100%;
    }

    .skill-card img {
        filter: grayscale(0) brightness(1);
    }

    .scroll-top-btn,
    .scroll-indicator {
        display: none !important;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    body,
    a,
    button,
    .skill-card,
    .project-card,
    .scroll-top-btn {
        cursor: auto !important;
    }
}