/* General Styles */
:root {
    --primary-color: #f7fb5e;
    --text-color: #333;
    --background-dark: #000;
    --background-light: #fff;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    font-weight: bold;
}

.highlight {
    color: var(--primary-color);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 1rem 0;
    z-index: 9999;
    transition: all 0.3s ease;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: transparent;
    opacity: 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 0;
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled::before {
    background-color: var(--primary-color);
    opacity: 0.95;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-container-header {
    position: relative;
    width: 40px;
    height: 40px;
}

.logo-yellow, .logo-black {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.logo-yellow {
    opacity: 1;
}

.logo-black {
    opacity: 0;
}

header.scrolled .logo-yellow {
    opacity: 0;
}

header.scrolled .logo-black {
    opacity: 1;
}

.logo-text {
    margin-left: 1rem;
    font-weight: bold;
    font-size: 1.125rem;
    color: white;
    transition: color 0.3s ease;
}

header.scrolled .logo-text {
    color: var(--background-dark);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

header.scrolled nav ul li a {
    color: var(--background-dark);
}

header.scrolled nav ul li a:hover {
    color: rgba(0, 0, 0, 0.7);
}

.contact-btn {
    background-color: var(--primary-color);
    color: var(--background-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: rgba(247, 251, 94, 0.8);
}

header.scrolled .contact-btn {
    background-color: var(--background-dark);
    color: var(--primary-color);
}

header.scrolled .contact-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 6rem;
    justify-content: center;
    overflow: hidden;
    background-color: var(--background-dark);
}

.video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-container video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 1rem;
    max-width: 800px;
}

.logo-container {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
}

.logo-large {
    position: absolute;
    inset: 0;
    height: 90px;
    width: 90px;
    clip-path: url(#logoReveal);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--background-dark);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: rgba(247, 251, 94, 0.8);
}

/* Services Section */
.services {
    background-color: var(--primary-color);
    padding: 4rem 0;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--background-dark);
    padding: 1rem;
    border-radius: 0.5rem;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card h3 {
    color: white;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.service-card p {
    color: white;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.service-card model-viewer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
}

.service-card .emoji {
    font-size: 4rem;
    text-align: center;
    margin: 2rem 0;
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Cases Section */
.cases {
    background-color: var(--background-dark);
    color: white;
    padding: 4rem 0;
}

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

@media (min-width: 768px) {
    .cases-content {
        grid-template-columns: 1fr 1fr;
    }
}

.cases-info {
    grid-column: 1;
}

.cases-info h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.cases-info p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.video-wrapper {
    grid-column: 2;
    margin: 0;
}

.case-types {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 0.5rem;
}

.case-type {
    position: relative;
    padding-left: 1.5rem;
}

.case-type h4 {
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.case-type p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.case-type a {
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.case-type a:hover {
    text-decoration: underline;
}

/* About Section */
.about {
    background-color: var(--background-light);
    padding: 4rem 0;
}

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

.about-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-header p {
    font-size: 1.25rem;
}

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

@media (min-width: 768px) {
    .founders {
        grid-template-columns: repeat(2, 1fr);
    }
}

.founder {
    text-align: center;
}

.founder-img {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.founder-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.founder .role {
    font-size: 1.125rem;
    font-style: italic;
    color: #666;
    margin-bottom: 0.25rem;
}

.founder .bio {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
}

.founder .social a {
    color: #0077b5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.founder .social a:hover {
    opacity: 0.8;
}

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

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: auto;
    max-width: 500px;
    width: 100%;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease forwards;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-button:hover {
    color: gray;
}

.modal h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

.modal-description {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.form-status-message {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    border-radius: 0.25rem;
    text-align: center;
}

.success-message {
    background-color: rgba(59, 179, 113, 0.1);
    border: 1px solid rgba(59, 179, 113, 0.5);
    color: #2a9d5d;
}

.error-message {
    background-color: rgba(239, 83, 80, 0.1);
    border: 1px solid rgba(239, 83, 80, 0.5);
    color: #d32f2f;
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-error {
    font-size: 0.8rem;
    color: #d32f2f;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.required-fields {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1rem;
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: black;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: bold;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-btn:hover,
.submit-btn.loading {
    background-color: black;
    color: var(--primary-color);
}

.submit-btn.loading {
    cursor: not-allowed;
}

.button-loader {
    display: flex;
    align-items: center;
}

.spinner {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    animation: spinner 1s linear infinite;
}

.spinner-path {
    stroke: currentColor;
    stroke-dasharray: 60, 200;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -125px;
    }
}

/* Model Viewer Styles */
model-viewer {
    width: 400px;
    height: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
}

/* Custom loading spinner for model-viewer */
.model-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    color: var(--primary-color);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
}

/* Error message styling */
.model-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    color: #ff4444;
    text-align: center;
    font-size: 0.875rem;
    max-width: 80%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 0.5rem;
}

/* Map Display Styles */
.map-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.map-image {
    width: 75%;
    height: 75%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Contact form status messages */
#formStatus {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.success-message {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.error-message {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
    border: 1px solid #F44336;
}

/* Footer Styles */
.site-footer {
    background-color: #1a1a1a !important;
    color: #888 !important;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    margin-top: 3rem;
    width: 100%;
}

.site-footer .container {
    max-width: 1200px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.site-footer a {
    color: #aaa !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--primary-color) !important;
}

.contact-info, .sister-site, .copyright {
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .contact-info, .sister-site, .copyright {
        margin-bottom: 0;
    }
} 