/* 
 * NataBit - Digital Innovation Portal Styles
 * A modern, sleek design for technology and innovation content
 */

/* CSS Reset & Base Styles */
:root {
  --primary-color: #10b981; /* Emerald */
  --primary-dark: #059669;
  --secondary-color: #3b82f6; /* Blue */
  --secondary-dark: #2563eb;
  --accent-color: #8b5cf6; /* Purple */
  --text-color: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --background: #ffffff;
  --background-alt: #f1f5f9;
  --background-dark: #0f172a;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1280px;
  --header-height: 80px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --font-family: 'Poppins', system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background);
  overflow-x: hidden;
  min-height: 100%;
}

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

ul, ol {
  list-style: none;
}

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

a:hover, a:focus {
  color: var(--primary-dark);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--text-color);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  padding: 0 var(--spacing-md);
  margin: 0 auto;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  line-height: 1;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: white;
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background-color: var(--background-alt);
  transform: translateY(-1px);
}

/* Header & Navigation */
.site-header {
  background-color: var(--background);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

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

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

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 0.5rem;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.contact-link {
  background-color: var(--background-alt);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
}

.contact-link:hover {
  background-color: var(--border-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-icon {
  display: block;
  position: relative;
  width: 25px;
  height: 20px;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background-color: var(--text-color);
  transition: var(--transition);
}

.menu-icon::before {
  top: 0;
}

.menu-toggle::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background-color: var(--text-color);
  top: 50%;
  left: 0.5rem;
  transform: translateY(-50%);
}

.menu-icon::after {
  bottom: 0;
}

.menu-toggle.active .menu-icon::before {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active::after {
  opacity: 0;
}

.menu-toggle.active .menu-icon::after {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero-title {
  margin-bottom: var(--spacing-sm);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleGradient 5s infinite alternate;
}

@keyframes titleGradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.hero-decoration {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
}

.hero-shape {
  position: absolute;
  width: 500px;
  height: 500px;
  right: -100px;
  top: -100px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2));
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.8;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-sm);
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: var(--spacing-xs) auto 0;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Featured Section */
.featured-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--background);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.feature-card {
  perspective: 1000px;
  height: 300px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.feature-card:hover .card-inner,
.feature-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-md);
  box-shadow: var(--shadow);
}

.card-front {
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  text-align: center;
}

.card-back {
  background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
  color: white;
  transform: rotateY(180deg);
  text-align: center;
}

.card-back h3 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.card-back p {
  margin-bottom: var(--spacing-md);
}

.card-link {
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 2px solid white;
  border-radius: var(--border-radius);
}

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

.card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  background-color: rgba(16, 185, 129, 0.1);
}

.ai-icon:before {
  content: 'AI';
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.xr-icon:before {
  content: 'XR';
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quantum-icon:before {
  content: 'Q';
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.blockchain-icon:before {
  content: 'B';
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Resources Section */
.resources-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--background-alt);
}

.resource-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.category {
  background-color: white;
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-title {
  position: relative;
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  font-size: 1.3rem;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 50px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.resource-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.resource-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.resource-list a {
  color: var(--text-color);
  transition: var(--transition);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-list a:hover {
  color: var(--primary-color);
  transform: translateX(3px);
}

/* Insights Section */
.insights-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--background);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.insight-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background-color: white;
  border-top: 3px solid var(--primary-color);
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.insight-content {
  padding: var(--spacing-md);
}

.insight-card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.3rem;
}

.insight-card p {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.insight-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  color: var(--text-lighter);
  font-size: 0.9rem;
}

.view-all-container {
  text-align: center;
}

/* Newsletter Section */
.newsletter-section {
  padding: var(--spacing-lg) 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
  color: white;
}

.newsletter-container {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
}

.newsletter-content {
  flex: 1;
  min-width: 300px;
}

.newsletter-content h2 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.newsletter-form {
  flex: 1;
  min-width: 300px;
}

.form-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-xs);
}

.form-group input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.form-disclaimer {
  color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.site-footer {
  background-color: var(--background-dark);
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: auto;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand h3 {
  color: white;
  margin: var(--spacing-xs) 0;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-brand p {
  color: var(--text-lighter);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

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

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.social-icon {
  width: 20px;
  height: 20px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--spacing-md);
}

.footer-nav-section h4 {
  color: white;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-xs);
}

.footer-nav-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-nav-section ul li {
  margin-bottom: 0.5rem;
}

.footer-nav-section ul li a {
  color: var(--text-lighter);
  transition: var(--transition);
}

.footer-nav-section ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact h4 {
  color: white;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-xs);
}

.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-contact address {
  font-style: normal;
}

.footer-contact p {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  color: var(--text-lighter);
}

.contact-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  position: relative;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  color: var(--text-lighter);
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.legal-links a {
  color: var(--text-lighter);
  font-size: 0.9rem;
}

.legal-links a:hover {
  color: white;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  :root {
    --spacing-xl: 4rem;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-lg: 2.5rem;
    --spacing-xl: 3.5rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    padding: calc(var(--header-height) + 2rem) var(--spacing-md) var(--spacing-md);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 99;
  }
  
  .nav-list.show {
    right: 0;
  }
  
  .newsletter-container {
    padding: var(--spacing-md);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .legal-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .form-group {
    flex-direction: column;
  }
  
  .form-group input,
  .form-group button {
    width: 100%;
  }
}
