:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a8a6ff;
    --background-color: #0a0a0a;
    --text-color: #ffffff;
    --card-bg: #1a1a1a;
    --animation-timing: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s;
}

.loader-content {
    text-align: center;
}

.loader i {
    font-size: 3rem;
    color: var(--primary-color);
    animation: pulse 1.5s infinite;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 1rem 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--animation-timing);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.3s;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--animation-timing);
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.btn.secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

/* About Section */
.about {
    padding: 100px 10%;
    background-color: var(--card-bg);
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.skills {
    margin-top: 2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.skill-tags span {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
}

/* Projects Section */
.projects {
    padding: 100px 10%;
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    transition: var(--animation-timing);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.2);
}

.project-image {
    height: 200px;
    background-color: var(--primary-color);
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    padding: 100px 10%;
    background-color: var(--card-bg);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

input, textarea {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 5px;
    color: var(--text-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: var(--animation-timing);
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--background-color);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}



/* Previous CSS remains the same, adding new styles below */

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
}

.cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

/* Theme Switcher */
.theme-switch {
    position: fixed;
    right: 20px;
    top: 100px;
    z-index: 100;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.theme-switch button {
    border: none;
    background: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 10px;
    transition: var(--animation-timing);
}

.theme-switch button:hover {
    color: var(--primary-color);
}

/* Particle Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 3D Project Cards */
.project-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.project-card:hover .project-card-inner {
    transform: rotateY(180deg);
}

.project-front, .project-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.project-back {
    transform: rotateY(180deg);
    background: var(--primary-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Skills Progress */
.skill-progress {
    width: 100%;
    height: 10px;
    background: var(--card-bg);
    border-radius: 5px;
    margin: 5px 0 15px 0;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* Game Controller Animation */
.controller-3d {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 2rem auto;
    perspective: 1000px;
}

.controller-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: floatController 5s infinite ease-in-out;
}

@keyframes floatController {
    0%, 100% { transform: translateY(0) rotateY(0); }
    50% { transform: translateY(-20px) rotateY(180deg); }
}

/* Loading Animation Enhancement */
.loader {
    background: linear-gradient(135deg, var(--background-color) 0%, var(--card-bg) 100%);
}

.loader-content {
    position: relative;
}

.loader-content::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Light Theme Colors */
[data-theme="light"] {
    --background-color: #ffffff;
    --text-color: #333333;
    --card-bg: #f5f5f5;
    --primary-color: #6c5ce7;
    --secondary-color: #8f87ff;
}


/* Add these new styles for the logo at the beginning of your CSS file */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Remove all .project-card related styles */
/* Keep all other existing styles from the previous version */

/* Update the hero section to be more prominent without projects */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    background: linear-gradient(135deg, 
        rgba(108, 92, 231, 0.1) 0%, 
        rgba(0, 0, 0, 0) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(108, 92, 231, 0.1) 0%,
        transparent 70%
    );
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* Enhanced about section */
.about {
    padding: 100px 10%;
    background-color: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(108, 92, 231, 0.05) 0%,
        transparent 50%
    );
    animation: rotate 20s infinite linear;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Update contact section styling */
.contact {
    position: relative;
    background: linear-gradient(
        45deg,
        var(--background-color) 0%,
        var(--card-bg) 100%
    );
}

.contact-content {
    position: relative;
    z-index: 2;
}

/* Enhanced form styling */
form input, form textarea {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

form input:focus, form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}



/* Add these new styles for enhanced skills visualization */
.skills {
    margin-top: 3rem;
}

.skill-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-item {
    background: rgba(108, 92, 231, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-item:hover::before {
    opacity: 1;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.skill-percentage {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.skill-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 5px;
    transform-origin: left;
    transform: scaleX(0);
}

.skill-description {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Skill item hover effects */
.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
}

.skill-item:hover .skill-bar {
    animation: fillBar 1.5s ease forwards;
}

@keyframes fillBar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Add glowing effect for skill items */
.skill-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(108, 92, 231, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-item:hover::after {
    opacity: 1;
}


/* Discord Link Styling */
.discord-link a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #5865f2;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: white !important;
    transition: all 0.3s ease;
}

.discord-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
    background: #4752c4;
}

.discord-link .fa-discord {
    font-size: 1.2rem;
}

/* Add pulse animation to Discord icon */
@keyframes discordPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.discord-link:hover .fa-discord {
    animation: discordPulse 1s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .discord-link a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}