


/* ===== FONTS IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800;900&family=Audiowide&family=Exo:wght@300;400;500;600;700;800&family=Kanit:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');


/* Custom Styles - Safari Mobile Compatible */
body {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in Safari */
}

/* Animation Keyframes with Safari prefixes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@-webkit-keyframes float {
    0%, 100% { -webkit-transform: translateY(0px); }
    50% { -webkit-transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 0 30px rgba(34, 197, 94, 0.6); }
}

@-webkit-keyframes pulse-glow {
    0%, 100% { -webkit-box-shadow: 0 0 20px rgba(34, 197, 94, 0.3); }
    50% { -webkit-box-shadow: 0 0 30px rgba(34, 197, 94, 0.6); }
}

@keyframes slide-in {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@-webkit-keyframes slide-in {
    from { opacity: 0; -webkit-transform: translateY(30px); }
    to { opacity: 1; -webkit-transform: translateY(0); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
    -webkit-animation: float 3s ease-in-out infinite;
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
    -webkit-animation: pulse-glow 2s ease-in-out infinite;
}

.slide-in {
    animation: slide-in 0.6s ease-out forwards;
    -webkit-animation: slide-in 0.6s ease-out forwards;
}

.gradient-text {
    background: linear-gradient(135deg, #22c55e, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.tech-grid {
    background-image: 
        linear-gradient(rgba(34, 197, 94, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.neon-border {
    border: 2px solid transparent;
    background: linear-gradient(135deg, #1f2937, #111827) padding-box,
                linear-gradient(135deg, #22c55e, #3b82f6) border-box;
}

.page {
    display: none;
}

.active {
    display: block;
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    -webkit-transform: translateX(100%);
    -webkit-transition: -webkit-transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0);
    -webkit-transform: translateX(0);
}

#mobile-menu {
    width: 200px;          /* whatever width you like */
    height: auto;          /* shrink-wrap to content */
    max-height: calc(100vh - 1.5rem); /* optional safety */
    overflow-y: auto;      /* scroll if links ever exceed viewport */
}

.nav-link {
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, #22c55e, #3b82f6);
}

/* Remove underline from footer completely */
footer .nav-link::after {
    display: none !important;
}

.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

/* === CHATBOT STYLES - Safari Compatible === */
.chat-bot-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    background: rgba(17, 24, 39, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(135deg, #fff, #e0f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for Safari */
}

.message {
    max-width: 80%;
    padding: 15px;
    border-radius: 15px;
    line-height: 1.5;
    animation: slide-in 0.3s ease-out;
    -webkit-animation: slide-in 0.3s ease-out;
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    color: white;
    border-bottom-right-radius: 5px;
}

.message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #e5e7eb;
    border-bottom-left-radius: 5px;
}

.chat-input-container {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(17, 24, 39, 0.9);
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none; /* Remove Safari default styling */
}

.chat-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

/* =====  base (any size)  ===== */
.send-button {
  min-height: 44px;
  padding: 15px 25px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(135deg, #22c55e, #3b82f6);
  color: #fff;
  font-weight: 600;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  touch-action: manipulation;
  transition: transform .3s ease, box-shadow .3s ease;
}

.send-button:active {
  transform: scale(.97);     /* pressed feedback */
}

.send-button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* =====  mobile adjustments  ===== */
/* =====  mobile adjustments  ===== */
@media (max-width: 600px) {
  .send-button {
    font-size: 13px;          /* Reduced from 14px */
    padding: 10px 16px;       /* Reduced side padding from 24px to 16px */
    min-height: 38px;         /* Reduced height from 44px to 38px */
    
    /* Safety features to prevent cutting off */
    max-width: 100%;          /* Ensures it never exceeds the screen/container width */
    white-space: nowrap;      /* Keeps text on one line */
    
    /* Inherits background from base, no need to repeat unless changing it */
    width: auto;
  }
}

.typing-indicator {
    display: inline-flex;
    gap: 4px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    align-self: flex-start;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
    -webkit-animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { 
    animation-delay: -0.32s; 
    -webkit-animation-delay: -0.32s;
}
.typing-dot:nth-child(2) { 
    animation-delay: -0.16s; 
    -webkit-animation-delay: -0.16s;
}

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

@-webkit-keyframes typing-bounce {
    0%, 80%, 100% { -webkit-transform: scale(0.8); opacity: 0.5; }
    40% { -webkit-transform: scale(1); opacity: 1; }
}





/* Enhanced Chat Styles */
.message-status {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: right;
    margin-top: 4px;
}

.message.typing {
    opacity: 0.7;
}

.message.sent {
    border-left: 3px solid #3b82f6;
}

.message-status .time {
    color: #6b7280;
}

.message-status .status {
    color: #10b981;
    font-weight: 600;
}

/* Typing animation improvements */
.typing-indicator {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 12px 16px;
    align-self: flex-start;
}

/* Message animations */
@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message {
    animation: messageSlide 0.3s ease-out;
}


/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    border-radius: 3px;
}

/* Carousel Styles - Safari Compatible */
.carousel-items {
    position: relative;
    min-height: 450px; /* Minimum height */
    height: auto; /* Allow it to grow with content */
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-indicator.active {
    background-color: #c084fc;
}

/* Calculator Range Sliders - Safari Compatible */
.automation-slider {
    -webkit-appearance: none; /* Essential for Safari */
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #374151;
    outline: none;
    cursor: pointer;
}

.automation-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.automation-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Logo Carousel Styles - Safari Compatible */
.tools-section {
    width: 100%;
    text-align: center;
    padding: 2rem 0;
}

.logo-carousel {
    overflow: hidden;
    position: relative;
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.2),
        0 0 20px rgba(59, 130, 246, 0.4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: gentleGlow 3s ease-in-out infinite alternate;
    -webkit-animation: gentleGlow 3s ease-in-out infinite alternate;
}

.logo-track {
    display: flex;
    width: calc(180px * 14);
    animation: scroll 20s linear infinite;
    -webkit-animation: scroll 20s linear infinite;
    will-change: transform;
}

.logo-track img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: brightness(1) grayscale(0);
    opacity: 0.9;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    margin: 0 40px;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.logo-track img:hover {
    filter: brightness(1.1);
    opacity: 1;
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
}

/* Safari-compatible keyframes */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@-webkit-keyframes scroll {
    0% { -webkit-transform: translateX(0); }
    100% { -webkit-transform: translateX(-50%); }
}

@keyframes gentleGlow {
    0% {
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(59, 130, 246, 0.1),
            0 0 15px rgba(59, 130, 246, 0.3),
            0 0 30px rgba(139, 92, 246, 0.2);
    }
    100% {
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(59, 130, 246, 0.2),
            0 0 25px rgba(59, 130, 246, 0.4),
            0 0 40px rgba(139, 92, 246, 0.3);
    }
}

@-webkit-keyframes gentleGlow {
    0% {
        -webkit-box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(59, 130, 246, 0.1),
            0 0 15px rgba(59, 130, 246, 0.3),
            0 0 30px rgba(139, 92, 246, 0.2);
    }
    100% {
        -webkit-box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(59, 130, 246, 0.2),
            0 0 25px rgba(59, 130, 246, 0.4),
            0 0 40px rgba(139, 92, 246, 0.3);
    }
}

/* Carousel navigation buttons */
.carousel-prev, .carousel-next {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .tools-section {
        padding: 1.5rem 0;
    }
    
    .logo-carousel {
        width: 98%;
        padding: 0.3rem 0;
    }
    
    .logo-track img {
        width: 80px;
        height: 80px;
        margin: 0 30px;
    }
    
    .logo-track {
        width: calc(140px * 14);
        animation: scroll 15s linear infinite;
        -webkit-animation: scroll 15s linear infinite;
    }
    
    h2.text-4xl {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .carousel-items {
        height: 600px; /* More space for mobile */
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .logo-track img {
        width: 60px;
        height: 60px;
        margin: 0 20px;
    }
    
    .logo-track {
        width: calc(100px * 14);
        animation: scroll 12s linear infinite;
        -webkit-animation: scroll 12s linear infinite;
    }
    
    h2.text-4xl {
        font-size: 1.75rem;
    }
    
    .carousel-items {
        height: 650px; /* Even more space for small mobile */
    }
    
    .chat-bot-container {
        margin: 20px auto;
    }
    
    .chat-messages {
        height: 300px;
    }
}

/* Safari-specific fixes */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        /* Safari-specific styles */
        .logo-carousel, .chat-bot-container {
            -webkit-backdrop-filter: blur(10px);
        }
        
        .automation-slider {
            -webkit-appearance: none;
            background: transparent;
        }
    }
}





.social-icon {
    width: 48px;
    height: 48px;
    background-color: #1f2937;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
}

.instagram-icon:hover {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.tiktok-icon:hover {
    background-color: #000000;
}

.facebook-icon:hover {
    background-color: #1877f2;
}

.youtube-icon:hover {
    background-color: #ff0000;
}








/* Services
/* ===== SERVICES SHOWCASE STYLES ===== */

/* Service Cards */
.service-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.15);
}

/* Filter Buttons */
.filter-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.filter-btn::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;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active {
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    transform: scale(1.05);
    border-color: transparent !important;
}

/* Animations */
@keyframes floatIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.service-item {
    animation: floatIn 0.6s ease-out forwards;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 0 30px rgba(34, 197, 94, 0.6); }
}

.pulse-glow {
    animation: pulse 2s ease-in-out infinite;
}




/* ===== MOBILE RESPONSIVE FIXES FOR SERVICES PAGE ===== */

/* Services Section Mobile Fixes */
@media (max-width: 768px) {
  /* Header adjustments */
  .py-20 h1.text-5xl {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .py-20 p.text-xl {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
  }
  
  /* Filter buttons - stack vertically */
  .flex.flex-wrap.justify-center.gap-3 {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem !important;
  }
  
  .filter-btn {
    width: 100%;
    max-width: 280px;
    padding: 1rem 1.5rem !important;
    font-size: 0.9rem;
  }
  
  /* Service cards adjustments */
  .grid.grid-cols-1 {
    gap: 1rem !important;
  }
  
  .service-card {
    padding: 1.5rem !important;
    margin: 0.5rem 0;
  }
  
  .service-card h3 {
    font-size: 1.25rem !important;
  }
  
  .service-card ul {
    font-size: 0.9rem;
  }
  
  .service-card li {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  /* Icon sizing */
  .service-card .w-16 {
    width: 3rem !important;
    height: 3rem !important;
  }
  
  .service-card .text-2xl {
    font-size: 1.25rem !important;
  }
}



/* Small mobile devices (phones) */
@media (max-width: 480px) {
  /* Services section */
  .py-20 h1.text-5xl {
    font-size: 2rem !important;
  }
  
  .py-20 p.text-xl {
    font-size: 1rem !important;
  }
  
  .service-card {
    padding: 1.25rem !important;
  }
  
  .service-card h3 {
    font-size: 1.1rem !important;
  }
}

/* Touch improvements for mobile */
@media (max-width: 768px) {
  /* Better touch targets */
  .filter-btn, .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Prevent zoom on input focus */
  input, textarea, select {
    font-size: 16px;
  }
}


/* ===== MOBILE MENU ALIGNMENT FIX ===== */

/* Force left alignment for ALL links in mobile menu */
@media (max-width: 768px) {
    .mobile-menu .flex.flex-col.space-y-6 a {
        text-align: left !important;
        display: block !important;
        width: 100% !important;
        padding: 0.75rem 0 !important;
        margin: 0 !important;
    }
    
    /* Remove any default link styling that might cause misalignment */
    .mobile-menu .flex.flex-col.space-y-6 {
        align-items: flex-start !important;
    }
    
    /* Ensure consistent font size and weight */
    .mobile-menu .flex.flex-col.space-y-6 a {
        font-size: 1.1rem !important;
        font-weight: 500 !important;
    }
}

/* Ensure footer links are also left-aligned */
footer ul.space-y-2 {
    text-align: left;
}

footer ul.space-y-2 li {
    text-align: left;
}

footer ul.space-y-2 a {
    text-align: left;
}







/* ===== FONT VARIABLES ===== */
:root {
    --font-primary: 'Orbitron', sans-serif;
    --font-headers: 'Audiowide', sans-serif;
    --font-body: 'Exo', sans-serif;
    --font-accent: 'Kanit', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

/* ===== ENHANCED TYPOGRAPHY ===== */
body { font-family: var(--font-body); }

h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-headers); 
    font-weight: 600;
    letter-spacing: 1px;
}

#company-name { font-family: var(--font-primary); }

nav a { 
    font-family: var(--font-accent); 
    font-weight: 500;
}

#tagline { font-family: var(--font-headers); }

#hero-description { font-family: var(--font-body); }

.chat-header h3 { font-family: var(--font-primary); }

.tools-section h2 { font-family: var(--font-headers); }

footer h3 { font-family: var(--font-accent); }

.send-button, .filter-btn { 
    font-family: var(--font-accent); 
    font-weight: 600;
}



.hex {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, currentColor 0%, currentColor 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }




/* Language Switcher Active State */
.lang-btn.active {
    color: #22c55e !important;
    font-weight: bold;
}

/* Smooth transitions for language switching */
[data-translate] {
    transition: opacity 0.3s ease;
}

.lang-btn {
    transition: all 0.3s ease;
}



/* ===== QUANTUM CIRCUIT STYLES ===== */

.quantum-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Circuit Board Frame - Flowgeek Colors */
.circuit-frame {
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    border: 2px solid #22c55e;
    border-radius: 25px;
    background: 
        linear-gradient(90deg, transparent 95%, #22c55e 100%) 0 0,
        linear-gradient(180deg, transparent 95%, #3b82f6 100%) 0 0;
    background-size: 30px 30px;
    background-color: rgba(17, 24, 39, 0.8);
    box-shadow: 
        0 0 50px rgba(34, 197, 94, 0.3),
        0 0 80px rgba(59, 130, 246, 0.2),
        inset 0 0 50px rgba(139, 92, 246, 0.1);
    z-index: 5;
    overflow: hidden;
}

.circuit-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    animation: circuitPulse 4s ease-in-out infinite;
}

/* Circuit Traces - Flowgeek Colors */
.circuit-trace {
    position: absolute;
    height: 2px;
    animation: dataFlow 3s linear infinite;
}

.trace-1 {
    top: 15%;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
    animation-delay: 0s;
}

.trace-2 {
    top: 85%;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation-delay: 1s;
}

.trace-3 {
    top: 0;
    left: 15%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #8b5cf6, transparent);
    animation: dataFlowVertical 4s linear infinite;
    animation-delay: 0.5s;
}

.trace-4 {
    top: 0;
    left: 85%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #22c55e, transparent);
    animation: dataFlowVertical 3.5s linear infinite;
    animation-delay: 1.5s;
}

/* Quantum Nodes - Flowgeek Colors */
.quantum-node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 6;
    animation: quantumPulse 2s ease-in-out infinite;
}

.node-1 { 
    top: 15%; 
    left: 15%; 
    background: #22c55e;
    box-shadow: 0 0 20px #22c55e;
    animation-delay: 0s; 
}

.node-2 { 
    top: 15%; 
    left: 85%; 
    background: #3b82f6;
    box-shadow: 0 0 20px #3b82f6;
    animation-delay: 0.3s; 
}

.node-3 { 
    top: 85%; 
    left: 15%; 
    background: #8b5cf6;
    box-shadow: 0 0 20px #8b5cf6;
    animation-delay: 0.6s; 
}

.node-4 { 
    top: 85%; 
    left: 85%; 
    background: #22c55e;
    box-shadow: 0 0 20px #22c55e;
    animation-delay: 0.9s; 
}

/* Binary Rain - Subtle */
.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.binary-digit {
    position: absolute;
    color: rgba(34, 197, 94, 0.2);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    animation: binaryFall 10s linear infinite;
}

/* Processing Cores */
.processing-core {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 1px solid;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 8px;
    z-index: 6;
    animation: coreRotate 8s linear infinite;
}

.core-1 {
    top: 30%;
    left: 30%;
    border-color: #22c55e;
    color: #22c55e;
    animation-delay: 0s;
}

.core-2 {
    top: 30%;
    right: 30%;
    border-color: #3b82f6;
    color: #3b82f6;
    animation-delay: 2s;
}

.core-3 {
    bottom: 30%;
    left: 30%;
    border-color: #8b5cf6;
    color: #8b5cf6;
    animation-delay: 4s;
}

.core-4 {
    bottom: 30%;
    right: 30%;
    border-color: #22c55e;
    color: #22c55e;
    animation-delay: 6s;
}









/* ===== PROJECTS SECTION STYLES - REFINED ===== */

/* Project Section Container */
section.py-16 {
    overflow: hidden; /* Prevent content overflow */
}

/* Project Cards - Subtle & Professional */
.project-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    will-change: transform;
}


/* Screenshot hover effect */
.project-card img {
    transition: transform 0.5s ease;
}



/* Button hover with glow */
.project-card a[class*="bg-gradient"] {
    position: relative;
    transition: all 0.3s ease;
}

.project-card a[class*="bg-gradient"]:hover {
    box-shadow: 0 4px 20px currentColor;
    opacity: 0.95;
}

/* Metrics subtle animation */
.project-card .text-2xl {
    transition: transform 0.2s ease;
}



/* Tech badges subtle hover */
.project-card span[class*="rounded-full"] {
    transition: all 0.2s ease;
}



/* Stats Banner - Clean hover */
.stats-banner > div > div {
    transition: transform 0.2s ease;
}

.stats-banner > div > div:hover {
    transform: translateY(-3px);
}

/* Browser chrome dots subtle pulse - FIXED */
@keyframes dot-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.project-card .w-2\.5.h-2\.5.rounded-full {
    animation: dot-pulse 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.project-card:hover .w-2\.5.h-2\.5.rounded-full {
    animation-duration: 2s;
}

.project-card .bg-red-500\/70 { animation-delay: 0s; }
.project-card .bg-yellow-500\/70 { animation-delay: 0.6s; }
.project-card .bg-green-500\/70 { animation-delay: 1.2s; }



/* Browser chrome URL hover */
.project-card:hover .bg-gray-900\/50 {
    background: rgba(17, 24, 39, 0.7);
    transition: background 0.3s ease;
}

/* Screenshot container improvements */
.project-card .relative[style*="padding-bottom"] img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Show top part of the page - where header and main content is */
    object-position: center 15%;
    transition: object-position 0.5s ease, transform 0.5s ease;
}



/* CHATBOT PULSE FIX - Remove conflicting animations */
.chat-bot-container {
    /* Static glow - no animation */
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.2) !important;
    animation: none !important;
}

/* Remove pulse-glow animation completely from chatbot */
.chat-bot-container.pulse-glow {
    animation: none !important;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .project-card {
        padding: 1.25rem !important;
    }
    
    .project-card h3 {
        font-size: 1.125rem !important;
    }
    
    /* Disable transform on mobile for better performance */
    .project-card:hover {
        transform: none;
    }
    
    .project-card:hover img {
        transform: scale(1.02);
    }
    
    /* Better image positioning on mobile */
    .project-card .relative[style*="padding-bottom"] img {
        object-position: center 25%;
    }
    
    /* Smaller browser chrome on mobile */
    .project-card .h-7 {
        height: 1.5rem !important;
    }
    
    .project-card .font-mono {
        font-size: 0.65rem !important;
    }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .max-w-5xl {
        max-width: 90% !important;
    }
    
    .project-card {
        padding: 1.5rem !important;
    }
    
    .project-card h3 {
        font-size: 1.25rem !important;
    }
}

/* Desktop - ensure content doesn't get too wide */
@media (min-width: 1025px) {
    .max-w-5xl {
        max-width: 1100px !important;
    }
}

/* Smooth page scroll */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Fallback for older browsers */
@supports not (object-position: center) {
    .project-card .relative[style*="padding-bottom"] img {
        top: -10%;
    }
}

/* Loading state for images - IMPROVED */
.project-card img {
    opacity: 0;
    animation: fadeInImage 0.6s ease-out 0.1s forwards;
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.05) 0%, 
        rgba(59, 130, 246, 0.05) 100%);
    will-change: opacity, transform;
}

.project-card img[src] {
    animation-delay: 0.2s;
}

@keyframes fadeInImage {
    0% {
        opacity: 0;
        transform: scale(0.98) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Testimonial quote styling */
.project-card .italic {
    position: relative;
    padding-left: 0.75rem;
}

.project-card .italic::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.25rem;
    font-size: 1.5rem;
    color: rgba(34, 197, 94, 0.2);
    font-family: Georgia, serif;
}

/* Focus states for accessibility */
.project-card:focus-within {
    outline: 2px solid rgba(34, 197, 94, 0.4);
    outline-offset: 2px;
}

.project-card a:focus {
    outline: 2px solid rgba(34, 197, 94, 0.6);
    outline-offset: 2px;
}





/* ===== GOOGLE REVIEW BADGE STYLES ===== */

.google-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(66, 133, 244, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 8px;
}

.google-review-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(66, 133, 244, 0.4);
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(66, 133, 244, 0.3),
        0 0 30px rgba(234, 67, 53, 0.2),
        0 0 40px rgba(251, 188, 5, 0.2),
        0 0 50px rgba(52, 168, 83, 0.2);
}

.google-logo {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.google-review-badge:hover .google-logo {
    transform: scale(1.1);
}

.star-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: #FBBC05;
    font-size: 14px;
    transition: all 0.2s ease;
}

.google-review-badge:hover .star {
    transform: scale(1.1);
    filter: drop-shadow(0 0 3px #FBBC05);
}

.review-text-small {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

/* Animation for stars on hover */
@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.google-review-badge:hover .star:nth-child(1) { animation: starPulse 0.6s ease-in-out; }
.google-review-badge:hover .star:nth-child(2) { animation: starPulse 0.6s ease-in-out 0.1s; }
.google-review-badge:hover .star:nth-child(3) { animation: starPulse 0.6s ease-in-out 0.2s; }
.google-review-badge:hover .star:nth-child(4) { animation: starPulse 0.6s ease-in-out 0.3s; }
.google-review-badge:hover .star:nth-child(5) { animation: starPulse 0.6s ease-in-out 0.4s; }


/* ===== GOOGLE REVIEW BADGE - MOBILE CENTERING ===== */

/* Desktop: όνομα αριστερά, badge δεξιά */
.google-review-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Mobile: κεντράρισμα και stack vertically */
@media (max-width: 768px) {
    .google-review-container {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .google-review-container p {
        width: 100%;
    }
    
    .google-review-badge {
        margin: 0 auto;
    }
}


/* Desktop - ensure content doesn't get too wide */
@media (min-width: 1025px) {
    .max-w-5xl {
        max-width: 1100px !important;
    }
    
    /* For 3-column project grid on large screens */
    .grid.lg\:grid-cols-3 {
        max-width: 1400px;
        margin: 0 auto;
    }
}



/* ===== NEXUS SHOWCASE CUSTOM STYLES ===== */
.nexus-wrapper {
    background: #080b10;
    overflow: hidden;
}

.nexus-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}

.nexus-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nexus-option {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.nexus-option.active {
    background: rgba(34, 197, 94, 0.08);
    border-color: #22c55e;
    transform: translateX(15px);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}

.nexus-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #374151;
    margin-top: 6px;
    transition: all 0.3s ease;
}

.nexus-option.active .nexus-dot {
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
}

.nexus-screen {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    min-height: 400px;
}

.nexus-window-header {
    background: #1f2937;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nexus-controls {
    display: flex;
    gap: 8px;
}

.nexus-controls span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #374151;
}

.nexus-url {
    background: rgba(0,0,0,0.3);
    padding: 4px 15px;
    border-radius: 5px;
    font-size: 0.75rem;
    color: #9ca3af;
    flex-grow: 1;
}

.nexus-body {
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.nexus-main-icon {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.4));
}

/* Mobile Fix */
@media (max-width: 768px) {
    .nexus-container {
        grid-template-columns: 1fr;
    }
    .nexus-option.active {
        transform: translateY(-5px);
    }
}




/* Το μεγάλο στρογγυλεμένο container */
.nexus-unified-card {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 3rem; /* Round edges */
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.nexus-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50-50 διαχωρισμός */
}

.nexus-sidebar {
    padding: 4rem 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nexus-main-display {
    padding: 3rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

/* Προσαρμογή για κινητά */
@media (max-width: 968px) {
    .nexus-grid-layout {
        grid-template-columns: 1fr; /* Στοίχιση το ένα κάτω από το άλλο */
    }
    .nexus-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 2.5rem 1.5rem;
    }
    .nexus-main-display {
        padding: 1.5rem;
    }
    .nexus-unified-card {
        border-radius: 2rem;
    }
}






/* ===== STICKY HEADER EFFECTS (FIXED) ===== */

/* Default state (at the top) */
#main-header {
    background: transparent;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    
    /* FIX: We add the border here (invisible) so it doesn't flash white when animating */
    border-bottom: 1px solid transparent; 
    
    /* Ensure the transition applies to everything */
    transition: all 0.3s ease;
}

/* Scrolled State - Faded & Blurry */
#main-header.scrolled {
    background: rgba(17, 24, 39, 0.6); 
    backdrop-filter: blur(12px);       
    -webkit-backdrop-filter: blur(12px); 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    
    /* Keeps the border transparent, so no white line appears */
    border-bottom: 1px solid transparent; 
    
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Hover State while Scrolled - Blue/Cyan Glow */
#main-header.scrolled:hover {
    background: rgba(17, 24, 39, 0.95); /* Solid dark */
    backdrop-filter: none;
    
    /* NEW GLOW: Cyan/Blue shadow to match your logo gradient */
    box-shadow: 0 10px 40px rgba(34, 211, 238, 0.15); 
    
    /* NEW BORDER: Cyan color */
    border-bottom: 1px solid rgba(34, 211, 238, 0.5); 
    
    transition: all 0.3s ease;
}




/* ===== DIGITAL GROWTH PROCESS STYLES ===== */

.process-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

.process-step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Glassmorphism Card */
.step-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    position: relative;
    width: 100%;
    height: 100%;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Hover Effect */
.step-card:hover {
    transform: translateY(-10px);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 
        0 10px 40px -10px rgba(34, 197, 94, 0.2),
        inset 0 0 20px rgba(34, 197, 94, 0.05);
}

/* Big Number Background */
.step-number {
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    transition: all 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.step-card:hover .step-number {
    color: rgba(34, 197, 94, 0.1);
    transform: scale(1.1);
}

/* Icon Styling */
.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #22c55e;
    position: relative;
    z-index: 1;
}

.step-card:hover .step-icon {
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    color: white;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.step-icon svg {
    width: 30px;
    height: 30px;
}

/* Typography */
.step-card h3 {
    font-family: 'Audiowide', sans-serif;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.step-card p {
    font-family: 'Exo', sans-serif;
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Connecting Lines (Desktop) */
.step-connector {
    display: none; /* Hidden on mobile */
}

@media (min-width: 1280px) {
    .step-connector {
        display: block;
        position: absolute;
        top: 50%;
        right: -1rem; /* Adjust based on gap */
        width: 2rem;
        height: 2px;
        background: linear-gradient(90deg, rgba(34, 197, 94, 0.2), rgba(59, 130, 246, 0.2));
        transform: translateY(-50%);
        z-index: 1;
    }
    
    /* Remove connector for last item */
    .process-step:last-child .step-connector {
        display: none;
    }
}

/* Mobile & Tablet Adjustments */
@media (max-width: 1024px) {
    .process-flow {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .process-step {
        width: 100%;
        max-width: 500px; /* Wider cards on mobile looks better */
    }

    /* Vertical connector line for mobile */
    .process-step::after {
        content: '';
        position: absolute;
        bottom: -2.5rem;
        left: 50%;
        width: 2px;
        height: 2.5rem;
        background: linear-gradient(180deg, rgba(34, 197, 94, 0.5), transparent);
        transform: translateX(-50%);
    }

    .process-step:last-child::after {
        display: none;
    }
}