:root {
    --bg-color: #0a0a0f;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-color: #8b5cf6;
    --accent-secondary: #3b82f6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-spread: rgba(139, 92, 246, 0.15);

    font-family: 'Outfit', 'Space Grotesk', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.2);
    }
}

/* Typography & Utilities */
h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color), #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.section {
    padding: 100px 10%;
    max-width: 1600px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 10%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

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

.nav-links a:hover {
    color: var(--accent-secondary);
}

/* Nav Controls (Language Toggle & Mobile Menu) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
}

.lang-btn:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px var(--glow-spread);
}

.menu-btn {
    display: none;
    background: transparent;
    color: white;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(15px);
    padding: 20px;
    z-index: 999;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

@media (max-width: 850px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 650px;
}

.hero-avatar {
    flex: 1;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
    color: white;
    box-shadow: 0 0 20px var(--glow-spread);
}

.primary-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px var(--accent-color);
}

.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-3px);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.social-links a:hover {
    color: white;
    background: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
    transform: translateY(-5px);
}

/* Filter Controls */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
    border-radius: 30px;
    color: var(--text-primary);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
    border-color: transparent;
    box-shadow: 0 5px 15px var(--glow-spread);
    transform: translateY(-2px);
    color: white;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    justify-content: center;
}

/* Category Headers in Grid */
.category-header {
    grid-column: 1 / -1;
    /* Spans full width */
    font-size: 2.2rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    transition: all 0.4s ease;
    text-align: left;
    margin-bottom: 10px;
}

.category-header.spacer-top {
    margin-top: 30px;
}

/* Filtering Generic */
.filter-item {
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 1;
}

.filter-item.hide {
    display: none;
}

/* Project Cards */
.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: scale(1);
}

.project-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow-spread);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tags span {
    background: rgba(139, 92, 246, 0.1);
    color: #c4b5fd;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.project-links a:hover {
    color: var(--accent-secondary);
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.skill-card {
    flex: 1 1 250px;
    max-width: 350px;
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px) !important;
    background: rgba(255, 255, 255, 0.06);
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.skill-card .sub-detail {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #94a3b8;
    /* matched with text-secondary so it's not too dark */
}

/* Contact Section */
.contact-box {
    text-align: center;
    padding: 80px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-box h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-box p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-avatar {
        order: 1;
        width: 100%;
        height: 450px;
        margin-bottom: -40px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 30px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 60px 5%;
    }

    .contact-methods {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Space Grotesk', sans-serif;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chatbot-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.chatbot-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.chatbot-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.chatbot-close:hover {
    color: #ef4444;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Scrollbar for chatbot */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.chat-msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: popIn 0.3s ease forwards;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.chat-msg.bot {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    color: var(--text-primary);
}

.chat-msg.user {
    background: var(--accent-color);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    color: white;
}

.chatbot-input-area {
    padding: 15px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
}

.chatbot-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 10px 15px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.chatbot-input:focus {
    border-color: var(--accent-color);
}

.chatbot-send {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-send:hover {
    background: var(--accent-secondary);
}

@media (max-width: 768px) {
    .chatbot-window {
        width: 300px;
        right: -10px;
    }
}