/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --primary: #ccff03; /* Neon Yellow */
    --primary-dim: rgba(204, 255, 3, 0.1);
    --bg: #000000;      /* Pure Black */
    --bg-card: #111111; /* Dark Grey */
    --text: #FFFFFF;    /* White */
    --text-muted: #A1A1AA; /* Light Grey */
    --text-dark: #000000; /* Black for buttons */
    --border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Spacing */
    --container: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img, svg {
    display: block;
}

/* =========================================
   2. UTILITIES
   ========================================= */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-darker {
    background-color: #080808;
}

.text-neon {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-dark); /* Black Text */
    box-shadow: 0 4px 20px rgba(204, 255, 3, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(204, 255, 3, 0.5);
}

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

.btn-outline:hover {
    background: var(--primary-dim);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
}

/* =========================================
   3. NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary);
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--primary);
    color: var(--text-dark); /* Black Text */
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(204, 255, 3, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.05; /* Reduced opacity */
    z-index: 0;
    border-radius: 50%;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 70%);
    padding: 40px;
    border-radius: 50%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-dim);
    border: 1px solid rgba(204, 255, 3, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

.divider {
    color: var(--primary);
    margin: 0 10px;
}

.hero-desc {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* =========================================
   5. ABOUT SECTION (TIMELINE)
   ========================================= */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Vertical Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

/* Timeline Item */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

/* Left and Right positioning */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* The Dot */
.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--bg);
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 30px;
    right: -10px;
    z-index: 1;
    box-shadow: 0 0 10px var(--primary-dim);
    transition: 0.3s;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

/* Content Box */
.timeline-content {
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
    transition: 0.3s;
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(204, 255, 3, 0.1);
}

.timeline-content:hover + .timeline-dot,
.timeline-item:hover .timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
}

/* Typography */
.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-dim);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text);
}

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

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   6. EXPERTISE & PROJECTS
   ========================================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: 0.3s;
}

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

.card-icon {
    margin-bottom: 20px;
    color: var(--primary);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.project-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    flex: 1;
}

.project-metrics {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}

.btn-link:hover {
    text-decoration: underline;
}

/* =========================================
   7. CONTACT SECTION
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-info {
    display: grid;
    gap: 30px;
}

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

.info-link {
    color: var(--text);
    font-weight: 500;
}

.info-link:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(204, 255, 3, 0.1);
}

/* =========================================
   8. FOOTER
   ========================================= */
.footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--border);
    background: #050505;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand-section {
    max-width: 400px;
}

.footer-logo {
    height: 45px;
    margin-bottom: 20px;
}

.footer-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-dim);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    border: 1px solid rgba(204, 255, 3, 0.2);
}

.footer-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-menu {
    display: flex;
    gap: 30px;
}

.footer-menu a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-menu a:hover {
    color: var(--primary);
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.text-neon-footer {
    color: var(--primary);
    font-family: monospace;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(204, 255, 3, 0.3);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--text-muted);
    transition: 0.3s;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: var(--primary);
    background: var(--primary-dim);
    transform: translateY(-3px);
}

/* =========================================
   9. ANIMATIONS
   ========================================= */
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

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

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

/* =========================================
   10. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hide for now, JS will toggle */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        align-items: center;
    }

    .footer-menu {
        flex-direction: column;
        gap: 15px;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        text-align: center;
    }

    /* Timeline Responsive */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 21px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: 21px;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot {
        left: 21px;
        right: auto;
    }
}

/* =========================================
   11. CHAT WIDGET
   ========================================= */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: var(--font-main);
}

.chat-widget-btn {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(204, 255, 3, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    z-index: 1002;
    animation: pulse-glow 2s infinite;
}

.chat-widget-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(204, 255, 3, 0.6);
}

.chat-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 420px;
    height: 550px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: bottom right;
    z-index: 1001;
}

.chat-container.hidden {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
}

.chat-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    transition: 0.3s;
}

.chat-close-btn:hover {
    color: var(--text);
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
   font-size: 0.95rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

.ai-message {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border-bottom-left-radius: 2px;
    align-self: flex-start;
    border: 1px solid var(--border);
}

.user-message {
    background: var(--primary-dim);
    color: var(--primary);
    border-bottom-right-radius: 2px;
    align-self: flex-end;
    border: 1px solid rgba(204, 255, 3, 0.2);
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.chat-input-area textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px sold var(--border);
    border-radius: 10px;
    padding: 10px 15px;
    color: var(--text);
    font-family: var(--font-main);
    resize: none;
    outline: none;
    transition: 0.3s;
}

.chat-input-area textarea:focus {
    border-color: var(--primary);
}

.chat-send-btn {
    background: var(--primary);
    color: var(--text-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(204, 255, 3, 0.3);
}

.chat-send-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: fit-content;
    border-bottom-left-radius: 2px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(204, 255, 3, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(204, 255, 3, 0); }
    100% { box-shadow: 0 0 0 0 rgba(204, 255, 3, 0); }
}

@media (max-width: 1024px) {
    /* Tablet: Widget fullscreen centered, button stays bottom-right */
    .chat-widget {
        bottom: 30px;
        right: 30px;
    }
    
    .chat-widget-btn {
        width: 65px;
        height: 65px;
    }
    
    .chat-container {
        position: fixed;
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        border-radius: 0;
        border: none;
    }
    
    .chat-container.hidden {
        opacity: 0;
        transform: scale(0.95);
        pointer-events: none;
    }
}

@media (max-width: 768px) {
    /* Mobile: Widget fullscreen, button stays bottom-right */
    .chat-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-widget-btn {
        width: 60px;
        height: 60px;
    }
    
    .chat-container {
        position: fixed;
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        border-radius: 0;
        border: none;
    }
    
    .chat-container.hidden {
        opacity: 0;
        transform: translateY(100%);
        pointer-events: none;
    }
}

@media (max-width: 480px) {
    /* Small mobile: same as above */
    .chat-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-header {
        padding: 16px;
    }
    
    .chat-title {
        font-size: 0.9rem;
    }
    
    .chat-messages {
        padding: 16px;
    }
    
    .chat-input-area textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

