/* custom.css */

/* Global Font Enforcement */
html, body, button, input, select, textarea {
    font-family: 'Noto Serif', serif !important;
}


/* Define CSS Variables */
:root {
  --primary: #1e3a5f;
  --accent: #f97316;
}

html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideDown {
    animation: slideDown 0.3s ease-out forwards;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Background Animation */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Typwriter cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Hover Lifter for Cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover-lift:hover .icon-wrapper {
    background-color: var(--accent);
    color: white;
}

/* Marquee for Partners Strip */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

.marquee-content img {
    max-height: 50px;
    margin: 0 30px;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease;
}

.marquee-content img:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* Orientation Specific Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .h-20 { height: 4rem; } /* Reduce top spacer */
    section { padding-top: 4rem !important; padding-bottom: 4rem !important; }
    .hero-content h1 { line-height: 1.1; margin-bottom: 1rem !important; }
    .hero-content p { margin-bottom: 1.5rem !important; font-size: 0.95rem !important; }
    .icon-wrapper { width: 3rem; height: 3rem; margin-bottom: 1rem !important; font-size: 1.25rem !important; }
    h2 { margin-bottom: 0.5rem !important; }
    h3 { font-size: 1.5rem !important; margin-bottom: 1.5rem !important; }
    .py-20 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    .py-12 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
}

#lightbox {
    backdrop-filter: blur(5px);
}

/* Mobile Accordion Animation */
#mobileAboutContent, #mobileServicesContent, #mobileProjectsContent, #mobileBlogContent {
    transition: all 0.3s ease-in-out;
}

#mobileAboutContent:not(.hidden), 
#mobileServicesContent:not(.hidden), 
#mobileProjectsContent:not(.hidden), 
#mobileBlogContent:not(.hidden) {
    animation: slideDown 0.3s ease-out forwards;
}


/* Dropdown Aesthetics */
.group:hover .absolute {
    display: block;
}

/* Mobile Landscape Optimizations */
@media (max-height: 500px) {
    #mobileMenu {
        max-height: 80vh !important;
    }
    #mobileMenu .flex-col {
        padding-bottom: 5rem;
    }
}

/* Custom X (Twitter) Icon for FontAwesome 6.4.0 compatibility */
.fa-x-twitter::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E") no-repeat center / contain;
}
