/* Design System - Modern Professional Dark/Teal */
:root {
    --primary-dark: #0f172a;
    --secondary-dark: #1e293b;
    --accent-teal: #14b8a6;
    --accent-hover: #0d9488;
    --light-bg: #020617;
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --sidebar-bg: rgba(2, 6, 23, 0.8);
    --card-bg: rgba(30, 41, 59, 0.4);
    --grid-color: rgba(20, 184, 166, 0.05);
    --font-headings: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 15px 40px rgba(0, 0, 0, 0.25);
    --sidebar-width: 280px;
    --section-padding: 100px 80px;
    --transition-smooth: all 0.3s ease;
    --theme-transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

[data-theme="light"] {
    --primary-dark: #f1f5f9;
    --secondary-dark: #ffffff;
    --accent-teal: #0d9488;
    --accent-hover: #0f766e;
    --light-bg: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --white: #ffffff;
    --sidebar-bg: rgba(255, 255, 255, 0.8);
    --card-bg: rgba(255, 255, 255, 0.7);
    --grid-color: rgba(13, 148, 136, 0.1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--theme-transition);
    background-image: linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 10000;
}

h1,
h2,
h3,
h4,
.heading {
    font-family: var(--font-headings);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

.app-container {
    display: flex;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-teal), #06b6d4, var(--accent-teal));
    z-index: 99999;
    transition: width 0.1s linear;
    width: 0%;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent-teal);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(20, 184, 166, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--accent-hover);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    color: var(--white);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    overflow-y: auto;
    scrollbar-width: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.profile-section {
    text-align: center;
    margin-bottom: 40px;
}

/* Profile Image - NO ROTATION */
.profile-img-container {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 6px;
    margin-bottom: 25px;
    position: relative;
    background: linear-gradient(135deg, var(--accent-teal), #06b6d4, var(--accent-teal));
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 25px rgba(20, 184, 166, 0.3);
}

.profile-img-container::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--primary-dark);
    border-radius: 50%;
    z-index: 1;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
    border: 3px solid var(--primary-dark);
}

.profile-img-container:hover .profile-img {
    transform: scale(1.05);
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 8px;
    background: linear-gradient(to right, #ffffff 20%, var(--accent-teal) 40%, var(--accent-teal) 60%, #ffffff 80%);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.profile-role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.nav-menu {
    width: 100%;
    flex-grow: 1;
}

.nav-item {
    margin-bottom: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    color: #94a3b8;
    font-weight: 500;
}

.nav-link i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent-teal);
    transform: translateX(5px);
}

.nav-link.active {
    border-left: 4px solid var(--accent-teal);
}

/* Sidebar Theme Toggle */
.sidebar-theme-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.15);
    color: var(--accent-teal);
}

.sidebar-theme-toggle:hover {
    background: rgba(20, 184, 166, 0.15);
    transform: translateX(3px);
}

.sidebar-theme-toggle .theme-label {
    font-size: 0.9rem;
    font-weight: 500;
}

[data-theme="light"] .sidebar-theme-toggle i.fa-sun {
    display: none;
}

[data-theme="dark"] .sidebar-theme-toggle i.fa-moon {
    display: none;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.social-icon:hover {
    background: var(--accent-teal);
    transform: translateY(-3px);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
}

section {
    padding: var(--section-padding);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.section-watermark {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    text-transform: uppercase;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

.section-header {
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-teal);
    border-radius: 2px;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('profile.png');
    background-size: cover;
    background-position: center 20%;
    color: var(--white);
    padding-left: 10%;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

.hero .name {
    color: var(--accent-teal);
}

.typing-text {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-teal);
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 30px;
}

.cta-button {
    padding: 15px 40px;
    background: var(--accent-teal);
    border: none;
    border-radius: 30px;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.4);
    transition: var(--transition-smooth);
}

.cta-button:hover {
    transform: scale(1.05) translateY(-5px);
    background: var(--accent-hover);
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.6);
}

/* About */
#about {
    background: var(--light-bg);
    color: var(--text-dark);
}

#about .section-title {
    color: var(--primary-dark);
}

#about h3,
#about p,
#about strong {
    color: var(--text-dark) !important;
}

#about .section-watermark {
    color: rgba(0, 0, 0, 0.03);
}

#about .stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

#about .stat-number {
    color: var(--accent-teal);
}

#about .stat-label {
    color: var(--text-muted);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-teal);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    color: var(--text-dark);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-teal);
    margin-bottom: 20px;
}

/* Portfolio */
.portfolio-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 25px;
    border: 1px solid var(--accent-teal);
    border-radius: 20px;
    background: transparent;
    color: var(--accent-teal);
    cursor: pointer;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-teal);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Testimonials */
.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.testimonial-card {
    flex: 0 0 450px;
    background: var(--card-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    scroll-snap-align: start;
    transition: var(--transition-smooth);
    color: var(--text-dark);
}

.testimonial-card:hover {
    transform: scale(1.02);
}

.client-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.client-name {
    font-weight: 700;
    display: block;
}

.client-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quote-text {
    font-style: italic;
    color: var(--text-muted) !important;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
}

.contact-form {
    background: var(--card-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.05) !important;
    outline: none;
    transition: var(--transition-smooth);
    color: var(--text-dark) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.form-input:focus {
    border-color: var(--accent-teal) !important;
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.1);
}

textarea.form-input {
    height: 150px;
    resize: none;
}

[data-theme="dark"] .form-input {
    background: rgba(15, 23, 42, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
}



/* Footer */
.site-footer {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(20px);
    padding: 60px 40px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-brand h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 8px;
}

.footer-brand h3 span {
    color: var(--accent-teal);
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-teal);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--accent-teal);
    color: white;
    transform: translateY(-3px);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--accent-teal);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.custom-cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-teal);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease, width 0.3s, height 0.3s;
}

/* Glassmorphism */
.section-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    transition: var(--transition-smooth);
}

.section-card:hover {
    border-color: var(--accent-teal);
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.1);
}

/* Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px 0;
    white-space: nowrap;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 40px 0;
    z-index: 1;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.marquee-item {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-item span {
    color: var(--accent-teal);
    margin-right: 10px;
}

/* Status Indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 184, 166, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-teal);
    border: 1px solid rgba(20, 184, 166, 0.2);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-teal);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--accent-teal);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Chatbot */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--accent-teal);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2100;
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.chatbot-toggle:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(20, 184, 166, 0.5);
}

.chatbot-toggle i {
    transition: transform 0.4s ease;
}

.chatbot-toggle.active i {
    transform: rotate(180deg) scale(0);
}

.chatbot-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    z-index: 2050;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.chatbot-container.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chatbot-header {
    padding: 20px;
    background: rgba(20, 184, 166, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chatbot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 45px;
    height: 45px;
    background: var(--accent-teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    position: relative;
}

.online-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid white;
}

.chatbot-name {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
}

.chatbot-status {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-teal);
}

.chatbot-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chatbot-close:hover {
    color: #ef4444;
    transform: rotate(90deg);
}

.chatbot-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-teal) transparent;
}

.chat-message {
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: messageIn 0.3s ease forwards;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dark);
    border-bottom-left-radius: 5px;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--accent-teal);
    color: white;
    border-bottom-right-radius: 5px;
}

.suggested-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.suggestion-btn {
    padding: 8px 15px;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-teal);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.suggestion-btn:hover {
    background: var(--accent-teal);
    color: white;
}

.chatbot-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
}

#chatbot-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 12px 15px;
    border-radius: 12px;
    outline: none;
}

#chatbot-input::placeholder {
    color: var(--text-muted);
}

#chatbot-send {
    width: 45px;
    height: 45px;
    background: var(--accent-teal);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

#chatbot-send:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

[data-theme="light"] .chatbot-container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .chat-message.bot {
    background: #f1f5f9;
    color: #1e293b;
}

[data-theme="light"] #chatbot-input {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #e2e8f0;
}

[data-theme="light"] .chatbot-container .chatbot-name {
    color: #1e293b;
}

[data-theme="light"] .about-content h3 {
    color: var(--text-dark) !important;
}

.magnetic-btn {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-teal);
}

/* Code Card */
.code-card {
    background: #0d1117;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    margin-top: 40px;
    border: 1px solid #30363d;
    transition: var(--transition-smooth);
    max-width: 500px;
}

.code-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(20, 184, 166, 0.2);
    border-color: var(--accent-teal);
}

.code-header {
    background: #161b22;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #30363d;
}

.code-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ff5f56;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #27c93f;
}

.code-file {
    color: #8b949e;
    font-size: 0.85rem;
}

.code-body {
    padding: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.code-line {
    display: block;
    white-space: pre;
}

.code-comment {
    color: #5c6370;
    font-style: italic;
}

.code-keyword {
    color: #c678dd;
}

.code-variable {
    color: #61afef;
}

.code-operator {
    color: #abb2bf;
}

.code-property {
    color: #d19a66;
}

.code-string {
    color: #98c379;
}

.code-bracket {
    color: #e5c07b;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.tool-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: toolFadeIn 0.8s ease backwards;
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-teal);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(20, 184, 166, 0.2);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: 0.5s;
}

.tool-card:hover::before {
    left: 100%;
}

@keyframes toolFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tool-card:nth-child(1) {
    animation-delay: 0.1s;
}

.tool-card:nth-child(2) {
    animation-delay: 0.2s;
}

.tool-card:nth-child(3) {
    animation-delay: 0.3s;
}

.tool-card:nth-child(4) {
    animation-delay: 0.4s;
}

.tool-card:nth-child(5) {
    animation-delay: 0.5s;
}

.tool-card:nth-child(6) {
    animation-delay: 0.6s;
}

.tool-card:nth-child(7) {
    animation-delay: 0.7s;
}

.tool-card:nth-child(8) {
    animation-delay: 0.8s;
}

.tool-card:nth-child(9) {
    animation-delay: 0.9s;
}

.tool-card:nth-child(10) {
    animation-delay: 1.0s;
}

.tool-card:nth-child(11) {
    animation-delay: 1.1s;
}

.tool-card:nth-child(12) {
    animation-delay: 1.2s;
}

.tool-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-logo img,
.tool-logo i {
    width: 100%;
    height: 100%;
    object-fit: contain;
    font-size: 2.5rem;
}

.tool-info {
    flex-grow: 1;
}

.tool-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.skill-level-container {
    display: flex;
    gap: 6px;
}

.level-bar {
    height: 6px;
    width: 35px;
    border-radius: 3px;
    background: rgba(128, 128, 128, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.2);
    transition: all 0.6s ease;
}

.level-bar.filled {
    background: #ff6b6b;
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.4);
}

/* Status Messages */
.status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(10px);
    display: none;
}

.status-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.status-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: all 0.4s ease;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
    background: #128c7e;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 80px;
    }

    .profile-name,
    .profile-role,
    .nav-link span,
    .sidebar-theme-toggle .theme-label {
        display: none;
    }

    .profile-img-container {
        width: 45px;
        height: 45px;
    }

    .nav-link {
        justify-content: center;
        padding: 12px;
    }

    .nav-link i {
        margin-right: 0;
        font-size: 1.2rem;
    }

    .sidebar-theme-toggle {
        justify-content: center;
        padding: 12px;
    }

    .main-content {
        margin-left: 80px;
        width: calc(100% - 80px);
    }
}

@media (max-width: 768px) {
    .sidebar {
        left: -100%;
        width: 250px;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    section {
        padding: 60px 20px;
    }

    .mobile-toggle {
        display: flex;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
        background: var(--accent-teal);
        color: var(--white);
        width: 45px;
        height: 45px;
        border-radius: 5px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .typing-text {
        font-size: 1.4rem;
    }

    .section-watermark {
        font-size: 4rem;
    }

    .sidebar.active .nav-link span {
        display: block !important;
        font-size: 1.1rem;
        margin-left: 10px;
    }

    .sidebar.active .sidebar-theme-toggle .theme-label {
        display: block !important;
    }

    .sidebar .profile-img-container {
        width: 120px !important;
        height: 120px !important;
        margin-top: 20px;
    }

    .sidebar .profile-name {
        display: block !important;
        font-size: 1.6rem !important;
    }

    .sidebar .profile-role {
        display: block !important;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .back-to-top {
        right: 20px;
        bottom: 80px;
    }

    .chatbot-container {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 100px;
        height: 500px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }


    .code-body {
        font-size: 0.8rem;
        padding: 15px;
    }

    .contact-form {
        padding: 20px;
    }

    .form-input {
        padding: 12px;
        font-size: 14px;
    }

    .footer-links {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .typing-text {
        font-size: 1.2rem;
    }

    .hero {
        padding-left: 5%;
        padding-right: 5%;
    }

    .section-watermark {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        flex: 0 0 300px;
        padding: 25px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* Mobile toggle hidden on desktop */
@media (min-width: 769px) {
    .mobile-toggle {
        display: none;
    }
}

/* Career Journey Header Grid */
.experience-header-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.visual-col {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, rgba(20, 184, 166, 0.05) 0%, transparent 70%);
}

.galaxy-canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
}

.galaxy-canvas:active {
    cursor: grabbing;
}

.experience-header-grid .content-col {
    text-align: left;
}

.experience-header-grid .section-title {
    margin-bottom: 20px;
}

/* Responsive Experience Header */
@media (max-width: 991px) {
    .experience-header-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .experience-header-grid .content-col {
        text-align: center;
        order: 1;
    }
    
    .visual-col {
        order: 2;
        height: 400px;
    }
}

@media (max-width: 576px) {
    .visual-col {
        height: 300px;
    }
}

/* ===== MODERN ALTERNATING TIMELINE ===== */
.timeline-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px 0;
}

.timeline-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent, 
        var(--accent-teal) 15%, 
        var(--accent-teal) 85%, 
        transparent);
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-row {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.timeline-block {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-card {
    width: 44%;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-card:hover {
    transform: translateY(-8px);
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.timeline-card.highlight {
    border-left: 4px solid var(--accent-teal);
    background: rgba(20, 184, 166, 0.03);
}

.year-badge {
    position: absolute;
    top: -15px;
    background: var(--accent-teal);
    color: var(--primary-dark);
    padding: 4px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(20, 184, 166, 0.3);
}

.block-left {
    justify-content: flex-start;
}

.block-right {
    justify-content: flex-end;
}

.block-left .year-badge { right: 30px; }
.block-right .year-badge { left: 30px; }

.timeline-dot-center {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    background: var(--primary-dark);
    border: 3px solid var(--accent-teal);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.6);
    transition: all 0.3s ease;
}

.timeline-block:hover .timeline-dot-center {
    transform: translate(-50%, -50%) scale(1.4);
    background: var(--accent-teal);
}

/* Timeline Block Structure */
.timeline-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 50px;
    position: relative;
}

.block-right {
    flex-direction: row; /* Info Left, Card Right */
}

.block-left {
    flex-direction: row-reverse; /* Card Left, Info Right */
}

/* Side Info (Filling the space) */
.timeline-info {
    width: 45%;
    text-align: center;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-year {
    font-size: 6rem;
    font-weight: 900;
    color: var(--grid-color); /* Use grid-color as it adapts to theme brightness */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    font-family: 'Poppins', sans-serif;
}

.info-focus {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-focus span {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-focus i {
    color: var(--accent-teal);
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px rgba(20, 184, 166, 0.5));
}

/* Timeline Card Adjustments */
.timeline-card {
    width: 45%;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.4s ease;
    z-index: 2;
}

/* Connectors */
.timeline-card::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: rgba(20, 184, 166, 0.2);
    transform: translateY(-50%);
}

.block-right .timeline-card::before { left: -30px; }
.block-left .timeline-card::before { right: -30px; }

/* Responsive Timeline */
@media (max-width: 991px) {
    .timeline-info { width: 40%; }
    .timeline-card { width: 50%; }
    .info-year { font-size: 4rem; }
}

@media (max-width: 768px) {
    .timeline-center-line {
        left: 30px;
    }
    
    .timeline-block {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-left: 60px;
        margin-bottom: 40px;
    }
    
    .timeline-info {
        display: none; /* Hide side info on small screens to avoid clutter */
    }
    
    .timeline-card {
        width: 100%;
    }
    
    .timeline-dot-center {
        left: 30px;
    }
    
    .timeline-card::before {
        display: none;
    }
}

/* ===== TRUST STATS BAR ===== */
.stats-bar-container {
    max-width: 1100px;
    margin: -40px auto 100px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.stats-bar {
    background: var(--sidebar-bg); /* Use sidebar-bg as it's already theme-aware */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(20, 184, 166, 0.1);
    border-radius: 30px;
    padding: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.stat-plus {
    font-size: 1.5rem;
    color: var(--accent-teal);
    font-weight: 700;
    margin-left: 2px;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .stats-bar {
        padding: 30px;
        border-radius: 20px;
    }
    .stat-divider { display: none; }
    .stats-bar-container { margin-top: 50px; }
}

/* ===== WORK PROCESS SECTION ===== */
.bg-soft-dark {
    background: rgba(15, 23, 42, 0.3);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 60px;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 30px 20px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    transition: all 0.4s ease;
}

.process-step:hover {
    transform: translateY(-10px);
    border-color: rgba(20, 184, 166, 0.3);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(20, 184, 166, 0.1);
    line-height: 1;
    z-index: 0;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent-teal);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
}

.process-step h4 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-connector {
    flex: 0 0 40px;
    height: 2px;
    background: rgba(20, 184, 166, 0.2);
    margin-top: 65px;
}

@media (max-width: 991px) {
    .process-steps {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }
    .step-connector { display: none; }
}

/* ===== FAQ SECTION ===== */
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--grid-color);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--accent-teal);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(20, 184, 166, 0.02);
}

.faq-answer p {
    padding: 0 25px 25px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.faq-item.active {
    border-color: rgba(20, 184, 166, 0.3);
}

.faq-item.active .faq-question {
    color: var(--accent-teal);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}