/* Base Styles */
:root {
    --dark-bg: #0a0a12;
    --darker: #050508;
    --primary: #8a2be2;
    --secondary: #9400d3;
    --accent: #ba55d3;
    --text: #e0e0ff;
    --card-bg: rgba(20, 20, 40, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--dark-bg);
    overflow-x: hidden;
}

/* Gradient Background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker) 100%);
    z-index: -3;
}

.gradient-circle-1, .gradient-circle-2 {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -2;
}

.gradient-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.gradient-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

/* Particles */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--darker) 100%);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Header */
header {
    text-align: center;
    padding: 2rem 0;
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 10%;
    min-height: 80vh;
}

.hero-content {
    max-width: 50%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.4);
    overflow: hidden;
    position: relative;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(138, 43, 226, 0.6);
}

.hero-image {
    position: relative;
}

.image-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    animation: rotate-gradient 8s linear infinite;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--dark-bg);
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Projects Section */
.projects {
    padding: 4rem 10%;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.2);
    border-color: var(--accent);
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

/* Skills Section */
.skills {
    padding: 4rem 10%;
    text-align: center;
}

.skills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    min-width: 120px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.skill-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

/* Contact Section */
.contact {
    padding: 4rem 10%;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
}

.social-btn:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    margin-top: 2rem;
}

/* Dark Mode Toggle */
#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Magnetic Effect Class */
.magnetic {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--accent));
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .hero-image .image-wrapper {
        width: 250px;
        height: 250px;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }
}