:root {
    --primary: #6C63FF;
    --secondary: #FF6584;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #f5f5f5;
    --gray: #333;
    --transition: all 0.3s ease;
    --glow-primary: rgba(108, 99, 255, 0.5);
    --glow-secondary: rgba(255, 101, 132, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(45deg, var(--dark), var(--darker));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary);
    pointer-events: none;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    z-index: 9999;
}

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

a {
    text-decoration: none;
    color: var(--light);
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

/* Header */
header {
    position: fixed;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    left: 0;
    bottom: -5px;
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: var(--darker);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, rgba(10, 10, 10, 0.8) 100%);
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 5px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.5s;
    text-shadow: 0 0 15px var(--glow-primary);
}

.subtitle {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.8s;
}

.scroll-icon {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0;
    animation-delay: 1.5s;
    animation-fill-mode: forwards;
}

.scroll-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* Sections */
.section {
    position: relative;
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.03), rgba(255, 101, 132, 0.03));
    pointer-events: none;
}

.section:nth-child(odd) {
    background-color: var(--darker);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    left: 0;
    bottom: -10px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
}

.profile-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px var(--glow-primary), 0 0 50px var(--glow-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
    box-shadow: 0 10px 40px var(--glow-primary), 0 0 70px var(--glow-primary);
    transform: scale(1.05) rotate(2deg);
}

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Video Section */
.portfolio-link {
    margin: 30px 0;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px var(--glow-primary);
}

.btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.3) 0%, transparent 70%);
    transform: rotate(-45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary);
}

.video-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.video-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.video-item.featured {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.video-item:hover {
    transform: translateY(-10px);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    width: 100%;
    height: 200px;
    background-color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder i {
    font-size: 2rem;
    color: white;
    opacity: 0.7;
    transition: var(--transition);
}

.video-item:hover .video-placeholder i {
    opacity: 1;
    transform: scale(1.2);
}

.video-info {
    margin-top: 20px;
    text-align: center;
}

.video-highlight {
    color: var(--secondary);
    font-style: italic;
    font-size: 1.1rem;
}

/* Dev Section */
.dev-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.dev-category {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.2);
    transition: all 0.3s ease;
}

.dev-category:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px var(--glow-primary);
}

.dev-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-stack span {
    padding: 5px 15px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--primary);
}

/* Contact Section */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: var(--transition);
    width: 300px;
}

.contact-item.featured {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: none;
}

.contact-item.featured::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: rotate(-45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item.featured:hover::before {
    opacity: 1;
}

.contact-item.featured:hover {
    transform: translateY(-10px);
}

.contact-item:hover {
    background-color: var(--primary);
    transform: translateY(-10px);
}

.contact-item i {
    font-size: 2rem;
}

.contact-item .highlight {
    font-size: 0.8rem;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
footer {
    background-color: var(--darker);
    padding: 30px 0;
    text-align: center;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    nav ul {
        display: none;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        width: 80%;
    }
}