* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #326CE5;
    --secondary-color: #00D9FF;
    --dark-bg: #0F1419;
    --light-bg: #1A1F2E;
    --text-primary: #FFFFFF;
    --text-secondary: #B8C5D6;
    --accent-color: #4A90E2;
    --card-bg: #232931;
}

/* Light mode variables */
body.light-mode {
    --dark-bg: #F5F7FA;
    --light-bg: #FFFFFF;
    --text-primary: #1A1F2E;
    --text-secondary: #4A5568;
    --card-bg: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--dark-bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Animated gradient background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -200px;
    right: -200px;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-color);
    top: 50%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -100px) scale(1.1);
    }
    66% {
        transform: translate(-100px, 100px) scale(0.9);
    }
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 30px rgba(50, 108, 229, 0.5);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(180deg);
}

body.light-mode .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(180deg);
}

body.light-mode .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(50, 108, 229, 0.6);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.contact-icon-svg {
    width: 30px;
    height: 30px;
    color: white;
    transition: all 0.3s ease;
}

.floating-contact:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 12px 45px rgba(50, 108, 229, 0.8);
    animation: none;
    border-color: var(--secondary-color);
}

.floating-contact:hover .contact-icon-svg {
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 25px rgba(50, 108, 229, 0.5);
    }
    50% {
        box-shadow: 0 5px 35px rgba(50, 108, 229, 0.8);
    }
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    padding: 60px 0 40px;
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

.header-logo {
    margin-bottom: 20px;
}

.k8s-logo-header {
    width: 80px;
    height: 80px;
    animation: rotate 20s linear infinite;
    filter: drop-shadow(0 5px 15px rgba(50, 108, 229, 0.5));
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.header-contact {
    margin-top: 20px;
}

.header-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(50, 108, 229, 0.15), rgba(0, 217, 255, 0.15));
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.header-email::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 ease;
}

.header-email:hover::before {
    left: 100%;
}

.header-email:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(50, 108, 229, 0.4);
    border-color: var(--secondary-color);
}

.email-icon {
    width: 20px;
    height: 20px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.header-email:hover .email-icon {
    color: var(--text-primary);
    transform: scale(1.2) rotate(10deg);
}

.subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Hero Section */
.hero {
    background: rgba(35, 41, 49, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px;
    margin: 40px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out;
    border: 1px solid rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

body.light-mode .hero {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(50, 108, 229, 0.4);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.mission {
    background: linear-gradient(135deg, rgba(50, 108, 229, 0.1), rgba(0, 217, 255, 0.1));
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    margin: 30px 0;
    font-size: 1.15rem;
    font-weight: 500;
}

/* Services Section */
.services {
    margin: 60px 0;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-primary);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: rgba(35, 41, 49, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(74, 144, 226, 0.2);
    animation: fadeInUp 0.6s ease-out backwards;
}

body.light-mode .service-card {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(50, 108, 229, 0.3);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.cloud-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(50, 108, 229, 0.05);
    border-radius: 10px;
}

.cloud-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(30%);
}

.cloud-logo:hover {
    transform: scale(1.2) translateY(-5px);
    filter: grayscale(0%) drop-shadow(0 5px 15px rgba(50, 108, 229, 0.5));
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    padding: 10px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
}

.service-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Certifications Section */
.certifications {
    margin: 80px 0;
    text-align: center;
}

.cert-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: rgba(50, 108, 229, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    transition: all 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-10px);
    background: rgba(50, 108, 229, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(50, 108, 229, 0.3);
}

.cert-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.cert-item:hover .cert-logo {
    transform: scale(1.2);
    filter: drop-shadow(0 5px 15px rgba(50, 108, 229, 0.5));
}

.cert-item p {
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* Why Us Section */
.why-us {
    background: rgba(35, 41, 49, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px;
    margin: 60px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(74, 144, 226, 0.2);
}

body.light-mode .why-us {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.why-us h2 {
    margin-bottom: 40px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature {
    padding: 20px;
    border-left: 3px solid var(--primary-color);
    background: rgba(50, 108, 229, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateX(5px);
    background: rgba(50, 108, 229, 0.15);
    box-shadow: 0 5px 15px rgba(50, 108, 229, 0.2);
}

.feature p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Location Section */
.location {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, rgba(50, 108, 229, 0.1), rgba(0, 217, 255, 0.1));
    border-radius: 20px;
    margin: 60px 0;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.location h2 {
    margin-bottom: 20px;
}

.location p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact {
    background: rgba(35, 41, 49, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px;
    margin: 60px 0;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(74, 144, 226, 0.2);
}

body.light-mode .contact {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact h2 {
    margin-bottom: 20px;
}

.contact > p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 1.4rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 20px 45px;
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(50, 108, 229, 0.2), rgba(0, 217, 255, 0.2));
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-email::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.contact-email:hover::before {
    width: 400px;
    height: 400px;
}

.email-icon-large {
    width: 28px;
    height: 28px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.contact-email span {
    position: relative;
    z-index: 1;
}

.contact-email:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 45px rgba(50, 108, 229, 0.5);
    border-color: var(--secondary-color);
}

.contact-email:hover .email-icon-large {
    color: var(--text-primary);
    transform: rotate(15deg) scale(1.2);
    animation: emailBounce 0.6s ease;
}

@keyframes emailBounce {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-15deg) scale(1.2); }
    75% { transform: rotate(15deg) scale(1.2); }
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    margin-top: 60px;
    border-top: 1px solid rgba(74, 144, 226, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .header-email {
        font-size: 0.95rem;
        padding: 10px 18px;
    }

    .email-icon {
        width: 18px;
        height: 18px;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .hero {
        padding: 30px 20px;
    }

    .hero p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 25px;
    }

    .why-us {
        padding: 30px 20px;
    }

    .location {
        padding: 30px 20px;
    }

    .contact {
        padding: 30px 20px;
    }

    .contact-email {
        font-size: 1.1rem;
        padding: 16px 25px;
    }

    .email-icon-large {
        width: 22px;
        height: 22px;
    }

    .theme-toggle {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
        font-size: 1.3rem;
    }

    .floating-contact {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .contact-icon-svg {
        width: 24px;
        height: 24px;
    }

    .gradient-orb {
        filter: blur(60px);
    }

    .orb-1 {
        width: 300px;
        height: 300px;
    }

    .orb-2 {
        width: 250px;
        height: 250px;
    }

    .orb-3 {
        width: 200px;
        height: 200px;
    }

    .k8s-logo-header {
        width: 60px;
        height: 60px;
    }

    .cloud-logos {
        gap: 15px;
    }

    .cloud-logo {
        height: 30px;
    }

    .cert-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .cert-logo {
        width: 50px;
        height: 50px;
    }
}
