:root {
    /* Colors */
    --bg-color: #050505;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-blue: #00f3ff;
    --accent-purple: #bd00ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Custom Cursor */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-blue);
    border-radius: 50%;
    pointer-events: none;
    /* CRITICAL for clicks to pass through */
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, background 0.3s, transform 0.1s linear;
}

#cursor.hover-active {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid var(--accent-blue);
    mix-blend-mode: normal;
}

#cursor-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: var(--accent-blue);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    transition: transform 0.15s linear;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo .accent {
    color: var(--accent-blue);
    animation: rgbText 5s linear infinite;
}

@keyframes rgbText {
    0% {
        color: var(--accent-blue);
        text-shadow: 0 0 5px var(--accent-blue);
    }

    50% {
        color: var(--accent-purple);
        text-shadow: 0 0 5px var(--accent-purple);
    }

    100% {
        color: var(--accent-blue);
        text-shadow: 0 0 5px var(--accent-blue);
    }
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    position: relative;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--accent-blue);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Utilities */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Hero Background & Effects */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite alternate ease-in-out;
}

.glow-orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-blue);
    top: 20%;
    left: 20%;
}

.glow-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    bottom: 10%;
    right: 10%;
    animation-delay: -5s;
}

#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Hero Content */
.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.sub-headline {
    font-family: var(--font-body);
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 1s 0.5s forwards;
}

.main-headline {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    position: relative;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    opacity: 0;
    animation: fadeUp 1s 0.8s forwards;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeUp 1s 1.1s forwards;
}

/* CTA Button */
.btn-primary {
    position: relative;
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--accent-blue);
    background: rgba(0, 243, 255, 0.05);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeUp 1s 1.4s forwards;
}

.btn-primary:hover {
    background: var(--accent-blue);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeIn 1s 2s forwards;
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-blue), transparent);
    animation: scrollDown 2s infinite;
}

/* Animations Keyframes */
@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, -30px);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scrollDown {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* About / Team Section */
.about-section {
    padding: 8rem 5%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

.about-text-container {
    max-width: 900px;
    margin: 0 auto 5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.9;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.about-text-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-purple), transparent);
}

.about-text-container p {
    margin-bottom: 2rem;
}

.about-text-container p:last-child {
    margin-bottom: 0;
}

.about-text-container .highlight-text {
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

/* Glassmorphism Card */
.team-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
}

.member-img-box {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
    /* Allow glow to show */
    /* Ensure image stays in circle */
    border: none;
    /* Remove the "box" border */
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Focus on face/head */
    border-radius: 50%;
    /* Round the image */
    transition: transform 0.3s;
    position: relative;
    z-index: 2;
    /* Sit above glow */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    /* Slight shadow for depth */
}

.team-card:hover .member-img {
    transform: scale(1.1);
}

.member-img-box::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: inherit;
    filter: blur(15px);
    opacity: 0.5;
    z-index: -1;
}

.member-initial {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.member-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.member-role {
    color: var(--accent-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.skill-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: 0.3s;
}

.team-card:hover .skill-tag {
    background: rgba(0, 243, 255, 0.1);
    color: #fff;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 243, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.team-card:hover .card-glow {
    opacity: 1;
}

/* Skills Section */
.skills-section {
    padding: 8rem 5%;
    position: relative;
    background: radial-gradient(circle at top right, rgba(189, 0, 255, 0.05), transparent 40%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.2);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--accent-purple);
    margin-bottom: 1rem;
    transition: 0.3s;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
    text-shadow: 0 0 15px var(--accent-purple);
}

.skill-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-secondary);
}

.skill-card:hover .skill-name {
    color: #fff;
}

/* Projects Section */
.projects-section {
    padding: 8rem 5%;
    position: relative;
    background: linear-gradient(to bottom, var(--bg-color), var(--bg-secondary));
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

.project-card {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    background: #111;
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(80%);
}

.project-card:hover .project-thumbnail {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0.8;
    transition: 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 5, 20, 0.95), rgba(0, 243, 255, 0.1));
}

.project-category {
    font-size: 0.8rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: 0.4s;
}

.project-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: 0.4s 0.1s;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transform: translateY(20px);
    opacity: 0;
    transition: 0.4s 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card:hover .project-category,
.project-card:hover .project-title,
.project-card:hover .project-desc {
    transform: translateY(0);
    opacity: 1;
}

/* Premium RGB Flow */
@keyframes rgbGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Enhanced Glow & Borders */
.team-card,
.skill-card,
.project-card {
    position: relative;
    z-index: 1;
}

.team-card::before,
.skill-card::before,
.project-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: linear-gradient(45deg,
            #ff0000, #ff7300, #fffb00, #48ff00,
            #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
    animation: rgbGradient 20s linear infinite;
}

.team-card:hover::before,
.skill-card:hover::before,
.project-card:hover::before {
    opacity: 1;
    filter: blur(10px);
}

.team-card:hover,
.skill-card:hover,
.project-card:hover {
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2), inset 0 0 20px rgba(0, 243, 255, 0.1);
    transform: translateY(-7px) scale(1.02);
    border-color: transparent;
    /* Let gradient show */
}

/* Contact / Social Section */
.contact-section {
    padding: 8rem 5%;
    position: relative;
    background: radial-gradient(circle at bottom center, rgba(0, 243, 255, 0.05), transparent 50%);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.social-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.social-card i {
    font-size: 2.5rem;
    transition: 0.3s;
}

.social-card span {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: 0.3s;
}

/* Hover Effects */
.social-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.05);
}

.social-card:hover span {
    color: #fff;
}

/* Brand Colors on Hover */
.instagram:hover i {
    color: #E1306C;
    text-shadow: 0 0 15px #E1306C;
}

.youtube:hover i {
    color: #FF0000;
    text-shadow: 0 0 15px #FF0000;
}

.telegram:hover i {
    color: #0088cc;
    text-shadow: 0 0 15px #0088cc;
}

.gmail:hover i {
    color: #EA4335;
    text-shadow: 0 0 15px #EA4335;
}

.social-card:hover {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

/* Cursor Fix */
html,
body {
    cursor: none;
    /* Ensure system cursor is hidden */
}

a,
button,
input,
textarea {
    cursor: none;
    /* Hide on interactive elements too */
}

/* Footer (Updated since Contact is gone) */
footer {
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: #020202;
    margin-top: 4rem;
    /* Spacing */
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem;
        gap: 2rem;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

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

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
        /* Ensure it is above everything */
    }

    /* Hide Custom Cursor on Mobile */
    #cursor,
    #cursor-blur {
        display: none !important;
    }

    /* Restore Default Cursor */
    html,
    body,
    a,
    button,
    input,
    textarea,
    .team-card,
    .project-card,
    .skill-card {
        cursor: auto !important;
    }
}