/**
Theme Name: Pinaak
Theme URI: https://pinaak.com
Author: Team Pinaak
Author URI: https://pinaak.com

*/
/* Custom Animations */

/* Blob Animation */
/* This animation creates a blob-like effect that can be applied to elements */
@tailwind base;
@tailwind components;
@tailwind utilities;

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #374151;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatDelayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    opacity: 0;
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatDelayed 8s ease-in-out infinite;
    animation-delay: 2s;
}

/* Smooth Transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Hover Effects */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .text-7xl {
        font-size: 3.5rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading State */
.loading {
    opacity: 0;
    transform: translateY(20px);
}

.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* ==========================================================================
   Header Styles - Optimized and Fixed
   ========================================================================== */

/* Base styles */
:root {
    --yellow-primary: #fbbf24;
    --yellow-light: #fcd34d;
    --yellow-dark: #f59e0b;
    --beige-primary: #ede8d0;
    --beige-dark: #c4c0ab;
    --text-color: #374151;
    --text-light: #f9fafb;
    --text-dark: #1f2937;
    --border-color: rgba(75, 85, 99, 0.3);
    --background-color: #ffffff;
    --background-dark: #1f2937;
    --transition-duration: 0.3s;
    --transition-timing: ease;
    --transition-delay: 0s;
    --transition-speed: 0.3s;

}

/* Skip link accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 8px 16px;
    background: var(--yellow-primary);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* Announcement bar */
.announcement-bar.announcement-hidden {
    transform: translateY(-100%);
}

/* Header */
.site-header {
    will-change: transform, background-color;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

/* Navigation */
.main-navigation .menu-item-has-children:hover .sub-menu,
.main-navigation .menu-item-has-children:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow-primary);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.current-menu-item .nav-link::after {
    width: 100%;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    opacity: 0;
}

.mobile-menu.active {
    max-height: 100vh;
    opacity: 1;
}

.mobile-menu.hidden {
    display: none;
}

/* Mobile menu links */
.mobile-nav-menu a {
    display: block;
    padding: 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu .current-menu-item a {
    background-color: rgba(251, 191, 36, 0.1);
    color: var(--yellow-primary);
}

/* Hamburger animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Search overlay */
.search-overlay {
    transition: all var(--transition-speed) ease;
    transform: translateY(-20px);
    opacity: 0;
}

.search-overlay.active {
    transform: translateY(0);
    opacity: 1;
}

.search-overlay.hidden {
    display: none;
}

/* Buttons and interactive elements */
.search-toggle,
.mobile-menu-toggle,
.cta-button {
    transition: all var(--transition-speed) ease;
    border: none;
    cursor: pointer;
}

.search-toggle:hover,
.mobile-menu-toggle:hover {
    transform: scale(1.05);
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(251, 191, 36, 0.4);
}

/* Focus states for accessibility */
.nav-link:focus,
.cta-button:focus,
.search-toggle:focus,
.mobile-menu-toggle:focus,
#language-select:focus {
    outline: 2px solid var(--yellow-primary);
    outline-offset: 2px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .main-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin-left: 1rem;
    }
}

@media (max-width: 768px) {
    .announcement-bar {
        padding: 0.5rem 0;
        font-size: 0.875rem;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .site-description {
        display: none;
    }
}

@media (max-width: 640px) {
    .announcement-bar .flex {
        flex-direction: column;
        gap: 0.5rem;
        padding-right: 2rem;
    }
    
    .announcement-bar #close-announcement {
        top: 0.5rem;
        transform: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .site-header {
        background: rgba(17, 24, 39, 0.95);
        border-color: rgba(75, 85, 99, 0.3);
    }
    
    .site-title,
    .nav-link,
    .mobile-nav-menu a {
        color: #f9fafb;
    }
    
    .mobile-menu,
    .search-overlay {
        background: #1f2937;
        border-color: rgba(75, 85, 99, 0.3);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    .announcement-bar,
    .header-actions,
    .mobile-menu-toggle,
    .search-overlay {
        display: none !important;
    }
    
    .site-header {
        position: static;
        box-shadow: none;
        border-bottom: 1px solid #000;
        background: white !important;
    }
}

/* Your custom styles */
.hero-bg {
    background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 25%, #fef3c7 50%, #ede8d0 75%, #c4c0ab 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2) { animation-delay: -2s; }
.floating-element:nth-child(3) { animation-delay: -4s; }

.morphing-blob {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
}

.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
}

.glass-morphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-border {
    position: relative;
    background: linear-gradient(45deg, #ede8d0, #c4c0ab, #a29e8e);
    background-size: 200% 200%;
    animation: gradientBorder 3s ease infinite;
}

.magnetic-hover {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.parallax-element {
    will-change: transform;
}

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.8), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-text {
    color: #f59e0b;
    font-size: 2rem;
    font-weight: bold;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    z-index: 9999;
    transition: width 0.3s ease;
}

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(10deg) translateZ(20px);
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #f59e0b;
    border-radius: 50%;
    opacity: 0.7;
    animation: particleFloat 10s linear infinite;
}

/* Responsive Optimizations */
@media (max-width: 768px) {
    .card-3d:hover {
        transform: none;
    }
    
    .magnetic-hover:hover {
        transform: translateY(-5px);
    }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* ==========================================================================
   End of Header Styles
   ========================================================================== */
