:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    /* Red/Purple Theme */
    --accent: #ff0055;
    --accent-secondary: #aa00ff;
    --accent-glow: rgba(255, 0, 85, 0.2);
    --border-color: #331020;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: default;
}

/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    background-image: url("");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    z-index: -1;
    top: 0;
    left: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent), var(--accent-secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 5, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.highlight {
    background: linear-gradient(to right, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-primary);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(to right, var(--accent), var(--accent-secondary));
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section - UPDATED CENTERED LAYOUT */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 20px;
}

.hero-content.centered {
    max-width: 900px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-content .greeting {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-content .name {
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 800;
}

.hero-content .role {
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.2s;
}

.btn:active {
    transform: scale(0.95);
}

.btn.primary {
    background: transparent;
    border: 1px solid var(--accent);
    color: #fff;
}

.btn.primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--accent), var(--accent-secondary));
    transition: width 0.3s;
    z-index: -1;
}

.btn.primary:hover::before {
    width: 100%;
}

.btn.secondary {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn.secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}


/* Section Generals */
section {
    padding: 100px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title.centered {
    justify-content: center;
}

.section-title.centered::after {
    display: none;
}

.section-title::after {
    content: '';
    display: block;
    height: 1px;
    width: 200px;
    background: linear-gradient(to right, var(--accent), transparent);
}

/* About & Skills */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(255, 0, 85, 0.2);
}

.skill-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-card:hover i {
    background: linear-gradient(to bottom, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-card span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.project-image {
    height: 180px;
    background: linear-gradient(45deg, #1a1a1a, #252525);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 85, 0.1) 0%, transparent 60%);
    top: -50%;
    left: -50%;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.placeholder-img {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    height: 80px;
    /* Increased height for longer descriptions */
    overflow: hidden;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.project-tags span {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    color: #fff;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    padding: 4px 12px;
    border-radius: 50px;
    opacity: 0.8;
}

.project-links {
    display: flex;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.project-links a {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-links a:hover {
    color: var(--accent);
}

/* Contact - UPDATED */
.contact-content.centered {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.contact-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.social-links.lone-icon {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.social-links.lone-icon a {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 0, 85, 0.4);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    background: rgba(5, 5, 5, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transition: 0.4s ease;
        border-left: 1px solid var(--border-color);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-content .name {
        font-size: 4rem;
    }

    .hero-content .role {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    /* Center section titles on mobile just in case */
    .section-title {
        justify-content: center;
    }

    .section-title::after {
        display: none;
    }
}

/* Hamburger Animation */
.hamburger .line {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 6px 0;
    transition: 0.3s;
}

/* Cursor Glow Effect */
.cursor-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 0, 85, 0.15) 0%, rgba(170, 0, 255, 0.05) 40%, rgba(0, 0, 0, 0) 70%);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
}