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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8f9fa;
    color: #2c3e50;
    overflow-x: hidden;
    cursor: default;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #5fa8a8;
    background: rgba(95, 168, 168, 0.1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
}

.cursor-trail {
    width: 8px;
    height: 8px;
    background: #5fa8a8;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.8;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Floating geometric shapes */
.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float-shapes 15s infinite ease-in-out;
}

.shape-circle {
    border-radius: 50%;
    background: linear-gradient(45deg, #5fa8a8, #2e4053);
}

.shape-square {
    background: linear-gradient(45deg, #5fa8a8, #2e4053);
    transform: rotate(45deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    background: transparent;
    border-style: solid;
}

@keyframes float-shapes {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.1; }
    25% { transform: translateY(-30px) rotate(90deg); opacity: 0.2; }
    50% { transform: translateY(-60px) rotate(180deg); opacity: 0.15; }
    75% { transform: translateY(-30px) rotate(270deg); opacity: 0.2; }
}

/* Gradient waves */
.gradient-wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, rgba(95, 168, 168, 0.03), rgba(46, 64, 83, 0.02), rgba(95, 168, 168, 0.03));
    animation: wave-rotation 25s linear infinite;
}

@keyframes wave-rotation {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Neural network lines */
.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.neural-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(95, 168, 168, 0.3), transparent);
    animation: neural-pulse 4s infinite ease-in-out;
}

@keyframes neural-pulse {
    0%, 100% { opacity: 0; transform: scaleX(0); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* Data streams */
.data-stream {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(95, 168, 168, 0.4), transparent);
    animation: data-flow 6s infinite linear;
}

@keyframes data-flow {
    0% { transform: translateY(-100vh); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* Tech grid pattern */
.tech-grid-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(95, 168, 168, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(95, 168, 168, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-shift 20s infinite ease-in-out;
}

@keyframes grid-shift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(25px, 25px); }
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #5fa8a8;
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 1; }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(95, 168, 168, 0.2);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(45deg, #5fa8a8, #2e4053);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    max-width: 200px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #5fa8a8;
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5fa8a8;
    transition: width 0.3s ease;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Language switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-flag {
    display: inline-flex;
    width: 28px;
    height: 19px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(95, 168, 168, 0.4);
    opacity: 0.45;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.lang-flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lang-flag:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.lang-flag.active {
    opacity: 1;
    box-shadow: 0 0 0 2px #5fa8a8;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #5fa8a8, #2e4053, #5fa8a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { filter: drop-shadow(0 0 20px rgba(95, 168, 168, 0.5)); }
    100% { filter: drop-shadow(0 0 40px rgba(46, 64, 83, 0.5)); }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #5fa8a8, #2e4053);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::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;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(95, 168, 168, 0.3);
}

/* Tech Grid */
.tech-grid {
    padding: 100px 50px;
    background: rgba(255, 255, 255, 0.7);
}

.tech-grid h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #5fa8a8, #2e4053);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(95, 168, 168, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(95, 168, 168, 0.3), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(95, 168, 168, 0.2);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #5fa8a8;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-icon svg {
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon svg {
    transform: scale(1.1);
}

.tech-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
    position: relative;
    z-index: 1;
}

.tech-card p {
    opacity: 0.8;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    color: #2c3e50;
}

/* Stats Section */
.stats {
    padding: 100px 50px;
    background: rgba(248, 249, 250, 0.9);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(45deg, #5fa8a8, #2e4053);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.8;
    color: #2c3e50;
}

/* Contact Section */
.contact {
    padding: 100px 50px;
    background: rgba(255, 255, 255, 0.9);
}

.contact h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #5fa8a8, #2e4053);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    padding: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(95, 168, 168, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #5fa8a8, #2e4053);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.contact-item i {
    font-size: 1.2rem;
    color: #5fa8a8;
    margin-right: 15px;
    width: 20px;
}

.contact-item a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #5fa8a8;
}

/* Contact Form */
.contact-form-wrap {
    padding: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(95, 168, 168, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form-wrap h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #5fa8a8, #2e4053);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 1rem;
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(95, 168, 168, 0.3);
    border-radius: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #5fa8a8;
    box-shadow: 0 0 0 3px rgba(95, 168, 168, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.form-banner {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
}

.form-banner.success {
    background: rgba(95, 168, 168, 0.15);
    color: #2e6b6b;
    border: 1px solid rgba(95, 168, 168, 0.4);
}

.form-banner.error {
    background: rgba(220, 90, 90, 0.12);
    color: #a33;
    border: 1px solid rgba(220, 90, 90, 0.35);
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(95, 168, 168, 0.2);
    max-width: 1200px;
    margin: 60px auto 0;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* Blog */
.blog {
    padding: 140px 50px 100px;
    min-height: 100vh;
}

.blog h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #5fa8a8, #2e4053);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(95, 168, 168, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(95, 168, 168, 0.2);
}

.blog-card h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.blog-card h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h2 a:hover {
    color: #5fa8a8;
}

.blog-card .post-date {
    font-size: 0.85rem;
    color: #5fa8a8;
    margin-bottom: 12px;
}

.blog-card p {
    color: #2c3e50;
    opacity: 0.85;
    line-height: 1.6;
}

.blog-empty {
    text-align: center;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog post detail */
.post {
    max-width: 760px;
    margin: 140px auto 100px;
    padding: 0 24px;
}

.post h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 12px;
    text-align: left;
    background: linear-gradient(45deg, #5fa8a8, #2e4053);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post .post-date {
    color: #5fa8a8;
    margin-bottom: 30px;
}

.post-body {
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-body p {
    margin-bottom: 20px;
}

/* Headings inside a post need breathing room (the global * reset removes it). */
.post-body h2 {
    margin: 44px 0 16px;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3e50;
}

.post-body h3 {
    margin: 30px 0 10px;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    color: #2c3e50;
}

/* Restore list indentation/markers (also zeroed by the global * reset). */
.post-body ul,
.post-body ol {
    margin: 0 0 20px;
    padding-left: 1.6em;
}

.post-body li {
    margin: 0;
    line-height: 1.6;
}

.post-body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 8px 0 28px;
    border: 1px solid rgba(95, 168, 168, 0.2);
}

.post-body strong {
    color: #2c3e50;
}

.back-link {
    display: inline-block;
    margin-top: 40px;
    color: #5fa8a8;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 50px;
    text-align: center;
    background: rgba(248, 249, 250, 0.95);
    border-top: 1px solid rgba(95, 168, 168, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #5fa8a8;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 0 20px;
    }

    .tech-grid, .stats {
        padding: 50px 20px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .map-container iframe {
        height: 300px;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(95, 168, 168, 0.2);
    z-index: 10000;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, #5fa8a8, #2e4053);
    width: 0%;
    transition: width 0.1s ease;
}
