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

.hidden {
    display: none !important;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* Dark mode variables */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --accent-color: #93c5fd;
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --background-light: #1f2937;
    --background-white: #111827;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Google Fonts now loaded via preload in HTML head for better performance */

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* Focus styles for accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #0066cc;
        --text-dark: #000000;
        --text-light: #333333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}/* AI Energy Outline Animation */
.ai-sphere {
    width: 20px;
    height: 20px;
    background: transparent;
    border: 1.5px solid rgba(59, 130, 246, 0.4);
    border-radius: 60% 40% 70% 30%;
    position: relative;
    display: inline-block;
    margin-right: 8px;
    animation: aiMorph 4s ease-in-out infinite, aiGlow 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.4));
}

.ai-sphere-small {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.ai-sphere::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: 50% 70% 40% 60%;
    animation: aiFlicker 2.8s ease-in-out infinite;
    filter: blur(0.5px);
}

.ai-sphere::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 40% 60% 80% 20%;
    animation: aiShift 3.2s ease-in-out infinite reverse;
    filter: blur(1px);
}

@keyframes aiMorph {
    0%, 100% {
        border-radius: 60% 40% 70% 30%;
        transform: scale(1) rotate(0deg);
    }
    25% {
        border-radius: 40% 60% 50% 70%;
        transform: scale(1.05) rotate(1deg);
    }
    50% {
        border-radius: 70% 30% 40% 60%;
        transform: scale(0.98) rotate(-0.5deg);
    }
    75% {
        border-radius: 50% 70% 60% 40%;
        transform: scale(1.02) rotate(0.8deg);
    }
}

@keyframes aiGlow {
    0% {
        filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.4));
        border-color: rgba(59, 130, 246, 0.4);
    }
    100% {
        filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.8));
        border-color: rgba(59, 130, 246, 0.7);
    }
}

@keyframes aiFlicker {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }
    33% {
        opacity: 0.8;
        transform: scale(1.2) rotate(5deg);
    }
    66% {
        opacity: 0.4;
        transform: scale(0.9) rotate(-3deg);
    }
}

@keyframes aiShift {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(0) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateX(2px) scale(1.3);
    }
}

/* Dark mode AI sphere icon - make it visible with white colors */
[data-theme="dark"] .ai-sphere {
    border-color: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

[data-theme="dark"] .ai-sphere::before {
    border-color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .ai-sphere::after {
    border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .ai-sphere {
    animation: aiMorph 4s ease-in-out infinite, aiGlowDark 3s ease-in-out infinite alternate;
}

@keyframes aiGlowDark {
    0% {
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
        border-color: rgba(255, 255, 255, 0.8);
    }
    100% {
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1.0));
        border-color: rgba(255, 255, 255, 1.0);
    }
}

/* Light mode AI sphere in buttons - make it white to stand out on gradient */
.btn .ai-sphere {
    border-color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
    animation: aiMorph 4s ease-in-out infinite, aiGlowLight 3s ease-in-out infinite alternate;
}

.btn .ai-sphere::before {
    border-color: rgba(255, 255, 255, 0.7);
}

.btn .ai-sphere::after {
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes aiGlowLight {
    0% {
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
        border-color: rgba(255, 255, 255, 0.9);
    }
    100% {
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1.0));
        border-color: rgba(255, 255, 255, 1.0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.theme-switch-input {
    display: none;
}

.theme-switch-slider {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--border-color);
    border-radius: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-switch-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background-color: var(--background-white);
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-icon {
    font-size: 0.8rem;
    transition: var(--transition);
}

/* Switch states */
.theme-switch-input:checked + .theme-switch-slider {
    background-color: var(--primary-color);
}

.theme-switch-input:checked + .theme-switch-slider .theme-switch-handle {
    transform: translateX(30px);
}

.theme-switch-input:checked + .theme-switch-slider .theme-icon {
    transform: rotate(180deg);
}

/* Hover effects */
.theme-toggle:hover .theme-switch-slider {
    background-color: var(--accent-color);
}

.theme-toggle:hover .theme-switch-input:checked + .theme-switch-slider {
    background-color: var(--secondary-color);
}

/* Focus states */
.theme-switch-input:focus + .theme-switch-slider {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Social Icons */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--background-light);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

/* Light mode: black icons */
.social-icon .icon-img {
    width: 24px;
    height: 24px;
    transition: var(--transition);
    filter: brightness(0) saturate(100%) invert(0%);
}

/* Light mode hover: invert background and icon */
.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background-color: var(--text-dark);
}

.social-icon:hover .icon-img {
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Dark mode: white icons */
[data-theme="dark"] .social-icon {
    background-color: var(--border-color);
}

[data-theme="dark"] .social-icon .icon-img {
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Dark mode hover: invert background and icon */
[data-theme="dark"] .social-icon:hover {
    background-color: var(--text-dark);
}

[data-theme="dark"] .social-icon:hover .icon-img {
    filter: brightness(0) saturate(100%) invert(0%);
}

/* About Tabs */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 2rem;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}

.tab-btn:hover {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    min-height: 500px;
}

.tab-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    height: 100%;
}

.tab-panel.active {
    display: block;
    opacity: 1;
}

.tab-panel-content {
    display: flex;
    align-items: stretch;
    gap: 3rem;
    padding: 2rem;
    background-color: var(--background-white);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    min-height: 460px;
}

.panel-image {
    flex: 1;
    max-width: 300px;
    position: relative;
    display: flex;
    align-items: stretch;
}

.panel-image img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.panel-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to left, var(--background-white) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 0 0.5rem 0.5rem 0;
}

.panel-text {
    flex: 2;
}

.panel-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.panel-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Focus Management */
.focused {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Notification System */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    font-size: 0.9rem;
    font-weight: 500;
}

.notification-info {
    background-color: #10b981;
    color: white;
}

.notification-error {
    background-color: #ef4444;
    color: white;
}

.notification:not([style*="translateX(100%)"]) {
    transform: translateX(0);
}

/* Hamburger Menu Animation */
.hamburger {
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.active {
    background-color: var(--primary-color);
}

.nav-toggle .hamburger:first-child.active {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle .hamburger:nth-child(2).active {
    opacity: 0;
}

.nav-toggle .hamburger:nth-child(3).active {
    transform: rotate(-45deg) translate(7px, -6px);
}/* Header */
.header {
    background-color: var(--background-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo a:hover {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 24px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-white) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-highlight {
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 
        0 0 10px rgba(59, 130, 246, 0.3),
        0 0 20px rgba(59, 130, 246, 0.2),
        0 0 30px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    
    /* AI-style lighting effect */
    border: 2px solid rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 0 40px rgba(59, 130, 246, 0.4),
        0 0 80px rgba(59, 130, 246, 0.25),
        0 0 120px rgba(59, 130, 246, 0.15),
        0 0 160px rgba(59, 130, 246, 0.08);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 340px;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.6) 0%, 
        rgba(147, 197, 253, 0.5) 25%,
        rgba(96, 165, 250, 0.4) 50%,
        rgba(59, 130, 246, 0.5) 75%,
        rgba(147, 197, 253, 0.6) 100%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.8;
    animation: profileGlow 8s ease-in-out infinite;
    filter: blur(4px);
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 330px;
    height: 330px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(59, 130, 246, 0.4) 25%,
        rgba(147, 197, 253, 0.5) 50%,
        rgba(59, 130, 246, 0.4) 75%,
        transparent 100%);
    border-radius: 50%;
    z-index: 1;
    animation: profilePulse 4s ease-in-out infinite alternate;
    filter: blur(3px);
}

@keyframes profileGlow {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        filter: blur(4px) hue-rotate(0deg);
    }
    25% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.03) rotate(90deg);
        filter: blur(6px) hue-rotate(20deg);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.015) rotate(180deg);
        filter: blur(4px) hue-rotate(40deg);
    }
    75% {
        opacity: 1.0;
        transform: translate(-50%, -50%) scale(1.04) rotate(270deg);
        filter: blur(7px) hue-rotate(20deg);
    }
    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
        filter: blur(4px) hue-rotate(0deg);
    }
}

@keyframes profilePulse {
    0% {
        opacity: 0.4;
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) rotate(180deg);
    }
}

.hero-image img:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 60px rgba(59, 130, 246, 0.5),
        0 0 120px rgba(59, 130, 246, 0.3),
        0 0 180px rgba(59, 130, 246, 0.2),
        0 0 240px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .hero-image img {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 
        0 0 50px rgba(96, 165, 250, 0.4),
        0 0 100px rgba(96, 165, 250, 0.3),
        0 0 150px rgba(96, 165, 250, 0.2),
        0 0 200px rgba(96, 165, 250, 0.1);
}

[data-theme="dark"] .hero-image::before {
    background: linear-gradient(45deg, 
        rgba(96, 165, 250, 0.7) 0%, 
        rgba(147, 197, 253, 0.6) 25%,
        rgba(59, 130, 246, 0.5) 50%,
        rgba(96, 165, 250, 0.6) 75%,
        rgba(147, 197, 253, 0.7) 100%);
}

[data-theme="dark"] .hero-image::after {
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(96, 165, 250, 0.5) 25%,
        rgba(147, 197, 253, 0.6) 50%,
        rgba(96, 165, 250, 0.5) 75%,
        transparent 100%);
}

[data-theme="dark"] .hero-image img:hover {
    box-shadow: 
        0 0 80px rgba(96, 165, 250, 0.6),
        0 0 160px rgba(96, 165, 250, 0.4),
        0 0 240px rgba(96, 165, 250, 0.25),
        0 0 320px rgba(96, 165, 250, 0.15);
}

/* Main Sections */
.about {
    padding: 6rem 0;
    background-color: var(--background-white);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.about-tabs {
    margin-top: 3rem;
}

.skills {
    padding: 6rem 0;
    background-color: var(--background-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background-color: var(--background-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.skill-category h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.skill-category li:last-child {
    border-bottom: none;
}

.skill-category li::before {
    content: '▸';
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.contact {
    padding: 6rem 0;
    background-color: var(--background-white);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.contact-cta {
    padding: 2rem;
    background-color: var(--background-light);
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.contact-cta p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background-color: var(--background-light);
    color: var(--text-light);
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer p:last-child {
    margin-bottom: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}/* Chat Section */
.chat-section {
    padding: 6rem 0;
    background-color: var(--background-light);
}

/* AI Context Info */
.ai-context-info {
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.info-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.info-text {
    font-size: 0.875rem;
    color: var(--text-light);
    opacity: 0.8;
}

.info-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--text-light);
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-toggle:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .info-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.info-icon {
    transition: transform 0.2s ease;
}

.info-toggle[aria-expanded="true"] .info-icon {
    transform: rotate(180deg);
}

.info-details {
    padding: 1.5rem;
    background-color: var(--background-light);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    animation: slideDown 0.3s ease-out;
}

.info-details.hidden {
    display: none;
}

.info-details p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
}

.info-details p:last-child {
    margin-bottom: 0;
}

.info-details a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.info-details a:hover {
    border-bottom-color: var(--primary-color);
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

.chat-container {
    max-width: 800px;
    margin: 2rem auto 0 auto;
}

.chat-disclaimer {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: #92400e;
}

[data-theme="dark"] .chat-disclaimer {
    background-color: #451a03;
    border-color: #a16207;
    color: #fbbf24;
}

.chat-controls {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--background-white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.model-selection {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.model-selection label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.model-select {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.9rem;
    background-color: var(--background-white);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.model-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.switch-model-btn {
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.switch-model-btn:hover {
    background-color: var(--primary-color);
}

.switch-model-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.model-selection-note {
    margin-top: 0.5rem;
    text-align: center;
}

.model-selection-note small {
    color: var(--text-light);
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Mobile Chat Notice */
.mobile-chat-notice {
    display: none;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--background-white);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 2px solid var(--border-color);
}

.mobile-notice-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.mobile-notice-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.mobile-notice-content p:last-child {
    margin-bottom: 0;
}

.mobile-notice-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.mobile-notice-content a:hover {
    border-bottom-color: var(--primary-color);
}

/* Model Drawer */
.model-drawer {
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.drawer-header:hover {
    background-color: var(--background-white);
}

.drawer-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.drawer-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-toggle:hover {
    background-color: var(--border-color);
    color: var(--text-dark);
}

.drawer-toggle svg {
    transition: transform 0.3s ease;
}

.drawer-toggle[aria-expanded="true"] svg {
    transform: rotate(45deg);
}

.drawer-content {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.drawer-content.collapsed {
    max-height: 0;
    padding: 0 1.5rem;
}

/* Chat Header */
.chat-header {
    background-color: var(--background-white);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.chat-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-badge {
    display: flex;
    align-items: center;
}

.ai-model {
    background-color: var(--primary-color);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.ai-model:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .ai-model {
    background-color: var(--secondary-color);
    color: var(--background-white);
}

[data-theme="dark"] .ai-model:hover {
    background-color: var(--accent-color);
}

/* Enhanced AI Widget with Living Light Effect */
.chat-widget-embedded {
    background-color: var(--background-white);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    max-height: 600px;
    position: relative;
    
    /* Enhanced AI-style lighting effect */
    border: 2px solid rgba(59, 130, 246, 0.6);
    box-shadow: 
        0 0 60px rgba(59, 130, 246, 0.5),
        0 0 120px rgba(59, 130, 246, 0.35),
        0 0 180px rgba(59, 130, 246, 0.2),
        0 0 240px rgba(59, 130, 246, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.15),
        inset 0 -2px 0 rgba(59, 130, 246, 0.2);
}

.chat-widget-embedded::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.8) 0%, 
        rgba(147, 197, 253, 0.6) 20%,
        rgba(96, 165, 250, 0.5) 40%,
        rgba(59, 130, 246, 0.7) 60%,
        rgba(147, 197, 253, 0.6) 80%,
        rgba(59, 130, 246, 0.8) 100%);
    border-radius: 1rem;
    z-index: -2;
    opacity: 0.9;
    animation: livingLight 6s ease-in-out infinite;
    filter: blur(4px);
}

.chat-widget-embedded::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(59, 130, 246, 0.5) 25%,
        rgba(147, 197, 253, 0.7) 50%,
        rgba(59, 130, 246, 0.5) 75%,
        transparent 100%);
    border-radius: 1rem;
    z-index: -1;
    animation: lightPulse 3s ease-in-out infinite alternate;
    filter: blur(3px);
}

@keyframes livingLight {
    0% {
        opacity: 0.8;
        transform: scale(1) rotate(0deg);
        filter: blur(4px) hue-rotate(0deg);
    }
    25% {
        opacity: 1.0;
        transform: scale(1.02) rotate(90deg);
        filter: blur(6px) hue-rotate(15deg);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.01) rotate(180deg);
        filter: blur(4px) hue-rotate(30deg);
    }
    75% {
        opacity: 1.0;
        transform: scale(1.025) rotate(270deg);
        filter: blur(7px) hue-rotate(15deg);
    }
    100% {
        opacity: 0.9;
        transform: scale(1) rotate(360deg);
        filter: blur(4px) hue-rotate(0deg);
    }
}

@keyframes lightPulse {
    0% {
        opacity: 0.5;
        transform: translateX(-100%);
    }
    50% {
        opacity: 0.9;
        transform: translateX(0%);
    }
    100% {
        opacity: 0.6;
        transform: translateX(100%);
    }
}

[data-theme="dark"] .chat-widget-embedded {
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 
        0 0 80px rgba(96, 165, 250, 0.6),
        0 0 160px rgba(96, 165, 250, 0.4),
        0 0 240px rgba(96, 165, 250, 0.25),
        0 0 320px rgba(96, 165, 250, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.08),
        inset 0 -2px 0 rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .chat-widget-embedded::before {
    background: linear-gradient(45deg, 
        rgba(96, 165, 250, 0.9) 0%, 
        rgba(147, 197, 253, 0.7) 20%,
        rgba(59, 130, 246, 0.6) 40%,
        rgba(96, 165, 250, 0.8) 60%,
        rgba(147, 197, 253, 0.7) 80%,
        rgba(96, 165, 250, 0.9) 100%);
}

[data-theme="dark"] .chat-widget-embedded::after {
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(96, 165, 250, 0.6) 25%,
        rgba(147, 197, 253, 0.8) 50%,
        rgba(96, 165, 250, 0.6) 75%,
        transparent 100%);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--background-white);
}

.message {
    max-width: 80%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    word-wrap: break-word;
}

.assistant-message {
    background-color: var(--background-light);
    color: var(--text-dark);
    align-self: flex-start;
}

.user-message {
    background-color: var(--primary-color);
    color: white;
    align-self: flex-end;
}

.message-content {
    font-size: 0.9rem;
    line-height: 1.5;
}

.message-content p {
    margin: 0.5rem 0;
}

.message-content p:first-child {
    margin-top: 0;
}

.message-content p:last-child {
    margin-bottom: 0;
}

/* Markdown formatting in chat messages */
.message-content h1,
.message-content h2,
.message-content h3 {
    margin: 0.5rem 0;
    color: inherit;
}

.message-content h1 {
    font-size: 1.1rem;
    font-weight: 600;
}

.message-content h2 {
    font-size: 1.05rem;
    font-weight: 600;
}

.message-content h3 {
    font-size: 1rem;
    font-weight: 600;
}

.message-content strong {
    font-weight: 600;
}

.message-content em {
    font-style: italic;
}

.message-content code {
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
    font-size: 0.85rem;
}

.message-content pre {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 0.75rem 0;
    line-height: 1.4;
}

.message-content pre code {
    background-color: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.875rem;
}

/* Dark mode support for code blocks */
[data-theme="dark"] .message-content pre {
    background-color: #1e293b;
    border-color: #475569;
}

[data-theme="dark"] .message-content code {
    background-color: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

/* Syntax highlighting theme overrides for better chat integration */
.message-content pre[class*="language-"] {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    box-shadow: none;
    margin: 0.75rem 0;
}

[data-theme="dark"] .message-content pre[class*="language-"] {
    background-color: #1e293b;
    border-color: #475569;
}

/* Prism token colors for light theme */
.message-content .token.comment,
.message-content .token.prolog,
.message-content .token.doctype,
.message-content .token.cdata {
    color: #6a737d;
}

.message-content .token.punctuation {
    color: #586069;
}

.message-content .token.property,
.message-content .token.tag,
.message-content .token.boolean,
.message-content .token.number,
.message-content .token.constant,
.message-content .token.symbol,
.message-content .token.deleted {
    color: #005cc5;
}

.message-content .token.selector,
.message-content .token.attr-name,
.message-content .token.string,
.message-content .token.char,
.message-content .token.builtin,
.message-content .token.inserted {
    color: #032f62;
}

.message-content .token.operator,
.message-content .token.entity,
.message-content .token.url,
.message-content .language-css .token.string,
.message-content .style .token.string {
    color: #d73a49;
}

.message-content .token.atrule,
.message-content .token.attr-value,
.message-content .token.keyword {
    color: #d73a49;
}

.message-content .token.function,
.message-content .token.class-name {
    color: #6f42c1;
}

.message-content .token.regex,
.message-content .token.important,
.message-content .token.variable {
    color: #e36209;
}

/* Dark theme token colors */
[data-theme="dark"] .message-content .token.comment,
[data-theme="dark"] .message-content .token.prolog,
[data-theme="dark"] .message-content .token.doctype,
[data-theme="dark"] .message-content .token.cdata {
    color: #8b949e;
}

[data-theme="dark"] .message-content .token.punctuation {
    color: #c9d1d9;
}

[data-theme="dark"] .message-content .token.property,
[data-theme="dark"] .message-content .token.tag,
[data-theme="dark"] .message-content .token.boolean,
[data-theme="dark"] .message-content .token.number,
[data-theme="dark"] .message-content .token.constant,
[data-theme="dark"] .message-content .token.symbol,
[data-theme="dark"] .message-content .token.deleted {
    color: #79c0ff;
}

[data-theme="dark"] .message-content .token.selector,
[data-theme="dark"] .message-content .token.attr-name,
[data-theme="dark"] .message-content .token.string,
[data-theme="dark"] .message-content .token.char,
[data-theme="dark"] .message-content .token.builtin,
[data-theme="dark"] .message-content .token.inserted {
    color: #a5d6ff;
}

[data-theme="dark"] .message-content .token.operator,
[data-theme="dark"] .message-content .token.entity,
[data-theme="dark"] .message-content .token.url,
[data-theme="dark"] .message-content .language-css .token.string,
[data-theme="dark"] .message-content .style .token.string {
    color: #ff7b72;
}

[data-theme="dark"] .message-content .token.atrule,
[data-theme="dark"] .message-content .token.attr-value,
[data-theme="dark"] .message-content .token.keyword {
    color: #ff7b72;
}

[data-theme="dark"] .message-content .token.function,
[data-theme="dark"] .message-content .token.class-name {
    color: #d2a8ff;
}

[data-theme="dark"] .message-content .token.regex,
[data-theme="dark"] .message-content .token.important,
[data-theme="dark"] .message-content .token.variable {
    color: #ffa657;
}

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

.message-content li {
    margin: 0.2rem 0;
}

.message-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.message-content a:hover {
    text-decoration: none;
}


/* Typing indicator for streaming responses */
.typing-indicator {
    animation: blink 1s infinite;
    font-weight: bold;
    color: var(--primary-color);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.disclaimer-message {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

[data-theme="dark"] .disclaimer-message {
    background-color: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.4);
    color: var(--accent-color);
    border-left-color: var(--secondary-color);
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--background-white);
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.send-btn {
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn:hover {
    background-color: var(--secondary-color);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-loading {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--background-light);
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

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

.loading-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

.progress-container {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

.progress-text {
    flex: 1;
}

.progress-percentage {
    font-weight: 500;
    color: var(--primary-color);
}

.chat-status {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.status-indicator.status-thinking {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    animation: thinking-pulse 1.5s ease-in-out infinite;
}

.status-indicator.status-warning {
    background-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.status-indicator.status-limit {
    background-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

@keyframes thinking-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.status-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.message-counter {
    display: flex;
    align-items: center;
}

.message-count-text {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.7;
    font-weight: 400;
    transition: var(--transition);
}

/* Message counter warning states */
.message-counter.caution .message-count-text {
    opacity: 0.85;
    color: var(--text-dark);
}

.message-counter.warning .message-count-text {
    opacity: 1;
    color: #f59e0b;
    font-weight: 500;
}

.message-counter.critical .message-count-text {
    opacity: 1;
    color: #ef4444;
    font-weight: 600;
}


/* Dark mode adjustments */
[data-theme="dark"] .message-counter.caution .message-count-text {
    color: var(--text-light);
}

[data-theme="dark"] .message-counter.warning .message-count-text {
    color: #fbbf24;
}

[data-theme="dark"] .message-counter.critical .message-count-text {
    color: #ef4444;
}/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: var(--background-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
        opacity: 0;
        pointer-events: none;
        z-index: 1000;
        transform: translateY(-100%);
    }

    .nav-menu.active {
        transform: translateY(73px);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-right {
        align-items: center;
    }

    .theme-toggle {
        order: 2;
    }

    .theme-switch-slider {
        width: 50px;
        height: 25px;
        border-radius: 12.5px;
    }

    .theme-switch-handle {
        width: 21px;
        height: 21px;
        top: 2px;
        left: 2px;
    }

    .theme-switch-input:checked + .theme-switch-slider .theme-switch-handle {
        transform: translateX(25px);
    }

    .theme-icon {
        font-size: 0.7rem;
    }

    .nav-toggle {
        order: 3;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .hero-image img {
        width: 250px;
        height: 250px;
    }

    .hero-cta {
        justify-content: center;
    }

    .contact-methods {
        gap: 1.5rem;
    }

    .social-icon {
        width: 50px;
        height: 50px;
    }

    .social-icon .icon-img {
        width: 20px;
        height: 20px;
    }

    .chat-container {
        padding: 0 1rem;
    }

    .mobile-chat-notice {
        display: none;
    }

    .chat-widget-wrapper {
        display: block;
    }

    .chat-widget-embedded {
        min-height: 400px;
        max-height: 500px;
    }

    .chat-messages {
        padding: 1rem;
    }

    .chat-input-container {
        padding: 1rem;
    }
    
    .chat-header {
        padding: 1rem 1.5rem;
    }
    
    .chat-title-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .chat-title {
        font-size: 1.1rem;
    }
    
    .ai-model {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .model-selection {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .model-select {
        min-width: unset;
    }

    .tab-navigation {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .tab-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .tab-panel-content {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
        text-align: center;
    }

    .panel-image {
        max-width: 250px;
    }

    .panel-image img {
        height: 250px;
    }

    .panel-text {
        text-align: left;
    }
    
    /* Chat status mobile adjustments */
    .chat-status {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .status-left {
        order: 2;
    }
    
    .message-counter {
        order: 1;
    }
    
    .message-count-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .about,
    .skills,
    .chat-section,
    .contact {
        padding: 4rem 0;
    }

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

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}