/* 
 * YAYEX Etiket - Modern UI Enhancements
 * Premium design improvements with modern effects
 */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #2b6cb0;
    --primary-dark: #1a4971;
    --primary-light: #4299e1;
    --accent-color: #ed8936;
    --accent-light: #f6ad55;
    --success-color: #48bb78;
    --dark-bg: #1a202c;
    --card-bg: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --text-dark: #2d3748;
    --text-muted: #718096;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(66, 153, 225, 0.15);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* ===== Smooth Scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Enhanced Banner ===== */
#banner {
    position: relative;
    overflow: hidden;
}

#banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(66, 153, 225, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(237, 137, 54, 0.2) 0%, transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

#banner .inner {
    position: relative;
    z-index: 2;
}

#banner h2 {
    font-size: 3.5em;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: fadeInUp 1s ease forwards;
}

#banner p {
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

#banner .actions {
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Floating Elements ===== */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===== Icon Enhancements ===== */
.icons.major li span.icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: var(--transition-normal);
}

.icons.major li span.icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(66, 153, 225, 0.3);
}

/* ===== Enhanced Features Section ===== */
ul.features li {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5em 2em;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

ul.features li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

ul.features li:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

ul.features li:hover::before {
    transform: scaleX(1);
}

ul.features li .icon {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 0.5em;
    transition: var(--transition-normal);
}

ul.features li:hover .icon {
    color: var(--accent-color);
    transform: scale(1.1);
}

ul.features li h3 {
    color: var(--text-dark);
    font-size: 1.2em;
    margin-bottom: 0.5em;
}

ul.features li p {
    color: var(--text-muted);
    font-size: 0.95em;
    line-height: 1.7;
}

/* ===== Spotlight Enhancements ===== */
.spotlight {
    position: relative;
}

.spotlight .image img {
    transition: transform 0.5s ease;
}

.spotlight:hover .image img {
    transform: scale(1.05);
}

.spotlight .content {
    position: relative;
}

.spotlight .content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    transition: height 0.5s ease;
}

.spotlight:hover .content::before {
    height: 80%;
}

/* ===== Modern Buttons ===== */
.button.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(43, 108, 176, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.button.primary:hover::before {
    left: 0;
}

.button.primary:hover {
    box-shadow: 0 6px 20px rgba(237, 137, 54, 0.4);
    transform: translateY(-2px);
}

/* ===== CTA Section Enhancement ===== */
#cta {
    position: relative;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2d3748 100%);
    overflow: hidden;
}

#cta::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

#cta::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(237, 137, 54, 0.1) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -20px) rotate(5deg);
    }

    50% {
        transform: translate(0, -30px) rotate(0deg);
    }

    75% {
        transform: translate(-20px, -20px) rotate(-5deg);
    }
}

#cta .inner {
    position: relative;
    z-index: 2;
}

/* ===== Page Header Enhancements ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

.page-header h1 {
    position: relative;
    z-index: 2;
}

.page-header p {
    position: relative;
    z-index: 2;
}

/* ===== Card Hover Effects ===== */
.solution-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
}

.solution-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary-light);
}

/* ===== Form Enhancements ===== */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
    outline: none;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:hover::after {
    width: 300px;
    height: 300px;
}

/* ===== Scroll Reveal Animation Classes ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Stats Counter Section ===== */
.stats-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2d3748 100%);
    padding: 4em 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 50%, rgba(66, 153, 225, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 50%, rgba(237, 137, 54, 0.1) 0%, transparent 50%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2em;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2em;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-number {
    font-size: 3.5em;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5em;
}

@media screen and (max-width: 980px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5em;
    }
}

/* ===== Loading Spinner ===== */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Improved Exchange Rates Bar ===== */
.exchange-rates {
    background: linear-gradient(90deg, rgba(26, 32, 44, 0.95) 0%, rgba(45, 55, 72, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.exchange-rates span {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 0.4em 1em;
    font-size: 0.85em;
    transition: var(--transition-fast);
}

.exchange-rates span:hover {
    background: rgba(66, 153, 225, 0.2);
}

/* ===== Footer Enhancements ===== */
#footer {
    background: linear-gradient(180deg, #1a202c 0%, #0d1117 100%);
    position: relative;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

#footer .icons li a {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

#footer .icons li a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.4);
}

/* ===== Footer Content Grid ===== */
#footer .footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2em;
}

#footer .footer-links a:hover,
#footer .footer-contact a:hover {
    color: var(--primary-light) !important;
}

@media screen and (max-width: 980px) {
    #footer .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 640px) {
    #footer .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    #footer .footer-brand .icons {
        justify-content: center;
    }

    #footer .footer-contact ul li {
        justify-content: center;
    }
}

/* ===== Accessibility Improvements ===== */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {

    .exchange-rates,
    #toast-container,
    .menuToggle {
        display: none !important;
    }
}

/* ===== Spotlight Image Normalization ===== */
@media screen and (min-width: 1280px) {
    .spotlight .image img {
        height: 500px !important;
        /* Adjust this to match sustainable.webp's height */
        object-fit: cover !important;
        width: 100% !important;
    }
}

@media screen and (min-width: 737px) and (max-width: 1279px) {
    .spotlight .image img {
        height: 400px !important;
        object-fit: cover !important;
        width: 100% !important;
    }
}