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

/* CSS Variables */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(20, 20, 30, 0.6);
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #a855f7; /* Purple */
    --secondary-glow: rgba(168, 85, 247, 0.5);
    --accent: #06b6d4; /* Cyan */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glass-blur: blur(12px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* For custom cursor */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.dark-section {
    background: linear-gradient(180deg, rgba(10,10,15,0) 0%, rgba(15,15,25,0.8) 50%, rgba(10,10,15,0) 100%);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.section-title.text-left {
    left: 0;
    transform: none;
    text-align: left;
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(6, 182, 212, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s, border-color 0.2s;
    transition-timing-function: ease-out;
}

/* Hover effects for cursor */
a:hover ~ .cursor-outline, button:hover ~ .cursor-outline, .project-card:hover ~ .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.1);
}
a:hover ~ .cursor-dot {
    background-color: var(--primary);
    transform: translate(-50%, -50%) scale(1.5);
}

/* Typography & Utilities */
.highlight {
    color: var(--accent);
    font-weight: 600;
}
.mt-4 { margin-top: 1.5rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}
.btn-primary:hover {
    box-shadow: 0 6px 20px var(--secondary-glow);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Glassmorphism Classes */
.glass {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-glow {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}
.logo span {
    color: var(--primary);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

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

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 5rem;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.greeting {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.name {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.3));
}

.typewriter {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    height: 3rem; /* Fixed height to prevent layout shift */
}

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

@keyframes blink {
    50% { opacity: 0; }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

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

.social-links a:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 2;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.about-text strong {
    color: var(--text-main);
}

.contact-info {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.contact-item i {
    color: var(--accent);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.about-visual {
    position: relative;
}

.abstract-art {
    padding: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
}

.circle-1 {
    width: 200px;
    height: 200px;
    background: rgba(99, 102, 241, 0.4);
    top: -50px;
    left: -50px;
    animation: drift 10s infinite alternate ease-in-out;
}

.circle-2 {
    width: 250px;
    height: 250px;
    background: rgba(168, 85, 247, 0.4);
    bottom: -80px;
    right: -50px;
    animation: drift 12s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    100% { transform: translate(30px, 30px) scale(1.1); }
}

.code-snippet pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #a5b4fc;
    line-height: 1.5;
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow-x: auto;
    max-width: 100%;
}
.code-snippet {
    max-width: 100%;
    overflow: hidden;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 30, 45, 0.8);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.skill-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.skill-card:hover .tag {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #fff;
}

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

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

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

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

.timeline-content {
    padding: 2rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.timeline-content h4 span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.timeline-date {
    font-family: monospace;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.timeline-list {
    list-style-type: disc;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.timeline-list li {
    margin-bottom: 0.5rem;
}
.timeline-list strong {
    color: #cbd5e1;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.folder-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.project-tech {
    font-family: monospace;
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.project-details {
    list-style-type: disc;
    padding-left: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}
.project-details li { margin-bottom: 0.5rem; }
.project-details strong { color: #e2e8f0; }

/* Education & Certs */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.edu-card {
    padding: 2rem;
    border-left: 4px solid var(--primary);
}

.edu-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.edu-degree {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-style: italic;
}

.edu-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #94a3b8;
}

.glow-border {
    border: 1px solid transparent;
    background-image: linear-gradient(var(--bg-card), var(--bg-card)), linear-gradient(120deg, var(--primary), var(--secondary));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.cert-card {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}
.cert-card:hover {
    transform: translateX(10px);
}

.cert-icon {
    font-size: 2.5rem;
    color: var(--accent);
}

.cert-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}
.cert-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    background: #050508;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
}

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

/* Responsive */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 992px) {
    .about-content, .two-col-grid {
        grid-template-columns: 1fr;
    }
    
    .name {
        font-size: 4rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .name {
        font-size: 2.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-out;
    }

    .nav-links.nav-active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 0;
    }
    .timeline-dot {
        left: -7px;
    }
    .timeline-item {
        padding-left: 30px;
    }
    
    .cursor-dot, .cursor-outline {
        display: none; /* Disable custom cursor on mobile */
    }
    body {
        cursor: auto;
    }
}
