:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-glow: rgba(138, 43, 226, 0.4);
    --blue-glow: rgba(65, 105, 225, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-main: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Animated Blobs */
.blob-bg {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    filter: blur(100px);
    z-index: -1;
    animation: move 25s infinite alternate ease-in-out;
}

.blob-2 {
    top: auto;
    bottom: -10%;
    left: auto;
    right: -10%;
    background: radial-gradient(circle, var(--blue-glow) 0%, transparent 60%);
    animation-direction: alternate-reverse;
}

@keyframes move {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15vw, 15vh) scale(1.3); }
}

/* Glassmorphism Utilities */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #bb86fc, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #bb86fc;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #bb86fc, #8a2be2);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Sections */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 120px 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(90deg, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.greeting {
    font-size: 1.2rem;
    color: #bb86fc;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
}

.glitch-text {
    font-size: clamp(3rem, 5vw, 6rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    position: relative;
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
    background: linear-gradient(90deg, #ffffff, #bb86fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.2s;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn.primary {
    background: linear-gradient(45deg, #8a2be2, #4169e1);
    color: white;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.btn.primary:hover {
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
    transform: scale(1.05);
}

.btn.secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn.secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.full-width {
    width: 100%;
    margin-top: 20px;
}

/* About Section */
.about-card p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    color: #e0e0e0;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.skill-tag:hover {
    background: rgba(138, 43, 226, 0.15);
    border-color: #8a2be2;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.2);
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 10px;
}

.project-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
}

.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #fff, #bb86fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.7;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: #bb86fc;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: white;
    letter-spacing: 2px;
}

/* Contact Form */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 35px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #bb86fc;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

.input-group label {
    position: absolute;
    left: 18px;
    top: 18px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -12px;
    left: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--bg-color);
    padding: 0 8px;
    color: #bb86fc;
    border-radius: 4px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
    font-size: 0.95rem;
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .glass-nav {
        justify-content: center;
    }
    .section-padding {
        padding: 80px 0;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .cta-buttons .btn {
        width: 100%;
    }
}
