/* 
====================================================================
   Aum Sorathiya - Premium Portfolio
   Theme: Dark, Neon, Glassmorphism, Futuristic
==================================================================== 
*/

:root {
    /* Colors */
    --bg-color: #050505;
    --bg-secondary: #0a0a0a;
    --text-main: #ffffff;
    --text-secondary: #94a3b8;

    /* Neon Accents */
    --primary-color: #8b5cf6;
    --secondary-color: #06b6d4;
    --accent-color: #ec4899;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    --gradient-mesh: radial-gradient(at 10% 20%, hsla(253, 60%, 20%, 1) 0, transparent 40%),
        radial-gradient(at 80% 10%, hsla(225, 70%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 40% 80%, hsla(339, 60%, 25%, 1) 0, transparent 50%),
        radial-gradient(at 90% 90%, hsla(190, 80%, 20%, 1) 0, transparent 40%);

    /* Bento & Glassmorphism */
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --glass-bg: rgba(10, 10, 10, 0.45);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.7);

    /* Fonts */
    --font-main: 'Inter', 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   Global Styles
   ========================================= */
/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-main);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    filter: brightness(1.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh);
    z-index: -10;
    opacity: 0.4;
    filter: blur(100px);
    animation: meshRotate 20s infinite alternate;
}

@keyframes meshRotate {
    0% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1.2) rotate(10deg);
    }
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: -5;
}

/* Custom Cursor Elements */
html,
body {
    cursor: none;
    /* Hide default cursor */
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-main);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    transition: width 0.2s, height 0.2s, border-color 0.2s, background-color 0.2s;
}

.cursor-outline.hover-interactive {
    width: 60px;
    height: 60px;
    border-color: var(--primary-color);
    background-color: rgba(139, 92, 246, 0.1);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    border: none;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.8);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: 50px;
    background: var(--gradient-main);
    color: #fff;
    margin-right: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn-sm::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    transition: 0.5s;
}

.btn-sm:hover::before {
    left: 100%;
}

.btn-sm:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.6),
        0 0 15px rgba(6, 182, 212, 0.4);
    filter: brightness(1.1);
}

.btn-sm i {
    transition: transform 0.3s ease;
}

.btn-sm:hover i {
    transform: translateX(3px) scale(1.2);
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 300px;
    padding: 12px 30px;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    border: 1px solid var(--glass-border);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.7);
    top: 10px;
    padding: 10px 25px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    padding-right: 50px;
}

.logo .dot {
    color: var(--primary-color);
    font-size: 2.5rem;
    line-height: 0;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: var(--transition);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* Navbar height */
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    z-index: 2;
    text-align: center;
}

.greeting {
    font-size: 50px;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
    animation: fadeInDown 1s ease forwards;
}

.name {
    font-size: 4.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.title {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-family: var(--font-mono);
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.typing-text {
    color: var(--primary-color);
    border-right: 2px solid var(--primary-color);
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

.description {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.hero-btns {
    animation: fadeInUp 1s ease 0.8s forwards;
    opacity: 0;
}

.hero-btns .btn {
    margin: 0 10px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-down i {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

/* Floating Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}

.shape-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    animation: float 10s infinite alternate;
}


.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 60px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 100%;
    display: block;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
}

/* =========================================
   About Section
   ========================================= */
.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-text strong {
    color: #fff;
}

.personal-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.info-item {
    text-align: center;
}

.info-item .label {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.info-item .value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
}

/* =========================================
   Skills Section
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgb(197 0 255 / 75%);
}

.skill-category h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #fff;
    font-size: 1.5rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.skill-card i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.skill-card:hover i {
    transform: scale(1.1);
}

.skill-card span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* =========================================
   Projects Section
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Spotlight Effect */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.06),
            transparent 40%);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.project-img {
    height: 200px;
    background: #222;
    position: relative;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.placeholder-img img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.placeholder-img.is-broken img {
    opacity: 0;
    pointer-events: none;
}

.placeholder-img.is-broken .placeholder-icon {
    opacity: 0.7;
    font-size: 5rem;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-stack span {
    font-size: 0.8rem;
    padding: 5px 12px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.project-links {
    display: flex;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--glass-bg);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.contact-container:hover {
    box-shadow: 0px 5px 90px rgba(111, 0, 255, 0.4);
}

.contact-info h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    transition: var(--transition);
}

.contact-item:hover i {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 10px rgba(76, 0, 255, 0.5);
}

.contact-item .details span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.contact-item .details a {
    color: #fff;
    font-weight: 500;
    display: block;
}

.contact-item .details a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
    outline: none;
}

.contact-form textarea {
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.4);
}

.contact-form label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition);
    font-size: 1rem;
}

.contact-form input:focus~label,
.contact-form input:not(:placeholder-shown)~label,
.contact-form textarea:focus~label,
.contact-form textarea:not(:placeholder-shown)~label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--bg-color);
    padding: 0 5px;
    color: var(--primary-color);
}


/* =========================================
   Footer
   ========================================= */
.footer {
    background: #050505;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* =========================================
   Back to Top
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--secondary-color);
}

/* =========================================
   Animations
   ========================================= */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary-color);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(30px, 30px) rotate(10deg);
    }
}

/* Scroll Reveal Animation Classes */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .name {
        font-size: 3.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .name {
        font-size: 2.8rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .about-content {
        flex-direction: column;
    }

    .personal-info {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .name {
        font-size: 2.2rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .hero-btns .btn {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-container {
        padding: 30px 20px;
    }
}

#more-projects {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}