
/* =========================================
   CSS LAYOUT - Header, Footer, Grid & Containers
   ========================================= */

/* --- Container System --- */
.container,
.max-w-\[1200px\],
.max-w-\[1400px\],
.max-w-\[600px\] {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container,
    .max-w-\[1200px\],
    .max-w-\[1400px\],
    .max-w-\[600px\] {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .container,
    .max-w-\[1200px\],
    .max-w-\[1400px\],
    .max-w-\[600px\] {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* --- Header Layout --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    height: 4rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid hsl(var(--border) / 0.3);
}

header .max-w-\[1400px\] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Header Navigation - Desktop */
header nav.hidden.md\:flex {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    header nav.hidden.md\:flex {
        display: flex;
    }
}

header nav a {
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

header nav a.underline {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

header nav a.text-muted-foreground {
    color: hsl(var(--muted-foreground));
}

header nav a.text-muted-foreground:hover {
    color: hsl(var(--foreground));
}

/* Header Logo - Centered */
header a.absolute.left-1\/2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

header a.absolute.left-1\/2 img {
    height: 2rem;
    width: auto;
}

/* Header Right Side */
header div.hidden.md\:flex.items-center.space-x-6 {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    header div.hidden.md\:flex.items-center.space-x-6 {
        display: flex;
    }
}

/* Mobile Menu Button */
#mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    #mobile-menu-btn {
        display: none;
    }
}

/* --- Mobile Menu Overlay --- */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#mobile-menu.flex {
    display: flex;
}

#mobile-menu .flex.items-center.justify-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
}

#mobile-menu nav.flex.flex-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    padding-left: 3rem;
    padding-right: 3rem;
    gap: 2rem;
}

#mobile-menu nav a {
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 1;
}

#mobile-menu nav a.text-muted-foreground\/30 {
    color: hsl(var(--muted-foreground) / 0.3);
}

#mobile-menu nav a.text-muted-foreground\/30:hover {
    color: hsl(var(--foreground));
}

#mobile-menu .p-12 {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Main Content Layout --- */
main {
    min-height: 100vh;
    padding-top: 6rem;
    overflow-x: hidden;
}

main section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    main section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* --- Hero Section Layout --- */
section.px-4.sm\:px-6.md\:px-8.py-12.md\:py-24 {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    position: relative;
}

section .flex-1.w-full {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1.25rem;
    position: relative;
}

@media (min-width: 640px) {
    section .flex-1.w-full {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    section .flex-1.w-full {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-bottom: 0;
    }
}

/* --- Footer Layout --- */
footer {
    background-color: #111111;
    color: #ffffff;
    padding-top: 4rem;
    padding-bottom: 4rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    footer {
        padding-top: 6rem;
        padding-bottom: 6rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

footer .max-w-\[1200px\] {
    margin-left: auto;
    margin-right: auto;
}

footer .grid.grid-cols-1.md\:grid-cols-12 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    footer .grid.grid-cols-1.md\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 3rem;
    }
}

/* Footer Brand Column */
footer .md\:col-span-5 {
    grid-column: span 5 / span 5;
}

footer .md\:col-span-5 img {
    height: 2rem;
    width: auto;
    margin-bottom: 1.5rem;
}

footer .md\:col-span-5 h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

footer .md\:col-span-5 p {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.625;
    max-width: 20rem;
    margin-bottom: 2rem;
}

footer .md\:col-span-5 .flex.space-x-4 {
    display: flex;
    gap: 1rem;
}

footer .md\:col-span-5 .flex.space-x-4 a {
    width: 3rem;
    height: 3rem;
    background-color: rgb(255 255 255 / 0.1);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

footer .md\:col-span-5 .flex.space-x-4 a:hover {
    background-color: rgb(255 255 255 / 0.2);
}

/* Footer Link Columns */
footer .md\:col-span-2 {
    grid-column: span 2 / span 2;
}

footer .md\:col-span-2.md\:col-start-7 {
    grid-column: 7 / span 2;
}

footer h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

footer ul.space-y-4 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

footer ul li a {
    color: #9ca3af;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

footer ul li a:hover {
    color: #ffffff;
}

/* Footer Bottom */
footer .border-t {
    border-top: 1px solid rgb(255 255 255 / 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
    gap: 1rem;
}

@media (min-width: 768px) {
    footer .border-t {
        flex-direction: row;
        gap: 0;
    }
}

footer .border-t .flex.space-x-6 {
    display: flex;
    gap: 1.5rem;
}

/* --- Grid System for Projects --- */
.grid.grid-cols-1.md\:grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid.grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.grid.grid-cols-1.md\:grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* --- FAQ Grid Layout --- */
.faq-item {
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    background-color: hsl(var(--background));
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: hsl(var(--border));
}

.faq-item .flex.items-center.justify-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item .faq-content {
    display: none;
    margin-top: 1rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.625;
}

.faq-item.active .faq-content {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* --- Services Grid --- */
.grid.grid-cols-1.md\:grid-cols-3.gap-6 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid.grid-cols-1.md\:grid-cols-3.gap-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* --- CTA Section --- */
section.flex.flex-col.items-center.justify-center.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* --- Video Modal Layout --- */
#video-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#video-modal.flex {
    display: flex;
}

#video-modal .relative {
    position: relative;
    width: 100%;
    max-width: 64rem;
    aspect-ratio: 16 / 9;
    background-color: #000000;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

#video-modal button.absolute {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    padding: 0.5rem;
    background-color: rgb(0 0 0 / 0.5);
    color: #ffffff;
    border-radius: 9999px;
    transition: background-color 0.2s ease;
}

#video-modal button.absolute:hover {
    background-color: rgb(0 0 0 / 0.8);
}

#video-modal iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Floating Voice Note Player --- */
#floating-voice-note {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 50;
    background-color: hsl(var(--foreground));
    color: hsl(var(--background));
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    display: none;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

#floating-voice-note.flex {
    display: flex;
}

#floating-voice-note .flex.space-x-1 {
    display: flex;
    gap: 0.25rem;
}

#floating-voice-note .flex.space-x-1 div {
    width: 0.25rem;
    background-color: hsl(var(--background) / 0.5);
    border-radius: 9999px;
    animation: pulse 1.5s ease-in-out infinite;
}

#floating-voice-note .flex.space-x-1 div:nth-child(2) {
    animation-delay: 0.1s;
}

#floating-voice-note .flex.space-x-1 div:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes pulse {
    0%, 100% {
        height: 1rem;
    }
    50% {
        height: 1.5rem;
    }
}

#floating-voice-note button {
    padding: 0.25rem;
    border-radius: 9999px;
    transition: background-color 0.2s ease;
}

#floating-voice-note button:hover {
    background-color: hsl(var(--background) / 0.2);
}
