/* Reset and base styles */
:root {
    --primary-blue: #0066cc;
    --secondary-blue: #1a75ff;
    --dark-blue: #004d99;
    --light-grey: #f5f7fa;
    --medium-grey: #e9ecef;
    --dark-grey: #495057;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--light-grey);
}

/* Navigation styles */
header {
    background-color: var(--primary-blue);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

nav ul li {
    position: relative;
    margin: 0;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    padding: 1.2rem 1.5rem;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

/* Hover effect with sliding background */
nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

nav ul li a:hover::before {
    transform: translateX(0);
}

nav ul li a:hover {
    color: var(--white);
    background-color: var(--secondary-blue);
}

nav ul li a.active {
    background-color: var(--dark-blue);
    color: var(--white);
}

nav ul li a.active::before {
    transform: translateX(0);
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary-blue);
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    nav ul.show {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        padding: 1rem 2rem;
        text-align: left;
        border-left: 4px solid transparent;
    }

    nav ul li a:hover {
        border-left-color: var(--white);
    }

    nav ul li a::before {
        display: none;
    }

    nav ul li a.active {
        border-left-color: var(--white);
    }
}

/* Animation for mobile menu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main content styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--light-grey), var(--white));
    border-radius: 10px;
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 2rem auto;
    border: 5px solid var(--white);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.2);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.02);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    color: var(--dark-grey);
}

/* Featured work section */
.featured-work {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.featured-work h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.featured-work h2 a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-work h2 a:hover {
    color: var(--secondary-blue);
}

/* Footer styles */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
}

/* AI Media Page Styles */
.ai-media-header {
    text-align: center;
    padding: 3rem 0;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.ai-media-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.media-category {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.media-category h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.media-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.media-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.media-item:hover {
    transform: translateY(-5px);
}

.media-item img, 
.media-item video {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.media-item p {
    padding: 0.5rem;
    text-align: center;
    color: #666;
}

.media-item.audio {
    background-color: #f8f9fa;
    padding: 1rem;
}

.media-item audio {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments for AI Media page */
@media (max-width: 768px) {
    .media-container {
        grid-template-columns: 1fr;
    }
    
    .media-item {
        max-width: 100%;
    }
}

/* Contact Page Styles */
.contact-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--light-grey), var(--white));
    border-radius: 10px;
    margin-bottom: 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 1rem;
}

.contact-info, .contact-form {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-details {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-right: 1rem;
    width: 30px;
}

.contact-item a {
    color: var(--dark-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-blue);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--medium-grey);
    border-radius: 8px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info, .contact-form {
        padding: 1.5rem;
    }
}

/* Responsive design */
@media (max-width: 1024px) {
    nav ul {
        justify-content: flex-start;
    }

    nav ul li a {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
}

/* DavidAI Bot section */
.davidai-section {
    text-align: center;
    padding: 2rem;
}

.davidai-section p {
    font-size: 1.4rem;
    color: var(--dark-grey);
    margin-bottom: 1.5rem;
}

.button-link {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.button-link:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

/* Introduction page styles */
.intro-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--light-grey), var(--white));
    border-radius: 10px;
    margin-bottom: 2rem;
}

.intro-header h1 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.intro-header p {
    font-size: 1.3rem;
    color: var(--dark-grey);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.video-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card h2 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive adjustments for videos */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .intro-header h1 {
        font-size: 2.2rem;
    }

    .video-card {
        margin-bottom: 1rem;
    }
}

/* Experience page styles */
.experience-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--light-grey), var(--white));
    border-radius: 10px;
    margin-bottom: 2rem;
}

.experience-header h1 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.experience-header p {
    font-size: 1.3rem;
    color: var(--dark-grey);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary-blue);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 2rem 0;
    position: relative;
    width: 100%;
    margin: -2px 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 50%;
    padding-left: 3rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 50%;
    padding-right: 3rem;
    text-align: right;
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -40px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -40px;
}

.date {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-content h2 {
    color: var(--dark-blue);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: var(--dark-grey);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content ul {
    list-style-type: none;
    padding: 0;
}

.timeline-content ul li {
    margin-bottom: 0.5rem;
    color: var(--dark-grey);
    position: relative;
    padding-left: 1.5rem;
}

.timeline-content ul li::before {
    content: '•';
    color: var(--primary-blue);
    position: absolute;
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content ul li {
    padding-left: 0;
    padding-right: 1.5rem;
}

.timeline-item:nth-child(even) .timeline-content ul li::before {
    left: auto;
    right: 0;
}

/* Responsive adjustments for timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0 0 0 70px;
        padding: 1.5rem;
        text-align: left;
    }

    .timeline-content::before {
        left: -40px !important;
        right: auto !important;
    }

    .timeline-item:nth-child(even) .timeline-content ul li {
        padding-left: 1.5rem;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) .timeline-content ul li::before {
        left: 0;
        right: auto;
    }
}

/* Education page styles */
.education-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--light-grey), var(--white));
    border-radius: 10px;
    margin-bottom: 2rem;
}

.education-header h1 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.education-header p {
    font-size: 1.3rem;
    color: var(--dark-grey);
}

.education-timeline {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% - 4rem);
    background: var(--primary-blue);
    opacity: 0.3;
}

.education-item {
    margin-bottom: 3rem;
    position: relative;
}

.education-content {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.education-content:hover {
    transform: translateY(-5px);
}

.degree-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.education-content .date {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-align: center;
}

.education-content h2 {
    color: var(--dark-blue);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.education-content h3 {
    color: var(--dark-grey);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
}

.education-content p {
    color: var(--dark-grey);
    text-align: center;
    line-height: 1.6;
}

/* Responsive adjustments for education page */
@media (max-width: 768px) {
    .education-timeline {
        padding: 1rem;
    }

    .education-content {
        padding: 1.5rem;
    }

    .education-header h1 {
        font-size: 2.2rem;
    }

    .education-content h2 {
        font-size: 1.2rem;
    }
}

/* Bio section styles */
.bio-section {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bio-content {
    max-width: 800px;
    margin: 0 auto;
}

.bio-content h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-grey);
}

.bio-content h2:first-child {
    margin-top: 0;
}

.bio-content p {
    color: var(--dark-grey);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.bio-content ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 2rem;
}

.bio-content ul li {
    color: var(--dark-grey);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.bio-content ul li::before {
    content: '•';
    color: var(--primary-blue);
    position: absolute;
    left: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bio-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .bio-content h2 {
        font-size: 1.5rem;
    }
}

/* Research page styles */
.research-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--light-grey), var(--white));
    border-radius: 10px;
    margin-bottom: 2rem;
}

.research-header h1 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.research-header p {
    font-size: 1.3rem;
    color: var(--dark-grey);
}

.research-content {
    display: grid;
    gap: 2rem;
    padding: 1rem;
}

.research-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.research-card h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.research-card h3 {
    color: var(--dark-blue);
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    border-bottom: 2px solid var(--light-grey);
    padding-bottom: 0.5rem;
}

.research-card h4 {
    color: var(--dark-blue);
    font-size: 1.2rem;
    margin: 1rem 0;
}

.research-card p {
    color: var(--dark-grey);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.stage {
    margin-bottom: 2rem;
}

.focus-area {
    background: var(--light-grey);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.focus-area:hover {
    transform: translateX(10px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .research-header h1 {
        font-size: 2.2rem;
    }

    .research-card {
        padding: 1.5rem;
    }

    .research-card h2 {
        font-size: 1.8rem;
    }

    .research-card h3 {
        font-size: 1.3rem;
    }

    .focus-area:hover {
        transform: none;
    }
}

/* DavidAI page styles */
.ai-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--light-grey), var(--white));
    border-radius: 10px;
    margin-bottom: 2rem;
}

.ai-header h1 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.ai-header p {
    font-size: 1.3rem;
    color: var(--dark-grey);
}

.ai-content {
    padding: 1rem;
}

.ai-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.ai-card .card-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.ai-card h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.ai-card > p {
    color: var(--dark-grey);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ai-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature {
    padding: 1.5rem;
    background: var(--light-grey);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--dark-blue);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature p {
    color: var(--dark-grey);
    line-height: 1.6;
}

.try-ai {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 15px;
    color: var(--white);
}

.try-ai h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.try-ai p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.ai-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ai-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.ai-button i {
    transition: transform 0.3s ease;
}

.ai-button:hover i {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-header h1 {
        font-size: 2.2rem;
    }

    .ai-card {
        padding: 1.5rem;
    }

    .ai-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .try-ai {
        padding: 1.5rem;
    }

    .ai-button {
        width: 100%;
        justify-content: center;
    }
} 

/* Copy all the CSS from the style tag in index.html */
:root {
    --primary-blue: #0066ff;
    --secondary-blue: #0052cc;
    --light-blue: #f0f7ff;
    --dark-blue: #0047b3;
    --light-grey: #f8faff;
    --border-grey: #e1e8f5;
    --gradient-start: #0066ff;
    --gradient-end: #00ccff;
    --box-shadow: 0 8px 30px rgba(0, 102, 255, 0.1);
    --hover-shadow: 0 10px 40px rgba(0, 102, 255, 0.2);
    /* ... rest of your CSS ... */
} 

/* Add these styles for auth pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 102, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 204, 255, 0.05) 0%, transparent 20%);
}

.auth-box {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 420px;
    transition: transform 0.3s ease;
}

.auth-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    font-size: 2.2em;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--border-grey);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light-grey);
}

.form-group input:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    background: white;
}

.auth-button {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.auth-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: var(--gradient-end);
    text-decoration: underline;
}

.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flash-message {
    background-color: #f44336;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.2);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.header {
    animation: float 6s ease-in-out infinite;
    text-align: center;
    margin-bottom: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 24px;
    box-shadow: var(--box-shadow);
    color: white;
    position: relative;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-grey);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

/* Header Styling */
.header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: var(--box-shadow);
}

.header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.location-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.logout-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.logout-button:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Voice Selector Styling */
.voice-selector {
    margin: 10px 0;
    padding: 15px;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border-grey);
    display: none;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.voice-selector:hover {
    box-shadow: var(--hover-shadow);
}

.voice-selector label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1rem;
}

.voice-selector select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid var(--border-grey);
    margin-right: 10px;
    font-size: 14px;
    background: var(--light-grey);
    transition: all 0.3s ease;
    min-width: 200px;
}

.voice-selector select:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    background: white;
}

.voice-selector button {
    padding: 10px 15px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.voice-selector button:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

/* Chat Container Styling */
.chat-container {
    flex: 1;
    background: white;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

#chatBox {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Message Styling */
.message {
    padding: 1rem 1.5rem;
    border-radius: 15px;
    max-width: 80%;
    line-height: 1.5;
}

.user-message {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    margin-left: auto;
    border-radius: 15px 15px 0 15px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.ai-message {
    background: var(--light-blue);
    color: #2c3e50;
    margin-right: auto;
    border-radius: 15px 15px 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Chat Input Styling */
.chat-input-container {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid rgba(0, 123, 255, 0.1);
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    min-height: 80px;
    padding: 1rem;
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.send-button {
    padding: 1rem 2rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 56px;
}

.send-button:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.send-button:active {
    transform: translateY(0);
}

/* Enhanced Voice Button Styling */
.voice-button {
    padding: 1rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 56px;
    width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.voice-button:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.voice-button.active {
    background: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.voice-button.speaking {
    background: #dc3545;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.voice-button:active {
    transform: translateY(0);
}

/* Error Message Styling */
.error-message {
    background: #fee2e2;
    color: #991b1b;
    margin-right: auto;
    border-radius: 15px;
}

/* Scrollbar Styling */
#chatBox::-webkit-scrollbar {
    width: 8px;
}

#chatBox::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#chatBox::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

#chatBox::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .auth-box {
        padding: 2rem;
    }

    .auth-box h1 {
        font-size: 2em;
    }

    .form-group input {
        padding: 0.9rem 1rem;
    }

    .auth-button {
        padding: 1rem;
    }
    
    .voice-selector {
        padding: 12px;
    }
    
    .voice-selector select {
        min-width: 150px;
        margin-bottom: 10px;
    }
    
    .voice-selector button {
        width: 100%;
        justify-content: center;
    }
    
    .button-group {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .voice-button {
        width: 48px;
        height: 48px;
        margin-left: 5px;
    }
}

.signup-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-grey);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 102, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 204, 255, 0.05) 0%, transparent 20%);
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: var(--primary-blue);
    font-size: 2em;
    margin-bottom: 10px;
}

.error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 5px;
}

.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.flash-message {
    background-color: #f44336;
    color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.button-group {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.webcam-container {
    margin: 20px auto;
    max-width: 640px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--light-blue);
    box-shadow: var(--box-shadow);
}

#webcam {
    width: 100%;
    height: auto;
    display: block;
}

.webcam-controls {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: white;
    justify-content: center;
}

.webcam-button {
    padding: 12px 24px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.webcam-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.webcam-button:not(:disabled):hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.tarot-header {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.tarot-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.tarot-header p {
    opacity: 0.9;
    font-size: 1rem;
}

.webcam-button {
    background: linear-gradient(135deg, #9c27b0, #673ab7);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.webcam-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.webcam-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(156, 39, 176, 0.3);
}

.webcam-container {
    margin: 20px auto;
    max-width: 640px;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a2e;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.webcam-controls {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    justify-content: center;
    backdrop-filter: blur(10px);
}

/* Style the AI response for tarot readings */
.message.ai-message:has(h2) {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.message.ai-message h2 {
    color: #9c27b0;
    margin-bottom: 1rem;
}

.message.ai-message hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.message.ai-message em {
    color: #bb86fc;
    font-style: normal;
} 