/* 
 * Framsklns.com - AI Education Platform
 * Main Stylesheet
 * Copyright 2024
 */

/* ===== BASE STYLES ===== */
:root {
  --primary-color: #4a6bfd;
  --primary-dark: #3951c6;
  --secondary-color: #2dd5a7;
  --accent-color: #ffca28;
  --dark-color: #1a2138;
  --light-color: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --border-radius: 8px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  color: var(--primary-dark);
}

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

ul {
  list-style: none;
}

button, .btn {
  cursor: pointer;
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

section {
  padding: 5rem 0;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  text-align: center;
}

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

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #26b98f;
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-3d {
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  perspective: 800px;
  margin: 0.5rem 0;
}

.btn-3d a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary-color);
  color: white;
  font-weight: 600;
  border-radius: var(--border-radius);
  transform: translateZ(20px);
  transition: var(--transition);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.01);
}

.btn-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--secondary-color);
  opacity: 0.7;
  border-radius: var(--border-radius);
  transform: translateZ(0);
  transition: var(--transition);
}

.btn-3d:hover a {
  transform: translateZ(30px);
}

.btn-3d:hover::before {
  transform: translateZ(-20px);
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: white;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

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

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

.logo img {
  height: 40px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--gray-700);
  font-weight: 500;
  padding: 0.5rem;
  position: relative;
}

nav a:hover, nav a.active {
  color: var(--primary-color);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

/* ===== HERO SECTION ===== */
.hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  background-color: var(--light-color);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

/* ===== FEATURES SECTION ===== */
.features {
  background-color: white;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

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

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: rgba(74, 107, 253, 0.1);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  color: var(--primary-color);
}

.feature-card h3 {
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--gray-600);
}

/* ===== LATEST POSTS SECTION ===== */
.latest-posts {
  background-color: var(--light-color);
  text-align: center;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.post-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.post-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
  text-align: left;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  color: var(--gray-600);
  margin-bottom: 1.25rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
}

.read-more::after {
  content: '→';
  margin-left: 0.5rem;
  transition: var(--transition);
}

.read-more:hover::after {
  transform: translateX(5px);
}

.view-all {
  margin-top: 3rem;
}

/* ===== ADMIN PANEL SECTION ===== */
.admin-panel {
  background-color: white;
  text-align: center;
}

.admin-frame {
  margin-top: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.admin-frame iframe {
  border: none;
  background-color: var(--gray-100);
}

/* ===== CTA SECTION ===== */
.cta {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.cta h2 {
  color: white;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--gray-900);
  color: var(--gray-300);
  padding: 5rem 0 2rem;
}

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

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

.footer-about p {
  margin-bottom: 0.5rem;
}

.footer-links h3, .footer-contact h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-300);
}

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

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

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-contact svg {
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--gray-800);
  border-radius: 50%;
  transition: var(--transition);
}

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

.footer-social svg {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
}

/* ===== BLOG PAGE ===== */
.blog-header {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 3rem;
  background-color: var(--gray-100);
  text-align: center;
}

.blog-content {
  padding: 3rem 0 5rem;
}

.blog-post {
  max-width: 800px;
  margin: 0 auto 5rem;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-post:last-child {
  margin-bottom: 0;
}

.blog-post .post-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background-color: var(--gray-50);
  color: var(--gray-500);
  font-size: 0.9rem;
}

.blog-post h2 {
  padding: 1.5rem 2rem 0;
  font-size: 2rem;
}

.post-excerpt {
  padding: 0 2rem 1.5rem;
}

.post-excerpt h3 {
  margin-top: 1.5rem;
}

.post-excerpt ul, .post-excerpt ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-excerpt ul li, .post-excerpt ol li {
  margin-bottom: 0.5rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 2rem 2rem;
}

.tag {
  background-color: var(--gray-100);
  color: var(--gray-700);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
}

/* ===== ABOUT US PAGE ===== */
.about-header {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 3rem;
  background-color: var(--gray-100);
  text-align: center;
}

.about-mission .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mission-content h2 {
  margin-bottom: 1.5rem;
}

.mission-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.about-values {
  background-color: var(--light-color);
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

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

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

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background-color: rgba(74, 107, 253, 0.1);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.value-icon svg {
  color: var(--primary-color);
}

.team-section {
  background-color: white;
  text-align: center;
}

.team-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.team-card {
  background-color: var(--gray-50);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.team-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-card h3 {
  margin: 1.5rem 0 0.25rem;
}

.team-card p {
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
}

.team-card p:nth-of-type(1) {
  color: var(--primary-color);
  font-weight: 600;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.team-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--gray-200);
  border-radius: 50%;
  transition: var(--transition);
}

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

.team-social a:hover svg {
  color: white;
}

.achievements {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.achievements h2 {
  color: white;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.achievement-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.achievement-text {
  font-size: 1.2rem;
  opacity: 0.9;
}

.testimonials {
  background-color: var(--light-color);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.testimonial-text {
  position: relative;
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 5rem;
  color: var(--gray-200);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h4 {
  margin-bottom: 0.25rem;
}

.testimonial-author p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* ===== CONTACT PAGE ===== */
.contact-header {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 3rem;
  background-color: var(--gray-100);
  text-align: center;
}

.contact-content {
  background-color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.contact-info {
  background-color: var(--primary-color);
  padding: 3rem;
  border-radius: var(--border-radius);
  color: white;
}

.contact-info h2 {
  color: white;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
}

.info-text h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.social-links {
  margin-top: 3rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

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

.social-icons a:hover {
  background-color: white;
}

.social-icons a:hover svg {
  color: var(--primary-color);
}

.social-icons svg {
  color: white;
}

.contact-form {
  padding: 2rem 0;
}

.contact-form h2 {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 107, 253, 0.25);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

.map-section {
  background-color: var(--light-color);
  text-align: center;
}

.map-container {
  margin-top: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.faq-section {
  background-color: white;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.faq-item {
  background-color: var(--gray-50);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.faq-item h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  z-index: 1000;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  border: none;
}

.cookie-btn.accept {
  background-color: var(--primary-color);
  color: white;
}

.cookie-btn.customize {
  background-color: var(--gray-200);
  color: var(--gray-800);
}

.cookie-btn.reject {
  background-color: var(--gray-300);
  color: var(--gray-800);
}

.cookie-more {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-500);
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--gray-900);
}

.modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-color: rgba(45, 213, 167, 0.2);
  border-radius: 50%;
}

.modal-icon svg {
  color: var(--secondary-color);
}

.btn-modal {
  margin-top: 1.5rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero .container, 
  .about-mission .container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    order: 1;
  }
  
  .hero-image {
    order: 0;
    margin-bottom: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  
  .hero {
    padding-top: calc(var(--header-height) + 2rem);
  }
  
  nav ul {
    gap: 1rem;
  }
  
  .post-grid,
  .feature-grid,
  .values-grid,
  .team-grid,
  .achievements-grid,
  .testimonial-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .logo img {
    height: 30px;
  }
  
  nav ul {
    gap: 0.75rem;
  }
  
  nav a {
    padding: 0.3rem;
    font-size: 0.9rem;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-3d {
    margin-top: 1rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
}
