:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Helper Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary-color);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    /* Changed to min-height */
    display: flex;
    align-items: center;
    background: var(--white);
    overflow: hidden;
    /* CRITICAL for mobile containments */
}

.hero-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 20px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

/* Counters Section */
.counters {
    background: var(--primary-color);
    padding: 40px 0;
    color: #fff;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.counter-item {
    padding: 20px;
}

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

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    color: var(--white);
    text-align: center;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Testimonials */
.testimonials {
    background: var(--secondary-color);
    color: var(--white);
}

.testimonials .section-title h2,
.testimonials .section-title p {
    color: var(--white);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    /* Fixed height to make images smaller and uniform */
    object-fit: cover;
    /* Ensures image covers the area without distortion */
    display: block;
    transition: transform 0.3s;
}

/* Sidebar / Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
}

.blog-card h3 {
    margin-bottom: 10px;
}

.blog-card h3 a {
    color: var(--secondary-color);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

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

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

textarea.form-control {
    height: 150px;
    resize: none;
}

.about-footer {
    margin-top: 30px;
}

/* CTA Section */
.cta {
    text-align: center;
    background: #f0f0f0;
    padding: 60px 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cta p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #555;
}

/* Footer */
footer {
    background: #222;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #333;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 10px;
    color: var(--white);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        color: var(--secondary-color);
        /* Ensure visibility */
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: 100vh;
        /* Full screen menu */
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        /* Center items vertically */
        align-items: center;
        padding: 20px;
        box-shadow: none;
        /* Removed shadow for cleaner look */
        transition: var(--transition);
        text-align: center;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        /* Larger touch targets */
    }

    .hero {
        height: auto;
        min-height: 80vh;
        padding-top: 60px;
        padding-bottom: 40px;
        text-align: center;
        overflow: hidden;
    }

    .hero-wrapper {
        flex-direction: column;
    }

    .hero-content {
        margin-bottom: 30px;
        padding-right: 0;
        width: 100%;
        overflow-wrap: break-word;
        /* Prevent text overflow */
        word-wrap: break-word;
    }

    .hero-content h1 {
        font-size: 2rem;
        /* Reduced from 2.2rem */
        padding: 0 10px;
    }

    .chat-window-v2 {
        height: 80vh;
        /* Increased height usage for mobile */
        max-height: 600px;
        min-height: auto;
        border-radius: 20px;
        margin-bottom: 80px;
        /* Space for bottom nav/buttons */
    }

    .chat-footer-v2 {
        padding: 15px;
        /* Reduce padding for more space */
        background: rgba(15, 23, 42, 0.95);
        /* Solid background for visibility */
    }

    .hero-content p {
        margin: 0 auto 30px;
        /* Center align text */
    }

    .hero-image {
        display: block;
        /* SHOW IMAGE */
        width: 100%;
        margin-top: 30px;
    }

    .hero-image img {
        max-width: 80%;
        /* Don't be too huge */
        margin: 0 auto;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
        padding: 30px;
        /* Less padding on mobile */
    }

    .contact-container {
        gap: 30px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* Floating Menu Mobile Fix */
    .floating-menu {
        bottom: 20px;
        right: 20px;
    }

    .fab-button {
        width: 50px;
        height: 50px;
    }

    /* Chatbot Mobile Fix */
    .chatbot-toggle {
        bottom: 85px;
        /* Offset from FAB */
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .ai-chatbot {
        bottom: 145px;
        right: 5%;
        width: 90%;
        max-width: 380px;
        max-height: 70vh;
    }

    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .cta h2 {
        font-size: 1.8rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%;
        /* Full width buttons on small screens */
        margin-bottom: 10px;
        text-align: center;
    }

    .counters-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* Magic Custom Cursor */
.cursor {
    width: 10px;
    height: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transition-property: background, transform;
    transform-origin: 100% 100%;
}

.cursor2 {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: all 0.3s ease;
    transition-property: background, transform;
    transform-origin: 100% 100%;
    background-color: rgba(46, 204, 113, 0.1);
    backdrop-filter: blur(2px);
}

.cursor.hovered {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
}

.cursor2.hovered {
    transform: translate(-50%, -50%) scale(2);
    background-color: rgba(46, 204, 113, 0.3);
    border-color: transparent;
}



/* Ensure cursor is hidden on mobile/touch devices */
@media (max-width: 991px) {

    .cursor,
    .cursor2 {
        display: none;
    }
}

/* Glassmorphism Overrides */
.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}


/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #2ecc71, #27ae60, #16a085);
    z-index: 9999;
    transition: width 0.1s ease;
}


/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader-logo span {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.preloader-percentage {
    font-size: 2rem;
    color: #fff;
    font-weight: 600;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}


/* Parallax Background */
.hero {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: calc(100% + 100px);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, rgba(39, 174, 96, 0.05) 100%);
    z-index: 0;
    will-change: transform;
}


/* Scroll to Top Button with Progress Ring */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
    transition: all 0.3s ease;
}

#scrollToTop.show {
    display: flex;
}

#scrollToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

#scrollToTop i {
    color: white;
    font-size: 1.2rem;
}

.progress-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 56px;
    height: 56px;
    transform: rotate(-90deg);
}

.progress-ring__circle {
    stroke: var(--primary-color);
    stroke-width: 3;
    fill: transparent;
    stroke-dasharray: 164;
    stroke-dashoffset: 164;
    transition: stroke-dashoffset 0.1s linear;
}


/* Animated Skill Progress Bars */
.skill-item {
    margin-bottom: 25px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 600;
    color: var(--secondary-color);
}

.skill-percentage {
    font-weight: 600;
    color: var(--primary-color);
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s ease-out;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}


/* Image Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 100000;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: all 0.3s ease;
}

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

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* Social Share Buttons */
.social-share {
    margin: 30px 0;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
    text-align: center;
}

.social-share h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}


/* Testimonial Star Ratings */
.testimonial-rating {
    margin-bottom: 15px;
    color: #ffc107;
    font-size: 1.2rem;
}

.testimonial-rating i {
    margin-right: 3px;
}


/* Mouse Trail Effect */
.trail {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    pointer-events: none;
    z-index: 9997;
    opacity: 0;
    transform: translate(-50%, -50%);
    animation: trailFade 0.8s ease-out forwards;
    box-shadow: 0 0 10px var(--primary-color);
}

@keyframes trailFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
}


/* 3D Card Flip Portfolio */
.portfolio-item {
    perspective: 1000px;
    cursor: pointer;
}

.portfolio-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.portfolio-item:hover .portfolio-card {
    transform: rotateY(180deg);
}

.portfolio-front,
.portfolio-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
}

.portfolio-front {
    background: white;
}

.portfolio-back {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.portfolio-back h3 {
    color: white;
    margin-bottom: 15px;
}

.portfolio-back p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.portfolio-back .btn {
    background: white;
    color: var(--primary-color);
}


/* Konami Code Easter Egg */
.konami-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.konami-overlay.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.konami-message {
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Matrix Rain Effect */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}


/* Floating Action Menu */
.floating-menu {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 9996;
}

.fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.fab-button:hover {
    transform: rotate(45deg);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

.fab-actions {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

.floating-menu.active .fab-actions {
    opacity: 1;
    transform: scale(1);
}

.fab-action {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.fab-action:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}


/* Cursor Magnet Effect */
.btn,
.service-card,
.portfolio-item {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Holographic Card Effect */
.holographic {
    position: relative;
    overflow: hidden;
}

.holographic::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

.holographic:hover::before {
    left: 100%;
}


/* AI Chatbot Widget */
.ai-chatbot {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    z-index: 9995;
    display: none;
    flex-direction: column;
}

.ai-chatbot.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    max-height: 350px;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.chat-message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    word-wrap: break-word;
}

.chat-message.ai .message-bubble {
    background: #f0f0f0;
    color: #333;
}

.chat-message.user .message-bubble {
    background: var(--primary-color);
    color: white;
}

.chatbot-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chatbot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.chatbot-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-input button:hover {
    background: var(--primary-dark);
}

.chatbot-toggle {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
    transition: all 0.3s ease;
    z-index: 9994;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

.typing-indicator {
    display: none;
    padding: 10px;
}

.typing-indicator.active {
    display: block;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-10px);
    }
}

/* --- SOLID GREEN COMPACT PRICING UI --- */
.pricing-page-content .pricing-card {
    background: #1a1a1a;
    /* Solid dark background */
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    padding: 30px 20px;
    max-width: 320px;
    color: #fff;
    opacity: 1 !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.pricing-page-content .pricing-card.popular {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.05);
}

.pricing-page-content .pricing-card.popular .pricing-header h3,
.pricing-page-content .pricing-card.popular .price,
.pricing-page-content .pricing-card.popular .pricing-features li {
    color: #000;
}

.pricing-page-content .pricing-card.popular .pricing-features li i {
    color: #000;
}

.pricing-page-content .pricing-card.popular .price span {
    color: rgba(0, 0, 0, 0.6);
}

.pricing-page-content .pricing-card.popular .btn-outline {
    border-color: #000;
    color: #000;
}

.pricing-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
}

.pricing-features li {
    color: #eee;
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-page-content .pricing-card.popular .pricing-features li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-footer .btn {
    margin-top: 20px;
    padding: 12px;
}


/* --- SIDE-BY-SIDE ALIGNMENT FIX --- */
.pricing-page-content .pricing-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
    /* Force side by side on desktop */
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .pricing-page-content .pricing-grid {
        flex-wrap: wrap;
        /* Allow wrap on smaller tablets/mobile */
    }
}

.pricing-page-content .pricing-card {
    flex: 1;
    max-width: 350px;
    /* Allow slightly wider for better text flow */
}



/* --- DEFINITIVE SIDE-BY-SIDE PRICING FIX --- */
.pricing-page-content .pricing-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 30px !important;
    margin-top: 40px !important;
    width: 100% !important;
}

.pricing-page-content .pricing-card {
    flex: 0 1 350px !important;
    margin: 0 !important;
}

@media (max-width: 992px) {
    .pricing-page-content .pricing-grid {
        flex-wrap: wrap !important;
    }

    .pricing-page-content .pricing-card {
        flex: 1 1 300px !important;
        max-width: 400px !important;
    }
}

/* --- OUR PROCESS SECTION --- */
.process-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background: var(--light-bg);
    /* Match global light background */
}

.process-grid {
    position: relative;
    max-width: 1000px;
    /* Wider for better readability */
    margin: 60px auto 0;
    padding-left: 50px;
}

/* Vertical Timeline Line */
.process-grid::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--border-color);
}

.process-line-progress {
    position: absolute;
    left: 20px;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
    z-index: 1;
}

.process-step {
    position: relative;
    margin-bottom: 80px;
    /* More breathing room */
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step.active {
    opacity: 1;
    transform: translateX(0);
}

.process-icon {
    position: absolute;
    left: -45px;
    top: -5px;
    width: 45px;
    height: 45px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    z-index: 2;
    transition: all 0.4s ease;
}

.process-step.active .process-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 25px var(--primary-color);
    transform: scale(1.15);
}

.process-content {
    background: var(--white);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    cursor: pointer;
}

.process-content:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.process-content h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 700;
}

.process-content h3 span {
    font-size: 0.8rem;
    background: var(--primary-color);
    color: #000;
    padding: 4px 12px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.process-content p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .process-grid {
        padding-left: 60px;
    }

    .process-icon {
        left: -53px;
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .process-content h3 {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* --- SECRET VAULT --- */
.secret-vault-trigger {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    padding: 12px 25px;
    background: #000;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    vertical-align: middle;
}

.secret-vault-trigger:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 30px var(--primary-color);
    transform: translateY(-3px);
}

.vault-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.vault-scanner {
    text-align: center;
    position: relative;
    width: 300px;
}

.scanner-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border: 2px dashed var(--primary-color);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.scan-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    filter: drop-shadow(0 0 15px var(--primary-color));
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
    z-index: 10;
    animation: scan 2s ease-in-out infinite;
}

.scan-status {
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
}

.scan-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
}

.scan-bar {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes scan {

    0%,
    100% {
        top: 0%;
    }

    50% {
        top: 100%;
    }
}

.vault-content {
    display: none;
    width: 100%;
    max-width: 1200px;
    padding: 50px;
    height: 100vh;
    overflow-y: auto;
}

.vault-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.close-vault {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
}

.secret-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* ==========================================================================
   Advanced AI Assistant Premium Styles
   ========================================================================== */

.advanced-ai-page {
    position: relative;
    padding: 100px 0 60px;
    min-height: 100vh;
    background: #0f172a;
    /* Sophisticated dark blue */
    overflow: hidden;
    color: #e2e8f0;
}

/* Futuristic background blobs */
.glow-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: blobFloat 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.2) 0%, transparent 70%);
}

.blob-2 {
    bottom: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.2) 0%, transparent 70%);
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.1) 0%, transparent 70%);
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.advanced-ai-page {
    overflow-x: hidden;
    /* Prevent side scroll */
}

.advanced-ai-page .container {
    position: relative;
    z-index: 1;
}

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

.gradient-text {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2ecc71, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

.ai-main-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.helper-card .card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.helper-card h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.capability-list {
    list-style: none;
    padding: 0;
}

.capability-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.capability-list .dot {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.status-card {
    padding: 20px 30px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2ecc71;
}

.pulse {
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(46, 204, 113, 0.4);
    animation: pulseLoop 2s infinite;
}

@keyframes pulseLoop {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.action-buttons-v2 .clear-btn {
    width: 100%;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.action-buttons-v2 .clear-btn:hover {
    background: #e74c3c;
    color: white;
}

/* Advanced Chat Window */
.chat-window-v2 {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    height: 65vh;
    /* Reduced from 750px to relative unit */
    min-height: 500px;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.chat-header-v2 {
    padding: 25px 40px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bot-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    /* Handle narrow screens */
}

.avatar-v2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2ecc71, #3498db);
    border-radius: 18px;
    padding: 2px;
}

.avatar-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.name-area h3 {
    margin: 0;
    font-size: 1.4rem;
    color: white;
    word-break: break-word;
    /* Prevent overflow */
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    font-size: 0.75rem;
    border-radius: 100px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 5px;
}

.chat-body-v2 {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    scroll-behavior: smooth;
}

.chat-body-v2::-webkit-scrollbar {
    width: 6px;
}

.chat-body-v2::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Enhanced Chat Bubbles */
.chat-message {
    max-width: 80%;
    display: flex;
    gap: 15px;
    animation: messageEntry 0.5s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

@keyframes messageEntry {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.ai {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.avatar-mini {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

.message-bubble {
    padding: 18px 24px;
    border-radius: 20px;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
}

.ai .message-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-left-radius: 5px;
    color: #e2e8f0;
}

.user .message-bubble {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border-top-right-radius: 5px;
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.2);
}

.message-bubble p {
    margin: 0;
}

/* Advanced Typing Indicator */
.typing-indicator-v2 {
    padding: 15px 40px;
    display: none;
    align-items: center;
    gap: 6px;
}

.typing-indicator-v2.active {
    display: flex;
}

.typing-indicator-v2 .dot {
    width: 6px;
    height: 6px;
    background: #2ecc71;
    border-radius: 50%;
    opacity: 0.4;
    animation: typingPulse 1.4s infinite;
}

.typing-indicator-v2 .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator-v2 .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

/* Premium Footer Input */
.chat-footer-v2 {
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.input-glass-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: flex-end;
    padding: 10px 15px 10px 25px;
    transition: all 0.3s ease;
}

.input-glass-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.1);
}

.input-glass-wrapper textarea {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: white;
    padding: 12px 0;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    min-height: 48px;
    max-height: 150px;
}

.send-btn-v2 {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border: none;
    border-radius: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.2);
}

.send-btn-v2:hover {
    transform: scale(1.1) rotate(10deg);
    background: #27ae60;
}

/* Responsive Advanced AI Page */
@media (max-width: 1200px) {
    .ai-main-grid {
        grid-template-columns: 280px 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .ai-main-grid {
        grid-template-columns: 1fr;
    }

    .ai-sidebar-v2 {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }

    .ai-sidebar-v2>* {
        flex: 1;
        min-width: 250px;
    }

    .chat-window-v2 {
        height: 600px;
    }

    .gradient-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .advanced-ai-page {
        padding: 100px 0 40px;
        /* Increased top padding to clear header */
        z-index: 10;
        position: relative;
    }

    /* Hide floating menu only on AI page to prevent obstruction */
    .page-ai-assistant .floating-menu,
    .page-ai-assistant .chatbot-toggle {
        display: none !important;
    }

    footer {
        position: relative;
        z-index: 5;
    }

    .chat-window-v2 {
        height: 70vh;
        min-height: 450px;
        border-radius: 20px;
    }

    .chat-header-v2 {
        padding: 20px;
    }

    .chat-body-v2 {
        padding: 20px;
    }

    .chat-footer-v2 {
        padding: 20px;
    }

    .message-bubble {
        padding: 14px 18px;
        font-size: 0.95rem;
    }

    .chat-message {
        max-width: 90%;
    }

    .gradient-text {
        font-size: 2rem;
    }
}

/* ==========================================================================
   ChatGPT-Style AI Assistant UI
   ========================================================================== */

.chatgpt-container {
    display: flex;
    height: calc(100vh - 80px);
    /* Adjust based on navbar height */
    overflow: hidden;
    background: #0f172a;
    color: #e2e8f0;
    position: relative;
    z-index: 100;
}

/* Sidebar Styling */
.chatgpt-sidebar {
    width: 260px;
    background: #020617;
    display: flex;
    flex-direction: column;
    padding: 15px;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.sidebar-header {
    margin-bottom: 20px;
}

.new-chat-btn {
    width: 100%;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.new-chat-btn:hover {
    background: rgba(46, 204, 113, 0.2);
}

.sidebar-history {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.history-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    display: block;
    margin: 20px 0 10px 5px;
}

.history-item {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #cbd5e1;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item:hover,
.history-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.history-item i {
    font-size: 0.85rem;
    color: #64748b;
}

.sidebar-footer {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-footer .clear-btn {
    width: 100%;
    background: none;
    border: none;
    color: #94a3b8;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.sidebar-footer .clear-btn:hover {
    color: #ef4444;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-top: 10px;
}

/* Main Chat Area */
.chatgpt-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #0f172a;
}

.mobile-chat-header {
    display: none;
    /* Hidden on desktop */
    padding: 15px 20px;
    background: #020617;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-title {
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #2ecc71, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-toggle,
.new-chat-mobile {
    background: none;
    border: none;
    color: #f8fafc;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Messages Area */
.chatgpt-messages {
    flex: 1;
    overflow-y: auto;
    padding: 40px 0;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Welcome Screen */
.chatgpt-welcome {
    max-width: 800px;
    margin: auto;
    text-align: center;
    padding: 20px;
}

.bot-icon img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(46, 204, 113, 0.3));
}

.suggestion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 40px;
}

.suggestion-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    transition: all 0.2s;
}

.suggestion-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: #2ecc71;
}

.suggestion-card span {
    font-size: 0.9rem;
    color: #cbd5e1;
}

/* Individual Message Styling */
.chat-message {
    width: 100%;
    padding: 20px 10vw;
    display: flex;
    gap: 25px;
    animation: fadeIn 0.3s ease;
}

.chat-message.user {
    background: rgba(255, 255, 255, 0.02);
}

.avatar-sm,
.avatar-user-sm {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-message.ai .avatar-sm {
    background: #2ecc71;
    color: #fff;
}

.chat-message.user .avatar-user-sm {
    background: #6366f1;
    color: #fff;
}

.message-content {
    flex: 1;
    line-height: 1.6;
    font-size: 1.05rem;
    color: #e2e8f0;
    max-width: 100%;
    overflow-wrap: break-word;
}

.message-content pre {
    background: #1e293b;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    overflow-x: auto;
}

/* Input Area */
.chatgpt-input-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

.chatgpt-input-wrapper {
    position: relative;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: flex-end;
    padding: 10px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.chatgpt-input-wrapper:focus-within {
    border-color: #2ecc71;
}

#chat-input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    padding: 8px 10px;
    resize: none;
    max-height: 200px;
    font-size: 1rem;
    outline: none;
}

.send-btn-v3 {
    background: #2ecc71;
    color: #000;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    margin-bottom: 5px;
}

.send-btn-v3:hover {
    transform: scale(1.05);
}

.chat-footer-text {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 15px;
}

/* Typing Indicator */
.typing-indicator-v3 {
    display: none;
    padding: 0 0 10px 10px;
    font-size: 0.85rem;
    color: #2ecc71;
}

.typing-indicator-v3.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chatgpt-container {
        height: 100vh;
    }

    .chatgpt-sidebar {
        position: fixed;
        left: -260px;
        height: 100%;
        top: 0;
        z-index: 2000;
    }

    .chatgpt-sidebar.active {
        left: 0;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
    }

    .mobile-chat-header {
        display: flex;
    }

    .chatgpt-messages {
        padding: 20px 0;
    }

    .chat-message {
        padding: 20px 5vw;
        gap: 15px;
    }

    .suggestion-grid {
        grid-template-columns: 1fr;
    }

    .chatgpt-input-container {
        padding: 10px 10px 20px;
    }
}

/* --- GLOBAL RESPONSIVENESS (INDEX PAGE) --- */
@media (max-width: 992px) {
    .hero-wrapper {
        flex-direction: column !important;
        text-align: center;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-image {
        text-align: center;
        width: 100%;
    }

    .hero-image img {
        max-width: 80%;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        min-height: auto !important;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-image img {
        max-width: 100%;
    }
}