:root {
    --bg-main: #030014;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --primary-color: #8A2BE2;
    /* Violet */
    --accent-color: #00f7ff;
    /* Cyan */

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --neon-glow: 0 0 15px rgba(138, 43, 226, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* --- CUSTOM 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: 8px;
    height: 8px;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 247, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 247, 255, 0.1);
    border-color: var(--accent-color);
}

/* --- UTILS --- */
.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.section {
    padding: 100px 5%;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

/* --- GLASS CARD --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.glass-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.3);
}

/* --- GLASS BLUE (Narrative) --- */
.glass-card-blue {
    background: rgba(0, 247, 255, 0.05);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 247, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    padding: 3rem;
    position: relative;
    text-align: center;
    transition: 0.4s;
    transform-style: preserve-3d;
}

.glass-card-blue:hover {
    background: rgba(0, 247, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 0 40px rgba(0, 247, 255, 0.1);
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.narrative-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

/* --- STATCHAKRAVYUH SECTION --- */
.startup-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.startup-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.startup-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.feature-list li i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.startup-visual {
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(138, 43, 226, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(138, 43, 226, 0.05));
}

.visual-icon-container {
    position: relative;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.main-icon {
    font-size: 5rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 20px var(--primary-color));
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.floating-badge {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--accent-color);
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.badge-1 {
    top: 0;
    right: 0;
    animation: float 4s ease-in-out infinite;
}

.badge-2 {
    bottom: 0;
    left: 0;
    animation: float 5s ease-in-out infinite reverse;
}

/* --- BACKGROUNDS --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.parallax-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at bottom, #120524 0%, #000000 100%);
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(3, 0, 20, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-color);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-btn-nav {
    padding: 0.7rem 1.8rem;
    background: var(--primary-color);
    border-radius: 50px;
    font-weight: bold;
    box-shadow: var(--neon-glow);
}

.cta-btn-nav:hover {
    background: var(--accent-color);
    color: black !important;
    box-shadow: 0 0 20px var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(3, 0, 20, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
    transition: 0.4s ease-in-out;
}

.mobile-menu.active {
    right: 0;
}

.mobile-link {
    font-size: 2rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

/* --- HERO --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.gradient-text-anim {
    background: linear-gradient(-45deg, var(--accent-color), var(--primary-color), #ff0055);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.typewriter-container {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-family: monospace;
}

.hero-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary {
    background: white;
    color: black;
}

.btn-primary:hover {
    background: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
    transform: translateY(-3px);
}

.btn-secondary {
    border: 1px solid white;
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* --- HERO IMAGE FIX (Removes the Box) --- */
.clean-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    transform-style: preserve-3d;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.blob-shape {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
    animation: blob 10s infinite alternate;
    pointer-events: none;
}

@keyframes blob {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    100% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

.hero-img {
    width: 100%;
    max-width: 450px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--card-shadow);
    transform: translateZ(20px);
}

.floating-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) translateZ(20px);
    }

    50% {
        transform: translateY(-20px) translateZ(20px);
    }

    100% {
        transform: translateY(0px) translateZ(20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* --- TIMELINE --- */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    box-shadow: 0 0 15px var(--primary-color);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-item .content {
    padding: 30px;
    position: relative;
    z-index: 10;
    transform-style: preserve-3d;
}

.timeline-item.right .content::before {
    content: " ";
    position: absolute;
    top: 30px;
    right: 100%;
    border-width: 10px;
    border-style: solid;
    border-color: transparent var(--glass-border) transparent transparent;
}

.timeline-item.left .content::after {
    content: " ";
    position: absolute;
    top: 30px;
    left: 100%;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent var(--glass-border);
}

.timeline-item .date-badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--glass-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    border: 1px solid rgba(0, 247, 255, 0.2);
}

.timeline-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.timeline-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- FITNESS & PROJECTS --- */
.three-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stat-card {
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--accent-color));
    transform: translateZ(30px);
}

.big-stat {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 10px 0;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateZ(20px);
}

/* App Link Buttons (Strava/Hevy) */
.app-link-btn {
    margin-top: 1.5rem;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    transform: translateZ(35px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.strava-btn {
    background: rgba(252, 76, 2, 0.2);
}

/* Strava Orange Tint */
.strava-btn:hover {
    background: #fc4c02;
    border-color: #fc4c02;
}

.hevy-btn {
    background: rgba(65, 105, 225, 0.2);
}

/* Royal Blue Tint */
.hevy-btn:hover {
    background: #4169e1;
    border-color: #4169e1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100%;
    transform-style: preserve-3d;
}

.project-header {
    background: rgba(138, 43, 226, 0.15);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.project-header i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.project-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-body p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
    transform: translateZ(20px);
}

.tech-stack {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    transform: translateZ(10px);
}

.tech-stack span {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: var(--accent-color);
    border: 1px solid rgba(0, 247, 255, 0.3);
}

.link-btn {
    text-decoration: none;
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    transform: translateZ(30px);
}

.link-btn:hover {
    color: var(--accent-color);
    gap: 12px;
}

/* --- CERTIFICATES --- */
.cert-section {
    margin-top: 3rem;
}

.subsection-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1.5rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cert-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}


.cert-item {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
}

.cert-item:hover .cert-verify {
    color: var(--accent-color);
    transform: scale(1.1);
}

.cert-date {
    font-weight: 900;
    color: var(--primary-color);
    padding-right: 15px;
    border-right: 1px solid var(--glass-border);
    font-size: 1.2rem;
}

.cert-verify {
    margin-left: auto;
    color: #555;
    transition: 0.3s;
    font-size: 1.2rem;
}

/* --- UPDATED MEGA FOOTER (Grid Layout) --- */
.mega-footer {
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
    background: #020108;
}

.hub-sub {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    text-align: center;
}

.footer-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 20px;
}

.footer-col {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.footer-heading {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nexus-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
    padding: 8px;
    border-radius: 8px;
}

.nexus-link:hover {
    color: white;
    background: rgba(138, 43, 226, 0.1);
    transform: translateX(5px);
}

.nexus-link i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.nexus-link:hover i {
    color: var(--accent-color);
}

.mini-fit-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    padding-left: 8px;
}

.mini-icon {
    font-size: 1.5rem;
    color: #555;
    transition: 0.3s;
}

.mini-icon:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

.copyright {
    text-align: center;
    margin-top: 4rem;
    color: #555;
    font-size: 0.8rem;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text {
        margin-top: 3rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .nav-links,
    .cta-btn-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .startup-grid {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left !important;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left .content::after,
    .timeline-item.right .content::before {
        display: none;
    }
}