/* Modern Enhancements for AYOS Game Center */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-color: #FFD23F;
    --dark-bg: #1A1A2E;
    --light-bg: #16213E;
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    --gradient-secondary: linear-gradient(135deg, #004E89 0%, #1A1A2E 100%);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Typography */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Enhanced Banner */
.banner {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(0, 78, 137, 0.6) 100%), 
                url(../images/1.jpg) no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 107, 53, 0.1) 0%, 
        rgba(0, 78, 137, 0.2) 50%, 
        rgba(255, 210, 63, 0.1) 100%);
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Modern Logo Styling */
.agileits-logo h1 a {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 3.5em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: 3px;
    position: relative;
    z-index: 2;
}

.agileits-logo h1 a span {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFD23F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Navigation - Layout Override */
.navbar-nav {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 25px !important;
    padding: 10px 20px !important;
    margin: 0 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    float: none !important;
    text-align: center !important;
}

.navbar-nav li {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    float: none !important;
}

.navbar-nav li::after {
    display: none !important;
}

.navbar-nav > li > a {
    color: white !important;
    text-decoration: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    font-size: 0.95em !important;
    border: 2px solid transparent !important;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
}

.navbar-nav > li > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
    z-index: -1;
}

.navbar-nav > li > a:hover::before,
.navbar-nav > .active > a::before {
    left: 0;
}

.navbar-nav > li > a:hover,
.navbar-nav > .active > a {
    color: white;
    border: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Modern Banner Text */
.banner_text {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    margin: 2rem auto;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.banner_text h3 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.banner_text p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Enhanced Buttons */
.w3-button a {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1em;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.w3-button a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFD23F 0%, #FF6B35 100%);
    transition: var(--transition-smooth);
    z-index: -1;
}

.w3-button a:hover::before {
    left: 0;
}

.w3-button a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

/* Modern Section Styling */
.about, .markets, .portfolio, .team, .mail {
    padding: 5rem 0;
    position: relative;
}

.about {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.markets {
    background: var(--gradient-secondary);
    color: white;
}

.portfolio {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Enhanced Section Titles */
.agileits-title h2,
.agileits-title h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3em;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.agileits-title h2::after,
.agileits-title h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.markets .agileits-title h3 {
    color: white;
}

/* Enhanced Service Cards */
.agileits-icon-grid {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
}

.agileits-icon-grid:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    background: rgba(255, 255, 255, 0.2);
}

.icon-left i {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.icon-right h5 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.icon-right p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Enhanced Portfolio Grid */
.filtr-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.filtr-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.filtr-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.filtr-item figure {
    position: relative;
    margin: 0;
    overflow: hidden;
}

.filtr-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.filtr-item:hover img {
    transform: scale(1.1);
}

.filtr-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.filtr-item:hover figcaption {
    transform: translateY(0);
}

/* Enhanced Filter Buttons */
.simplefilter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.simplefilter li {
    padding: 0.8rem 2rem;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
    color: var(--primary-color);
}

.simplefilter li:hover,
.simplefilter li.active {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Enhanced Team Cards */
.team-info {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.team-info:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.team-info img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.team-info:hover img {
    transform: scale(1.05);
}

.team-caption {
    padding: 2rem;
    text-align: center;
}

.team-caption h4 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-caption p {
    color: #666;
    margin-bottom: 1.5rem;
}

.team-caption ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-caption ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.team-caption ul li a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

/* Enhanced Contact Form */
.w3_mail_grids {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.input {
    margin-bottom: 2rem;
}

.input__field {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1em;
    transition: var(--transition-smooth);
}

.input__field:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1em;
    min-height: 120px;
    resize: vertical;
    transition: var(--transition-smooth);
    font-family: inherit;
}

textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

input[type="submit"] {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

/* Enhanced Contact Section */
.contact {
    background: var(--gradient-secondary);
    color: white;
}

.contact-w3lsright {
    padding: 3rem;
}

.contact-w3lsright h6 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
}

.address-row {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.address-left span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    font-size: 1.2em;
}

.address-right h5 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.address-right p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Enhanced Footer */
.copyright {
    background: var(--dark-bg);
    padding: 2rem 0;
    text-align: center;
}

.footer-class {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1em;
}

.footer-class a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.footer-class a:hover {
    color: var(--primary-color);
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .agileits-logo h1 a {
        font-size: 2.5em;
        letter-spacing: 2px;
    }
    
    .slide-content h2 {
        font-size: 2em;
    }
    
    .slide-content p {
        font-size: 1em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .navbar-nav {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 15px !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }
    
    .navbar-nav li a {
        display: block !important;
        text-align: center !important;
        padding: 12px 20px !important;
        width: 100% !important;
    }
    
    .header-wrapper {
        position: relative !important;
        padding: 15px 0 !important;
    }
    
    .hero-content {
        padding-top: 100px !important;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .banner_text {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .w3_mail_grids {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .agileits-icon-grid {
        padding: 2rem 1.5rem;
    }
}

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

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #ffffff;
        --text-dark: #000000;
        --text-light: #ffffff;
    }
}
