/* css/style.css */

/* Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.5s ease;
}
.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #ff9800;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Global Base Styles */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: #f0f0f0;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* Navbar Styles */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, padding 0.3s ease;
  padding: 20px 40px;
}
header.scrolled {
  background: rgba(34,34,34,0.9);
  padding: 10px 40px;
}
.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8em;
  font-weight: bold;
  color: #fff;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
}
nav ul li a {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}
nav ul li a:hover { color: #ff9800; }

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5em;
}
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  nav ul {
    display: none;
    flex-direction: column;
    background: rgba(34,34,34,0.95);
    position: absolute;
    top: 100%;
    right: 40px;
    width: 200px;
    padding: 10px;
    border-radius: 5px;
  }
  nav ul.show {
    display: flex;
  }
}

/* Hero Section with 3D Background */
.hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a1a, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding-top: 80px;
}
/* Three.js Canvas Container */
#three-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: auto;
  padding: 20px;
}
.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
}
.btn {
  padding: 14px 30px;
  background: #ff9800;
  border: none;
  border-radius: 50px;
  margin: 10px;
  color: #fff;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.btn:hover {
  background: #e68900;
  transform: translateY(-3px);
}

/* Section Styles */
section {
  padding: 100px 20px;
  background: #fff;
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}
.section-title {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #333;
}

/* Feature Cards */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.feature-card {
  background: #fafafa;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  flex: 0 0 30%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.feature-card i {
  font-size: 3em;
  color: #ff9800;
  margin-bottom: 15px;
}
.feature-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5em;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 1em;
  color: #666;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: auto;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
}
.contact-form button {
  padding: 14px 30px;
  background: #ff9800;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s ease, transform 0.3s ease;
}
.contact-form button:hover {
  background: #e68900;
  transform: translateY(-3px);
}

/* Footer */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .feature-card { flex: 0 0 45%; }
  .hero-content h1 { font-size: 2.8em; }
}
@media (max-width: 480px) {
  header nav ul { flex-direction: column; gap: 10px; }
  .feature-card { flex: 0 0 90%; }
  .hero-content h1 { font-size: 2.2em; }
}
