/* 
 * Styles.css - Combined styles for Paterakis Math Tutoring
 * Merges modern-style.css and custom.css
 */

/* Root Variables */
:root {
  --primary-color: #1a5276;
  --secondary-color: #2980b9;
  --accent-color: #3498db;
  --text-color: #333333;
  --light-text: #ffffff;
  --bg-color: #f9f9f9;
  --light-gray: #ecf0f1;
  --dark-gray: #7f8c8d;
  --success-color: #27ae60;
  --card-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', 'Arial', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

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

/* Layout & Containers */
.section .container {
  max-width: 1160px;
}

/* Header & Navigation */
.header {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  padding: 1rem 0;
  position: static;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding-left: 0;
  padding-right: 0;
}

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

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

.logo-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-right: 1rem;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 1.5rem;
}

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

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

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

.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background: var(--light-text);
  transition: var(--transition);
}

/* Main Content */
main {
  margin-top: 0;
  min-height: calc(100vh - 80px);
  padding: 0 20px;
}

.section {
  padding: 2.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--accent-color);
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background: linear-gradient(rgba(26, 82, 118, 0.8), rgba(41, 128, 185, 0.8)), url('../assets/Photo2.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--light-text);
  border-radius: 0 0 0 100px;
}

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

.hero h1 {
  font-size: 2.5rem;
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Quote Styling */
figure {
  margin: 3rem auto;
  max-width: 800px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

figure blockquote {
  font-style: italic;
  position: relative;
  padding: 1.5rem 2.5rem;
  margin: 0 auto;
  background-color: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
  line-height: 1.6;
  width: 90%;
  text-align: center;
}

figure blockquote::before {
  content: "\201C";
  position: absolute;
  top: 5px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.2;
  line-height: 1;
}

figure blockquote::after {
  content: "\201D";
  position: absolute;
  bottom: -20px;
  right: 20px;
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.2;
  line-height: 1;
}

figure figcaption {
  text-align: right;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--dark-gray);
  width: 90%;
}

.einstein-quote {
  margin: 2rem auto 1rem;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.galileo-quote, .devi-quote {
  margin: 3rem auto;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

/* Custom margins for first section */
.einstein-quote + .section {
  padding-top: 1rem;
}

.einstein-quote + .section .content-grid {
  margin-top: 1rem;
}

.quote-card {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.quote-card blockquote {
  font-style: italic;
  font-size: 1.3rem;
  position: relative;
  padding: 1.5rem 2rem;
  line-height: 1.6;
  color: var(--primary-color);
  border-left: 5px solid var(--accent-color);
}

.quote-card blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 3rem;
  color: var(--accent-color);
  opacity: 0.3;
}

.quote-card figcaption {
  margin-top: 1rem;
  text-align: right;
  color: var(--dark-gray);
  font-weight: 500;
}

/* Grid Layouts */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Feature Cards */
.feature-card {
  background: white;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  transition: var(--transition);
}

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

.feature-card h3 {
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

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

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

/* Content Section */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
}

.content-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

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

.content-text p {
  margin-bottom: 1rem;
}

.content-text ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.content-text ul li {
  margin-bottom: 0.5rem;
}

/* Syllabus Section */
.accordion {
  width: 100%;
  margin: 1rem auto;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
}

.accordion-header {
  background-color: white;
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: var(--light-gray);
}

.accordion-content {
  background-color: white;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.accordion-content-inner {
  padding: 1.5rem;
  line-height: 1.6;
}

.accordion-content-inner strong {
  color: var(--primary-color);
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.accordion-item.active .accordion-content {
  max-height: 2000px;
  padding: 1rem 0;
}

.accordion-icon {
  transition: var(--transition);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

/* Contact Section */
.contact-section {
  background-color: var(--light-gray);
  padding: 4rem 0;
  border-radius: 100px 0 0 0;
}

.contact-form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
}

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

.btn-block {
  display: block;
  width: 100%;
}

/* Footer */
.footer {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  padding: 2rem 0;
  padding-left: 0;
  padding-right: 0;
}

.footer h3, .footer h4, .footer p, .footer span {
  color: var(--light-text);
}

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

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

.footer-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 0.8rem;
  border: 2px solid white;
}

.footer-contact {
  margin: 1rem 0;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.footer-contact-icon {
  margin-right: 0.8rem;
  color: var(--light-text);
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .content-image {
    order: 1;
  }
  
  .content-text {
    order: 2;
  }
}

@media screen and (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 70%;
    height: calc(100vh - 80px);
    background-color: var(--primary-color);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    transition: var(--transition);
  }
  
  .nav-list.active {
    right: 0;
  }
  
  .nav-item {
    margin: 1rem 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .content-image, .content-text {
    order: unset;
  }
  .content-image {
    margin-bottom: 1rem;
  }
  /* Override order for first grid (after Einstein quote) */
  .einstein-quote + .section .content-image {
    order: 2;
  }
  .einstein-quote + .section .content-text {
    order: 1;
  }
  /* Second grid: image first, text second on mobile */
  .second-grid .content-image {
    order: 1 !important;
  }
  .second-grid .content-text {
    order: 2 !important;
  }
}

@media screen and (max-width: 576px) {
  .header {
    padding: 0.5rem 0;
  }
  
  .logo-img {
    width: 40px;
    height: 40px;
  }
  
  .logo-text {
    font-size: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.4rem; }
  
  .quote-card blockquote {
    font-size: 1rem;
    padding: 1rem;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
}
