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

:root {
    --bg-dark: #0d051a;
    --bg-darker: #070211;
    --text-main: #f3e8ff;
    --text-muted: #c084fc;
    --accent-primary: #a855f7;
    --accent-secondary: #d8b4fe;
    --accent-teal: #2dd4bf;
    --accent-pink: #ec4899;
    --accent-amber: #fbbf24;
    --glass-bg: rgba(168, 85, 247, 0.05);
    --glass-border: rgba(168, 85, 247, 0.15);
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(216, 180, 254, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.05) 0%, transparent 40%),
        url('images3.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: center;
    gap: 30px;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 15px 5%;
    background: rgba(5, 5, 5, 0.9);
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-pink);
    margin-right: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav a:hover::before {
    opacity: 1;
}

body {
    counter-reset: nav-item;
}

nav a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Sections */
section {
    min-height: 100vh;
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.6rem;
    gap: 15px;
}

.section-heading::before {
    content: '0' counter(section-counter) '.';
    counter-increment: section-counter;
    color: var(--accent-teal);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 400;
}

body {
    counter-reset: section-counter;
}

.section-heading::after {
    content: '';
    display: block;
    height: 1px;
    flex-grow: 1;
    background: var(--glass-border);
    max-width: 300px;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px 35px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.glass-card:hover::before {
    transform: scaleX(1);
}

/* Home Section */
#home {
    align-items: flex-start;
    padding-top: 100px;
}

.home-content {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.intro-text {
    flex: 1;
}

.mono-subtitle {
    font-family: var(--font-mono);
    color: var(--accent-amber);
    margin-bottom: 20px;
    display: block;
    font-size: 1rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 10px;
    letter-spacing: -1px;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 25px;
}

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

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: grayscale(20%) contrast(1.1);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.profile-backdrop {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    z-index: 1;
    transition: all 0.4s ease;
}

.profile-container:hover .profile-img {
    filter: grayscale(0%) contrast(1);
    transform: translate(-10px, -10px);
}

.profile-container:hover .profile-backdrop {
    transform: translate(10px, 10px);
}

/* Lists */
.tech-list, .bio-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.tech-list li, .bio-list li {
    position: relative;
    padding-left: 25px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tech-list li::before, .bio-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-size: 1.2rem;
    line-height: 1;
}

.bio-list {
    grid-template-columns: 1fr;
    gap: 20px;
}
.bio-list li {
    font-family: var(--font-sans);
    font-size: 1.05rem;
}
.bio-list strong {
    color: #fff;
}

/* Experience Timeline */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.timeline-item {
    border-left: 4px solid var(--accent-primary);
}

.timeline-content .mono-subtitle {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.folder-icon {
    color: var(--accent-pink);
}

.project-title {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--accent-teal);
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Aim Section */
.aim-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 800px;
}
.aim-content strong {
    color: #fff;
}

/* Contact Section */
#contacts {
    text-align: center;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

#contacts .section-heading {
    justify-content: center;
}
#contacts .section-heading::after {
    display: none;
}
#contacts .section-heading::before {
    display: none;
}

.contact-subtitle {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    margin-bottom: 20px;
    display: block;
}

.contact-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.contact-desc {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 40px auto;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    color: var(--accent-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.btn:hover {
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.social-links a:hover {
    color: var(--accent-primary) !important;
    transform: translateY(-3px);
}

.social-links a {
    display: inline-block;
}

/* Dev Banner */
.dev-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(5, 5, 5, 0.9);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--text-muted);
    padding: 12px 20px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(168, 85, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 900px) {
    .home-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }
    
    .intro-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }

    .tech-list {
        text-align: left;
    }

    nav {
        display: none; /* simple mobile nav for now */
    }
}
