/* Tesla-inspired Design */

:root {
    --text-color: #ffffff;
    --bg-color: #000000;
    --btn-primary-bg: #ffffff;
    --btn-primary-text: #000000;
    --btn-secondary-bg: rgba(255, 255, 255, 0.15); /* Glassy/Darker */
    --btn-secondary-text: #ffffff;
    --accent-color: #3e6ae1; /* Tesla Blue-ish if needed */
    
    --spacing-unit: 24px;
    --font-main: 'Poppins', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Hide scrollbar while keeping functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: currentColor;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled {
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -1px;
    color: #fff;
    text-transform: uppercase;
}

.logo img {
    display: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 15vh;
    padding-bottom: 0;
    overflow: hidden;
    background-color: #000000;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: 
        radial-gradient(circle at 50% 40%, #1a2639 0%, #000000 70%),
        radial-gradient(circle at 10% 10%, rgba(62, 106, 225, 0.05) 0%, transparent 40%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5vh;
}

/* Add atmospheric lighting to Hero */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20vh;
    background: linear-gradient(to top, #000000, transparent);
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
}

.hero-background img {
    max-width: 85%;
    max-height: 60vh;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.05));
    animation: fadeInImage 2s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(1.05) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-text {
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    color: #ffffff;
    opacity: 0;
    animation: revealTitle 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #a0a0a0;
    opacity: 0;
    animation: revealSubtitle 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards;
}

@keyframes revealTitle {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes revealSubtitle {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    justify-content: center;
    padding: 0 1rem;
    animation: slideUp 1s ease-out 0.5s backwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border: none;
    max-width: 260px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    backdrop-filter: blur(10px);
}

/* Features Section */
.features-section {
    background: linear-gradient(180deg, #000000 0%, #050505 15%, #050505 85%, #000000 100%);
    padding: 150px 0;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(62, 106, 225, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 6rem;
    margin-bottom: 200px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.feature-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #8e8e93;
    max-width: 450px;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.feature-icon {
    font-size: 6rem;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.feature-image::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.feature-row:hover .feature-icon {
    transform: scale(1.1);
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    text-align: center;
    font-size: 12px;
    color: #8e8e93;
    background: linear-gradient(180deg, #000000 0%, #050505 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 10px;
    display: block !important; /* Force display in footer */
}

.footer-logo p {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Custom Modal System (Global) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #111;
  width: 90%;
  max-width: 400px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  position: relative;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.modal-content p {
  color: #8e8e93;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.btn-modal {
  width: 100%;
  padding: 16px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.btn-modal:hover {
  opacity: 0.9;
}

/* User Status Indicator */
.user-status {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.user-status:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.user-status .user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-status .dot {
  width: 6px;
  height: 6px;
  background: #28a745;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.user-status .username {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.user-status .btn-signout {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8e8e93;
  text-decoration: none;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s;
}

.user-status .btn-signout:hover {
  color: #fff;
}
