/* Custom styles for Logic | 01 website - Modern Tech Design */

/* Import modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Logic | 01 Logo Styles */
.logic01-logo {
    display: flex;
    align-items: center;
}

.logo-symbol {
    position: relative;
    width: 32px;
    height: 24px;
}

.logo-circle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #06b6d4;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.circle-1 {
    top: 8px;
    left: 0px;
}

.circle-2 {
    top: 0px;
    left: 12px;
}

.circle-3 {
    top: 16px;
    left: 12px;
}

.circle-4 {
    top: 8px;
    left: 24px;
}

.logo-connection {
    position: absolute;
    background: #1e293b;
    transition: all 0.3s ease;
}

.conn-1 {
    top: 10px;
    left: 7px;
    width: 6px;
    height: 2px;
}

.conn-2 {
    top: 12px;
    left: 7px;
    width: 6px;
    height: 2px;
}

.conn-3 {
    top: 10px;
    left: 19px;
    width: 6px;
    height: 2px;
}

.conn-4 {
    top: 12px;
    left: 19px;
    width: 6px;
    height: 2px;
}

.conn-5 {
    top: 7px;
    left: 14px;
    width: 2px;
    height: 10px;
}

/* Logo hover effects */
.logic01-logo:hover .logo-circle {
    background: #10b981;
    transform: scale(1.2);
}

.logic01-logo:hover .logo-connection {
    background: #06b6d4;
}

/* Hero Circle Animation - YAYA Style */
.hero-circle-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-circle-animation * {
    pointer-events: none !important;
}

.animated-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: circleAppear 8s ease-out forwards;
    pointer-events: none !important;
    user-select: none;
}

.animated-circle:hover {
    background: inherit !important;
    transform: inherit !important;
    opacity: inherit !important;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: -10%;
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.3) 0%, 
        rgba(16, 185, 129, 0.2) 50%, 
        rgba(59, 130, 246, 0.1) 100%) !important;
    animation-delay: 0.5s;
}

.circle-1:hover {
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.3) 0%, 
        rgba(16, 185, 129, 0.2) 50%, 
        rgba(59, 130, 246, 0.1) 100%) !important;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: 20%;
    left: -5%;
    background: linear-gradient(225deg, 
        rgba(16, 185, 129, 0.25) 0%, 
        rgba(6, 182, 212, 0.15) 50%, 
        rgba(59, 130, 246, 0.1) 100%) !important;
    animation-delay: 1.5s;
}

.circle-2:hover {
    background: linear-gradient(225deg, 
        rgba(16, 185, 129, 0.25) 0%, 
        rgba(6, 182, 212, 0.15) 50%, 
        rgba(59, 130, 246, 0.1) 100%) !important;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(315deg, 
        rgba(59, 130, 246, 0.2) 0%, 
        rgba(6, 182, 212, 0.15) 50%, 
        rgba(16, 185, 129, 0.1) 100%) !important;
    animation-delay: 2.5s;
}

.circle-3:hover {
    background: linear-gradient(315deg, 
        rgba(59, 130, 246, 0.2) 0%, 
        rgba(6, 182, 212, 0.15) 50%, 
        rgba(16, 185, 129, 0.1) 100%) !important;
    transform: translate(-50%, -50%) !important;
}

@keyframes circleAppear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    20% {
        opacity: 0.8;
        transform: scale(1.2);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
    60% {
        opacity: 0.9;
        transform: scale(1.05);
    }
    80% {
        opacity: 0.7;
        transform: scale(0.98);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Responsive adjustments for circles */
@media (max-width: 768px) {
    .circle-1 {
        width: 250px;
        height: 250px;
        right: -20%;
    }
    
    .circle-2 {
        width: 200px;
        height: 200px;
        left: -15%;
    }
    
    .circle-3 {
        width: 150px;
        height: 150px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, sans-serif;
}

nav {
    transition: background-color 200ms ease, box-shadow 200ms ease, backdrop-filter 200ms ease;
}

nav.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Tech Grid Background */
.tech-grid {
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Glowing effects */
.glow-tech {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.glow-security {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* Water Animation Styles */
.water-container {
    position: relative;
    backdrop-filter: blur(10px);
}

/* Central title protection zone */
.water-container::after {
    content: '';
    position: absolute;
    top: 35%;
    left: 25%;
    width: 50%;
    height: 30%;
    z-index: 10;
    pointer-events: none;
}

.water-flow {
    background: linear-gradient(45deg, 
        rgba(6, 182, 212, 0.1) 0%, 
        rgba(16, 185, 129, 0.1) 50%, 
        rgba(6, 182, 212, 0.1) 100%);
}

.water-wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: wave-flow 8s ease-in-out infinite;
}

.wave-1 {
    top: -50%;
    left: -50%;
    animation-delay: 0s;
}

.wave-2 {
    top: -30%;
    left: -70%;
    animation-delay: -2s;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

.wave-3 {
    top: -70%;
    left: -30%;
    animation-delay: -4s;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

@keyframes wave-flow {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(20px, -10px) rotate(90deg) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-10px, 20px) rotate(180deg) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(-20px, -5px) rotate(270deg) scale(1.05);
        opacity: 0.7;
    }
}

/* Data Metrics */
.data-metric {
    position: absolute;
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: data-flow 8s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.metric-1 {
    top: 8%;
    left: 8%;
    animation-delay: 0s;
}

.metric-2 {
    top: 12%;
    right: 8%;
    animation-delay: -1s;
}

.metric-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: -2s;
}

.metric-4 {
    bottom: 15%;
    right: 15%;
    animation-delay: -3s;
}

@keyframes data-flow {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-8px) translateX(5px) scale(1.05);
        opacity: 1;
    }
    50% {
        transform: translateY(-5px) translateX(-8px) scale(0.98);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-12px) translateX(3px) scale(1.02);
        opacity: 1;
    }
}

/* Data Flow Lines */
.data-flow-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.6), transparent);
    animation: flow-line 3s ease-in-out infinite;
}

.line-1 {
    top: 20%;
    left: 15%;
    width: 35%;
    animation-delay: 0s;
}

.line-2 {
    top: 75%;
    left: 20%;
    width: 40%;
    animation-delay: -1s;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.6), transparent);
}

.line-3 {
    top: 25%;
    right: 15%;
    width: 30%;
    animation-delay: -2s;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
}

@keyframes flow-line {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 0.8;
        transform: scaleX(1.2);
    }
}

/* Number Animation */
.data-metric .text-lg {
    animation: number-pulse 2s ease-in-out infinite;
}

@keyframes number-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Hover effects for metrics */
.data-metric:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Water ripple effect */
.water-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 4s ease-out infinite;
}

@keyframes ripple {
    0% {
        width: 0px;
        height: 0px;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Hover effects for water container */
.water-container:hover .water-wave {
    animation-duration: 4s;
}

.water-container:hover .data-particle {
    animation-duration: 3s;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Custom hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(135deg, #1e40af, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern button styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, #0891b2);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom form styles */
.form-input:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

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

#mobile-menu.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Section spacing */
section {
    position: relative;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1e40af;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3a8a;
}

/* Loading animation for form submission */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    nav, footer, #contact-form {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gradient-to-br {
        background: #1e40af !important;
    }
    
    .text-accent {
        color: #ffffff !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
