/* 
 * Main Stylesheet for AI Technology Website
 * Includes mobile-first responsive design
 */

:root {
  --primary-color: #4A86E8;
  --secondary-color: #7C3AED;
  --accent-color: #34D399;
  --text-color: #2D3748;
  --light-text: #718096;
  --background-color: #FFFFFF;
  --light-background: #F7FAFC;
  --dark-background: #1A202C;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background-color: var(--background-color);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 0.5rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Navigation */
.nav-toggle {
  display: block;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--background-color);
  box-shadow: var(--shadow);
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.nav.active {
  max-height: 400px;
}

.nav-list {
  list-style: none;
  padding: 1rem;
}

.nav-item {
  margin: 0.5rem 0;
}

.nav-link {
  display: block;
  padding: 0.5rem 0;
  font-weight: 500;
}

/* Hero section */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

.btn:hover {
  background-color: #2EB982;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

/* Features */
.features {
  background-color: var(--light-background);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  background-color: var(--background-color);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* About */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about-text {
  margin-bottom: 1rem;
}

/* Entertainment Section */
.entertainment {
  background-color: var(--light-background);
}

.entertainment-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.link-card {
  background-color: var(--background-color);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: var(--transition);
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.link-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.link-description {
  color: var(--light-text);
  font-size: 0.9rem;
}

/* CTA section */
.cta {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: white;
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-text {
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Footer */
.footer {
  background-color: var(--dark-background);
  color: white;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 36px;
}

.footer-text {
  color: #A0AEC0;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-link-item {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: #A0AEC0;
  transition: var(--transition);
}

.footer-link:hover {
  color: white;
}

.copyright {
  text-align: center;
  color: #A0AEC0;
  font-size: 0.875rem;
  margin-top: 3rem;
}

/* Media Queries */
@media (min-width: 640px) {
  .features-grid,
  .entertainment-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .about-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
  
  .nav {
    position: static;
    max-height: none;
    box-shadow: none;
  }
  
  .nav-list {
    display: flex;
    padding: 0;
  }
  
  .nav-item {
    margin: 0 1rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
