:root {
    --bg-color: #050510;
    --surface-color: rgba(20, 20, 35, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-primary: #38bdf8;
    --accent-secondary: #818cf8;
    --gradient-accent: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    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: 40px 40px;
    background-position: center center;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Blobs for Visual Interest */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: blobAnim 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(56, 189, 248, 0.3);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(129, 140, 248, 0.2);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: rgba(168, 85, 247, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes blobAnim {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(50px, 50px); }
}

/* Glassmorphism Panel with Spotlight Glow */
.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(
        400px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
        rgba(56, 189, 248, 0.4),
        transparent 40%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    transition: background 0.2s ease;
}

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

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title span {
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text {
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-accent);
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 100px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h3 {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.glitch {
    background: linear-gradient(90deg, #fff, var(--accent-primary), var(--accent-secondary), #fff);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.glitch:hover {
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    transform: scale(1.02);
}

@keyframes shine {
    to { background-position: 200% center; }
}

.subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 400;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 5px 20px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-secondary);
}

.btn-secondary:hover {
    background: rgba(129, 140, 248, 0.1);
    transform: translateY(-3px);
}

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

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.image-wrapper {
    width: 400px;
    height: 500px;
    border-radius: 30px;
    padding: 15px;
    transform: rotate(3deg);
    transition: var(--transition);
}

.image-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-card {
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.stat-icon.leetcode { background: rgba(255, 170, 0, 0.1); color: #FFA116; }
.stat-icon.ninjas { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.stat-icon.java { background: rgba(234, 45, 46, 0.1); color: #EA2D2E; }

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 3px;
    position: relative;
}

/* Timeline/Experience */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--glass-border);
    left: 20px;
    top: 0;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-primary);
    left: 13px;
    top: 20px;
    box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-content {
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-content:hover {
    transform: translateX(10px) translateY(-5px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.1);
}

.timeline-content .date {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 500;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tech-stack span {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.4);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

/* Animations & Utilities */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; padding-top: 150px; }
    .hero-image { justify-content: center; margin-top: 50px; }
    .cta-group, .social-links { justify-content: center; }
    .stats-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-btn { display: block; }
    .hero-content h1 { font-size: 3rem; }
    .image-wrapper { width: 300px; height: 380px; }
}
