/*-----------------------------------------------------------------------------------
	Andrea Bravaccino Portfolio
	AI Developer & Salesforce Architect Portfolio Website
	Version: 1.0
-----------------------------------------------------------------------------------*/

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

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --playful-color: #3a7bd5;
    --fun-color: #00d2ff;
    --bright-color: #6e8efb;
    --dark-color: #2d3748;
    --light-color: #f7fafc;
    --text-color: #2d3748;
    --text-light: #718096;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    --gradient-playful: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
    --gradient-fun: linear-gradient(45deg, #6e8efb 0%, #3a7bd5 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Text Gradient */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    background: rgba(22, 28, 41, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(22, 28, 41, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section - Dark Theme */
.hero-section {
    min-height: 100vh;
    background: #161c29;
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Animated background particles */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(78, 205, 196, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.03) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%, 50% 50%; 
    }
    33% { 
        background-position: 30% 70%, 70% 30%, 80% 20%; 
    }
    66% { 
        background-position: 70% 30%, 30% 70%, 20% 80%; 
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

/* Dark Mode Colors */
.bg-dark {
    background-color: #161c29 !important;
}

.bg-dark-accent {
    background-color: #1a2133 !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floating {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.animate-title {
    animation: fadeInUp 1.2s ease 0.2s both;
}

.animate-subtitle {
    animation: fadeInUp 1.2s ease 0.4s both;
}

.animate-description {
    animation: fadeInUp 1.2s ease 0.6s both;
}

.animate-buttons {
    animation: fadeInUp 1.2s ease 0.8s both;
}

.animate-image {
    animation: fadeInScale 1.5s ease 0.5s both;
}

/* Hover effects for cards */
.skill-card, .project-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.skill-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.15);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.12);
}

/* Floating Shapes */
.floating-shapes {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: floating 8s ease-in-out infinite;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(102, 126, 234, 0.2));
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
    background: linear-gradient(45deg, rgba(240, 147, 251, 0.2), rgba(255, 255, 255, 0.1));
}

.shape-3 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
    background: linear-gradient(45deg, rgba(118, 75, 162, 0.2), rgba(255, 255, 255, 0.1));
}

/* Additional floating elements */
.shape-4 {
    width: 30px;
    height: 30px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15), rgba(102, 126, 234, 0.1));
}

.shape-5 {
    width: 50px;
    height: 50px;
    bottom: 30%;
    right: 10%;
    animation-delay: 3s;
    background: linear-gradient(45deg, rgba(240, 147, 251, 0.15), rgba(118, 75, 162, 0.1));
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.main-section {
    padding-top: 14vh;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Section Styles */
section {
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    color: white;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-playful);
    border-radius: 10px;
    animation: shimmer 2s infinite linear;
    background-size: 200% 100%;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    position: relative;
}

/* Fun section decorations */
.section-title .emoji {
    display: inline-block;
    animation: bounce 2s infinite ease-in-out;
    margin-left: 0.5rem;
}

/* Skill Cards */
.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 1px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    border: 1px solid rgba(78, 205, 196, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    color: white;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-playful);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(255, 107, 107, 0.15),
        0 10px 30px rgba(78, 205, 196, 0.1);
    border-color: var(--fun-color);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-card h4 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.skill-card ul {
    list-style: none;
    padding: 0;
}

.skill-card li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding-left: 1.5rem;
}

.skill-card li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Project Cards */
.project-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 1px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    border: 1px solid rgba(78, 205, 196, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    color: white;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-fun);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02) rotate(1deg);
    box-shadow: 
        0 25px 50px rgba(78, 205, 196, 0.15),
        0 10px 30px rgba(255, 107, 107, 0.1);
    border-color: var(--playful-color);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-header h4 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.project-header h4::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-playful);
    transition: width 0.3s ease;
}

.project-card:hover .project-header h4::after {
    width: 100%;
}

.project-tech {
    margin-bottom: 1rem;
}

.tech-tag {
    display: inline-block;
    background: var(--gradient-playful);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.tech-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.tech-tag:hover::before {
    left: 100%;
}

.project-link {
    color: var(--playful-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.project-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: var(--fun-color);
    transform: translateX(5px);
}

.project-link:hover::after {
    transform: translateX(5px);
}

/* Certifications Grid */
.certifications-grid {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 1px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(78, 205, 196, 0.1);
    color: white;
}

.cert-items {
    display: grid;
    gap: 1rem;
}

.cert-item {
    background: var(--gradient-playful);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.cert-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.cert-item:hover::before {
    left: 100%;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-playful);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2.5rem;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--gradient-fun);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--fun-color);
    transition: all 0.3s ease;
    animation: pulse 2s infinite ease-in-out;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.2);
    animation: none;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 1px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(78, 205, 196, 0.1);
    position: relative;
    overflow: hidden;
    color: white;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-playful);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(78, 205, 196, 0.15),
        0 5px 15px rgba(255, 107, 107, 0.1);
}

.timeline-item:hover .timeline-content::before {
    transform: scaleX(1);
}

.timeline-content h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.company {
    color: var(--playful-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}

.period {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Contact Section */
.contact-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 1px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(78, 205, 196, 0.1);
    position: relative;
    overflow: hidden;
    color: white;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-playful);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(255, 107, 107, 0.15),
        0 10px 25px rgba(78, 205, 196, 0.1);
    border-color: var(--fun-color);
}

.contact-item:hover::before {
    transform: scaleX(1);
}

.contact-item i {
    font-size: 3rem;
    background: var(--gradient-playful);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: block;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.2) rotate(10deg);
}

.contact-item h5 {
    color: white;
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.contact-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-playful);
    transition: width 0.3s ease;
}

.contact-item a:hover {
    color: var(--fun-color);
    transform: translateY(-2px);
}

.contact-item a:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    background: var(--fun-color);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
    transform: perspective(1px) translateZ(0);
    color: #161c29;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(78, 205, 196, 0.5);
    background: #4ecdc4;
    color: #161c29;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.btn-outline-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: white;
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-outline-light:hover {
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover::before {
    width: 100%;
}

.btn-outline-light:active {
    transform: translateY(-1px);
}

/* Chatbot Styles */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-playful);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
    z-index: 1050;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: pulse 2s infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    animation: none;
}

.chatbot-toggle i {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.chatbot-toggle:hover i {
    transform: rotate(10deg);
}

.chatbot-modal {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 450px;
    height: 650px;
    background: #1a2133;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    z-index: 1055;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(78, 205, 196, 0.1);
}

.chatbot-modal.active {
    display: flex;
    animation: slideInUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatbot-header {
    background: var(--gradient);
    color: white;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.chatbot-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

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

.chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(to bottom, #161c29, #1a2133);
}

.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 2px;
}

.message {
    max-width: 85%;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    animation: messageSlideIn 0.3s ease;
}

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

.bot-message {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    border: 1px solid rgba(78, 205, 196, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* Markdown styles within bot messages */
.bot-message h1, .bot-message h2, .bot-message h3, .bot-message h4, .bot-message h5, .bot-message h6 {
    color: var(--fun-color);
    margin: 0.5rem 0;
    font-weight: 600;
}

.bot-message h1 { font-size: 1.3rem; }
.bot-message h2 { font-size: 1.2rem; }
.bot-message h3 { font-size: 1.1rem; }
.bot-message h4, .bot-message h5, .bot-message h6 { font-size: 1rem; }

.bot-message p {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.bot-message ul, .bot-message ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.bot-message li {
    margin: 0.3rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.bot-message strong {
    color: white;
    font-weight: 600;
}

.bot-message em {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.bot-message code {
    background: rgba(78, 205, 196, 0.2);
    color: var(--fun-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.bot-message pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
    overflow-x: auto;
}

.bot-message pre code {
    background: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
}

.bot-message a {
    color: var(--fun-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.bot-message a:hover {
    border-bottom-color: var(--fun-color);
}

.bot-message blockquote {
    border-left: 3px solid var(--fun-color);
    padding-left: 1rem;
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.user-message {
    background: var(--gradient);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    align-self: flex-start;
    max-width: 80px;
    border: 1px solid rgba(78, 205, 196, 0.1);
    backdrop-filter: blur(10px);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.chatbot-input {
    padding: 1.5rem;
    border-top: 1px solid rgba(78, 205, 196, 0.1);
    background: rgba(22, 28, 41, 0.95);
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.chatbot-input input {
    flex: 1;
    border: 2px solid rgba(78, 205, 196, 0.1);
    border-radius: 25px;
    padding: 0.8rem 1.2rem;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(26, 33, 51, 0.7);
    color: white;
}

.chatbot-input input:focus {
    border-color: var(--fun-color);
    background: rgba(26, 33, 51, 0.9);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.chatbot-input button {
    background: var(--gradient-playful);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.chatbot-input button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.chatbot-input button:active {
    transform: scale(0.95);
}

.chatbot-input button i {
    color: white;
    font-size: 1rem;
}

/* Loading Animation */
.page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease 2s forwards;
}

.page-preloader::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Footer */
footer {
    background: var(--gradient-playful) !important;
    position: relative;
    overflow: hidden;
    padding: 2rem 0 !important;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="40%" r="50%"><stop offset="0%" stop-color="rgba(255,255,255,.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="20" cy="10" r="3" fill="url(%23a)"/><circle cx="80" cy="15" r="2" fill="url(%23a)"/><circle cx="60" cy="5" r="1.5" fill="url(%23a)"/></svg>') repeat;
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateX(0); }
    100% { transform: translateX(100px); }
}

footer p {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

footer .heart {
    color: #ff6b9d;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
    margin: 0 0.5rem;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Additional fun elements */
.fun-element {
    display: inline-block;
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

/* Profile Picture Styling */
.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(78, 205, 196, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 0 auto 2rem;
    position: relative;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-picture::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(45deg, var(--fun-color), rgba(255, 255, 255, 0.1)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Responsive Design */
@media (min-width: 1400px) {
    .chatbot-modal {
        width: 500px;
        height: 700px;
        right: 40px;
        bottom: 120px;
    }
}

@media (max-width: 1200px) {
    .chatbot-modal {
        width: 420px;
        height: 600px;
        right: 25px;
        bottom: 110px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 80px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .floating-shapes {
        width: 200px;
        height: 200px;
    }
      .chatbot-modal {
        width: 380px;
        height: 550px;
        right: 20px;
        bottom: 100px;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline::before {
        left: 0.5rem;
    }
    
    .timeline-marker {
        left: -0.95rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
}

@media (max-width: 576px) {
    .chatbot-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
      .chatbot-modal {
        width: calc(100vw - 40px);
        height: calc(100vh - 140px);
        right: 20px;
        bottom: 90px;
        max-height: 600px;
    }

    .hero-buttons {
        margin-bottom: 5rem;
    }

    .btn-primary {
        margin-bottom: 1rem;
    }
}

/* Mobile landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .chatbot-modal {
        width: 400px;
        height: calc(100vh - 120px);
        max-height: 500px;
        right: 20px;
        bottom: 80px;
    }
}

/* Utility Classes */
.bg-light {
    background-color: #f8f9fa !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.text-center {
    text-align: center !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

/* Timeline Dark Mode */
.timeline::before {
    background: var(--gradient-playful);
}

.timeline-marker {
    background: var(--gradient-fun);
    border-color: rgba(26, 33, 51, 1);
    box-shadow: 0 0 0 4px var(--fun-color);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(78, 205, 196, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
}

.timeline-content h4 {
    color: white;
}

.timeline-content ul li {
    color: rgba(255, 255, 255, 0.7);
}

.company {
    color: var(--fun-color);
}

.period {
    color: rgba(255, 255, 255, 0.5);
}

/* Certifications Dark Mode */
.certifications-grid {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(78, 205, 196, 0.1);
    color: white;
}

.certifications-grid h4, .certifications-grid p {
    color: white;
}

/* Contact items Dark Mode */
.contact-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(78, 205, 196, 0.1);
    color: white;
}

.contact-item h5 {
    color: white;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.7);
}
