:root {
    --primary: #6C00FF;
    --secondary: #4B0082;
    --accent: #9D00FF;
    --black: #0A0A0A;
    --white: #FFFFFF;
    --gray: #1A1A1A;
    --gradient: linear-gradient(135deg, var(--primary), var(--accent));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--primary);
    border-radius: 50%;
    position: relative;
    animation: loader-rotate 1s linear infinite;
}

.loader-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: loader-rotate 0.5s linear infinite reverse;
}

.loader-text {
    margin-top: 20px;
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 1s ease infinite;
}

@keyframes loader-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
}

.cursor-follower {
    width: 24px;
    height: 24px;
    background: rgba(108, 0, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    padding: 1.5rem 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(108, 0, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(108, 0, 255, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Glitch Effect */
.glitch-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.glitch {
    font-size: 4.5rem;
    font-weight: bold;
    position: relative;
    text-shadow: 0.05em 0 0 var(--primary), -0.025em -0.05em 0 var(--accent),
                 0.025em 0.05em 0 var(--secondary);
    animation: glitch 1s infinite;
}

.glitch span {
    position: absolute;
    top: 0;
    left: 0;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 var(--primary), -0.025em -0.05em 0 var(--accent),
                     0.025em 0.05em 0 var(--secondary);
    }
    14% {
        text-shadow: 0.05em 0 0 var(--primary), -0.025em -0.05em 0 var(--accent),
                     0.025em 0.05em 0 var(--secondary);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 var(--primary), 0.025em 0.025em 0 var(--accent),
                     -0.05em -0.05em 0 var(--secondary);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 var(--primary), 0.025em 0.025em 0 var(--accent),
                     -0.05em -0.05em 0 var(--secondary);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 var(--primary), 0.05em 0 0 var(--accent),
                     0 -0.05em 0 var(--secondary);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 var(--primary), 0.05em 0 0 var(--accent),
                     0 -0.05em 0 var(--secondary);
    }
    100% {
        text-shadow: -0.025em 0 0 var(--primary), -0.025em -0.025em 0 var(--accent),
                     -0.025em -0.05em 0 var(--secondary);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, var(--gray) 0%, var(--black) 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
    max-width: 1200px;
}

.type-wrap {
    font-size: 2rem;
    margin-bottom: 2rem;
    min-height: 80px;
}

#typed {
    color: var(--accent);
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

.cta-button.primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(108, 0, 255, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 0, 255, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s ease infinite;
}

.arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    transform: rotate(45deg);
    animation: arrows 1.5s infinite;
}

.arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrows span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes arrows {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* About Section */
.about {
    padding: 8rem 2rem;
    background: linear-gradient(to bottom, var(--black), var(--gray));
    position: relative;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.highlight-text {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-text p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.achievement-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.achievement-card {
    background: rgba(75, 0, 130, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.achievement-card-inner {
    padding: 2rem;
    background: rgba(75, 0, 130, 0.1);
    border: 1px solid rgba(108, 0, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.achievement-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.2);
    color: var(--accent);
}

.achievement-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

/* Skills Section */
.skills {
    padding: 8rem 2rem;
    background: var(--black);
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.skill-category h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-bar {
    background: rgba(75, 0, 130, 0.1);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid rgba(108, 0, 255, 0.2);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.skill-progress {
    height: 10px;
    background: rgba(75, 0, 130, 0.2);
    border-radius: 50px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 50px;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.5, 1);
}

/* Projects Section */
.projects {
    padding: 8rem 2rem;
    background: linear-gradient(to bottom, var(--black), var(--gray));
    position: relative;
}

.project-slider {
    margin-top: 4rem;
    padding: 2rem 0;
}

.project-card {
    background: rgba(75, 0, 130, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(108, 0, 255, 0.2);
    transform-style: preserve-3d;
}

.project-image {
    height: 200px;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.project-overlay i {
    font-size: 3rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.project-card:hover .project-overlay i {
    transform: scale(1.2);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.project-tech span {
    padding: 0.5rem 1rem;
    background: rgba(108, 0, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(108, 0, 255, 0.2);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.project-link {
    padding: 0.8rem 1.5rem;
    background: var(--gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.project-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 0, 255, 0.3);
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Swiper Customization */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--gradient);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: var(--accent);
}

/* Contact Section */
.contact {
    padding: 8rem 2rem;
    background: var(--black);
    position: relative;
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.5rem;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-size: 2rem;
    transition: all 0.3s ease;
    padding: 1.5rem;
    border-radius: 15px;
    background: rgba(75, 0, 130, 0.1);
    border: 1px solid rgba(108, 0, 255, 0.2);
    transform-style: preserve-3d;
}

.social-link span {
    font-size: 1rem;
    margin-top: 0.5rem;
}

.social-link:hover {
    transform: translateY(-5px);
    background: var(--gradient);
    border-color: transparent;
}

/* Footer */
footer {
    padding: 2rem;
    background: var(--black);
    border-top: 1px solid rgba(108, 0, 255, 0.2);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .type-wrap {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .achievement-cards {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        gap: 1rem;
    }
}