/* --- Global Styles & Variables --- */
:root {
    --primary-color: #00f0ff; /* A slightly brighter Cyan */
    --secondary-color: #0d0d0d; /* Off-black for a softer feel */
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --card-bg: #1a1a1a;
    --border-color: #333;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* -- FIX: Added for smooth scrolling when clicking nav links -- */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Header & Navigation (Glassmorphism) --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 1rem 7%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.5);
    /* -- FIX: Added -webkit- prefix for better browser compatibility -- */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.logo span { color: var(--primary-color); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--primary-color); }

/* --- Buttons --- */
.btn {
    padding: 0.6rem 1.4rem;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-login {
    border: 1px solid var(--border-color);
    color: var(--text-color);
}
.btn-login:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-signup {
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: var(--secondary-color);
    margin-left: 1rem;
}
.btn-signup:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    gap: 2rem;
    /* -- FIX: Added perspective for a true 3D effect on child elements -- */
    perspective: 1000px;
}

.hero-text { flex: 1; }
.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; }

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 4.5vw;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.hero-text h1 { overflow: hidden; padding: 0.1em 0; }
.hero-text .line-1, .hero-text .line-2 {
    display: inline-block;
    transform: translateY(100%);
    animation: reveal 1s forwards;
}
.hero-text .line-2 { animation-delay: 0.2s; }
@keyframes reveal { to { transform: translateY(0); } }

.hero-text p {
    font-size: 1.1rem;
    margin: 1.5rem 0 2.5rem;
    color: var(--text-muted);
    max-width: 500px;
}
.btn-cta {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #000;
}
.btn-cta:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

/* --- Animated 3D Cube --- */
.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}
.face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary-color);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3) inset;
}
.front  { transform: translateZ(100px); }
.back   { transform: translateZ(-100px) rotateY(180deg); }
.right  { transform: rotateY(90deg) translateZ(100px); }
.left   { transform: rotateY(-90deg) translateZ(100px); }
.top    { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotate-cube {
    from { transform: rotateX(0) rotateY(0); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

/* --- Feature Section --- */
.feature-section {
    display: flex;
    justify-content: space-around;
    padding: 4rem 7%;
    background-color: #111;
    gap: 2rem;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
}
.feature-item {
    text-align: center;
    max-width: 300px;
    flex-basis: 300px; /* Base width for flex items */
    flex-grow: 1; /* Allows items to grow and fill space */
}
.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.feature-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- Services Section --- */
.services-grid { padding: 6rem 7%; }
.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 4rem;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, background 0.4s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(45deg, var(--card-bg), #222);
}
.service-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.service-card h3 {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
        padding-bottom: 4rem;
    }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-visual { margin-top: 4rem; }
    .hero-text h1 { font-size: 7vw; }
}

@media (max-width: 768px) {
    .nav-links, .auth-buttons .btn-login { display: none; }
    nav { justify-content: space-between; }
    .logo { margin: 0 auto 0 0; }
    .hero-text h1 { font-size: 9vw; }
    .cube { transform: scale(0.8); }
    .section-title { font-size: 2.2rem; }
}

.btn-view {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-align: center;
    align-self: start;
}

.product-card:hover .btn-view {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}
