/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #2563eb;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.login-btn {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    transition: transform 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.login-btn::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
    border-color: #fbbf24;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 400px;
}

.bearing-container {
    position: relative;
    width: 300px;
    height: 300px;
}

/* Bearing Outer Ring */
.bearing-outer {
    width: 280px;
    height: 280px;
    border: 12px solid #374151;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 255, 0.1);
}

/* Bearing Inner Ring */
.bearing-inner {
    width: 120px;
    height: 120px;
    border: 8px solid #374151;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #4b5563, #6b7280);
    box-shadow: 
        inset 0 0 15px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.1);
}

/* Ball Bearing Track */
.bearing-track {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate-bearing 8s linear infinite;
}

/* Individual Ball Bearings - Properly aligned in a circle */
.ball-bearing {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 30% 30%, #e5e7eb, #9ca3af, #6b7280);
    border-radius: 50%;
    position: absolute;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.3),
        inset -2px -2px 4px rgba(0, 0, 0, 0.3);
    animation: ball-spin 2s linear infinite;
    top: 50%;
    left: 50%;
}

/* Position ball bearings in perfect circle - 8 balls at 45° intervals */
.ball-bearing:nth-child(1) {
    transform: translate(-50%, -50%) translateY(-90px) translateX(0px);
}

.ball-bearing:nth-child(2) {
    transform: translate(-50%, -50%) translateY(-64px) translateX(64px);
}

.ball-bearing:nth-child(3) {
    transform: translate(-50%, -50%) translateY(0px) translateX(90px);
}

.ball-bearing:nth-child(4) {
    transform: translate(-50%, -50%) translateY(64px) translateX(64px);
}

.ball-bearing:nth-child(5) {
    transform: translate(-50%, -50%) translateY(90px) translateX(0px);
}

.ball-bearing:nth-child(6) {
    transform: translate(-50%, -50%) translateY(64px) translateX(-64px);
}

.ball-bearing:nth-child(7) {
    transform: translate(-50%, -50%) translateY(0px) translateX(-90px);
}

.ball-bearing:nth-child(8) {
    transform: translate(-50%, -50%) translateY(-64px) translateX(-64px);
}

/* Sensor on the bearing */
.vibration-sensor {
    position: absolute;
    top: 20%;
    right: -25px;
    width: 20px;
    height: 40px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
    animation: sensor-pulse 2s ease-in-out infinite;
}

.vibration-sensor::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #fbbf24;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
}

/* Signal Waves from the sensor */
.signal-output {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 400px;
    height: 100px;
}

/* Smooth Signal Wave */
.signal-wave {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 60px;
    transform: translateY(-50%);
    overflow: hidden;
}

/* Vibration waveform */
.signal-wave::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #10b981 0%, #10b981 20%, transparent 100%);
    transform: translateY(-50%);
}

/* Signal peaks representing vibration */
.signal-peak {
    position: absolute;
    top: 50%;
    width: 3px;
    background: linear-gradient(to top, #10b981, #34d399);
    border-radius: 1px;
    transform: translateY(-50%);
    animation: vibration-signal 2s ease-in-out infinite;
}

.signal-peak:nth-child(1) {
    height: 25px;
    left: 30px;
    animation-delay: 0s;
}

.signal-peak:nth-child(2) {
    height: 15px;
    left: 60px;
    animation-delay: 0.2s;
}

.signal-peak:nth-child(3) {
    height: 35px;
    left: 90px;
    animation-delay: 0.4s;
}

.signal-peak:nth-child(4) {
    height: 20px;
    left: 120px;
    animation-delay: 0.6s;
}

.signal-peak:nth-child(5) {
    height: 30px;
    left: 150px;
    animation-delay: 0.8s;
}

.signal-peak:nth-child(6) {
    height: 18px;
    left: 180px;
    animation-delay: 1.0s;
}

.signal-peak:nth-child(7) {
    height: 28px;
    left: 210px;
    animation-delay: 1.2s;
}

.signal-peak:nth-child(8) {
    height: 22px;
    left: 240px;
    animation-delay: 1.4s;
}

/* Signal frequency indicators */
.frequency-label {
    display: none; /* Remove the BPFO label */
}

/* Data transmission visualization */
.data-stream {
    position: absolute;
    top: 60%;
    left: 50px;
    width: 300px;
    height: 20px;
}

.data-packet {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fbbf24;
    border-radius: 2px;
    animation: data-transmission 4s linear infinite;
}

.data-packet:nth-child(1) { animation-delay: 0s; }
.data-packet:nth-child(2) { animation-delay: 0.5s; }
.data-packet:nth-child(3) { animation-delay: 1s; }
.data-packet:nth-child(4) { animation-delay: 1.5s; }

/* Animations */
@keyframes rotate-bearing {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ball-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes sensor-pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 0 0 25px rgba(239, 68, 68, 0.9);
    }
}

@keyframes vibration-signal {
    0%, 100% { 
        opacity: 0.6; 
        transform: translateY(-50%) scaleY(1);
    }
    50% { 
        opacity: 1; 
        transform: translateY(-50%) scaleY(1.2);
    }
}

@keyframes data-transmission {
    0% { 
        left: 0; 
        opacity: 0; 
    }
    10% { 
        opacity: 1; 
    }
    90% { 
        opacity: 1; 
    }
    100% { 
        left: 300px; 
        opacity: 0; 
    }
}

@keyframes fade-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

@keyframes wave-pulse {
    0% { opacity: 1; transform: scale(0.8); }
    100% { opacity: 0; transform: scale(1.2); }
}

@keyframes data-flow {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-20px); opacity: 0.5; }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1f2937;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #f9fafb;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1f2937;
}

.about-content p {
    margin-bottom: 20px;
    color: #6b7280;
    line-height: 1.7;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
}

.stat-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.edge-cloud-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
}

.edge-device, .cloud-platform {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.edge-device:hover, .cloud-platform:hover {
    transform: translateY(-5px);
}

.edge-device i, .cloud-platform i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 15px;
}

.connection-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #10b981);
    position: relative;
}

.connection-line::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -3px;
    width: 0;
    height: 0;
    border-left: 8px solid #10b981;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* Solutions Section */
.solutions {
    padding: 100px 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.solution-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid #2563eb;
}

.solution-card:hover {
    transform: translateY(-10px);
}

.solution-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.solution-icon i {
    font-size: 2rem;
    color: white;
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1f2937;
}

.solution-card p {
    margin-bottom: 20px;
    color: #6b7280;
    line-height: 1.6;
}

.solution-card ul {
    list-style: none;
}

.solution-card li {
    padding: 8px 0;
    color: #6b7280;
    position: relative;
    padding-left: 25px;
}

.solution-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #f9fafb;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1f2937;
}

.feature-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f3f4f6;
}

.faq-question h4 {
    color: #1f2937;
    font-size: 1.1rem;
}

.faq-question i {
    color: #2563eb;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 25px;
    max-height: 200px;
}

.faq-answer p {
    color: #6b7280;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: #fbbf24;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fbbf24;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #fbbf24;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats {
        justify-content: center;
    }
    
    .edge-cloud-diagram {
        flex-direction: column;
        gap: 20px;
    }
    
    .connection-line {
        width: 2px;
        height: 40px;
        transform: rotate(90deg);
    }
    
    .connection-line::after {
        right: -3px;
        top: 35px;
        border-left: 4px solid #10b981;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 12px 25px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .bearing-container {
        width: 250px;
        height: 250px;
    }
    
    .bearing-outer {
        width: 220px;
        height: 220px;
        border-width: 8px;
    }
    
    .bearing-inner {
        width: 100px;
        height: 100px;
        border-width: 6px;
    }
    
    .bearing-track {
        width: 160px;
        height: 160px;
    }
    
    .ball-bearing {
        width: 14px;
        height: 14px;
    }
    
    .signal-output {
        width: 250px;
        height: 80px;
    }
    
    .vibration-sensor {
        width: 16px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .solution-card,
    .feature-item {
        padding: 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .bearing-container {
        width: 200px;
        height: 200px;
    }
    
    .bearing-outer {
        width: 180px;
        height: 180px;
        border-width: 6px;
    }
    
    .bearing-inner {
        width: 80px;
        height: 80px;
        border-width: 4px;
    }
    
    .bearing-track {
        width: 130px;
        height: 130px;
    }
    
    .ball-bearing {
        width: 12px;
        height: 12px;
    }
    
    .signal-output {
        width: 200px;
        height: 60px;
    }
    
    .vibration-sensor {
        width: 14px;
        height: 28px;
    }
    
    .frequency-label {
        font-size: 10px;
        left: 80px;
    }
}