/* Modern WiFi-KM Stylesheet */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --error-color: #f56565;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Network nodes decoration */
.network-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.network-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gradient-1);
    border-radius: 50%;
    opacity: 0.4;
    animation: pulse 3s ease-in-out infinite;
}

.network-node::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    top: -4px;
    left: -4px;
    animation: ripple 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

.network-node:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.network-node:nth-child(2) { top: 25%; left: 85%; animation-delay: 0.5s; }
.network-node:nth-child(3) { top: 45%; left: 10%; animation-delay: 1s; }
.network-node:nth-child(4) { top: 60%; left: 90%; animation-delay: 1.5s; }
.network-node:nth-child(5) { top: 80%; left: 20%; animation-delay: 2s; }
.network-node:nth-child(6) { top: 35%; left: 50%; animation-delay: 2.5s; }
.network-node:nth-child(7) { top: 70%; left: 65%; animation-delay: 0.8s; }
.network-node:nth-child(8) { top: 15%; left: 60%; animation-delay: 1.3s; }

/* Network connection lines */
.network-bg::before,
.network-bg::after {
    content: '';
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(102, 126, 234, 0.2) 20%,
        rgba(102, 126, 234, 0.4) 50%,
        rgba(102, 126, 234, 0.2) 80%,
        transparent 100%);
    animation: connectionFlow 4s linear infinite;
}

.network-bg::before {
    top: 25%;
    left: 15%;
    width: 70%;
    transform: rotate(-15deg);
}

.network-bg::after {
    top: 60%;
    left: 10%;
    width: 80%;
    transform: rotate(8deg);
    animation-delay: 2s;
}

@keyframes connectionFlow {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

/* Tech icons decoration */
.hero .container::before,
.hero .container::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    z-index: 0;
}

.hero .container::before {
    top: 20px;
    left: 20px;
    animation: float 3s ease-in-out infinite;
}

.hero .container::after {
    bottom: 20px;
    right: 20px;
    animation: float 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

.hero .container {
    position: relative;
}

/* WiFi signal waves decoration */
.content-section {
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: -30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background:
        radial-gradient(circle, transparent 40%, rgba(102, 126, 234, 0.1) 40%, rgba(102, 126, 234, 0.1) 50%, transparent 50%),
        radial-gradient(circle, transparent 60%, rgba(102, 126, 234, 0.08) 60%, rgba(102, 126, 234, 0.08) 70%, transparent 70%);
    border-radius: 50%;
    animation: wifiPulse 2s ease-in-out infinite;
}

@keyframes wifiPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Data packet animation on network lines */
.network-bg .data-packet {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gradient-2);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(240, 147, 251, 0.8);
}

.network-bg .data-packet:nth-child(9) {
    top: 25%;
    left: 15%;
    animation: movePacket1 6s linear infinite;
}

.network-bg .data-packet:nth-child(10) {
    top: 60%;
    left: 10%;
    animation: movePacket2 7s linear infinite;
    animation-delay: 1s;
}

@keyframes movePacket1 {
    0% { left: 15%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 85%; opacity: 0; }
}

@keyframes movePacket2 {
    0% { left: 10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 90%; opacity: 0; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

.header-top {
    background: rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    font-size: 0.9rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-info a:hover {
    opacity: 0.8;
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.logo img {
    max-height: 60px;
    height: auto;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
}

nav ul li a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 12px;
    transition: all 0.3s;
}

nav ul li a:hover,
nav ul li.active a {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Hero Section */
.hero {
    background: var(--gradient-1);
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 0 0 30px 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient-2);
    border-radius: 50%;
    top: -150px;
    left: -150px;
    opacity: 0.3;
    filter: blur(60px);
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gradient-3);
    border-radius: 50%;
    bottom: -200px;
    right: -200px;
    opacity: 0.3;
    filter: blur(80px);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.hero-image {
    max-width: 1100px;
    width: 95%;
    height: auto;
    margin: 0 auto 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: block;
    position: relative;
    z-index: 1;
}

/* Main Content */
main {
    padding: 60px 20px;
}

.content-section {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.content-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: var(--gradient-1);
    opacity: 0.05;
    border-radius: 50%;
    pointer-events: none;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: none;
    position: relative;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 25px 0 15px 0;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Lists */
ul {
    list-style: none;
    padding-left: 0;
}

.content-section ul li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: var(--text-light);
}

.content-section ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 30px auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    transition: left 0.3s;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn:active {
    transform: translateY(0);
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--error-color);
}

/* Cards/Grid Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: visible;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-1);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.card::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 60px;
    height: 60px;
    background: var(--gradient-2);
    opacity: 0;
    border-radius: 0 20px 0 50%;
    transition: all 0.4s;
    z-index: -1;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px) rotate(-1deg);
    border-color: transparent;
    background: #ffffff;
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    opacity: 0.15;
    width: 80px;
    height: 80px;
}

.card:hover h3 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: brightness(0.8) saturate(1.5);
}

.card:hover p {
    color: #1a202c;
}

.card:hover ul li {
    color: #2d3748;
}

.card:hover a {
    color: var(--primary-color);
    font-weight: 600;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-left: 40px;
}

.card h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--gradient-1);
    border-radius: 50%;
    opacity: 0.2;
}

.card:nth-child(1) h3::before {
    background: var(--gradient-1);
}

.card:nth-child(2) h3::before {
    background: var(--gradient-2);
}

.card:nth-child(3) h3::before {
    background: var(--gradient-3);
}

.card:nth-child(4) h3::before {
    background: var(--gradient-1);
}

.card:nth-child(5) h3::before {
    background: var(--gradient-2);
}

.card:nth-child(6) h3::before {
    background: var(--gradient-3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.05) 0%, rgba(22, 33, 62, 0.08) 100%);
    backdrop-filter: blur(20px);
    color: #ffffff;
    padding: 40px 20px 20px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section ul li {
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 400;
}

.footer-section a:hover {
    color: #ffffff;
    padding-left: 5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-section p {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 500px;
    }

    nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    nav ul li a {
        padding: 15px 20px;
        border-radius: 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .content-section {
        padding: 25px 20px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .header-main .container {
        justify-content: space-between;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo img {
        max-height: 50px;
    }

    .contact-info {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .content-section {
        padding: 20px 15px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.fw-bold {
    font-weight: 700;
}

.text-primary {
    color: var(--primary-color);
}

.text-muted {
    color: var(--text-light);
}
