/* Minimal CSS for Phosphorus website */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Modern CSS Variables based on new Phosphorus branding */
:root {
    /* Primary colors from the Phosphorus logo */
    --primary-color: #5452E3;
    --primary-light: #6A68F0;
    --primary-dark: #4240BB;
    
    /* Secondary colors from the Phosphorus logo */
    --secondary-color: #FFA88C;
    --secondary-light: #FFBDA6;
    --secondary-dark: #FF9371;
    
    /* Text and background colors */
    --text-primary: #282828;
    --text-secondary: #555555;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F6F6FF;
    --bg-tertiary: #FFF1EC;
    
    /* UI elements */
    --border-color: #E6E6FA;
    --shadow-light: 0 4px 20px rgba(84, 82, 227, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Elegant Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Selection Styling */
::selection {
    background: var(--primary-light);
    color: white;
}

::-moz-selection {
    background: var(--primary-light);
    color: white;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

body {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazirmatn', 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

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

a:hover {
    color: var(--primary-light);
}

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

/* Phosphorus Brand Typography */
.phosphorus-title {
    font-family: 'Vazirmatn', 'Space Grotesk', sans-serif;
    letter-spacing: 0.05em;
    color: var(--primary-color);
}

/* Subtle card styling */
.card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
}

/* Subtle Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(84, 82, 227, 0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: black;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(84, 82, 227, 0.25);
    color: black;
}

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

.btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 168, 140, 0.25);
    color: black;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: 'Aria';
    font-weight: bold;
    color: var(--text-primary);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 2rem;
    }
    
    .nav-menu.active {
        left: 0;    }
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--bg-tertiary) 0%, transparent 70%);
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -100px;    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--bg-secondary) 0%, transparent 70%);
    z-index: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    margin-right: 2rem;
}

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

.hero-logo {
    max-width: 67%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(84, 82, 227, 0.2));
}

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

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: black;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: black;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 10px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* About Section */
.about {
    background-color: var(--bg-secondary);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-features {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(84, 82, 227, 0.15);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Services Section */
.services {
    background-color: var(--bg-primary);
}

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

.service-card {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--secondary-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

.service-card li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.service-card li:before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Team Section */
.team {
    background-color: var(--bg-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.team-member {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(84, 82, 227, 0.15);
}

.member-image {
    height: 280px;
    overflow: hidden;
    position: relative;
    margin-bottom: -0.75rem;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.member-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-tertiary);
    font-size: 3rem;
    color: var(--secondary-color);
}

.member-info {
    padding: 0.75rem 1.5rem 1.5rem;
}

.member-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.member-role {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.skill-tag {
    background-color: var(--bg-tertiary);
    color: var(--secondary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.member-specialties, .member-education, .member-experience {
    margin-top: 1.5rem;
}

.member-specialties h4, .member-education h4, .member-experience h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.member-specialties ul, .member-experience ul {
    list-style-position: inside;
    padding-right: 0.5rem;
}

.member-specialties li, .member-experience li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.member-education p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Portfolio Section */
.portfolio {
    background-color: var(--bg-primary);
}

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

.portfolio-item {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(84, 82, 227, 0.15);
}

.portfolio-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    font-size: 3rem;
    color: white;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.portfolio-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.portfolio-year {
    display: inline-block;
    background-color: var(--bg-tertiary);
    color: var(--secondary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 2rem;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 800px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

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

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.modal-images img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.modal-content p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.modal-content .btn {
    display: inline-block;
}

/* Contact Section */
.contact {
    background-color: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: 50%;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-form {
    background-color: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(84, 82, 227, 0.1);
}

/* Responsive Design for Contact Section */
@media screen and (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: white;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-content {
        margin-right: 0;
        margin-top: 3rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .feature {
        text-align: center;
    }
    
    .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .services-grid, 
    .portfolio-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Remove any remaining errors */

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

.company-name {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: block;
    background: linear-gradient(45deg, #fff, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    display: block;
    margin-bottom: 3rem;
}

.loading-progress {
    width: 300px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff, #f093fb);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8));
    animation: progressGlow 1.5s ease-in-out infinite;
}

@keyframes progressGlow {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.loading-percentage {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loading-status {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 300;
}

.loading-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    animation: particleFloat 10s linear infinite;
}

.particle-large {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle-medium {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 80%;
    animation-delay: -3s;
}

.particle-small {
    width: 4px;
    height: 4px;
    top: 80%;
    left: 20%;
    animation-delay: -6s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.loading-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    animation: backgroundShine 3s ease-in-out infinite;
}

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

/* Basic Layout Styles */

/* Performance Indicator */
.performance-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-family: monospace;
    display: none;
}

.fps-counter {
    color: #00ff00;
}

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

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #C0E9F9;
    direction: rtl;
}

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

section {
    padding: 40px 0;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 100;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
}

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

.logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

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

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

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

/* Mobile navigation */
.nav-toggle {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        box-shadow: var(--shadow-light);
        padding: 20px 0;
        transition: 0.3s;
    }
    
    .nav-menu.active {
        right: 0;
    }
}/* Hero Section */
.hero {
    padding: 100px 0 60px;
    background-color: var(--bg-primary);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    position: relative;
}

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

.hero-subtitle {
    font-size: 1.4rem;
    margin: 2rem 0;
    color: #000000;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(74, 74, 218, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 74, 218, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: none;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 171, 140, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(255, 171, 140, 0.4);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background-color: var(--bg-secondary);
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #000000;
}

/* Section Styles */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 6px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
}

/* About Section */
.about {
    background: #f8f9fa;
    padding: 100px 0;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: 2rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    color: #1e56a0;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

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

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(30, 86, 160, 0.2);
    border-color: #1e56a0;
}

.service-icon {
    font-size: 4rem;
    color: #1e56a0;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotateY(360deg);
    text-shadow: 0 0 20px rgba(30, 86, 160, 0.5);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    text-align: right;
}

.service-card li {
    padding: 0.5rem 0;
    color: #555;
    border-bottom: 1px solid #eee;
}

.service-card li:last-child {
    border-bottom: none;
}

.service-card li::before {
    content: '✓';
    color: #1e56a0;
    font-weight: bold;
    margin-left: 10px;
}

/* Team Section */
.team {
    background: #f8f9fa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.team-member {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    height: 280px;
    overflow: hidden;
    position: relative;
    margin-bottom: -0.75rem;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.member-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-tertiary);
    font-size: 3rem;
    color: var(--secondary-color);
}

.member-info {
    padding: 0.75rem 1.5rem 1.5rem;
}

.member-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.member-role {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.skill-tag {
    background-color: var(--bg-tertiary);
    color: var(--secondary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.member-specialties, .member-education, .member-experience {
    margin-top: 1.5rem;
}

.member-specialties h4, .member-education h4, .member-experience h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.member-specialties ul, .member-experience ul {
    list-style-position: inside;
    padding-right: 0.5rem;
}

.member-specialties li, .member-experience li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.member-education p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Portfolio Section */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #1e56a0;
    background: transparent;
    color: #1e56a0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background: #1e56a0;
    color: white;
}

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

.portfolio-item {
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-medium);
    position: relative;
    height: 300px;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: white;
    position: relative;
}

.web-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mobile-placeholder {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.design-placeholder {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.dashboard-placeholder {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.brand-placeholder {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.fitness-placeholder {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.portfolio-placeholder h4 {
    font-size: 1.5rem;
    margin-top: 1rem;
    font-weight: 600;
}

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

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

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.portfolio-info p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.portfolio-tags span {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.portfolio-actions {
    display: flex;
    gap: 1rem;
}

.portfolio-btn {
    width: 50px;
    height: 50px;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

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

/* Ultimate Testimonials */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.testimonials-carousel {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-large);
    padding: 3rem;
    margin: 1rem;
    color: white;
    position: relative;
}

.testimonial-content {
    margin-bottom: 2rem;
}

.quote-icon {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-rating {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: #ffd700;
    font-size: 1.2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f093fb, #f5576c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f093fb, #f5576c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.author-info p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.swiper-pagination-bullet {
    background: white !important;
    opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: white !important;
}

/* Technology Stack */
.tech-stack-section {
    padding: 100px 0;

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.modal-images img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}
    background: var(--bg-secondary);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tech-category {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    transition: all var(--transition-medium);
    cursor: pointer;
}

.tech-item:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.tech-item i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.tech-item span {
    font-weight: 500;
}

/* Ultimate Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .ultimate-stat-card {
        padding: 1.5rem;
    }
    
    .stat-content .stat-number {
        font-size: 2.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .company-name {
        font-size: 2rem;
    }
    
    .loading-percentage {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-overlay {
        padding: 1rem;
    }
    
    .portfolio-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .progress-bar {
        width: 250px;
    }
    
    .loading-logo-container {
        width: 80px;
        height: 80px;
    }
    
    .loading-ring {
        width: 100px;
        height: 100px;
    }
    
    .loading-ring-2 {
        width: 120px;
        height: 120px;
    }
}

/* Logo floating animation */
@keyframes logoFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.hero-logo, .logo, .footer-logo {
    animation: logoFloat 3s ease-in-out infinite;
}

/* Ultimate AI Chatbot */
.ai-chatbot {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 10000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100px) scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ai-chatbot.active {
    display: flex;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.chatbot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chatbot-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.chatbot-status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.chatbot-status.online::before {
    content: '●';
    color: #4ade80;
    margin-right: 0.3rem;
}

.chatbot-minimize {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: auto;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.chatbot-minimize:hover {
    background: rgba(255,255,255,0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    animation: messageSlideIn 0.3s ease;
}

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

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-message .message-avatar {
    background: #e9ecef;
    color: #666;
}

.user-message {
    flex-direction: row-reverse;
}

.message-content {
    max-width: 80%;
}

.message-content p {
    background: white;
    padding: 0.8rem 1rem;
    border-radius: 18px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    line-height: 1.4;
}

.user-message .message-content p {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quick-replies {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.quick-reply {
    background: #e9ecef;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.quick-reply:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.chatbot-input {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.5rem;
}

.chatbot-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.8rem 1rem;
    border-radius: 20px;
    background: #f8f9fa;
    font-family: inherit;
}

.chatbot-input button {
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chatbot-input button:hover {
    transform: scale(1.1);
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.chatbot-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    animation: pulse 2s infinite;
}

/* Ultimate 3D Canvas */
.ultimate-canvas {
    position: fixed;
    top: 0;    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Ultimate Theme Switcher */
.theme-switcher {
    position: fixed;
    top: 80px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    transform: translateX(-100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.theme-switcher.active {
    display: flex;
    transform: translateX(0);
    opacity: 1;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-option:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.theme-preview {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    transition: transform 0.3s ease;
}

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

.light-preview {
    background: linear-gradient(45deg, #ffffff, #f8f9fa);
}

.dark-preview {
    background: linear-gradient(45deg, #1a1a1a, #333333);
}

.neon-preview {
    background: linear-gradient(45deg, #00ff88, #00ccff);
}

.royal-preview {
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
}

.theme-option span {
    font-weight: 500;
    color: var(--text-primary);
}

/* Neon Theme */
[data-theme="neon"] {
    --primary-color: #00ff88;
    --secondary-color: #00ccff;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #00ccff 100%);
}

[data-theme="neon"] body {
    background: #0a0a0a;
    color: #ffffff;
}

[data-theme="neon"] .nav {
    background: rgba(0,0,0,0.9);
    border-bottom: 1px solid #00ff88;
}

[data-theme="neon"] .hero {
    background: linear-gradient(135deg, #001122 0%, #003366 100%);
}

/* Royal Theme */
[data-theme="royal"] {
    --primary-color: #8b5cf6;
    --secondary-color: #ec4899;
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

[data-theme="royal"] .hero {
    background: linear-gradient(135deg, #4c1d95 0%, #be185d 100%);
}

/* Ultimate Easter Eggs */
.konami-code-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.konami-code-effect.active {
    display: flex;
    animation: konamiActivate 0.5s ease;
}

@keyframes konamiActivate {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.rainbow-text {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #80ff00, #00ff00, #00ff80, #00ffff, #0080ff, #0000ff, #8000ff, #ff00ff, #ff0080);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowAnimation 2s ease-in-out infinite;
    text-align: center;
    margin-bottom: 2rem;
}

@keyframes rainbowAnimation {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.fireworks {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, transparent 0%, transparent 50%, #ff6b6b 50.5%, transparent 51%),
        radial-gradient(circle at 80% 20%, transparent 0%, transparent 50%, #4ecdc4 50.5%, transparent 51%),
        radial-gradient(circle at 40% 40%, transparent 0%, transparent 50%, #45b7d1 50.5%, transparent 51%);
    animation: fireworksAnimation 3s ease-in-out infinite;
}

@keyframes fireworksAnimation {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ultimate Responsive Enhancements */
@media (max-width: 768px) {
    .ai-chatbot {
        width: calc(100vw - 40px);
        height: 70vh;
        right: 20px;
        left: 20px;
    }
    
    .theme-switcher {
        left: 10px;
        top: 70px;
        padding: 0.8rem;
    }
    
    .sound-control {
        left: 10px;
        top: 10px;
    }
    
    .rainbow-text {
        font-size: 2rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .theme-option {
        padding: 0.3rem;
    }
    
    .theme-preview {
        width: 25px;
        height: 25px;
    }
    
    .sound-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Override for hero text colors */
.hero .hero-subtitle,
.hero .hero-description {
    color: #000000 !important;
}
