@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;800&display=swap');

/* Tech-Art UI Theme - "Future & Technology" */
:root {
    --primary-color: #0d0f2b;
    --secondary-color: #1a1c3c;
    --accent-color: #00c6ff;
    --text-color: #e2e8f0;
    --subtle-text-color: #94a3b8;
    --body-font: 'Roboto', sans-serif;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    font-family: var(--body-font);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    color: var(--subtle-text-color);
    background: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Header and Navigation */
header {
    background: rgba(13, 15, 43, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 198, 255, 0.1);
    transition: all 0.3s ease;
}

.logo a {
    display: flex; 
    align-items: center;
    justify-content: flex-start;
    height: 80px; 
}

.logo-svg {
    height: 60px;
    width: auto;
    transition: opacity 0.4s ease-in-out;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1800px;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    position: relative;
    transition: color 0.3s ease-in-out;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
    transform-origin: center;
}

nav ul li a:hover {
    color: #fff;
}

nav ul li a:hover::after {
    transform: scaleX(1);
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

#nebula-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    animation: fadeIn 2s ease-out;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-color);
    text-shadow: 0 0 15px rgba(0, 198, 255, 0.5);
}

.hero-content p {
    font-size: 1.4rem;
    white-space: nowrap;
    margin: 0 auto 2.5rem auto;
    color: var(--subtle-text-color);
}

.cta-button {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 16px 38px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(0, 198, 255, 0.3);
}

.cta-button:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

/* Sections Styling */
section {
    padding: 100px 2%;
    text-align: center;
    border-bottom: 1px solid rgba(0, 198, 255, 0.1);
}
section:last-of-type {
    border-bottom: none;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    max-width: 800px;
    margin: -1rem auto 2.5rem auto;
    font-size: 1.1rem;
    color: var(--subtle-text-color);
}

/* Base Card Styling */
.card {
    background: var(--secondary-color);
    border: 1px solid rgba(0, 198, 255, 0.2);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    text-align: left;
}

.about-card p {
    margin-bottom: 0;
}

/* 7-Column Large Card Layout */
.service-cards {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 2000px;
    margin: 60px auto 0 auto;
    padding: 0 2%;
    box-sizing: border-box;
}

.solution-card {
    background-image: linear-gradient(145deg, var(--secondary-color), #22254b);
    border: 1px solid rgba(0, 198, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 198, 255, 0.4);
}

.solution-card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.solution-card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.solution-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--subtle-text-color);
    margin: 0;
}

/* Footer */
footer {
    color: var(--subtle-text-color);
    text-align: center;
    padding: 50px 20px;
    border-top: 1px solid rgba(0, 198, 255, 0.1);
}

footer .social-media a {
    color: var(--subtle-text-color);
    margin: 0 15px;
    font-size: 1.6rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-media a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

footer p {
    margin: 15px 0 0 0;
    font-size: 0.9rem;
}

footer a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}
footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for the 7-column layout */
@media (max-width: 1800px) {
    .service-cards { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 1500px) {
    .service-cards { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1200px) {
    .service-cards { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
    .service-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 3.5rem; }
    .service-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .service-cards { grid-template-columns: 1fr; }
}

/* Contact QR Code */
.contact-qr {
    margin-top: 40px;
    display: inline-block;
}

.contact-qr p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact-qr img {
    width: 180px;
    height: 180px;
    border: 1px solid rgba(0, 198, 255, 0.2);
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
}


/* Tech Nebula Section */
#tech-nebula-container {
    width: 100%;
    height: 70vh;
    max-height: 800px;
    margin-top: 2rem;
    position: relative;
    transition: height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#tech-nebula-canvas {
    width: 100%;
    height: 100%;
    background-color: transparent;
}
