/* CSS Variables & Reset */
:root {
    --bg-color: #0a0a0a;
    --bg-alt: #111111;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent: #6d28d9; /* Deep Purple */
    --accent-light: #8b5cf6; /* Violet */
    --accent-glow: rgba(109, 40, 217, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-light);
    color: var(--accent-light);
}

.btn-secondary:hover {
    background: var(--accent-light);
    color: white;
}

.alt-bg {
    background-color: var(--bg-alt);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    transition: 0.4s;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-muted);
}

.nav-links li a:hover {
    color: var(--accent-light);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.greeting {
    color: var(--accent-light);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
}

.hero .subtitle {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 300;
}

.hero .tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 450px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    z-index: 0;
}

.abstract-shape {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%),
                radial-gradient(circle at 70% 70%, #3b82f6, transparent 60%);
    filter: blur(80px);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    opacity: 0.5;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.profile-box {
    position: relative;
}

.profile-img {
    border-radius: 20px;
    box-shadow: 20px 20px 0 var(--glass-bg);
    transition: var(--transition);
}

.profile-img:hover {
    transform: scale(1.02);
    box-shadow: 10px 10px 0 var(--accent-light);
}

.skills-container {
    margin-top: 30px;
}

.skills-container h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.skill {
    margin-bottom: 20px;
}

.skill span {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 4px;
    transform-origin: left;
    animation: grow 1.5s ease-out forwards;
}

@keyframes grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-alt);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-light);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.project-card:hover .card-image img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transition: 0.3s;
}

.project-card:hover .overlay {
    opacity: 1;
}

.btn-icon {
    width: 45px;
    height: 45px;
    background: white;
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-icon:hover {
    background: var(--accent-light);
    color: white;
}

.card-info {
    padding: 25px;
}

.card-info h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.tech-stack {
    color: var(--accent-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 0 2px var(--accent-light);
}

.timeline-date {
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-muted);
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1.5;
    background: var(--bg-alt);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-light);
}

/* Footer */
footer {
    padding: 40px 0;
    background: var(--bg-alt);
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

/* Chatbot */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.chatbot-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    transition: var(--transition);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: #1a1a1ae6; /* Slightly darker glass for readability */
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.chatbot-window.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.chatbot-header {
    padding: 15px 20px;
    background: var(--accent);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    cursor: pointer;
    font-size: 1.2rem;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bot-message, .user-message {
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    max-width: 80%;
    line-height: 1.4;
}

.bot-message {
    background: var(--bg-alt);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background: var(--accent-light);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chip {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 15px;
    margin-top: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.chip:hover {
    background: var(--accent);
}

.chatbot-input {
    padding: 15px;
    background: var(--bg-alt);
    display: flex;
    gap: 10px;
}

.chatbot-input input {
    flex: 1;
    background: var(--bg-color);
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    color: white;
}

.chatbot-input input:focus {
    outline: none;
}

.chatbot-input button {
    background: none;
    border: none;
    color: var(--accent-light);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-200 { animation-delay: 0.2s; }

/* Scroll Reveal Class (handled by JS) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .hero { flex-direction: column-reverse; justify-content: center; text-align: center; }
    .hero-visual { position: relative; right: auto; top: auto; transform: none; margin-bottom: 50px; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .timeline::before { left: 50%; width: 2px; }
    .timeline-item { padding-left: 0; padding-right: 0; text-align: center; }
    .timeline-dot { left: 50%; transform: translateX(-50%); }
    .contact-wrapper { flex-direction: column; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Add toggle logic if needed, simplify for now */
    .hamburger { display: block; }
    .hero h1 { font-size: 3rem; }
    .chatbot-window { width: 300px; bottom: 90px; right: 20px; }
}
