/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-logo img {
    width: 36px;
    height: 36px;
    margin-right: 10px;
    display: inline-block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    color: #333;
    display: inline-flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 220px;
    display: none; /* hidden by default */
    z-index: 1001;
    list-style: none;
    margin: 0;
}

.dropdown-menu.show {
    display: block;
}

/* Show on hover/focus for desktop */
.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu {
    display: block;
}

/* Full-width dropdown on desktop */
@media (min-width: 769px) {
    .dropdown-menu {
        position: fixed;
        top: 70px; /* matches navbar height */
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        border: 0;
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
        padding: 16px 0;
    }

    .dropdown-menu > li {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .dropdown-link {
        padding: 14px 0;
        font-weight: 500;
        display: inline-block;
    }
}

.dropdown-link {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-link:hover {
    background: #f5f7ff;
    color: #667eea;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ffd700);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 100px;
    right: 20px;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

.floating-card i {
    font-size: 2rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.7;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: white;
    position: relative;
    animation: scroll 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

@keyframes scroll {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card.featured {
    border-color: #667eea;
    transform: scale(1.05);
}

.service-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-header {
    text-align: center;
    margin-bottom: 2rem;
}

.service-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.service-header h3 {
    font-size: 1.5rem;
    color: #333;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #666;
}

.service-features i {
    color: #4CAF50;
    font-size: 0.9rem;
}

.service-price {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

/* Contact Section */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.footer-logo img {
    width: 36px;
    height: 36px;
    margin-right: 10px;
    display: inline-block;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-section ul li i {
    margin-right: 10px;
    color: #667eea;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #667eea;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.demo-video {
    margin-top: 1rem;
}

.demo-placeholder {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    color: #666;
}

.demo-placeholder i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.success-content {
    text-align: center;
    padding: 2rem;
}

.success-content i {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.success-content h2 {
    color: #333;
    margin-bottom: 1rem;
}

.success-content p {
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        border: 0;
        box-shadow: none;
        padding: 0.25rem 0 0.5rem 0;
        display: none; /* hidden until toggle on mobile */
        background: transparent;
    }

    .dropdown-menu.show {
        display: block;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card.featured {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* CloudWatch Specific Styles */
.cloudwatch-hero {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 50%, #f8b500 100%);
    position: relative;
    overflow: hidden;
}

.cloudwatch-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 107, 157, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(196, 69, 105, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(248, 181, 0, 0.2) 0%, transparent 50%);
    animation: backgroundShift 8s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.cloudwatch-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.cloudwatch-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cloudwatch-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    animation: iconFloat 3s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes glowPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.title-container {
    flex: 1;
}

.cloudwatch-title {
    background: linear-gradient(45deg, #ffffff, #ff6b9d, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s ease-in-out infinite;
    margin-bottom: 0.5rem;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.title-underline {
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    border-radius: 2px;
    animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes underlineGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 6s linear infinite;
}

.floating-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes particleFloat {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Battle Section Styles */
.battle-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.battle-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.battle-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 107, 157, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(196, 69, 105, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(248, 181, 0, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 107, 157, 0.3), transparent);
    background-repeat: repeat;
    background-size: 150px 100px;
    animation: particleMove 20s linear infinite;
}

@keyframes particleMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-150px); }
}

.battle-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 157, 0.1) 50%, transparent 100%);
    animation: lineSweep 4s ease-in-out infinite;
}

@keyframes lineSweep {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.battle-title {
    background: linear-gradient(45deg, #ff6b9d, #c44569, #f8b500);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite;
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
}

@keyframes titleGlow {
    0%, 100% { 
        background-position: 0% 50%;
        filter: brightness(1);
    }
    50% { 
        background-position: 100% 50%;
        filter: brightness(1.2);
    }
}

.battle-arena {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.battle-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.battle-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.metrics-card:hover {
    border-color: #ff6b9d;
    box-shadow: 0 20px 40px rgba(255, 107, 157, 0.3);
}

.logs-card:hover {
    border-color: #c44569;
    box-shadow: 0 20px 40px rgba(196, 69, 105, 0.3);
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.metrics-glow {
    background: linear-gradient(45deg, #ff6b9d, #c44569, #ff6b9d);
    background-size: 200% 200%;
    animation: glowRotate 3s linear infinite;
}

.logs-glow {
    background: linear-gradient(45deg, #c44569, #f8b500, #c44569);
    background-size: 200% 200%;
    animation: glowRotate 3s linear infinite reverse;
}

@keyframes glowRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.battle-card:hover .card-glow {
    opacity: 1;
}

.icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.battle-icon {
    font-size: 3rem;
    color: #ffffff;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.metrics-card .battle-icon {
    color: #ff6b9d;
}

.logs-card .battle-icon {
    color: #c44569;
}

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    opacity: 0;
    animation: iconPulse 2s ease-in-out infinite;
}

.metrics-card .icon-pulse {
    background: radial-gradient(circle, rgba(255, 107, 157, 0.3) 0%, transparent 70%);
}

.logs-card .icon-pulse {
    background: radial-gradient(circle, rgba(196, 69, 105, 0.3) 0%, transparent 70%);
}

@keyframes iconPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.6;
    }
}

.battle-card:hover .battle-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 20px currentColor);
}

.battle-card-title {
    color: #ffffff;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.battle-card:hover .battle-card-title {
    text-shadow: 0 0 20px currentColor;
    transform: scale(1.05);
}

.battle-content {
    text-align: left;
}

.battle-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.battle-card:hover .battle-text {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.battle-answer {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.metrics-card .battle-answer {
    border-color: rgba(255, 107, 157, 0.3);
}

.logs-card .battle-answer {
    border-color: rgba(196, 69, 105, 0.3);
}

.battle-card:hover .battle-answer {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.power-indicator {
    margin-top: 1.5rem;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.power-bar {
    height: 100%;
    border-radius: 2px;
    animation: powerFlow 2s ease-in-out infinite;
}

.metrics-power {
    background: linear-gradient(90deg, #ff6b9d, #c44569);
    width: 85%;
}

.logs-power {
    background: linear-gradient(90deg, #c44569, #f8b500);
    width: 90%;
}

@keyframes powerFlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.vs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vs-text {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.8);
    animation: vsPulse 1.5s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

@keyframes vsPulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 20px rgba(255, 107, 157, 0.8);
    }
    50% { 
        transform: scale(1.1);
        text-shadow: 0 0 30px rgba(255, 107, 157, 1);
    }
}

.vs-lightning {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: lightningFlash 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes lightningFlash {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.8;
    }
}

/* Responsive Design for Battle Section */
@media (max-width: 768px) {
    .cloudwatch-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cloudwatch-icon {
        width: 60px;
        height: 60px;
    }
    
    .icon-glow {
        width: 90px;
        height: 90px;
    }
    
    .battle-arena {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vs-container {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .vs-text {
        font-size: 1.5rem;
    }
    
    .battle-title {
        font-size: 2rem;
    }
}

/* Dashboard Section Styles */
.dashboard-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
    position: relative;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.metric-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b9d, #c44569, #f8b500);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-card:hover::before {
    opacity: 1;
}

.visitors-card:hover {
    border-color: #ff6b9d;
}

.requests-card:hover {
    border-color: #c44569;
}

.latency-card:hover {
    border-color: #f8b500;
}

.error-card:hover {
    border-color: #ff6b6b;
}

.cache-card:hover {
    border-color: #4ecdc4;
}

.bandwidth-card:hover {
    border-color: #45b7d1;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.visitors-card .metric-icon {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
}

.requests-card .metric-icon {
    background: linear-gradient(45deg, #c44569, #f8b500);
}

.latency-card .metric-icon {
    background: linear-gradient(45deg, #f8b500, #ff6b6b);
}

.error-card .metric-icon {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
}

.cache-card .metric-icon {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.bandwidth-card .metric-icon {
    background: linear-gradient(45deg, #45b7d1, #96c93d);
}

.metric-content {
    flex: 1;
}

.metric-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.metric-subtitle {
    font-size: 0.8rem;
    color: #999;
}

.metric-trend {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.metric-trend i {
    transition: transform 0.3s ease;
}

.metric-card:hover .metric-trend i {
    transform: scale(1.2);
}

.visitors-card .metric-trend,
.requests-card .metric-trend,
.cache-card .metric-trend,
.bandwidth-card .metric-trend {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.latency-card .metric-trend,
.error-card .metric-trend {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
}

.health-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.health-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.health-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff6b6b;
    animation: healthPulse 2s ease-in-out infinite;
}

.health-dot.healthy {
    background: #4ecdc4;
}

.health-dot.warning {
    background: #f8b500;
}

.health-dot.critical {
    background: #ff6b6b;
}

@keyframes healthPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.health-text {
    font-weight: 600;
    color: #333;
}

.last-updated {
    color: #666;
    font-size: 0.9rem;
}

.dashboard-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.dashboard-controls .btn {
    min-width: 150px;
}

/* Loading Animation */
.metric-value.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    height: 2rem;
    width: 80px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Design for Dashboard */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .metric-card {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .metric-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .health-status {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .dashboard-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .dashboard-controls .btn {
        width: 100%;
        max-width: 300px;
    }
}
