@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --bg-dark: #050505;
    --accent-primary: #00f2ff;
    --accent-secondary: #7000ff;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

::selection {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

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

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

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

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* Hide default cursor for custom one */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, .outfit {
    font-family: 'Outfit', sans-serif;
}

/* --- Background Mesh --- */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 242, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(112, 0, 255, 0.05) 0%, transparent 40%);
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* --- Custom Cursor --- */
.custom-cursor {
    width: 20px;
    height: 20px;
    color: #ff2d55;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease;
    text-shadow: 0 0 15px rgba(255, 45, 85, 0.8);
}

.custom-cursor-outline {
    width: 40px;
    height: 40px;
    border: 1.5px solid #ff2d55;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.custom-cursor-trail {
    width: 6px;
    height: 6px;
    background: #ff2d55;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.3;
    filter: blur(1px);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    top: 10px;
    background: rgba(0, 0, 0, 0.8);
    width: 95%;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.logo img {
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

/* --- Sections --- */
section {
    min-height: 100vh;
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 60px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

/* --- Hero --- */
.hero {
    justify-content: center;
    text-align: center;
}

.hero-tag {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-primary);
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1;
    margin-bottom: 30px;
    font-weight: 800;
}

.accent {
    color: var(--accent-primary);
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* --- Buttons --- */
.btn {
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.4);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background: var(--glass-border);
    transform: translateY(-5px);
}

/* --- Cards --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.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: 24px;
    padding: 40px;
    transition: var(--transition-smooth);
    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.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
}

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

/* --- Skills --- */
.skill-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.skill-card h3 {
    margin-bottom: 15px;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Tech Stack --- */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
}

.tech-item {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.tech-item i {
    font-size: 1.2rem;
    color: var(--accent-primary);
    transition: var(--transition-smooth);
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.tech-item:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.1);
}

.tech-item:hover i {
    transform: rotate(15deg);
}

/* --- Projects --- */
.project-card {
    padding: 0;
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.project-content {
    padding: 30px;
}

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

.tag {
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 242, 255, 0.2);
}

/* --- Contact --- */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-main);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
    transform: scale(1.1);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-btns {
        flex-direction: column;
    }
}
