/* Global Styles */
:root {
    --primary-bg: #0a0a18;
    --secondary-bg: #141428;
    --text-color: #f8f8f8;
    --accent-color: #7B68EE;
    --hover-color: #9370DB;
    --tag-bg: #262645;
    --card-bg: #121224;
    --border-color: #2c2c45;
    --soft-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--primary-bg);
    background-image: 
        radial-gradient(circle at 20% 35%, rgba(123, 104, 238, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 15%, rgba(147, 112, 219, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 60% 85%, rgba(138, 43, 226, 0.02) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    position: relative;
    overflow-x: hidden;
}

/* Animated particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 80% 10%, rgba(123, 104, 238, 0.1) 0%, transparent 0.5%),
        radial-gradient(circle at 10% 30%, rgba(147, 112, 219, 0.1) 0%, transparent 0.5%),
        radial-gradient(circle at 40% 70%, rgba(123, 104, 238, 0.1) 0%, transparent 0.5%),
        radial-gradient(circle at 70% 90%, rgba(147, 112, 219, 0.1) 0%, transparent 0.5%),
        radial-gradient(circle at 30% 20%, rgba(123, 104, 238, 0.1) 0%, transparent 0.5%),
        radial-gradient(circle at 90% 60%, rgba(147, 112, 219, 0.1) 0%, transparent 0.5%),
        radial-gradient(circle at 20% 80%, rgba(123, 104, 238, 0.1) 0%, transparent 0.5%),
        radial-gradient(circle at 50% 50%, rgba(147, 112, 219, 0.1) 0%, transparent 0.5%);
    animation: particleFloat 15s infinite alternate ease-in-out;
}

@keyframes particleFloat {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 2% 2%;
    }
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(18, 18, 36, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(44, 44, 69, 0.4);
}

/* Glow effect */
.glow-effect {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(123, 104, 238, 0.08) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
    animation: pulseGlow 10s infinite alternate;
}

.glow-effect.bottom {
    top: auto;
    right: auto;
    bottom: -150px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(147, 112, 219, 0.08) 0%, transparent 70%);
    animation-delay: 5s;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.8rem;
    background: linear-gradient(90deg, #9370DB, #7B68EE, #9e7bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #9370DB, #7B68EE);
    border-radius: 4px;
}

h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    position: relative;
    padding-bottom: 10px;
    color: #e1e1ff;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

h3 {
    font-size: 1.3rem;
    color: #c5b3ff;
    transition: color 0.3s ease;
}

p {
    margin-bottom: 15px;
    color: #d4d4f5;
}

/* Header */
header {
    margin-bottom: 40px;
    position: relative;
}

.profile-section {
    margin-bottom: 25px;
}

.tagline {
    font-size: 1.25rem;
    color: #b8b8e6;
    letter-spacing: 0.5px;
    margin-top: -5px;
    font-weight: 400;
}

.about-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 90%;
}

/* Social Links */
#socials {
    margin-bottom: 40px;
    position: relative;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(44, 44, 69, 0.5);
    color: #d4d4f5;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid rgba(123, 104, 238, 0.2);
    transition: all 0.4s cubic-bezier(0, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.social-link:hover {
    background-color: rgba(123, 104, 238, 0.2);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(123, 104, 238, 0.3);
    border-color: rgba(123, 104, 238, 0.4);
}

.social-link i {
    font-size: 1.1rem;
    color: var(--accent-color);
}

/* Projects */
#projects {
    margin-bottom: 50px;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project {
    background: rgba(18, 18, 36, 0.7);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(44, 44, 69, 0.4);
    transition: all 0.4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: var(--soft-shadow);
}

.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #9370DB);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.project:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(123, 104, 238, 0.3);
}

.project:hover::before {
    transform: scaleX(1);
}

.project:hover h3 {
    color: var(--accent-color);
}

.project-details {
    margin-top: 15px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tag {
    background-color: rgba(38, 38, 69, 0.6);
    color: #b8b8e6;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(123, 104, 238, 0.1);
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: rgba(123, 104, 238, 0.1);
    color: #d4d4f5;
    border-color: rgba(123, 104, 238, 0.3);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 5px;
    position: relative;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: var(--hover-color);
}

.project-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.project-link i {
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    color: #9e9ed6;
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid rgba(44, 44, 69, 0.4);
    margin-top: 30px;
    position: relative;
}

/* Animated floating circles */
.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(123, 104, 238, 0.05);
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 160px;
    height: 160px;
    top: 15%;
    right: -80px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -100px;
    animation-delay: 5s;
    background: rgba(147, 112, 219, 0.05);
}

.circle-3 {
    width: 120px;
    height: 120px;
    top: 40%;
    left: 10%;
    animation-delay: 10s;
    background: rgba(123, 104, 238, 0.03);
}

.circle-4 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    right: 10%;
    animation-delay: 15s;
    background: rgba(147, 112, 219, 0.03);
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-30px) rotate(5deg) scale(1.05);
    }
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .about-section p {
        max-width: 100%;
    }
    
    .project {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.9rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
