/* Modern CSS Reset with Accessibility Improvements */
:root {
    --primary-color: #1a1a1a; /* Navigation, dark elements */
    --secondary-color: #00aaff; /* Highlights, CTAs */
    --accent-color: #0088cc; /* Hover states */
    --text-light: #fff; /* Light text for dark backgrounds */
    --text-dark: #2c3e50; /* Dark text for light backgrounds */
    --bg-light: #f5f7fa; /* Light background */
    --bg-dark: #2c3e50; /* Dark background */
    --section-bg: #2c3e50; /* Section background */
    --bg-light-theme: #ffffff; /* Light theme background */
    --text-dark-theme: #333333; /* Light theme text */
    --section-bg-light: #f0f2f5; /* Light theme section background */
    --transition-speed: 0.4s; /* Animation speed */
    --border-radius: 6px; /* Rounded corners */
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Body font */
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; /* Heading font */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    transition: background var(--transition-speed), color var(--transition-speed);
}

/* Light Theme Overrides */
.light-theme {
    --bg-light: var(--bg-light-theme);
    --text-dark: var(--text-dark-theme);
    --section-bg: var(--section-bg-light);
    --text-light: var(--text-dark-theme);
}

.light-theme #hero {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('/image/izzy.jpg') no-repeat center center;
    color: var(--text-dark-theme);
}

.light-theme #hero::before {
    background: rgba(255, 255, 255, 0.6);
}

.light-theme #nav {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark-theme);
}

.light-theme .nav-logo .logo,
.light-theme #nav a,
.light-theme .dropdown-btn {
    color: var(--text-dark-theme);
}

.light-theme .project-preview,
.light-theme .skills-list li,
.light-theme #contact-form,
.light-theme .testimonial {
    background: rgba(0, 0, 0, 0.05);
}

.light-theme .no-preview {
    background: rgba(0, 0, 0, 0.1);
}

.light-theme .theme-toggle {
    color: var(--text-dark-theme);
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--secondary-color);
    width: 0;
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Skip to Content Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px;
    z-index: 100;
    transition: top 0.3s ease-out;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.skip-link:focus {
    top: 0;
}

/* Navigation Bar */
#nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(26, 26, 26, 0.95);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(8px);
    transition: all var(--transition-speed);
}

#nav.scrolled {
    padding: 0.5rem 2rem;
    background: rgba(26, 26, 26, 0.98);
}

.nav-logo .logo {
    color: var(--text-light);
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform var(--transition-speed);
}

.nav-logo .logo:hover {
    transform: translateX(5px);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

#nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    padding: 0.5rem;
    display: block;
    transition: all var(--transition-speed);
    position: relative;
}

#nav a:hover,
#nav a:focus-visible {
    color: var(--secondary-color);
    outline: none;
}

#nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width var(--transition-speed);
}

#nav a:hover::after,
#nav a:focus-visible::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    padding: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-btn:hover,
.dropdown-btn:focus-visible {
    color: var(--secondary-color);
    outline: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-dark);
    min-width: 200px;
    z-index: 10;
    box-shadow: var(--box-shadow);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    overflow: hidden;
    transform-origin: top center;
}

.light-theme .dropdown-content {
    background: var(--section-bg-light);
}

.dropdown-content a {
    color: var(--text-light);
    padding: 0.8rem 1rem;
    transition: all var(--transition-speed);
}

.dropdown-content a:hover,
.dropdown-content a:focus-visible {
    background: rgba(0, 170, 255, 0.1);
    outline: none;
    transform: translateX(5px);
}

.show {
    display: block;
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hire Me Button */
.cta-button {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    white-space: nowrap;
    box-shadow: var(--box-shadow);
}

.cta-button:hover,
.cta-button:focus-visible {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
    outline: none;
}

/* Mobile Toggle Button */
#toggle-panel {
    display: none;
    background: transparent;
    color: var(--text-light);
    border: none;
    padding: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    aspect-ratio: 1/1;
    border-radius: 50%;
}

#toggle-panel:hover,
#toggle-panel:focus-visible {
    transform: scale(1.1);
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

#toggle-panel[aria-expanded="true"] {
    transform: rotate(90deg);
}

/* Side Panel */
#side-panel {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-y: auto;
    transition: left var(--transition-speed) cubic-bezier(0.215, 0.610, 0.355, 1);
    z-index: 1000;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
}

.light-theme #side-panel {
    background: var(--section-bg-light);
}

#side-panel.active {
    left: 0;
}

#panel-content {
    padding: 2rem;
    position: relative;
}

#close-panel {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    color: var(--text-light);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all var(--transition-speed);
    border-radius: 50%;
}

#close-panel:hover,
#close-panel:focus-visible {
    transform: scale(1.1) rotate(90deg);
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

#panel-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    position: relative;
}

#panel-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.side-menu {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.side-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 0.8rem;
    transition: all var(--transition-speed);
    border-radius: var(--border-radius);
    position: relative;
}

.side-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--secondary-color);
    transform: scaleY(0);
    transition: transform var(--transition-speed);
    transform-origin: bottom;
}

.side-menu a:hover,
.side-menu a:focus-visible {
    background: rgba(0, 170, 255, 0.1);
    transform: translateX(10px);
    outline: none;
}

.side-menu a:hover::before,
.side-menu a:focus-visible::before {
    transform: scaleY(1);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all var(--transition-speed);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Hero Section */
#hero {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/image/izzy.jpg') no-repeat center center;
    background-size: cover;
    background-position: center center;
    position: relative;
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.6);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 1.5rem;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .highlight {
    color: var(--secondary-color);
}

.hero-content h2 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    margin-bottom: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-weight: 600;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 2;
}

.hero-cta:hover,
.hero-cta:focus-visible {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    outline: none;
}

.hero-cta:active {
    transform: translateY(0);
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }

    .hero-content h2 {
        font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    }

    .hero-content p {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }
}

/* Main Content Sections */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    background: var(--section-bg);
    color: var(--text-light);
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: var(--section-bg);
    z-index: -1;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    position: relative;
    display: inline-block;
    font-family: var(--font-heading);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: width var(--transition-speed);
}

section:hover h2::after {
    width: 100px;
}

/* Projects Showcase */
.projects-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.project-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.8rem;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.project-preview h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-light);
    font-family: var(--font-heading);
}

.project-preview p {
    margin: 0;
    color: var(--text-light);
    opacity: 0.8;
}

.project-preview iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: var(--border-radius);
}

.no-preview {
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    opacity: 0.7;
    font-style: italic;
}

.no-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.error-message {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.visit-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
    transition: all var(--transition-speed);
}

.visit-link:hover,
.visit-link:focus-visible {
    color: var(--accent-color);
    text-decoration: underline;
    outline: none;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    background: rgba(0, 170, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    transition: all var(--transition-speed);
}

.project-preview:hover .project-tags span {
    background: var(--secondary-color);
    color: var(--text-light);
}

/* Project Filters */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.light-theme .filter-btn {
    background: rgba(0, 0, 0, 0.05);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary-color);
    color: var(--text-light);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    font-style: italic;
}

.testimonial p {
    margin-bottom: 1rem;
}

.testimonial cite {
    display: block;
    font-style: normal;
    color: var(--secondary-color);
}

/* Chatbot Styles */
#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed);
    z-index: 1000;
}

#chatbot-toggle:hover,
#chatbot-toggle:focus-visible {
    background: var(--accent-color);
    transform: scale(1.1);
    outline: none;
}

#chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    max-height: 500px;
    background: var(--section-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transition: all var(--transition-speed);
}

#chatbot-container.chatbot-hidden {
    display: none;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    padding: 0.8rem 1rem;
    color: var(--text-light);
}

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

#chatbot-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

#chatbot-close:hover {
    color: var(--secondary-color);
}

#chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.05);
}

.chatbot-message {
    margin-bottom: 0.8rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius);
    max-width: 80%;
    font-size: 0.9rem;
}

.chatbot-message.user {
    background: var(--secondary-color);
    color: var(--text-light);
    margin-left: auto;
}

.chatbot-message.bot {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

#chatbot-form {
    display: flex;
    padding: 0.5rem;
    background: var(--primary-color);
}

#chatbot-input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.9rem;
}

#chatbot-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

#chatbot-form button {
    background: var(--secondary-color);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    padding: 0 1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

#chatbot-form button:hover {
    background: var(--accent-color);
}

/* Light Theme Adjustments */
.light-theme #chatbot-container {
    background: var(--section-bg-light);
}

.light-theme #chatbot-messages {
    background: rgba(0, 0, 0, 0.05);
}

.light-theme .chatbot-message.bot {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark-theme);
}

.light-theme #chatbot-input {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark-theme);
}

.light-theme #chatbot-input:focus {
    background: rgba(0, 0, 0, 0.2);
}

.light-theme .chatbot-header,
.light-theme #chatbot-form {
    background: rgba(0, 0, 0, 0.05);
}

.light-theme .chatbot-header h3,
.light-theme #chatbot-close {
    color: var(--text-dark-theme);
}

/* Skills Section */
.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    list-style: none;
}

.skills-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed);
    text-align: center;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    color: var(--text-light);
}

.skills-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform var(--transition-speed);
    transform-origin: left;
}

.skills-list li:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.skills-list li:hover::before {
    transform: scaleX(1);
}

/* Contact Form */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    color: var(--text-light);
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
    background: transparent;
    color: var(--text-light);
    transition: border-bottom-color var(--transition-speed);
}

.light-theme #contact-form input,
.light-theme #contact-form textarea {
    border-bottom-color: rgba(0, 0, 0, 0.3);
    color: var(--text-dark-theme);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.light-theme #contact-form input::placeholder,
.light-theme #contact-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--secondary-color);
}

#contact-form textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.4;
}

#contact-form button {
    padding: 1rem;
    background: var(--secondary-color);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--box-shadow);
}

#contact-form button:hover,
#contact-form button:focus-visible {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
    outline: none;
}

#form-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

#form-message.success {
    background: rgba(0, 170, 255, 0.1);
    color: var(--secondary-color);
}

#form-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

#form-message.pending {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

/* Footer */
#footer {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(to right, var(--primary-color), var(--bg-dark));
    color: var(--text-light);
    margin-top: 4rem;
    position: relative;
}

.light-theme #footer {
    background: linear-gradient(to right, var(--section-bg-light), #e0e4e9);
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.03)" d="M0,0 L100,0 L100,100 L0,100 Z"></path></svg>');
    background-size: cover;
    z-index: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.8rem;
    transition: all var(--transition-speed);
    position: relative;
    z-index: 1;
}

.social-links a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: rgba(0, 170, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform var(--transition-speed);
    z-index: -1;
}

.social-links a:hover,
.social-links a:focus-visible {
    transform: translateY(-5px);
    outline: none;
    color: var(--secondary-color);
}

.social-links a:hover::after,
.social-links a:focus-visible::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .projects-showcase,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    #nav {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
    }

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

    #nav a {
        padding: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .light-theme #nav a {
        border-top-color: rgba(0, 0, 0, 0.1);
    }

    .dropdown-content {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    .dropdown-content a {
        padding-left: 2rem;
    }

    #toggle-panel {
        display: block;
    }

    .cta-button {
        margin-top: 1rem;
        width: auto;
        align-self: flex-start;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .projects-showcase,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .project-preview iframe,
    .no-preview,
    .no-preview img {
        height: 200px;
    }

    #contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 1rem;
    }

    #side-panel {
        width: 280px;
        left: -300px;
    }

    .projects-showcase,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-links a {
        font-size: 1.5rem;
    }

    #chatbot-container {
        width: 280px;
        bottom: 70px;
    }

    #chatbot-toggle {
        bottom: 15px;
        right: 15px;
    }
}

/* Scroll-Reveal Animation */
[data-scroll] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-scroll="fade-in"] {
    transform: translateY(30px);
}

[data-scroll].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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