/* Embedded & IoT Service Page Styles */
/* Ensure footer stays at bottom */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

main {
    flex: 1;
}

/* Navbar hide/show on scroll */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

nav.nav-hidden {
    transform: translateY(-100%);
}

.stars, .twinkling {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* So they don't interfere with clicks */
  z-index: -1; /* Place them behind all content */
}

footer {
    margin-top: auto;
    width: 100%;
}

/* Hero Section */
.service-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 80px);
    padding: 80px 5% 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(5, 5, 16, 0.9), rgba(10, 10, 22, 0.9));
}

.service-hero .hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.service-hero .hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #8a2be2, #00d1ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.service-hero .hero-content p {
    font-size: 1.2rem;
    color: var(--metallic);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.service-hero .hero-graphic {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Image Styles */
.hero-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    position: relative;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

/* Service Details */
.service-details {
    padding: 8rem 5%;
    background: rgba(5, 5, 16, 0.7);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--star-white);
}

.section-header p {
    color: var(--metallic);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

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

.feature-card {
    background: rgba(10, 10, 22, 0.7);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 8px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 209, 255, 0.05), rgba(138, 43, 226, 0.05));
    z-index: -1;
}

.feature-card:hover {
    border-color: var(--electric-blue);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 209, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--electric-blue);
    margin-bottom: 1.5rem;
    position: relative;
}

.icon-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--electric-blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0;
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--star-white);
}

.feature-card p {
    color: var(--metallic);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags li {
    background: rgba(138, 43, 226, 0.1);
    color: var(--neon-purple);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

/* Technology Stack */
.technology-stack {
    padding: 6rem 5%;
    background: rgba(5, 5, 16, 0.8);
}

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

.tech-column h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--electric-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.tech-card {
    background: rgba(10, 10, 22, 0.7);
    border: 1px solid rgba(0, 209, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 209, 255, 0.05), rgba(138, 43, 226, 0.05));
    z-index: -1;
}

.tech-card:hover {
    border-color: var(--electric-blue);
}

.tech-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 209, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--electric-blue);
}

.tech-icon i {
    font-size: 1.5rem;
    color: var(--electric-blue);
}

.tech-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.tech-info h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--star-white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tech-info p {
    color: var(--metallic);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* CTA Section */
.service-cta {
    padding: 8rem 5%;
    background: linear-gradient(135deg, rgba(5, 5, 16, 0.9), rgba(10, 10, 22, 0.9));
    position: relative;
    overflow: hidden;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 209, 255, 0.1) 0%, transparent 50%);
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--star-white);
}

.cta-content p {
    color: var(--metallic);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.cta-visual {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Image Styles */
.cta-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    position: relative;
    z-index: 3;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .service-hero {
        flex-direction: column;
        padding-top: 100px;
        padding-bottom: 5rem;
    }
    
    .service-hero .hero-content {
        margin-bottom: 3rem;
        text-align: center;
        max-width: 100%;
    }
    
    .cta-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-content {
        text-align: center;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .service-hero .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-image, .cta-image {
        max-height: 300px;
    }
}

/* VanillaTilt specific styles */
.feature-card, .tech-card {
    transform-style: preserve-3d;
    will-change: transform;
}

.js-tilt-glare {
    border-radius: 8px;
    overflow: hidden;
}

.js-tilt-glare-inner {
    background: linear-gradient(0deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

