:root {
    --max-width: 1100px;
    --border-radius: 12px;
    --foreground-rgb: 255, 255, 255;
    --background-start-rgb: 0, 0, 0;
    --background-end-rgb: 0, 0, 0;
    --dark-gray: #303030;
    --light-gray: #ccc;
    --gradient-start: #3498db;
    --gradient-middle: #2ecc71;
    --gradient-end: #3498db;
    --gradient: linear-gradient(45deg, var(--gradient-start), var(--gradient-middle), var(--gradient-end));
    --primary-glow: radial-gradient(rgba(1, 65, 255, 0.4), rgba(1, 65, 255, 0));
    --secondary-glow: linear-gradient(to bottom right, rgba(1, 65, 255, 0), rgba(1, 65, 255, 0), rgba(1, 65, 255, 0.3));
}

* { 
    box-sizing: border-box;
    margin: 0; 
    padding: 0;
    font-family: "Work Sans", sans-serif;
      font-optical-sizing: auto;
      font-weight: <weight>;
      font-style: normal;
    font-size: 14px;
}

body { 
    overflow-x: hidden;
    overflow-y: auto;
    color: rgb(var(--foreground-rgb));
    background: linear-gradient(to bottom, transparent, rgb(var(--background-end-rgb))) rgb(var(--background-start-rgb));
    font-feature-settings: "cv04" on, "cv01" on, "cv02" on, "cv03" on, "liga" off;
    height: 100vh;
}

.news-section {
    margin: 40px 0;
    /* padding: 30px; */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.news-section h3 {
    font-size: 24px;
    font-weight: 450;
    margin-bottom: 20px;
}

.news-section a {
    display: block;
    padding: 20px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.news-section a .article-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.news-section a h4 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.source-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0.8;
}

.news-section a p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.news-section a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.news-section a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}


.content {
    position: relative;
    color: white;
    text-align: center;
    z-index: 1;
    width: 100vw;
    min-height: 60vh;
    background-color: #000000;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

h1 {
    font-style: normal;
    font-weight: 700;
    font-variation-settings: "wght" 700;
    font-size: 4rem;
    line-height: 120%;
    letter-spacing: -0.02em;
}

p {
    font-size: 1rem;
    line-height: 140%;
    margin-top: 8px;
    font-weight: 350;
    font-variation-settings: "wght" 350;
    opacity: 0.9;
 
}


a {
    color: var(--light-gray);
    text-decoration: none;
    transition: opacity 0.2s ease;s
    font-size: 1rem;
    padding: 1rem 0;
    text-decoration: underline;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}


.corner {
    position: fixed;
    padding: 20px;
    color: white;
    font-family: "Inter", sans-serif;
    z-index: 7;
    mix-blend-mode: difference;
    font-weight: 350;
    font-variation-settings: "wght" 350;
    font-size: 1rem;
    line-height: 120%;
}

.top-left {
    top: 0;
    left: 0;
    /* font-size: 1 rem; */
    font-weight: bold;
}

.top-right {
    top: 0;
    right: 0;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.top-right:hover {
    transform: scale(1.1);
}

.bottom-left, .bottom-right {
    bottom: 0;
}

.bottom-left {
    left: 0;
}

.bottom-right {
    right: 0;
}


@media (max-width: 768px) {
    h1 {
        font-size: 24px;
    }

    p {
        font-size: 14px;
    }

    .corner {
        padding: 16px;
    }
}

/* Chat widget */
.chat-button {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 30px;
    padding: 1rem 1.5rem;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 100;
    margin-top: 1.5rem;
    display: inline-block;
    border: none;
}

.chat-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3498db, #2ecc71, #3498db);
    border-radius: 32px;
    z-index: -1;
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

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

.chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Chat modal overlay */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    visibility: hidden;
}

.chat-modal.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.chat-widget {
    width: 90%;
    max-width: 500px;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    transform: scale(0.9);
    transition: all 0.3s ease;
    height: 70vh;
    max-height: 600px;
}

.chat-widget.modal {
    opacity: 1;
    pointer-events: auto;
}

.chat-widget.open {
    transform: scale(1);
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-weight: 450;
    color: white;
}

.chat-header button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.user {
    align-self: flex-end;
    background: rgba(64, 122, 255, 0.7);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-bottom-left-radius: 4px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

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

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

@keyframes typing {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.chat-input-container {
    display: flex;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-container input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

.chat-input-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-input-container button {
    background: var(--gradient);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    margin-left: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chat-input-container button:hover {
    animation: gradient 3s ease infinite;
    transform: translateY(-1px);
}

.suggested-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    align-self: flex-start;
}

.prompt-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.prompt-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .chat-widget {
        width: calc(100% - 40px);
        height: 400px;
    }
    
    .suggested-prompts {
        flex-direction: column;
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* hero section */
.hero{
    padding: 2rem 0;
}



/* Projects section */
.projects-section {
    /* min-height: 100vh; */
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.projects-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.projects-header {
    margin-bottom: 40px;
    text-align: center;
}

.projects-header h2 {
    font-size: 24px;
    font-weight: 450;
    margin-bottom: 15px;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 20px;
    font-weight: 450;
    margin-bottom: 10px;
}

.project-description {
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: left;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    opacity: 0.7;
}

.project-link {
    display: inline-block;
    background: rgb(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.project-link:hover {
    background: rgb(0, 0, 0, 0.9);
    text-decoration: none;
}

.project-tags {
    display: flex;
    gap: 8px;
}

.project-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .projects-section {
        padding: 60px 0;
    }
}

/* Gallery Section Styles */
.gallery-section {
    /* min-height: 100vh; */
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.gallery-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

.gallery-list-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
}

.gallery-list-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.gallery-list-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.gallery-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-list-item:hover .gallery-list-image img {
    transform: scale(1.05);
}

.gallery-list-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-list-title {
    font-size: 20px;
    font-weight: 450;
    margin-bottom: 10px;
}

.gallery-list-description {
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.5;
}

.gallery-list-link {
    align-self: flex-start;
    display: inline-block;
    background: rgb(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.gallery-list-link:hover {
    background: rgb(0, 0, 0, 0.9);
    text-decoration: none;
}

@media (max-width: 768px) {
    .projects-list,
    .gallery-list {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section Styles */
.faq-section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.faq-accordion {
    margin-top: 30px;
}

.faq-item {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

/* Gallery Grid Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    transition: transform 0.3s ease;
}

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

.gallery-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-title {
    font-size: 16px;
    font-weight: 450;
    margin-bottom: 8px;
}

.gallery-link {
    text-decoration: none;
    color: inherit;
}

.faq-question {
    padding: 100px 0;
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: 450;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 24px;
}

.faq-answer p {
    opacity: 0.8;
    padding-bottom: 20px;
    line-height: 1.6;
    text-align: left;
}

/* Chat Section Styles */
.chat-section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
    text-align: center;
}

.chat-section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.chat-section-content h2 {
    font-size: 24px;
    font-weight: 450;
}

.chat-section-content p {
    opacity: 0.8;
    margin-bottom: 24px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-section,
    .faq-section,
    .chat-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Project detail page */
.project-detail {
    position: relative;
    padding: 120px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
    color: white;
}

.project-header {
    text-align: center;
    margin-bottom: 60px;
}

.project-header h1 {
    font-size: 36px;
    font-weight: 450;
    margin-bottom: 10px;
}

.project-category {
    font-size: 18px;
    opacity: 0.8;
}

.project-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.project-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.password-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.password-modal-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.password-modal-content input {
    padding: 10px;
    margin-bottom: 15px;
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.password-modal-content button {
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.password-modal-content .error {
    color: red;
    margin-bottom: 15px;
}

.password-modal-content .password-request {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.modal-links {
    margin-top: 15px;
    font-size: 14px;
}

.modal-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.modal-links a:hover {
    color: #333;
}

.project-description-full {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
}

.project-metadata {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metadata-item h3 {
    font-size: 16px;

/* Experiments Section Styles */
.experiments-section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.experiments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.experiment-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
}

.experiment-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.experiment-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.experiment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.experiment-card:hover .experiment-image img {
    transform: scale(1.05);
}

.experiment-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.experiment-title {
    font-size: 20px;
    font-weight: 450;
    margin-bottom: 10px;
}

.experiment-description {
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.5;
}

.experiment-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.experiment-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .experiments-grid {
        grid-template-columns: 1fr;
    }
}

    font-weight: 500;
    margin-bottom: 8px;
}

.metadata-item p {
    font-size: 16px;
    opacity: 0.8;
}

.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-image {
    width: 100%;
}

.project-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.image-caption {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.7;
    text-align: center;
}

.project-next {
    margin-top: 40px;
    text-align: center;
}

.project-next h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.next-project-link {
    font-size: 24px;
    color: var(--light-gray);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.next-project-link:hover {
    /* color: rgba(64, 122, 255, 1); */
}

@media (max-width: 768px) {
    .project-info {
        grid-template-columns: 1fr;
    }
    
    .project-header h1 {
        font-size: 28px;
    }
    
    .project-detail {
        padding: 100px 20px 60px;
    }
}