:root {
    --bg-color: #0d0f17;
    --text-primary: #ffffff;
    --text-secondary: #a1a5b5;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.06);
    --star-color: #fbbf24;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
}

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

/* Custom Selection */
::selection {
    background: var(--accent-purple);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Typography & Links */
a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s ease;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.section-title span {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.secondary-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
}

.secondary-btn:hover {
    background: var(--card-hover);
    transform: translateY(-2px);
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.glow-btn:hover::before {
    left: 100%;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(13, 15, 23, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: var(--accent-blue);
    font-family: monospace;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: white;
}

.nav-links .glow-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    color: var(--accent-purple);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: floating 3s ease-in-out infinite;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a1a5b5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .typing-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.cursor {
    display: inline-block;
    color: var(--accent-purple);
    animation: blink 1s step-end infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Background Glows */
.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 1;
    filter: blur(50px);
}

.glow-2 {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    left: auto;
    right: 10%;
}

/* Services */
.services {
    padding: 100px 5%;
    position: relative;
    z-index: 2;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px 30px 40px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.8s ease-out, transform 0.8s ease-out;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    opacity: 0;
    transform: translateY(30px);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.1), transparent 60%);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: var(--card-hover);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.2);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 40px;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.service-badge.new {
    background: linear-gradient(135deg, #10b981, #3b82f6);
}

.service-badge.top {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
    background: rgba(59, 130, 246, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: 0.3s;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    text-align: left;
    width: 100%;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-features li {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li i {
    color: var(--accent-blue);
    font-size: 0.8rem;
}

.service-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: var(--glass-border);
    color: white;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    cursor: pointer;
}

.service-card:hover .service-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* Categories & Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    padding: 0 5%;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--card-hover);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* Projects Section */
.projects {
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}

.gallery-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 5%;
    overflow: visible;
}

.gallery-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    width: 100%;
    animation: none !important;
}

.gallery-track:hover {
    animation-play-state: running;
    /* Reset hover state */
}

.project-card {
    background: rgba(17, 20, 32, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.06), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2);
}

.project-card:hover::before {
    opacity: 1;
}

.project-img-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0 0 0 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img-container img {
    transform: scale(1.08);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
}

.project-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    margin: 0;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 72px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.tag i {
    font-size: 0.9rem;
}


.project-desc span {
    color: var(--accent-purple);
    font-weight: 600;
}

.project-tags {
    display: flex;
    gap: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: none;
    /* Removed uppercase for a cleaner look */
    letter-spacing: 0.2px;
    transition: 0.3s;
    cursor: default;
}

.tag.node {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag.node i {
    color: #10b981;
}

.tag.discord {
    background: rgba(88, 101, 242, 0.1);
    color: #5865F2;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.tag:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.05);
}



/* Reviews */
.reviews {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.review-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    text-align: center;
}

.service-card.visible,
.review-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.review-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stars {
    color: var(--star-color);
    font-size: 1.2rem;
    margin: 5px 0;
}

.user-details h4 {
    font-size: 1.1rem;
    margin: 5px 0;
}

.service-type {
    font-size: 1.1rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.review-body {
    font-size: 1rem;
    color: #cbd5e1;
    font-style: italic;
    flex-grow: 1;
}

/* CTA */
.cta {
    padding: 100px 5%;
    display: flex;
    justify-content: center;
}

.cta-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 600px;
    width: 90%;
    padding: 40px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: 0.3s;
}

.close-modal:hover {
    color: white;
    transform: scale(1.1);
}

#modal-body h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#modal-body p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

#modal-body ul {
    list-style: none;
    margin-bottom: 30px;
}

#modal-body ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: white;
}

#modal-body ul li i {
    color: var(--accent-blue);
}

.modal-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        min-width: 250px;
        height: 160px;
    }
}