/* css/main.css - Shared styles for AQUVIA Development Works */

:root {
    --brand-1: #003F5C;
    --brand-2: #366E8A;
    --brand-3: #6B9DB3;
}

html, body {
    font-family: 'Montserrat', sans-serif;
}

.brand-1 {
    color: var(--brand-1);
}
.bg-brand-1 {
    background: var(--brand-1);
}
.bg-brand-2 {
    background: var(--brand-2);
}
.bg-brand-3 {
    background: var(--brand-3);
}
.text-brand-2 {
    color: var(--brand-2);
}
.text-brand-3 {
    color: var(--brand-3);
}

.focus-outline:focus {
    outline: 3px solid rgba(0, 63, 92, .15);
    outline-offset: 3px;
}

/* Hero background placeholder */
.hero-bg {
    background-image: linear-gradient(rgba(0, 63, 92, 0.68), rgba(0, 63, 92, 0.45)), url('/images/hero-background.png');
    background-size: cover;
    background-position: center;
}

/* Hide interactive parts on print */
@media print {
    .no-print {
        display: none;
    }
}

/* Navigation Bar - Deep Navy Blue */
header {
    background-color: #003F5C !important;
    border-bottom: 3px solid #366E8A;
}

/* Navigation links */
nav a {
    color: white !important;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}

/* Hover effects */
nav a:hover {
    background-color: #366E8A !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile menu */
#mobileMenu {
    background-color: #003F5C !important;
    border-top: 3px solid #366E8A;
}

#mobileMenu a {
    color: white !important;
    display: block;
    padding: 14px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#mobileMenu a:hover {
    background-color: #366E8A !important;
    padding-left: 24px;
}

/* Logo text */
header .brand-1 {
    color: white !important;
}

/* Get in touch button */
header a[href*="contact"] {
    background-color: white !important;
    color: #003F5C !important;
    border: 2px solid white;
    font-weight: 600;
    transition: all 0.3s ease;
}

header a[href*="contact"]:hover {
    background-color: #366E8A !important;
    color: white !important;
    border-color: #366E8A;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 3D Card Flip styles */
.card-container {
    perspective: 1000px;
}

.card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    text-align: center;
}

.card-front {
    background-color: white;
    z-index: 2;
}

.card-back {
    background-color: var(--brand-1);
    color: white;
    transform: rotateY(180deg);
    z-index: 1;
}

/* Hide icon on card-back for readability */
.card-back svg {
    display: none;
}

/* Flip on hover for desktop */
.card-container:hover .card {
    transform: rotateY(180deg);
}

/* Flip on click for mobile */
.card.flipped {
    transform: rotateY(180deg);
}

/* Services tabbed content styles */
.service-tab {
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-tab.active {
    border-bottom: 4px solid var(--brand-2);
    color: var(--brand-2);
    font-weight: 600;
}

.service-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.service-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Padlet embed iframe styles */
.padlet-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.padlet-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-image-container {
    width: 100%;
    padding-top: 66.66%; /* 3:2 Aspect Ratio */
    position: relative;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

/* Partners section styles */
.partner-logo {
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.8;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Marquee styles */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.partner-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.partner-logo-item img {
    transition: transform 0.3s ease;
}

.partner-logo-item:hover img {
    transform: scale(1.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Enhanced mobile menu styles */
#mobileMenu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#mobileMenu:not(.hidden) {
    max-height: 500px;
}

#mobileMenu.active {
    transform: translateY(0);
    opacity: 1;
}

/* Ensure proper z-index for mobile menu */
header {
    z-index: 1000;
}

#mobileMenu {
    z-index: 999;
}