
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Premium Typography System */
body {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: 64px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 42px;
    font-weight: 500;
}

h3 {
    font-size: 30px;
    font-weight: 500;
}

.subtitle, .nav-link, button, label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

p, .body-text {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.font-display {
    font-family: 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', sans-serif;
}

.font-ui {
    font-family: 'Inter', sans-serif;
}

.font-body {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
}
.custom-navbar .nav-link {
    font-size: 17px;
    font-weight: 500; /* Medium */
    letter-spacing: 0.01em;
}

.btn {
    font-size: 18px;
    font-weight: 600; /* SemiBold */
    padding: 12px 24px;
}
/* Cinematic Experience Section */
.cinematic-card {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.cinematic-card:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .cinematic-section h2 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .cinematic-section p {
        font-size: 1.1rem;
    }
    
    .cinematic-card {
        margin-bottom: 1.5rem;
    }
}

/* Semi-transparent overlay for better readability */
body::before {
content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: -1;
}
/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}
/* Optimized Video Background Styles */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    filter: grayscale(100%) contrast(110%) brightness(1.1);
}
/* Responsive optimizations */
@media (max-width: 1024px) {
    /* Adjust section padding for tablets */
    .section-spacing {
        padding: 3rem 1.5rem;
    }
    
    /* Hero section height */
    .hero-section {
        height: auto;
        min-height: 60vh;
        padding: 4rem 1rem;
    }
}

@media (max-width: 768px) {
    /* Video background optimization */
.video-background video {
    width: auto;
    height: 100%;
    min-width: 100%;
    left: 50%;
    transform: translateX(-50%);
    filter: grayscale(100%) contrast(110%) brightness(1.1);
}
/* Portfolio section height adjustment */
    #portfolio .grid > a {
        height: 80vw;
        max-height: 300px;
    }
    
    /* Font size adjustments */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Small phone optimizations */
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Form inputs */
    input, textarea, select {
        font-size: 1rem;
    }
}

/* TV and ultra-wide screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
        margin: 0 auto;
    }
    
    /* Increase font sizes for better readability */
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    p {
        font-size: 1.2rem;
        line-height: 1.8;
    }
    
    /* Button sizes */
    .btn {
        padding: 1.25rem 2.5rem;
        font-size: 1.2rem;
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    /* Fix for sticky hover on iOS */
    .nav-link:hover {
        opacity: 1;
    }
    
    /* Fix for 100vh issue on iOS */
    .full-height {
        height: -webkit-fill-available;
    }
}

/* Android specific fixes */
@supports (-webkit-tap-highlight-color: transparent) {
    /* Remove tap highlight */
    button, a {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Older browser fallbacks */
@supports not (backdrop-filter: blur(10px)) {
    :host {
        background-color: rgba(255, 255, 255, 0.98);
    }
}
/* Performance optimizations for portfolio video */
#portfolio video {
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0,0,0);
    filter: grayscale(100%) contrast(110%) brightness(1.1);
}
/* Fallback for browsers that don't support video */
.no-video #portfolio video {
    display: none;
}

.no-video #portfolio img {
    display: block;
}
/* Performance optimizations */
.video-background {
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0,0,0);
}

/* Fallback for browsers that don't support video */
.no-video .video-background video {
    display: none;
}

.no-video .video-background img {
    display: block;
}
/* Fallback for browsers that don't support video */
.no-video .video-background video {
    display: none;
}
.no-video .video-background img {
    display: block;
}
/* Image hover effects */
.img-scale {
    transition: transform 0.5s ease;
}

.img-scale:hover {
    transform: scale(1.03);
}
/* WhatsApp button styles */
.whatsapp-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    padding: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-fixed:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Custom button styles */
.btn-outline {
    @apply border-2 border-gray-800 text-gray-800 hover:bg-gray-800 hover:text-white transition duration-300;
}

.btn-outline-white {
    @apply border-2 border-white text-white hover:bg-white hover:text-gray-900 transition duration-300;
}

.btn-outline-blue {
    @apply border-2 border-[#5b95ef] text-[#5b95ef] hover:bg-[#5b95ef] hover:text-white transition duration-300;
}
/* Section spacing */
.section-spacing {
    @apply py-20 px-4;
}
/* Experience Section */
.experience-item {
    @apply text-center p-6 rounded-lg bg-white/10 backdrop-blur-sm border border-white/20;
}

.experience-item:hover {
    @apply border-white/40 transform scale-105;
}

.experience-number {
    @apply text-5xl font-playfair mb-4;
}

.experience-title {
    @apply text-xl mb-2;
}

/* Strategic Form CTA */
.strategic-form-cta {
    @apply py-20 px-4 bg-gray-50;
}
.strategic-form-card {
    @apply bg-white p-8 rounded-lg shadow-md h-full flex flex-col;
    border-top: 4px solid #5b95ef;
}
.strategic-form-card h3 {
    @apply font-playfair text-2xl mb-4;
}

.strategic-form-card p {
    @apply mb-6 flex-grow;
}
/* Portfolio Project Cards */
.project-card {
    @apply transition-transform duration-300 hover:transform hover:scale-105;
}

.project-card a {
    @apply block h-full rounded-lg shadow-lg overflow-hidden;
}

.project-card img {
    @apply transition-all duration-300;
}

.project-card:hover img {
    @apply opacity-90;
}

.project-card h3 {
    @apply transition-colors duration-300;
}

.project-card:hover h3 {
    @apply text-[#5b95ef];
}

/* Portfolio Section Text */
#portfolio h2 {
    @apply text-white font-bold;
}

#portfolio p {
    @apply text-white/90;
}
/* Enhanced Lightbox Styles */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-img {
    max-height: 80vh;
    max-width: 90vw;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.lightbox-nav button {
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s;
    padding: 0 20px;
}

.lightbox-nav button:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Touch-friendly controls for mobile */
@media (max-width: 768px) {
    .lightbox-img {
        max-height: 60vh;
    }
    
    .lightbox-nav button {
        font-size: 30px;
        padding: 0 10px;
    }
    
    .close {
        font-size: 30px;
        top: 15px;
        right: 15px;
    }
    
    .lightbox-caption {
        font-size: 0.9rem;
        max-width: 90%;
    }
}
/* Scroll animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Portfolio project cards */
.portfolio-project-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.portfolio-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #5b95ef;
}

.portfolio-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5b95ef;
    color: white;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Project gallery hover effects */
.project-gallery img {
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: zoom-in;
    filter: grayscale(100%) contrast(110%);
}
.project-gallery img:hover {
    opacity: 0.9;
    transform: scale(1.01);
    filter: grayscale(100%) contrast(110%) brightness(1.1);
}
