/* 
 * Digital Art & Technology Innovations
 * Main Stylesheet
 * Mobile-first responsive design
 */

/* Base styles and CSS reset */
:root {
  --primary-color: #3498db;
  --secondary-color: #9b59b6;
  --accent-color: #2ecc71;
  --text-color: #333;
  --light-text: #fff;
  --dark-bg: #2c3e50;
  --light-bg: #f9f9f9;
  --card-bg: #fff;
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

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

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

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.primary {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
}

.primary:hover {
  background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  color: var(--light-text);
}

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

.secondary:hover {
  background: rgba(52, 152, 219, 0.1);
  transform: translateY(-3px);
}

section {
  padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 20px;
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 15px 0;
  transition: var(--transition);
}

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

.logo a {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo svg {
  margin-right: 10px;
}

nav ul {
  display: none;
}

nav.active ul {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: var(--light-bg);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

nav.active li {
  margin: 10px 0;
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
#hero {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(155, 89, 182, 0.9)), 
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100%" height="100%" fill="%232c3e50"/><path d="M0 50 L100 50 M50 0 L50 100" stroke="%23fff" stroke-width="1" opacity="0.1"/></svg>');
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  padding: 150px 0 80px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

/* Innovation Section */
.innovation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.innovation-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.innovation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.innovation-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

/* Resources Section */
#resources {
  background-color: var(--dark-bg);
  color: var(--light-text);
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: -20px auto 40px;
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.resource-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 30px;
  transition: var(--transition);
}

.resource-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.resource-card h3 {
  margin-bottom: 20px;
  color: var(--light-text);
}

.resource-links li {
  margin-bottom: 12px;
}

.resource-links a {
  color: var(--light-text);
  opacity: 0.8;
  display: block;
  padding: 8px 0;
  transition: var(--transition);
}

.resource-links a:hover {
  opacity: 1;
  padding-left: 5px;
  color: var(--accent-color);
}

/* Newsletter Section */
#newsletter {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  text-align: center;
}

.newsletter-content {
  max-width: 700px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.newsletter-form input {
  padding: 15px;
  border-radius: var(--border-radius);
  border: none;
  font-size: 1rem;
}

.newsletter-form button {
  background-color: var(--dark-bg);
  color: var(--light-text);
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  text-align: center;
}

.footer-logo svg {
  margin: 0 auto 15px;
}

.footer-logo p {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.footer-column h4 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--light-text);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Media Queries */
@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }
  
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
  
  .innovation-grid, .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .newsletter-form {
    flex-direction: row;
    justify-content: center;
  }
  
  .newsletter-form input {
    width: 60%;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
  }
  
  .newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  nav ul {
    display: flex;
    gap: 30px;
  }
  
  .menu-toggle {
    display: none;
  }
  
  nav.active ul {
    position: static;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    background: none;
  }
  
  nav a {
    color: var(--text-color);
    font-weight: 600;
  }
  
  nav a:hover {
    color: var(--primary-color);
  }
  
  .innovation-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .footer-logo {
    width: 25%;
    text-align: left;
  }
  
  .footer-logo svg {
    margin: 0 0 15px;
  }
  
  .footer-links {
    width: 75%;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  section {
    padding: 100px 0;
  }
  
  h1 {
    font-size: 4rem;
  }
  
  .resources-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
