/* Custom styles for ACEIoT website */

/* Color System - Using the blue from user image as brand color */
:root {
    --primary-blue: #0ea5e9; /* Sky blue from user image */
    --primary-light: #38bdf8;
    --primary-dark: #0284c7;
    --secondary-blue: #06b6d4;
    --accent-blue: #22d3ee;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #f7fafc;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-color: #e2e8f0;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-blue);
    background-color: var(--bg-light);
    transform: translateY(-1px);
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 0.75rem;
    right: 0.75rem;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::before {
    width: calc(100% - 1.5rem);
}


/* SVG Pattern Background - Simplified */
.pattern-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.05;
}

.pattern-bg svg {
    width: 100%;
    height: 100%;
}

/* Animated Background - Simplified */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    overflow: hidden;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, 10px) rotate(5deg); }
    50% { transform: translate(0, 20px) rotate(0deg); }
    75% { transform: translate(-10px, 10px) rotate(-5deg); }
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(30, 58, 138, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 138, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
}

.bg-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#2C5282 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.15;
    pointer-events: none;
}

/* Make cards have solid white background */
.bg-white {
    background-color: #fff !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Make sections have transparent background to show fireworks */
section:not(.hero-slider) {
    background-color: transparent;
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Add semi-transparent background to content areas for better readability */
.content-area {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
}

/* Adjust background opacity for better visibility */
.pattern-bg svg {
    opacity: 0.3 !important;
}

/* Ensure text remains readable */
.content-wrapper {
    position: relative;
    z-index: 2;
}

/* Add a subtle gradient overlay to hero section for better text contrast */
.hero-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.8) 100%);
    padding: 2rem;
    border-radius: 0.5rem;
}

/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Section Title Fixes */
section h2 {
    color: var(--text-light) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

section h3 {
    color: var(--text-light) !important;
}

/* Ensure section titles are visible on dark backgrounds */
.bg-slate-800 h2,
.bg-slate-800 h3,
.bg-slate-700 h2,
.bg-slate-700 h3 {
    color: white !important;
}

/* White text on dark backgrounds */
.text-white {
    color: white !important;
}

/* Blue accent colors */
.bg-blue-400 {
    background-color: var(--primary-light) !important;
}

.bg-blue-600 {
    background-color: var(--primary-blue) !important;
}

.bg-blue-700 {
    background-color: var(--primary-dark) !important;
}

.text-blue-300 {
    color: var(--primary-light) !important;
}

.text-blue-400 {
    color: var(--primary-light) !important;
}

.text-blue-600 {
    color: var(--primary-blue) !important;
}

.text-blue-700 {
    color: var(--primary-dark) !important;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1e40af;
    color: white;
}

.btn-primary:hover {
    background-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.3s ease;
    border-radius: 0.25rem;
}

.nav-link:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background-color: #f3ff4c; /* Bright yellow color */
    opacity: 0.7;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 1rem;
    right: 1rem;
    background-color: #1e40af;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover {
    color: #1e40af;
    background-color: #f8fafc;
}

.nav-link:hover::before {
    width: calc(100% - 2rem);
}

.nav-link.active {
    color: #1e40af;
    font-weight: 600;
}

.nav-link.active::before {
    width: calc(100% - 2rem);
    background-color: #1e40af;
}

/* Notification badge */
.nav-notification {
    top: 0.25rem;
    right: 0.25rem;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.header-transition {
    -webkit-transition: transform 300ms ease, opacity 300ms ease;
    transition: transform 300ms ease, opacity 300ms ease;
    will-change: transform, opacity;
}

.header-hidden {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Hero content animations */
.hero-slider h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    opacity: 0;
    animation: slideUpFadeIn 1s ease-out 0.3s forwards;
    animation-fill-mode: both;
}

.hero-slider p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    opacity: 0;
    animation: slideUpFadeIn 1s ease-out 0.6s forwards;
    animation-fill-mode: both;
    margin-bottom: 2rem;
}

.hero-slider .space-x-4 {
    transform: translateY(30px);
    opacity: 0;
    animation: slideUpFadeIn 1s ease-out 0.9s forwards;
    animation-fill-mode: both;
}

.hero-slider .space-x-4 a {
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.hero-slider .space-x-4 a:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes slideUpFadeIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Add a subtle pulse animation to the active slide */
@keyframes subtlePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

.slide.active {
    animation: subtlePulse 15s infinite ease-in-out;
}

/* Ensure active slide content is visible */
.slide.active h1,
.slide.active p,
.slide.active .space-x-4 {
    transform: translateY(0);
    opacity: 1;
}

/* Navigation Arrows */
.hero-prev,
.hero-next {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-prev:hover,
.hero-next:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Dots Navigation */
.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    z-index: 2;
}

.hero-dots button {
    transition: all 0.3s ease;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    border: none;
    outline: none;
    cursor: pointer;
}

.hero-dots button.active {
    background-color: white;
    transform: scale(1.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.35rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .hero-slider h1 {
        font-size: 1.75rem;
    }
    
    .hero-slider h2 {
        font-size: 1.5rem;
    }
    
    .hero-prev,
    .hero-next {
        width: 40px !important;
        height: 40px !important;
    }
    
    .pattern-bg,
    .animated-bg {
        display: none;
    }
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../uploads/images/IMG_0574.JPG') repeat;
    opacity: 0.05;
    pointer-events: none;
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Testimonial Section */
.testimonial-card {
    position: relative;
    padding: 2rem;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Normalize form controls across browsers */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select,
button {
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
}

/* News Slider Styles */
.news-slider {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.news-slider #slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.news-slider .slide {
    flex: 0 0 100%;
    padding: 0 0.5rem;
    transition: all 0.3s ease;
}

.news-slider .slide:hover {
    transform: translateY(-5px);
}

.news-slider .slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
}

.news-slider .slide-content {
    background: white;
    padding: 1.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-slider .slide h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1a365d;
}

.news-slider .slide p {
    color: #4a5568;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.news-slider .slide .category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.news-slider .slide .read-more {
    display: inline-flex;
    align-items: center;
    color: #2b6cb0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-slider .slide .read-more:hover {
    color: #2c5282;
    transform: translateX(4px);
}

.news-slider .slide .read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.news-slider .slide .read-more:hover i {
    transform: translateX(3px);
}

/* Navigation Arrows */
.news-slider .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.news-slider .nav-arrow:hover {
    background: #2b6cb0;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.news-slider .nav-arrow.prev {
    left: 10px;
}

.news-slider .nav-arrow.next {
    right: 10px;
}

/* Dots Navigation */
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e0;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.slider-dots .dot.active {
    background: #2b6cb0;
    transform: scale(1.2);
}

.slider-dots .dot:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .news-slider .slide {
        flex: 0 0 100%;
    }
    
    .news-slider .nav-arrow {
        width: 36px;
        height: 36px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .news-slider .slide {
        flex: 0 0 50%;
    }
}

@media (min-width: 1025px) {
    .news-slider .slide {
        flex: 0 0 33.333%;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1e40af;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3a8a;
}

/* Pagination */

.pagination {
    display: flex;
    gap: 8px;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
}

.pagination .on {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}
/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1e40af;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1e3a8a;
    transform: translateY(-3px);
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

