/* 
 * TechMag - Main Stylesheet
 * Modern Technology Magazine for Canadian Market
 */

/* ======= VARIABLES ======= */
:root {
  --primary-gradient-start: #8A2BE2; /* Violet */
  --primary-gradient-end: #FF69B4;   /* Hot Pink */
  --secondary-bg: #FFF5E1;           /* Cream Beige */
  --accent-color: #00CED1;           /* Turquoise */
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --text-medium: #777777;
  --border-radius: 12px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ======= RESET & BASE STYLES ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #FFFFFF;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-gradient-start);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 80px 0;
}

/* ======= BUTTONS ======= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  box-shadow: var(--box-shadow);
}

.btn-primary {
  background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
  color: var(--text-light);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
}

.btn-secondary {
  background-color: var(--secondary-bg);
  color: var(--text-dark);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--text-light);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  color: var(--text-light);
}

/* ======= HEADER ======= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.main-nav ul {
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-contact {
  margin-left: 20px;
}

.header-contact .btn {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: var(--transition);
}

/* ======= HERO SECTION ======= */
.hero {
  background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
  color: var(--text-light);
  padding: 120px 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  animation: fadeInUp 1s ease 0.4s both;
}

/* ======= ABOUT SECTION ======= */
.about {
  background-color: var(--secondary-bg);
  position: relative;
  overflow: hidden;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transform: perspective(1000px) rotateY(-15deg);
  transition: var(--transition);
}

.about-image:hover {
  transform: perspective(1000px) rotateY(0);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
}

/* ======= ARTICLES SECTION ======= */
.articles {
  background-color: #ffffff;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.article-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  background-color: #ffffff;
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-image {
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  padding: 20px;
}

.article-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.article-excerpt {
  color: var(--text-medium);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-medium);
  font-size: 0.8rem;
}

/* ======= TRENDS SECTION ======= */
.trends {
  background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
  color: var(--text-light);
}

.trends .section-title::after {
  background-color: var(--accent-color);
}

.trends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.trend-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 25px;
  backdrop-filter: blur(5px);
  transition: var(--transition);
}

.trend-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.trend-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.trend-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* ======= TEAM SECTION ======= */
.team {
  background-color: var(--secondary-bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.team-member {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-photo {
  height: 250px;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.team-member:hover .team-photo img {
  transform: scale(1.05);
}

.team-info {
  padding: 20px;
}

.team-name {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.team-role {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* ======= PRICING SECTION ======= */
.pricing {
  background-color: #ffffff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.pricing-plan {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.pricing-plan:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-header {
  background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
  color: var(--text-light);
  padding: 25px;
  text-align: center;
}

.plan-name {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
}

.plan-duration {
  opacity: 0.8;
  font-size: 0.9rem;
}

.pricing-features {
  padding: 25px;
}

.pricing-features ul {
  margin-bottom: 25px;
}

.pricing-features li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.pricing-action {
  text-align: center;
  padding-bottom: 25px;
}

/* ======= ORDER FORM SECTION ======= */
.order-form {
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.order-form::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(rgba(255, 255, 255, 0.1) 8%, transparent 8%);
  background-position: 0 0;
  background-size: 30px 30px;
  transform: rotate(30deg);
  z-index: 1;
}

.order-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 50px;
  align-items: center;
}

.order-text {
  flex: 1;
}

.order-form-container {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  transition: var(--transition);
}

/* Style specifically for the select dropdown */
select.form-control {
  color: var(--text-dark);
  background-color: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.3);
}

select.form-control:focus {
  background-color: rgba(255, 255, 255, 0.9);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-group input {
  margin-right: 10px;
}

.form-submit {
  text-align: center;
}

/* ======= TESTIMONIALS SECTION ======= */
.testimonials {
  background-color: var(--secondary-bg);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: rgba(0, 0, 0, 0.05);
  font-family: serif;
  line-height: 1;
}

.testimonial-content {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 5px;
}

.author-info p {
  color: var(--text-medium);
  font-size: 0.9rem;
}

/* ======= FOOTER ======= */
.site-footer {
  background-color: #222;
  color: #fff;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

.footer-description {
  opacity: 0.7;
  margin-bottom: 20px;
}

.footer-contact h3,
.footer-legal h3 {
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.footer-contact h3::after,
.footer-legal h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
}

.footer-contact ul li,
.footer-legal ul li {
  margin-bottom: 10px;
}

.footer-contact a,
.footer-legal a {
  color: #fff;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-contact a:hover,
.footer-legal a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  opacity: 0.7;
}

/* ======= COOKIE POPUP ======= */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 1000;
  animation: slideUp 0.5s ease forwards;
}

.cookie-content {
  text-align: center;
}

.cookie-content p {
  margin-bottom: 15px;
}

.cookie-more {
  margin-left: 10px;
  font-size: 0.9rem;
}

/* ======= ANIMATIONS ======= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ======= RESPONSIVE STYLES ======= */
@media (max-width: 992px) {
  section {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .order-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .header-content {
    position: relative;
  }
  
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    display: none;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 15px;
  }
  
  .header-contact {
    margin-left: 0;
    margin-right: 20px;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  section {
    padding: 40px 0;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .header-contact {
    display: none;
  }
} 