﻿/* Custom styles for the creative agency landing page */

/* Ensure smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom font weights that might not be available in Tailwind */
.font-375 {
    font-weight: 375;
}

.font-450 {
    font-weight: 450;
}

/* Custom line heights for specific text elements */
.leading-117 {
    line-height: 117px;
}

/* Ensure proper focus states for accessibility */
*:focus {
    outline: none;
}

/* Custom hover effects for interactive elements */
.transition-all {
    transition: all 0.3s ease;
}

/* Ensure proper contrast for text over images */
.text-overlay {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #facc15;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #eab308;
}

/* Ensure images load properly */
img {
    max-width: 100%;
    height: auto;
}

.hero-scroll-wrapper h1 {
    font-family: 'Owners TRIALXNarrow XBlack';
    font-weight: 600;
    /* Mobile default */
    line-height: 0.85;
    margin: 0;
    letter-spacing: 0.1px;
    word-wrap: normal;
    overflow-wrap: normal;
    hyphens: none;
    max-width: 100%;
    color: #000;
}

.service-title {
    font-family: 'owners-xwide';
    font-weight: 900;
    font-size: 8vw;
    /* Mobile default */
    line-height: 0.85;
    margin: 0;
}

.card-project .card-title {
    font-family: 'owners-xnarrow';
    font-weight: 600;
    font-size: 8vw;
    /* Mobile default */
    line-height: 0.85;
    margin: 0;
    letter-spacing: 0.1px;
    word-wrap: normal;
    overflow-wrap: normal;
    hyphens: none;
    max-width: 100%;
}

@media (min-width: 768px) {
    .service-title {
        font-size: 60px !important;
        /* Desktop - Force override */
    }
}

/* Custom animation for the hero text */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Ensure proper spacing for mobile devices */
@media (max-width: 640px) {
    .text-responsive {
        font-size: clamp(1rem, 4vw, 2rem);
    }
}

/* Custom styles for the fixed header background */
.header-backdrop {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Ensure proper z-index stacking */
.z-header {
    z-index: 1000;
}

/* Custom styles for the service icons */
.service-icon-svg {
    transition: transform 0.3s ease;
}

.service-icon-svg:hover {
    transform: scale(1.1);
}

/* Custom styles for the portfolio project overlays */
.project-overlay {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.7) 100%);
}

/* Ensure proper aspect ratios for images */
.aspect-portfolio {
    aspect-ratio: 915 / 429;
}

/* Custom styles for the client logos section */
.client-logos {
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.client-logos:hover {
    animation-play-state: paused;
}

/* Custom styles for the footer social icons */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Ensure proper text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Custom styles for the mobile menu button */
.mobile-menu-btn {
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* Ensure proper contrast for accessibility */
.high-contrast {
    filter: contrast(1.2);
}

/* Custom styles for the CTA button */
.cta-button {
    box-shadow: 0 4px 14px 0 rgba(245, 245, 245, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    box-shadow: 0 6px 20px 0 rgba(245, 245, 245, 0.4);
    transform: translateY(-2px);
}

/* Ensure proper loading states */
.loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loaded {
    opacity: 1;
}

/* Custom styles for the hero section background */
.hero-bg {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
}

/* Ensure proper text selection colors */
::selection {
    background-color: #facc15;
    color: #000;
}

::-moz-selection {
    background-color: #facc15;
    color: #000;
}