:root {
    --primary: #00f2ea;
    --secondary: #ff0050;
    --bg-dark: #050505;
    --bg-darker: #020202;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --blue-glow: rgba(0, 242, 234, 0.3);
    --purple-glow: rgba(189, 0, 255, 0.3);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease-out, top 0.1s, left 0.1s;
    transform: translate(-50%, -50%);
}

.hover-target {
    transform: scale(1.5);
    background: rgba(0, 242, 234, 0.1);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
    cursor: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

.hero-text-wrapper h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.glitch {
    display: block;
    position: relative;
}

.typing-container {
    height: 2rem;
    margin-bottom: 1.5rem;
}

.typewriter {
    font-size: 1.5rem;
    color: var(--text-muted);
    border-right: 2px solid var(--primary);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.hero-description {
    max-width: 500px;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.primary-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--blue-glow);
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.secondary-btn:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.hero-visual {
    position: relative;
}

.profile-container {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    padding: 10px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    animation: spin-glow 10s linear infinite;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--bg-dark);
    position: relative;
    z-index: 2;
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

@keyframes spin-glow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Sections Global */
.section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.glass-panel {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.bio-text h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.bio-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.personal-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.detail-item .label {
    color: var(--text-muted);
}

.detail-item .value {
    color: var(--text-main);
    font-weight: 500;
}

.social-connect {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    padding: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: none;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-5px);
}

/* Skills Section */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-darker);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: all 0.3s;
}

.skill-tag:hover {
    border-color: var(--secondary);
    color: var(--text-main);
    background: rgba(255, 0, 80, 0.1);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-darker);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--bg-dark);
}

.python-bg {
    background: #FFD43B;
}

.project-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.small-btn {
    padding: 8px 20px;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: all 0.3s;
    cursor: none;
}

.small-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.small-btn.disabled {
    border-color: var(--text-muted);
    color: var(--text-muted);
    cursor: not-allowed;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.tech-stack {
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.card-content p:last-child {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-container p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
    cursor: none;
}

.email {
    background: var(--text-main);
    color: var(--bg-dark);
}

.whatsapp {
    background: #25D366;
    color: #fff;
}

.contact-btn:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
.drawer-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
}

.drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    background: var(--bg-darker);
    z-index: 1050;
    padding-top: 80px;
    transition: left 0.3s ease;
    border-right: 1px solid var(--glass-border);
}

.drawer.open {
    left: 0;
}

.drawer-links {
    list-style: none;
}

.drawer-links a {
    display: block;
    padding: 15px 30px;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
    .home {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        flex-direction: column-reverse;
        gap: 3rem;
    }

    .hero-text-wrapper {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .hero-cta {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .profile-container {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .drawer-toggle {
        display: block;
    }

    .hero-title {
        font-size: 3rem;
    }

    .cursor,
    .cursor-follower {
        display: none;
        /* Hide custom cursor on touch devices */
    }

    * {
        cursor: auto;
    }
}