:root {
    --bg-color: #0b0b0d;
    --card-bg: #16161a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #7b2ff7;
    --accent-secondary: #f107a3;
    --nav-bg: rgba(11, 11, 13, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --input-bg: #0b0b0d;
    --section-alt-bg: #0f0f12;
    --element-bg: #2a2a30;
    --tag-bg: rgba(255, 255, 255, 0.05);
    --icon-bg: rgba(255, 255, 255, 0.1);
}

body.light-mode {
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4b5563;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.1);
    --input-bg: #ffffff;
    --section-alt-bg: #e4e6eb;
    --element-bg: #d1d5db;
    --tag-bg: rgba(0, 0, 0, 0.05);
    --icon-bg: rgba(0, 0, 0, 0.1);
}

/* Theme Toggle Button */
.theme-toggle {
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 20px;
}

.theme-toggle:hover {
    color: var(--accent-primary);
    transform: rotate(15deg);
}

/* Update inputs to use variable */
.input-group input,
.input-group textarea {
    background: var(--input-bg);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.accent {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

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

.margin-top {
    margin-top: 100px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-secondary);
    transition: width 0.3s;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 50px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
}

.greeting {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
    opacity: 0;
    /* JS Animation */
}

.name {
    font-size: 5rem;
    margin-bottom: 10px;
    opacity: 0;
    /* JS Animation initial state, handled by script */
}

.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.char:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
    transform: translateY(-5px) scale(1.1);
}

.title {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 400;
    opacity: 0;
    /* JS Animation */
}

.description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0;
    /* JS Animation */
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(123, 47, 247, 0.3);
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    /* JS Animation */
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(123, 47, 247, 0.5);
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: 50px;
    right: -50px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: blue;
    top: 40%;
    right: 30%;
    opacity: 0.2;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0;
    cursor: pointer;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--section-alt-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.img-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.img-box img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.img-box:hover img {
    transform: scale(1.05);
}

.skills-container {
    margin-top: 30px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--element-bg);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    width: 0;
    /* JS Animation */
    border-radius: 10px;
}

/* Projects Section */
.projects {
    padding: 100px 0;
}

.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 var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
    opacity: 0;
    /* JS Animation */
    transform: translateY(50px);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 13, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .overlay {
    opacity: 1;
}

.btn-icon {
    width: 45px;
    height: 45px;
    background: var(--icon-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}

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

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.tags {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.tags span {
    font-size: 0.85rem;
    padding: 5px 12px;
    background: var(--tag-bg);
    border-radius: 20px;
    color: var(--text-secondary);
}

/* Experience Section */
.experience {
    padding: 100px 0;
    background: var(--section-alt-bg);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--element-bg);
}

.timeline-item {
    padding-left: 60px;
    margin-bottom: 50px;
    position: relative;
    opacity: 0;
    /* JS Animation */
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 0 4px rgba(123, 47, 247, 0.2);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    margin-bottom: 5px;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 15px;
}

/* Contact Section */
.contact {
    padding: 100px 0 50px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-details {
    margin: 30px 0;
}

.contact-details .item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-details i {
    color: var(--accent-primary);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

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

.input-group {
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--input-bg);
    border: 1px solid #2a2a30;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .navbar {
        padding: 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .name {
        font-size: 3rem;
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -9px;
    }

    /* Disable custom cursor on mobile */
    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    body {
        cursor: auto;
    }

    .hero {
        padding: 0 20px;
    }

    .greeting {
        font-size: 1.2rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2.5rem;
    }

    .greeting {
        font-size: 1rem;
    }

    .title {
        font-size: 1.2rem;
    }

    .description {
        font-size: 0.9rem;
    }
}