:root {
    --color-bg: #050810;
    --color-bg-secondary: #0a1128;
    --color-accent: #1e90ff;
    --color-accent-light: #00bfff;
    --color-accent-dark: #0056b3;
    --color-text: #ffffff;
    --color-text-muted: #94a3b8;
    --color-glass: rgba(10, 17, 40, 0.7);
    --color-border: rgba(30, 144, 255, 0.1);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --glow: 0 0 20px rgba(30, 144, 255, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(30, 144, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 191, 255, 0.06) 0%, transparent 40%),
        linear-gradient(180deg, #050810 0%, #0a1128 100%);
    z-index: -1;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(5, 8, 16, 0.8);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.logo {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2rem);
}

nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--color-accent);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    padding-top: 80px;
    text-align: left;
    gap: 4rem;
}

.hero-content {
    max-width: 650px;
    animation: fadeIn 0.8s ease-out;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeIn 1s ease-out 0.3s both;
}

.cpp-icon-container {
    position: relative;
    width: clamp(200px, 25vw, 300px);
    height: clamp(200px, 25vw, 300px);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: levitate 8s ease-in-out infinite;
}

.cpp-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-accent);
    filter: drop-shadow(0 0 30px rgba(30, 144, 255, 0.4));
    /* Reflection effect */
    -webkit-box-reflect: below 10px linear-gradient(transparent, rgba(30, 144, 255, 0.1));
}

.icon-shadow {
    position: absolute;
    bottom: -20px;
    width: 150px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(30, 144, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: shadowPulse 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes levitate {
    0%, 100% { transform: translateY(0) rotate(-3deg) translateX(-10px); }
    50% { transform: translateY(-20px) rotate(3deg) translateX(10px); }
}

@keyframes shadowPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(0.7); opacity: 0.1; }
}

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

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

.hero-tagline {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(30, 144, 255, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(30, 144, 255, 0.2);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 0 2.5rem;
    line-height: 1.7;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.9rem, 2vw, 1.2rem) clamp(1.5rem, 3vw, 2.5rem);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
    font-weight: 700;
    font-size: clamp(0.85rem, 2vw, 1rem);
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 144, 255, 0.4);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.15);
}

/* Sections */
section {
    padding: clamp(60px, 10vw, 100px) 5%;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-header p {
    color: var(--color-text-muted);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    background: rgba(30, 144, 255, 0.05);
    border-color: rgba(30, 144, 255, 0.3);
    transform: translateY(-10px);
    box-shadow: var(--shadow-card), 0 0 30px rgba(30, 144, 255, 0.1);
}

.feature-icon {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.7;
}

/* Footer */
footer {
    padding: clamp(2rem, 5vw, 4rem) 5%;
    background: #030508;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

footer p {
    color: var(--color-text-muted);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: rgba(10, 17, 40, 0.6);
    border: 1px solid rgba(30, 144, 255, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
    animation: newsCardAppear 0.6s ease-out forwards;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes newsCardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: rgba(30, 144, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(30, 144, 255, 0.1);
}

.news-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: rgba(30, 144, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.news-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(10, 17, 40, 1) 0%, transparent 100%);
}

.news-card-content {
    padding: 1.5rem;
    position: relative;
    margin-top: -30px;
    z-index: 1;
}

.news-card-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: rgba(30, 144, 255, 0.1);
    border-radius: 50px;
}

.news-card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
    color: var(--color-accent);
}

.news-card-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-empty {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.news-empty .empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: levitate 4s ease-in-out infinite;
}

.news-empty h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.news-empty p {
    color: var(--color-text-muted);
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: rgba(10, 17, 40, 0.6);
    border: 1px solid rgba(30, 144, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: reviewCardAppear 0.6s ease-out forwards;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }
.review-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes reviewCardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: rgba(30, 144, 255, 0.15);
    line-height: 1;
}

.review-card:hover {
    transform: translateY(-8px);
    border-color: rgba(30, 144, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(30, 144, 255, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.review-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent);
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.3);
}

.review-author {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.review-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
}

.reviews-empty {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.reviews-empty .empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: levitate 4s ease-in-out infinite;
}

.reviews-empty h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.reviews-empty p {
    color: var(--color-text-muted);
}

/* Contacts Section */
.contacts-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.3);
}

.contact-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 144, 255, 0.4);
}

.contact-btn .contact-icon {
    font-size: 1.2rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero {
        padding: 0 5%;
        padding-top: 80px;
    }
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        justify-content: center;
        gap: 2rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero p {
        margin: 0 auto 2rem;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.75rem 5%;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(5, 8, 16, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 80px 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--color-border);
        z-index: 99;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav li {
        border-bottom: 1px solid var(--color-border);
    }
    
    nav a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-button {
        width: 100%;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .contacts-grid {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    section {
        padding: 50px 5%;
    }
    
    .hero-tagline {
        padding: 0.4rem 0.8rem;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
