/* Custom CSS for Pantera Group Website */

/* Smooth transitions for all elements */
* {
    transition: all 0.3s ease;
}

/* Z-index hierarchy to prevent overlaps */
.navbar {
    z-index: 100;
}

.mobile-menu {
    z-index: 110;
}

.hero-content {
    z-index: 30;
}

.scroll-indicator {
    z-index: 1000;
}

.section-content {
    z-index: 10;
}

/* Ensure hero section doesn't overlap with navbar */
#home {
    padding-top: 100px; /* Account for fixed navbar height */
}

/* Prevent scroll indicator from overlapping with content */
.scroll-indicator {
    margin-bottom: 20px;
}

/* Mobile viewport adjustments */
@media (max-width: 768px) {
    #home {
        padding-top: 80px; /* Smaller padding on mobile */
        min-height: 100vh;
    }
    
    .hero-content {
        padding-bottom: 120px; /* More space for scroll indicator */
    }
    
    /* Adjust scroll indicator position on mobile */
    .scroll-indicator.bounce {
        bottom: 60px !important;
    }
}

/* Tablet viewport adjustments */
@media (max-width: 1024px) {
    #home {
        padding-top: 90px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    #home {
        padding-top: 70px;
    }
    
    .hero-content {
        padding-bottom: 140px;
    }
    
    /* Ensure statistics don't overlap */
    .hero-stats {
        margin-top: 2rem;
        padding-top: 2rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #2d3748;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4a5568;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* Navigation styles */
#navbar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: linear-gradient(to right, #6D6E72, #8A8B8F);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero section animations */
.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out 0.2s forwards;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out 0.4s forwards;
}

.hero-cta {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out 0.6s forwards;
}

/* Section animations */
.section-title {
    opacity: 0;
    transform: translateY(50px);
}

.section-text {
    opacity: 0;
    transform: translateY(30px);
}

.section-title.animate {
    animation: fadeUp 0.8s ease-out forwards;
}

.section-text.animate {
    animation: fadeUp 0.8s ease-out 0.2s forwards;
}

/* Company section animations */
.company-section {
    opacity: 0;
    transform: translateY(50px);
}

.company-section.animate {
    animation: fadeUp 0.8s ease-out forwards;
}

.company-content {
    opacity: 0;
    transform: translateX(-50px);
}

.company-visual {
    opacity: 0;
    transform: translateX(50px);
}

.company-content.animate {
    animation: slideInLeft 0.8s ease-out forwards;
}

.company-visual.animate {
    animation: slideInRight 0.8s ease-out 0.2s forwards;
}

/* Company card hover effects */
.company-section:hover .company-visual > div {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.dark .company-section:hover .company-visual > div {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Icon animations */
.company-icon {
    transform: scale(0);
}

.company-icon.animate {
    animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.4s forwards;
}

/* Button hover effects */
button, .button {
    position: relative;
    overflow: hidden;
}

button::before, .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover::before, .button:hover::before {
    left: 100%;
}

/* Footer animations */
footer {
    opacity: 0;
    transform: translateY(50px);
}

footer.animate {
    animation: fadeUp 0.8s ease-out forwards;
}

/* Mobile menu animations */
#mobile-menu {
    position: relative;
    z-index: 110;
    transition: all 0.3s ease;
    display: none; /* Initially hidden */
}

#mobile-menu.show {
    display: block !important;
}

#mobile-menu .absolute {
    min-height: auto;
    max-height: none;
    z-index: 110;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

#mobile-menu.show .absolute {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #6D6E72, #8A8B8F);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
    transform: scaleY(1);
}

.mobile-nav-link:hover {
    background-color: rgba(107, 114, 128, 0.1);
    transform: translateX(8px);
}

/* Ensure mobile menu is hidden on larger screens */
@media (min-width: 1024px) {
    #mobile-menu {
        display: none !important;
    }
}

/* Enhanced mobile menu backdrop */
#mobile-menu.show::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Custom keyframe animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

/* Loading animations */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Parallax effect */
.parallax {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

/* Responsive design enhancements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .company-content,
    .company-visual {
        transform: none;
    }
    
    .company-content.animate,
    .company-visual.animate {
        animation: fadeUp 0.8s ease-out forwards;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .company-visual > div {
        height: 200px;
    }
}

/* Performance optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

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

/* Focus styles for better accessibility */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Enhanced Navbar Styling */
#navbar {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 0;
    will-change: transform;
}

/* Navbar logo hover effect */
#navbar .w-10.h-10 {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#navbar .w-10.h-10:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Enhanced navigation link effects */
.nav-link {
    position: relative;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6D6E72, #8A8B8F);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(109, 110, 114, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-link:hover::after {
    width: 200px;
    height: 200px;
}

/* Active navigation state */
.nav-link.active {
    color: #8A8B8F;
    font-weight: 600;
}

/* Theme toggle enhancements */
#theme-toggle {
    position: relative;
    overflow: hidden;
}

#theme-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(109, 110, 114, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

#theme-toggle:hover::before {
    width: 100px;
    height: 100px;
}

/* Scroll progress indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6D6E72, #8A8B8F, #A5A6AA);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.1s ease-out;
    z-index: 51;
}

/* Additional navbar animations */
@keyframes navbar-slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes navbar-fade-in {
    from {
        backdrop-filter: blur(0px);
        background: rgba(17, 24, 39, 0);
    }
    to {
        backdrop-filter: blur(20px);
        background: rgba(17, 24, 39, 0.8);
    }
}

/* Navbar entrance animation */
#navbar.loaded {
    animation: navbar-slide-down 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo text gradient animation */
#navbar a[href="#home"] {
    background-size: 200% 100%;
    animation: gradient-shift 3s ease-in-out infinite;
}

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

/* Enhanced Footer Styling */
footer {
    position: relative;
    background: linear-gradient(135deg, #000 0%, #111827 50%, #000 100%);
}

/* Footer social media hover effects */
footer .group .w-12 {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

footer .group:hover .w-12 {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Footer company links enhanced */
footer a[href^="#"] {
    position: relative;
}

footer a[href^="#"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

footer a[href^="#"]:hover::after {
    width: 100%;
}

/* Back to top button enhancements */
#back-to-top {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#back-to-top:hover {
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
    transform: scale(1.1) rotate(-5deg);
}

#back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

/* Footer animation entrance */
footer .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

footer .animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Footer text gradients */
footer h2 span {
    background-size: 300% 100%;
    animation: gradient-flow 4s ease-in-out infinite;
}

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

/* Contact info hover states */
footer .space-y-3 > div:hover {
    transform: translateX(8px);
}

/* Enhanced mobile responsiveness for footer */
@media (max-width: 768px) {
    footer .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    footer .lg\\:col-span-2 {
        order: 1;
    }
    
    footer .text-center h2 {
        font-size: 2.5rem;
    }
}

/* ===== STYLES MOVED FROM HTML ===== */

/* Button Focus Styles */
button:focus,
button:active {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.5) !important;
}

/* Learn More Button Focus States */
.learn-more-btn:focus,
.learn-more-btn:active {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.5) !important;
}

/* Scroll Indicator Styles */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
    pointer-events: none;
}

.scroll-progress {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, #6D6E72, #8A8B8F);
}

/* Section-specific scroll indicator colors */
.scroll-progress.hero {
    background: linear-gradient(90deg, #6D6E72, #8A8B8F);
}

.scroll-progress.about {
    background: linear-gradient(90deg, #6D6E72, #8A8B8F);
}

.scroll-progress.fortress {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.scroll-progress.automagna {
    background: linear-gradient(90deg, #ea580c, #dc2626);
}

.scroll-progress.media {
    background: linear-gradient(90deg, #9333ea, #ec4899);
}

.scroll-progress.medical {
    background: linear-gradient(90deg, #059669, #047857);
}

.scroll-progress.pasuru {
    background: linear-gradient(90deg, #dc2626, #ea580c);
}

.scroll-progress.zenith {
    background: linear-gradient(90deg, #4f46e5, #2563eb);
}

.scroll-progress.repair {
    background: linear-gradient(90deg, #ca8a04, #d97706);
}

/* Common Gradient Backgrounds */
.nav-gradient-bg {
    background: linear-gradient(to right, rgba(109, 110, 114, 0.1), rgba(138, 139, 143, 0.1));
}

.nav-gradient-bg-hover {
    background: linear-gradient(to right, rgba(109, 110, 114, 0.2), rgba(138, 139, 143, 0.2));
}

.hero-logo-bg {
    background: linear-gradient(135deg, #6D6E72, #5A5B5F);
}

.hero-title-gradient {
    background: linear-gradient(to right, #6D6E72, #8A8B8F, #A5A6AA);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-cta-bg {
    background: linear-gradient(to right, #6D6E72, #5A5B5F);
    box-shadow: 0 25px 50px -12px rgba(109, 110, 114, 0.25);
}

.hero-cta-bg:hover {
    background: linear-gradient(to right, #5A5B5F, #4A4B4F);
}

/* Floating Orb Backgrounds */
.floating-orb-1 {
    background: linear-gradient(135deg, rgba(109, 110, 114, 0.3), rgba(138, 139, 143, 0.2));
}

.floating-orb-2 {
    animation-delay: 2s;
    background: linear-gradient(135deg, rgba(109, 110, 114, 0.25), rgba(90, 91, 95, 0.15));
}

.floating-orb-3 {
    animation-delay: 4s;
    background: linear-gradient(135deg, rgba(109, 110, 114, 0.35), rgba(80, 81, 85, 0.25));
}

/* Geometric Shape Borders */
.geometric-border-1 {
    border-color: rgba(109, 110, 114, 0.2);
}

.geometric-border-2 {
    animation-delay: 1s;
    border-color: rgba(109, 110, 114, 0.25);
}

.geometric-bg {
    animation-delay: 3s;
    background: linear-gradient(135deg, rgba(109, 110, 114, 0.1), rgba(138, 139, 143, 0.1));
}

/* Animated Line Backgrounds */
.animated-line-horizontal {
    background: linear-gradient(to right, transparent, rgba(109, 110, 114, 0.3), transparent);
}

.animated-line-vertical {
    animation-delay: 2s;
    background: linear-gradient(to bottom, transparent, rgba(109, 110, 114, 0.3), transparent);
}

/* Dotted Pattern Background */
.dotted-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(109, 110, 114, 0.3) 1px, transparent 0), radial-gradient(circle at 30px 30px, rgba(138, 139, 143, 0.2) 1px, transparent 0);
    background-size: 60px 60px, 90px 90px;
}

/* Section Background Pattern */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 50px 50px;
}

/* Brand Color Dots */
.brand-dot-1 {
    background-color: #6D6E72;
}

.brand-dot-2 {
    animation-delay: 0.5s;
    background-color: #8A8B8F;
}

.brand-dot-3 {
    animation-delay: 1s;
    background-color: #A5A6AA;
}

/* Navigation Border Gradient */
.nav-border-gradient {
    background: linear-gradient(to right, transparent, rgba(109, 110, 114, 0.5), transparent);
}

/* High Z-Index Utility */
.z-1000 {
    z-index: 1000;
}

/* Back to Top Button */
.back-to-top-bg {
    background: linear-gradient(135deg, #6D6E72, #5A5B5F);
}

/* Custom Animation Delays and Enhanced Effects */
.animation-delay-100 {
    animation-delay: 0.1s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

.animation-delay-500 {
    animation-delay: 0.5s;
}

.animation-delay-700 {
    animation-delay: 0.7s;
}

/* Enhanced Shadow Effects */
.shadow-4xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* 3D Transform Styles */
.perspective-1000 {
    perspective: 1000px;
}

/* Logo Magnetic Effect */
.logo-magnetic {
    transition: transform 0.2s ease-out;
    transform-style: preserve-3d;
}

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

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

/* Glow Pulse Animation */
@keyframes glow-pulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.8), 0 0 60px rgba(147, 51, 234, 0.4);
        transform: scale(1.05);
    }
}

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

/* Shimmer Effect Enhancement */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.shimmer:hover::before {
    left: 100%;
}

/* Interactive Logo Styles */
.hero-logo-interactive {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-logo-interactive:hover {
    transform: translateY(-5px) scale(1.05);
}

.hero-logo-interactive:active {
    transform: translateY(0) scale(0.95);
}

/* Particle Animation */
@keyframes particle-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    33% { 
        transform: translateY(-15px) rotate(120deg);
        opacity: 0.7;
    }
    66% { 
        transform: translateY(-5px) rotate(240deg);
        opacity: 0.4;
    }
}

.particle-float {
    animation: particle-float 4s ease-in-out infinite;
} 