/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
}

:root {
    --primary: #00f5ff;
    --secondary: #7000ff;
    --accent: #ff0080;
    --bg-dark: #0a0e27;
    --bg-darker: #050816;
    --text-light: #ffffff;
    --text-gray: #b0b8c1;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    width: 100%;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch;
}

.container {
    max-width: 85%;
    width: 100%;
    margin: 0 auto;
    padding: 0 7.5%;
    box-sizing: border-box;
}

/* Particle Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
    padding: 20px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 32px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.cta-btn {
    padding: 12px 30px;
    background: var(--gradient);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-cta {
    display: none;
}

.desktop-cta {
    display: block;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 15vh;
    text-align: center;
    width: 100%;
    position: relative;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.hero-content {
    animation: fadeInLeft 1s ease-out;
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    width: 100%;
    padding: 0 5%;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin: 0 auto 2.5rem auto;
    max-width: 90%;
    text-align: center;
    width: 100%;
    padding: 0 5%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    justify-content: center;
}

.btn {
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Stats */
.stats {
    display: flex;
    gap: 60px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 14px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.cyber-shield {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.shield-layers {
    position: absolute;
    width: 100%;
    height: 100%;
}

.layer {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    animation: rotate 10s linear infinite;
}

.layer-1 {
    width: 100%;
    height: 100%;
    border-color: rgba(0, 245, 255, 0.3);
}

.layer-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-color: rgba(112, 0, 255, 0.3);
    animation-direction: reverse;
}

.layer-3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-color: rgba(255, 0, 128, 0.3);
}

.shield-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.shield-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.5));
    animation: pulse 2s ease-in-out infinite;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    animation: scan 3s linear infinite;
    box-shadow: 0 0 20px var(--primary);
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.icon-float {
    position: absolute;
    font-size: 40px;
    animation: float 3s ease-in-out infinite;
    animation-delay: var(--delay);
    left: calc(50% + var(--x));
    top: calc(50% + var(--y));
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}

/* Services Section */
.services {
    padding: 5% 0;
    width: 100%;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 5%;
    padding: 0 5%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0, 245, 255, 0.2);
}

.service-card:hover::before {
    opacity: 0.05;
}

/* Unique colors for each card */
.service-card:nth-child(1) {
    border-color: rgba(0, 245, 255, 0.3);
}

.service-card:nth-child(1):hover {
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.4);
    border-color: #00f5ff;
}

.service-card:nth-child(2) {
    border-color: rgba(112, 0, 255, 0.3);
}

.service-card:nth-child(2):hover {
    box-shadow: 0 20px 40px rgba(112, 0, 255, 0.4);
    border-color: #7000ff;
}

.service-card:nth-child(3) {
    border-color: rgba(255, 0, 128, 0.3);
}

.service-card:nth-child(3):hover {
    box-shadow: 0 20px 40px rgba(255, 0, 128, 0.4);
    border-color: #ff0080;
}

.service-card:nth-child(4) {
    border-color: rgba(0, 255, 136, 0.3);
}

.service-card:nth-child(4):hover {
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.4);
    border-color: #00ff88;
}

.service-card:nth-child(5) {
    border-color: rgba(255, 189, 46, 0.3);
}

.service-card:nth-child(5):hover {
    box-shadow: 0 20px 40px rgba(255, 189, 46, 0.4);
    border-color: #ffbd2e;
}

.service-card:nth-child(6) {
    border-color: rgba(255, 95, 86, 0.3);
}

.service-card:nth-child(6):hover {
    box-shadow: 0 20px 40px rgba(255, 95, 86, 0.4);
    border-color: #ff5f56;
}

.service-card.featured {
    border-color: var(--primary);
    background: rgba(0, 245, 255, 0.05);
    transform: scale(1.02);
}

.service-card.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    animation: pulse-badge 2s infinite;
    z-index: 2;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(112, 0, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(112, 0, 255, 0.6);
    }
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
    display: inline-block;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Different icon colors */
.service-card:nth-child(1) .service-icon {
    filter: drop-shadow(0 0 15px rgba(0, 245, 255, 0.8));
}

.service-card:nth-child(2) .service-icon {
    filter: drop-shadow(0 0 15px rgba(112, 0, 255, 0.8));
}

.service-card:nth-child(3) .service-icon {
    filter: drop-shadow(0 0 15px rgba(255, 0, 128, 0.8));
}

.service-card:nth-child(4) .service-icon {
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.8));
}

.service-card:nth-child(5) .service-icon {
    filter: drop-shadow(0 0 15px rgba(255, 189, 46, 0.8));
}

.service-card:nth-child(6) .service-icon {
    filter: drop-shadow(0 0 15px rgba(255, 95, 86, 0.8));
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
    font-weight: 700;
    position: relative;
    z-index: 5;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.7;
    position: relative;
    z-index: 5;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
    position: relative;
    z-index: 5;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 25px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}

.service-btn {
    background: transparent;
    border: 2px solid rgba(0, 245, 255, 0.3);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: inline-block;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

.service-btn:hover {
    background: var(--gradient);
    border-color: transparent;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 245, 255, 0.3);
    color: white;
}

/* Unique button colors for each card */
.service-card:nth-child(1) .service-btn {
    border-color: rgba(0, 245, 255, 0.4);
}

.service-card:nth-child(1) .service-btn:hover {
    background: linear-gradient(135deg, #00f5ff, #00b8d4);
    box-shadow: 0 5px 15px rgba(0, 245, 255, 0.5);
}

.service-card:nth-child(2) .service-btn {
    border-color: rgba(112, 0, 255, 0.4);
}

.service-card:nth-child(2) .service-btn:hover {
    background: linear-gradient(135deg, #7000ff, #5000cc);
    box-shadow: 0 5px 15px rgba(112, 0, 255, 0.5);
}

.service-card:nth-child(3) .service-btn {
    border-color: rgba(255, 0, 128, 0.4);
}

.service-card:nth-child(3) .service-btn:hover {
    background: linear-gradient(135deg, #ff0080, #cc0066);
    box-shadow: 0 5px 15px rgba(255, 0, 128, 0.5);
}

.service-card:nth-child(4) .service-btn {
    border-color: rgba(0, 255, 136, 0.4);
}

.service-card:nth-child(4) .service-btn:hover {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.5);
}

.service-card:nth-child(5) .service-btn {
    border-color: rgba(255, 189, 46, 0.4);
}

.service-card:nth-child(5) .service-btn:hover {
    background: linear-gradient(135deg, #ffbd2e, #ff9800);
    box-shadow: 0 5px 15px rgba(255, 189, 46, 0.5);
}

.service-card:nth-child(6) .service-btn {
    border-color: rgba(255, 95, 86, 0.4);
}

.service-card:nth-child(6) .service-btn:hover {
    background: linear-gradient(135deg, #ff5f56, #ff3b30);
    box-shadow: 0 5px 15px rgba(255, 95, 86, 0.5);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: rgba(10, 14, 39, 0.5);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.about-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 16px;
}

.about-stats-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.mini-stat {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(112, 0, 255, 0.05));
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s;
}

.mini-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
}

.mini-stat-number {
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.mini-stat-label {
    color: var(--text-gray);
    font-size: 14px;
}

.about-features h3 {
    font-size: 28px;
    margin-bottom: 30px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 245, 255, 0.3);
    transform: translateX(10px);
}

.feature-icon {
    font-size: 32px;
    min-width: 50px;
    text-align: center;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}

.feature-text h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.feature-text p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* Team Section */
.team {
    padding: 5% 0;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    margin-top: -2%;
    margin-bottom: 5%;
}

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

.team-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 245, 255, 0.2);
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(0, 245, 255, 0.3);
    transition: all 0.3s ease;
}

.team-card:hover .team-photo {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 700;
}

.team-role {
    color: var(--primary);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    margin-bottom: 15px;
    font-weight: 600;
}

.team-bio {
    color: var(--text-gray);
    font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
    line-height: 1.6;
}

/* Technologies */
.technologies {
    padding: 5% 0;
    background: rgba(0, 245, 255, 0.02);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.tech-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
}

.tech-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

/* Contact Section */
.contact {
    padding: 120px 0;
}

.contact-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 18px;
    margin-bottom: 60px;
}

.contact-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-input,
.form-textarea {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
}

/* Select/Dropdown полная перестилизация */
.form-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: #0a0e27 !important;
    background-color: #0a0e27 !important;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%2300f5ff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') !important;
    background-position: right 15px center !important;
    background-repeat: no-repeat !important;
    background-size: 20px !important;
    border: 2px solid rgba(0, 245, 255, 0.2) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    position: relative;
    padding: 15px 45px 15px 20px !important;
    color: white !important;
    color-scheme: dark;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-select:hover {
    background-color: #1a2550 !important;
    border-color: rgba(0, 245, 255, 0.5) !important;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

.form-select:focus {
    background-color: #1a2550 !important;
    border-color: var(--primary) !important;
    outline: none !important;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.form-select option {
    background: #0a0e27 !important;
    background-color: #0a0e27 !important;
    color: #ffffff !important;
    padding: 15px 20px !important;
    font-size: 15px !important;
    border: none !important;
    font-family: inherit !important;
}

.form-select option:hover,
.form-select option:focus,
.form-select option:active {
    background: #1a2550 !important;
    background-color: #1a2550 !important;
    color: #00f5ff !important;
}

.form-select option:checked,
.form-select option[selected] {
    background: #1a2550 !important;
    background-color: #1a2550 !important;
    color: #00f5ff !important;
    font-weight: 600 !important;
}

/* Webkit-specific overrides */
@supports (-webkit-appearance: none) {
    .form-select option {
        background: #0a0e27 !important;
    }
    .form-select option:hover {
        background: #1a2550 !important;
    }
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 245, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.form-input:required:invalid {
    border-color: rgba(255, 95, 86, 0.3);
}

.form-input:required:valid {
    border-color: rgba(0, 255, 136, 0.3);
}

.form-textarea {
    width: 100%;
    resize: vertical;
    margin-bottom: 20px;
}

.form-checkbox {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-checkbox label {
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.form-checkbox label:hover {
    color: var(--text-primary);
}

.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    text-align: center;
    animation: slideDown 0.3s ease;
}

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

.form-note {
    margin-top: 15px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    font-style: italic;
    opacity: 0.8;
}

.btn-large {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    margin-top: 10px;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 15px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 5px 0;
    color: var(--text-gray);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes scan {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(200px) rotate(360deg); }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(10px, -10px) rotate(5deg);
    }
    66% {
        transform: translate(-10px, 10px) rotate(-5deg);
    }
}

/* Live Stats Section */
.live-stats {
    padding: 80px 0;
    background: rgba(10, 14, 39, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(112, 0, 255, 0.05));
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 0;
    word-wrap: break-word;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 245, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.3);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 15px 0;
}

.stat-label {
    color: var(--text-gray);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-trend {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

.stat-trend.up {
    color: #00ff88;
}

.stat-trend.down {
    color: #ff4444;
}

/* Terminal Section */
.terminal-section {
    padding: 80px 0;
}

.terminal-window {
    background: #1a1d2e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin: 0 auto;
}

.terminal-header {
    background: #2a2d3e;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
}

.terminal-title {
    color: var(--text-gray);
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: #00ff88;
}

#terminal-output .line {
    margin: 5px 0;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background: var(--primary);
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Threat Map Section */
.threat-map-section {
    padding: 80px 0;
    background: rgba(10, 14, 39, 0.5);
}

.threat-map {
    margin-top: 50px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 15px;
    padding: 40px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.threat-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(112, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255, 0, 128, 0.1) 0%, transparent 50%);
}

.map-overlay {
    position: relative;
    width: 100%;
    height: 400px;
}

.attack-pulse {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 0, 128, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 0, 128, 0.7);
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 20px rgba(255, 0, 128, 0);
    }
}

.threat-legend {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.critical {
    background: #ff0080;
    box-shadow: 0 0 10px #ff0080;
}

.legend-dot.medium {
    background: #ffbd2e;
    box-shadow: 0 0 10px #ffbd2e;
}

.legend-dot.low {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.95), rgba(26, 29, 46, 0.95));
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: modalSlide 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-title {
    font-size: 32px;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-body {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-cta {
    width: 100%;
}

/* 3D Card Hover Effect */
.service-card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
    }
    
    * {
        max-width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .desktop-cta {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        border-bottom: 1px solid rgba(0, 245, 255, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 10px;
        font-size: 18px;
    }
    
    .mobile-cta {
        display: block;
        padding: 15px 0;
        border-bottom: none;
    }
    
    .mobile-cta .cta-btn {
        width: 100%;
        padding: 15px;
    }
    
    .hero .container {
        width: 100%;
    }
    
    .hero {
        padding-top: 25%;
        min-height: auto;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 5vw, 2rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.875rem, 2.5vw, 1rem);
    }
    
    .hero-buttons {
        width: 100%;
    }
    
    .hero-buttons .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        width: auto;
        min-width: 140px;
    }
    
    .stats {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .service-card {
        padding: 7.5%;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .service-card p {
        font-size: 0.875rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-content h3 {
        font-size: 1.5rem;
    }
    
    .about-content p {
        font-size: 0.875rem;
    }
    
    .feature-item {
        font-size: 0.875rem;
    }
    
    .about-stats-mini {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
    }
    
    .team-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
        pointer-events: none;
        user-select: none;
    }
    
    .team-card:hover {
        transform: none;
        border-color: rgba(0, 245, 255, 0.1);
        box-shadow: none;
    }
    
    .team-card:hover::before {
        transform: scaleX(0);
    }
    
    .team-card:hover .team-photo {
        border-color: rgba(0, 245, 255, 0.3);
        box-shadow: none;
    }
    
    .team-card:focus,
    .team-card:active {
        outline: none;
        border-color: rgba(0, 245, 255, 0.1);
        transform: none;
        box-shadow: none;
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tech-card {
        padding: 5%;
        font-size: 0.8125rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content h3 {
        font-size: 1rem;
    }
    
    .footer-content p,
    .footer-content a {
        font-size: 0.8125rem;
    }
}

/* Small Mobile Devices (max 480px) */
@media (max-width: 480px) {
    .hero {
        padding-top: 30%;
    }
    .hero-title {
        font-size: clamp(1.25rem, 6vw, 1.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.75rem, 3vw, 0.875rem);
    }
    
    .hero-buttons .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
        min-width: 120px;
    }
    
    .container {
        padding: 0 5%;
        max-width: 100%;
    }
    
    .section-title {
        font-size: clamp(1.375rem, 5vw, 1.625rem);
        padding: 0 5%;
    }
    
    .service-card {
        padding: 6%;
    }
    
    .service-card h3 {
        font-size: 1.125rem;
    }
    
    .service-card p {
        font-size: 0.8125rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .tech-card {
        padding: 4%;
        font-size: 0.6875rem;
    }
    
    .about-content h3 {
        font-size: 1.25rem;
    }
    
    .about-content p,
    .feature-item {
        font-size: 0.8125rem;
    }
    
    .footer-content h3 {
        font-size: 0.875rem;
    }
    
    .footer-content p,
    .footer-content a {
        font-size: 0.75rem;
    }
}
