/* Custom Styles for NanoMatter Technologies */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
}
/* Atomic Grid Animation */
.atomic-grid-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(255, 55, 95, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(255, 55, 95, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}
/* Technology Cards */
.tech-card {
    background: linear-gradient(145deg, #161b22, #1c2128);
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 55, 95, 0.1), transparent);
    transition: left 0.5s ease;
}

.tech-card:hover::before {
    left: 100%;
}

.tech-card:hover {
    transform: translateY(-8px);
    border-color: #ff375f;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tech-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 55, 95, 0.1);
    border: 2px solid rgba(255, 55, 95, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
    background: rgba(255, 55, 95, 0.2);
    transform: scale(1.1);
}
/* Service Cards */
.service-card {
    background: linear-gradient(145deg, #161b22, #1c2128);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #ff375f;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 55, 95, 0.1);
    border: 2px solid rgba(255, 55, 95, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(255, 55, 95, 0.2);
    transform: scale(1.1);
}
/* Partner Logos */
.partner-logo {
    background: rgba(255, 55, 95, 0.1);
    border: 1px solid rgba(255, 55, 95, 0.3);
    border-radius: 8px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    background: rgba(255, 55, 95, 0.2);
    transform: scale(1.05);
}
/* World Map Animation */
.world-map-animation {
    width: 100%;
    height: 300px;
    background: linear-gradient(145deg, #161b22, #1c2128);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.world-map-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 55, 95, 0.1) 0 0, 40px 40px,
        radial-gradient(circle at 70% 60%, rgba(255, 55, 95, 0.05) 0 0, 60px 60px;
    animation: rotateMap 40s linear infinite;
}

@keyframes rotateMap {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Office Cards */
.office-card {
    background: rgba(255, 55, 95, 0.05);
    border: 1px solid rgba(255, 55, 95, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.office-card:hover {
    background: rgba(255, 55, 95, 0.1);
    border-color: rgba(255, 55, 95, 0.3);
}
/* Form Styling */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Particle Animation */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff375f;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}
/* Responsive Design */
@media (max-width: 768px) {
    .tech-card, .service-card {
        padding: 1.5rem;
    }
    
    .tech-icon, .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .world-map-animation {
        height: 200px;
    }
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}