/* Custom Styles for Parkar Media - Enhanced with Animations */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Karla', sans-serif;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar with Gradient */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f1f1f1 0%, #e0e0e0 100%);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0F7A85 0%, #FF7A1F 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0a5a62 0%, #e66d1a 100%);
}

/* Utility Classes */
.ml-13 {
    margin-left: 3.25rem;
}

/* ========== LOGO ANIMATIONS ========== */

/* Logo icon styling */
nav a img[alt="Parkar Media Icon"] {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

/* Logo text styling */
nav a span {
    font-family: 'Karla', sans-serif;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

/* Hover effects */
nav a:hover img[alt="Parkar Media Icon"] {
    transform: scale(1.1) rotate(6deg);
    filter: drop-shadow(0 4px 8px rgba(15, 122, 133, 0.3));
}

nav a:hover span {
    color: #0F7A85;
    letter-spacing: 0.01em;
}

/* Ensure logo container has proper spacing */
nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* 12px gap between icon and text */
    padding: 0.5rem 0;
}

/* Mobile optimization */
@media (max-width: 640px) {
    nav a span {
        font-size: 1.125rem; /* 18px on mobile */
    }
}

/* Desktop optimization */
@media (min-width: 768px) {
    nav a span {
        font-size: 1.5rem; /* 24px on desktop */
    }
}

/* ========== WOW ANIMATIONS ========== */

/* Parallax scroll effect */
@keyframes parallax-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Glitch text effect */
@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

/* Typewriter effect */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #0F7A85;
    }
}

/* Liquid morphing effect */
@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    50% {
        border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
    }
    75% {
        border-radius: 60% 40% 60% 40% / 70% 30% 50% 60%;
    }
}

/* Magnetic cursor effect */
.magnetic-button {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.magnetic-button:hover {
    transform: scale(1.1) translateZ(0);
    box-shadow: 0 20px 40px rgba(15, 122, 133, 0.3);
}

/* Particle explosion effect */
@keyframes particle-explode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Rainbow text animation */
@keyframes rainbow {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.text-rainbow {
    background: linear-gradient(90deg, #0F7A85, #FF7A1F, #0F7A85, #FF7A1F);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 3s linear infinite;
}

/* Spotlight effect */
@keyframes spotlight {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.spotlight-effect {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: spotlight 3s infinite;
}

/* Perspective card flip */
@keyframes card-flip {
    0% {
        transform: perspective(1000px) rotateY(0deg);
    }
    100% {
        transform: perspective(1000px) rotateY(180deg);
    }
}

/* Neon glow pulse */
@keyframes neon-pulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(15, 122, 133, 0.8),
            0 0 20px rgba(15, 122, 133, 0.6),
            0 0 30px rgba(15, 122, 133, 0.4),
            0 0 40px rgba(255, 122, 31, 0.6);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(15, 122, 133, 1),
            0 0 30px rgba(15, 122, 133, 0.8),
            0 0 40px rgba(15, 122, 133, 0.6),
            0 0 50px rgba(255, 122, 31, 0.8),
            0 0 60px rgba(255, 122, 31, 0.4);
    }
}

.neon-text {
    animation: neon-pulse 2s ease-in-out infinite;
}

/* Liquid button effect */
@keyframes liquid-button {
    0% {
        box-shadow: 
            inset 0 0 0 2px rgba(15, 122, 133, 0.5),
            0 5px 15px rgba(15, 122, 133, 0.3);
    }
    50% {
        box-shadow: 
            inset 0 0 0 5px rgba(255, 122, 31, 0.8),
            0 10px 30px rgba(255, 122, 31, 0.5);
    }
    100% {
        box-shadow: 
            inset 0 0 0 2px rgba(15, 122, 133, 0.5),
            0 5px 15px rgba(15, 122, 133, 0.3);
    }
}

/* Elastic bounce */
@keyframes elastic-bounce {
    0%, 100% {
        transform: scale(1, 1);
    }
    25% {
        transform: scale(1.1, 0.9);
    }
    50% {
        transform: scale(0.9, 1.1);
    }
    75% {
        transform: scale(1.05, 0.95);
    }
}

/* Wave animation */
@keyframes wave {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    75% {
        transform: translateY(10px) rotate(-5deg);
    }
}

.wave-animation {
    animation: wave 3s ease-in-out infinite;
}

/* Reveal animation */
@keyframes reveal-left {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes reveal-right {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-reveal-left {
    animation: reveal-left 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.animate-reveal-right {
    animation: reveal-right 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Infinite rotate with pause */
@keyframes rotate-pause {
    0%, 10%, 90%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(360deg);
    }
}

/* 3D flip on scroll */
@keyframes flip-3d {
    from {
        transform: perspective(1000px) rotateX(-90deg);
        opacity: 0;
    }
    to {
        transform: perspective(1000px) rotateX(0deg);
        opacity: 1;
    }
}

.animate-flip-3d {
    animation: flip-3d 1s ease-out;
}

/* ========== ADVANCED ANIMATIONS ========== */

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(135deg, #0F7A85 0%, #FF7A1F 50%, #0F7A85 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Slide Up Animation with Fade */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-slide-up {
    opacity: 0;
    animation: slide-up 0.8s ease forwards;
}

/* Fade In Up Animation */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fade-in-up 0.8s ease forwards;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Bounce In Animation */
@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.animate-bounce-in {
    animation: bounce-in 0.6s ease forwards;
}

/* Rotate In Animation */
@keyframes rotate-in {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.animate-rotate-in {
    animation: rotate-in 0.8s ease forwards;
}

/* Shine Effect */
@keyframes shine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.text-shine {
    background: linear-gradient(90deg, 
        #0F7A85 0%, 
        #ffffff 50%, 
        #FF7A1F 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
}

/* Glitch Effect */
@keyframes glitch {
    0% {
        text-shadow: 2px 2px #0F7A85, -2px -2px #FF7A1F;
    }
    25% {
        text-shadow: -2px -2px #0F7A85, 2px 2px #FF7A1F;
    }
    50% {
        text-shadow: 2px -2px #0F7A85, -2px 2px #FF7A1F;
    }
    75% {
        text-shadow: -2px 2px #0F7A85, 2px -2px #FF7A1F;
    }
    100% {
        text-shadow: 2px 2px #0F7A85, -2px -2px #FF7A1F;
    }
}

/* Pulse Glow Animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(15, 122, 133, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 122, 31, 0.6);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Typewriter Effect */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.typewriter {
    overflow: hidden;
    border-right: 3px solid #FF7A1F;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

/* Scale In Animation */
@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scale-in 0.5s ease forwards;
}

/* Slide In from Left */
@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-left {
    animation: slide-in-left 0.8s ease forwards;
}

/* Slide In from Right */
@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-right {
    animation: slide-in-right 0.8s ease forwards;
}

/* Background Gradient Animation */
@keyframes gradient-bg {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient-bg {
    background: linear-gradient(-45deg, #0F7A85, #1a9aa8, #FF7A1F, #ff8f44);
    background-size: 400% 400%;
    animation: gradient-bg 15s ease infinite;
}

/* Wiggle Animation */
@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg);
    }
}

.animate-wiggle {
    animation: wiggle 1s ease infinite;
}

/* ========== VIDEO & IMAGE EFFECTS ========== */

/* Video Hover Effects with 3D Transform */
video {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.group:hover video {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 20px 60px rgba(15, 122, 133, 0.3);
}

/* Image Zoom Effect */
.zoom-on-hover {
    overflow: hidden;
    position: relative;
}

.zoom-on-hover img {
    transition: transform 0.6s ease;
}

.zoom-on-hover:hover img {
    transform: scale(1.15) rotate(2deg);
}

/* ========== BUTTON & LINK EFFECTS ========== */

/* Button Hover Effects */
a, button {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-hover-lift {
    transition: all 0.3s ease;
}

.btn-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 122, 133, 0.3);
}

/* Card Hover Effects with 3D */
.card-3d {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.hover\:shadow-2xl {
    transition: box-shadow 0.3s ease;
}

/* ========== NAVIGATION EFFECTS ========== */

/* Navigation Transition with Blur */
nav {
    transition: all 0.3s ease;
}

nav a {
    position: relative;
}

/* Underline Effect on Hover */
nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0F7A85, #FF7A1F);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ========== FORM EFFECTS ========== */

/* Form Input Focus States with Glow */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 122, 133, 0.1), 
                0 0 20px rgba(15, 122, 133, 0.2);
    transform: scale(1.02);
}

/* ========== LOADING & TRANSITION EFFECTS ========== */

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Video Container */
.aspect-video {
    position: relative;
    overflow: hidden;
}

.aspect-video video,
.aspect-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom Border Gradient */
.border-gradient {
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.border-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #0F7A85, #FF7A1F);
}

/* WhatsApp Button Enhanced Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

.fixed .group a {
    animation: pulse 2s ease-in-out infinite;
}

/* Hero Section Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: slideInUp 0.8s ease forwards;
}

/* Trust Chips Animation with Stagger */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.trust-chip {
    animation: fadeInScale 0.5s ease forwards;
}

/* Form Success Message */
#success-message {
    animation: slideInUp 0.5s ease forwards;
}

/* Mobile Menu Slide Animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Text Reveal Animation */
@keyframes text-reveal {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

.text-reveal {
    animation: text-reveal 1s ease forwards;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Reduce 3D effects on mobile */
    .card-3d:hover {
        transform: translateY(-5px);
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    nav,
    footer,
    .fixed {
        display: none;
    }
}

/* ========== ACCESSIBILITY ========== */
a:focus,
button:focus {
    outline: 3px solid #0F7A85;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(15, 122, 133, 0.2);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000;
    }
    
    .text-gray-500 {
        color: #333;
    }
}

/* ========== STAGGER ANIMATION DELAYS ========== */
.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.2s; opacity: 0; }
.stagger-3 { animation-delay: 0.3s; opacity: 0; }
.stagger-4 { animation-delay: 0.4s; opacity: 0; }
.stagger-5 { animation-delay: 0.5s; opacity: 0; }
.stagger-6 { animation-delay: 0.6s; opacity: 0; }
.stagger-7 { animation-delay: 0.7s; opacity: 0; }
.stagger-8 { animation-delay: 0.8s; opacity: 0; }

/* Advanced 3D shadow for cards */
.shadow-3xl {
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.3);
}

/* Smooth hover shadow transition */
.hover\:shadow-3xl:hover {
    box-shadow: 0 45px 90px -20px rgba(15, 122, 133, 0.4);
}