:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-black: #000000;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.4);
    --secondary-accent: #6C5CE7;
    --glass-bg: rgba(10, 10, 10, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --card-bg: rgba(20, 20, 25, 0.8);
    --card-hover: rgba(30, 30, 40, 0.9);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black) !important;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    cursor: none;
}

/* Hide cursor on interactive elements so custom cursor takes over */
a,
button,
input,
textarea,
.tech-item,
.cert-card {
    cursor: none !important;
}

/* Custom Cursor Styles */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent-glow);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Cursor Hover State */
.cursor-outline.hover-active {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 240, 255, 0.1);
    border-color: transparent;
}

/* Cursor Particles */
.cursor-particle {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    box-shadow: 0 0 8px var(--accent), 0 0 15px var(--accent-glow);
    opacity: 0.8;
}

h1,
h2,
h3,
h4,
.font-space {
    font-family: 'Space Grotesk', sans-serif;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.max-w-600 {
    max-width: 600px;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-black);
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 240, 255, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Navbar */
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-hover {
    position: relative;
    color: var(--text-secondary) !important;
    transition: color 0.3s ease;
    margin: 0 10px;
}

.nav-hover:hover {
    color: var(--text-primary) !important;
}

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

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

.nav-icon-hover {
    transition: all 0.3s ease;
}

.nav-icon-hover:hover {
    color: var(--accent) !important;
    transform: translateY(-2px);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at center, #111 0%, var(--bg-black) 100%);
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, var(--bg-darker) 100%);
    pointer-events: none;
}

.profile-img-container {
    width: 180px;
    height: 180px;
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 2px solid var(--glass-border);
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--accent);
    filter: blur(60px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 1;
    animation: pulseGlow 4s infinite alternate;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.4;
    }
}

.subtitle-glow {
    text-shadow: 0 0 20px var(--accent-glow);
    letter-spacing: 1px;
}

.scroll-down-btn {
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {

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

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

    60% {
        transform: translateY(-5px);
    }
}

/* Timeline / Journey */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}

@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.journey-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    /* GSAP will handle showing */
}

.journey-dot {
    position: absolute;
    left: 20px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 3px solid var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--accent-glow);
    z-index: 2;
}

@media (min-width: 768px) {
    .journey-dot {
        left: 50%;
    }
}

.journey-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    margin-left: 50px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(5px);
}

@media (min-width: 768px) {
    .journey-content {
        margin-left: 0;
        width: 45%;
    }

    .journey-item:nth-child(even) .journey-content {
        margin-left: auto;
    }
}

.journey-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

/* Cards (AI & Projects) */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: var(--card-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.tech-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: 90px;
    height: 100px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tech-item:hover {
    border-color: var(--accent);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.15);
    transform: translateY(-5px);
}

.tech-item:hover::before {
    opacity: 1;
}

.tech-item span {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    text-align: center;
}

.tech-item:hover span {
    color: var(--text-primary);
}

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

.tech-icon {
    font-size: 0.9rem;
    background: rgba(0, 240, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(0, 240, 255, 0.2);
    transition: all 0.3s ease;
}

.tech-icon:hover {
    background: var(--accent);
    color: var(--bg-black);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

/* Timeline Education */
.timeline-edu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--secondary-accent), transparent);
}

@media (min-width: 768px) {
    .timeline-edu::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

#certificates {
    min-height: auto;
}

.cert-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

/* Achievements */
.achievement-card {
    background: transparent;
    border: none;
    text-align: center;
}

.counter {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.gradient-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary-accent) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
}

/* Contact Links */
.contact-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-btn:hover {
    background: var(--accent);
    color: var(--bg-black);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px var(--accent-glow);
}