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

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #0066cc;
    --text-color: #333333;
    --light-bg: #f5f5f5;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: #000000;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    position: relative;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

.logo a {
    display: block;
    line-height: 0;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
}

.lang-switcher {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-left: 1rem;
}

.lang-switcher:hover {
    background: #0052a3;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: #000000;
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px;
    background-position: 0 0, 25px 25px;
    animation: circleFloat 20s linear infinite;
}

@keyframes circleMove {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 0 0;
    }
    25% {
        background-position: 100% 0%, 0% 100%, 25% 75%, 0 0;
    }
    50% {
        background-position: 100% 100%, 0% 0%, 75% 25%, 0 0;
    }
    75% {
        background-position: 0% 100%, 100% 0%, 50% 50%, 0 0;
    }
}

@keyframes circleFloat {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.hero-title {
    font-size: 4.6875rem;
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.hero-word {
    display: inline-flex;
    align-items: center;
}

.hero-x {
    height: 2.34375em;
    width: auto;
    display: inline-block;
    margin: 0 -0.1rem;
    vertical-align: middle;
}

.hero-divider {
    color: rgba(255, 255, 255, 0.6);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Page Header (for subpages) */
.page-header {
    background: var(--light-bg);
    padding: 60px 0;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

.cta-button {
    background: white;
    color: #667eea;
    padding: 15px 40px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--secondary-color);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Stats Section */
.stats {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 60px 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.about-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: left;
}

.about-intro .about-text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: left;
    font-weight: normal;
}

.about-emphasis {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.about-statement {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.service-item {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.service-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-item ul ul {
    margin-left: 2rem;
    margin-top: 0.5rem;
}

/* Contact Page Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-block {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.info-block h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-block p {
    color: var(--text-color);
    line-height: 1.8;
}

.contact-form-wrapper {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 10px;
}

/* Contact Form */
.contact-form {
    max-width: 100%;
    margin: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background: var(--accent-color);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background: #0052a3;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.footer-section p,
.footer-section a {
    color: #cccccc;
    line-height: 1.8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

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

.footer-section ul li {
    margin-bottom: 0.3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* Responsive Design */

/* Tablet and smaller */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .feature-grid,
    .service-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Mobile landscape and smaller tablets */
@media (max-width: 768px) {
    body {
        background-color: #ffffff;
        color: #333333;
    }

    .hamburger {
        display: flex;
    }

    .navbar .container {
        flex-direction: row;
        gap: 0;
        padding: 1rem 15px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: #000000;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(255, 255, 255, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #333;
        text-align: left;
        color: #ffffff;
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        color: #ffffff;
        background: #333333;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

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

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .features,
    .content-section {
        padding: 50px 0;
    }

    .features h2,
    .content-section h2 {
        font-size: 2rem;
    }

    .feature-grid,
    .service-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-form {
        padding: 2rem;
    }

    /* Technology grid responsive */
    .content-section div[style*="grid-template-columns: repeat(6, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }

    .content-section div[style*="grid-template-columns: repeat(6, 1fr)"] > div {
        padding: 1rem !important;
        min-height: 100px !important;
    }

    .content-section div[style*="grid-template-columns: repeat(6, 1fr)"] img {
        max-width: 80px !important;
        max-height: 60px !important;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo img {
        height: 40px;
    }

    .nav-menu {
        width: 100%;
    }

    .nav-menu li {
        flex: 1 1 auto;
    }

    .nav-menu a {
        padding: 0.4rem 0.5rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 0.95rem;
    }

    .features h2,
    .content-section h2 {
        font-size: 1.6rem;
    }

    .feature-card,
    .service-item {
        padding: 1.5rem;
    }

    .feature-card h3,
    .service-item h3 {
        font-size: 1.3rem;
    }

    .stat-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 1rem;
    }

    .contact-grid {
        gap: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .info-block {
        padding: 1.5rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
    }

    .submit-button {
        font-size: 1rem;
        padding: 12px 30px;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    /* Technology grid for small mobile */
    .content-section div[style*="grid-template-columns: repeat(6, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .content-section div[style*="grid-template-columns: repeat(6, 1fr)"] > div {
        padding: 0.75rem !important;
        min-height: 80px !important;
    }

    .content-section div[style*="grid-template-columns: repeat(6, 1fr)"] img {
        max-width: 70px !important;
        max-height: 50px !important;
    }
}
