/*
Theme Name: Master Creations & Solutions
Theme URI: https://mastercsbd.com
Author: Master Creations & Solutions
Description: Custom WordPress theme for Master Creations & Solutions - Graphic Design, Video Editing & Web Design agency
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: mastercs
*/

/* ===== CSS Variables ===== */
:root {
  --primary: #2d3494;
  --primary-dark: #1e2270;
  --accent: #e8642a;
  --accent-hover: #cf5520;
  --teal: #2e7d77;
  --light-bg: #f5f6fa;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-gray: #555;
  --text-light: #888;
  --border: #e0e0e0;
  --card-bg: #2d3494;
  --shadow: 0 4px 20px rgba(45,52,148,0.12);
  --shadow-hover: 0 8px 32px rgba(45,52,148,0.22);
  --radius: 8px;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  font-size: 15px;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary {
  background: var(--primary);
  color: var(--white);
}
.btn-secondary:hover { background: var(--primary-dark); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* ===== Section Headings ===== */
.section-title {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2rem;
  color: var(--primary);
}
.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 40px;
  font-size: 14px;
}

/* ===== HEADER / NAVBAR ===== */
#site-header {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.site-logo img { height: 42px; width: auto; }
.site-logo span {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Nav Menu */
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  text-transform: uppercase;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--white); background: rgba(255,255,255,0.12); }
.nav-menu a.active { color: var(--accent); background: transparent; }

.nav-search { color: var(--white); cursor: pointer; padding: 6px; }
.nav-search:hover { color: var(--accent); }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #3d4db8 100%);
  padding: 90px 20px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,100,42,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; }
.hero-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== WHAT WE DO SECTION ===== */
.what-we-do {
  padding: 70px 20px;
  background: var(--white);
}

/* Service Category */
.service-category {
  margin-bottom: 60px;
}
.category-title {
  text-align: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 30px;
  position: relative;
}
.category-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.service-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.service-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.service-card:hover .service-icon,
.service-card:hover .service-name { color: var(--white); }
.service-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 12px;
  transition: color 0.3s;
}
.service-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.3s;
}
.view-projects-wrap { text-align: center; margin-top: 8px; }

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
  padding: 60px 20px;
  background: var(--white);
}
.portfolio-intro {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 12px;
  font-size: 14px;
}
.portfolio-btn-wrap { text-align: center; margin-top: 24px; }

/* ===== WHY CLIENTS SECTION ===== */
.why-clients {
  padding: 70px 20px;
  background: var(--white);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.feature-card {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  color: var(--white);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.8rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--white);
}
.feature-card p { font-size: 13px; color: rgba(255,255,255,0.82); line-height: 1.6; }

/* ===== PRICING SECTION ===== */
.pricing-section {
  padding: 70px 20px;
  background: var(--white);
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 50px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pricing-table thead tr {
  background: var(--teal);
  color: var(--white);
}
.pricing-table th {
  padding: 14px 20px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.pricing-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.pricing-table tbody tr:hover { background: #f0f4ff; }
.pricing-table td {
  padding: 13px 20px;
  font-size: 14px;
  color: var(--text-dark);
}
.pricing-table td.price {
  color: var(--primary);
  font-weight: 700;
  font-family: var(--font-heading);
}
.pricing-category-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 70px 20px;
  background: var(--white);
}
.contact-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 80px 20px;
  text-align: center;
  color: var(--white);
  position: relative;
}
.contact-hero::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-top: 30px solid var(--primary);
}
.contact-hero h1 { font-size: 2.2rem; margin-bottom: 20px; }

/* Contact Form Box */
.contact-box {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(45,52,148,0.15);
  padding: 48px 40px;
  max-width: 680px;
  margin: 50px auto;
}
.contact-box h2 { font-size: 1.8rem; margin-bottom: 8px; color: var(--text-dark); }
.contact-box p { color: var(--text-gray); margin-bottom: 28px; font-size: 14px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  font-family: var(--font-heading);
}
.form-group label .req { color: var(--accent); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,52,148,0.1);
}
.form-group textarea { height: 130px; resize: vertical; }
::placeholder { color: var(--text-light); }

/* ===== FOOTER ===== */
#site-footer {
  background: #f5f6fa;
  padding: 50px 20px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 40px;
}
.footer-col h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 16px;
  font-family: var(--font-heading);
}
.footer-col p, .footer-col li { font-size: 13.5px; color: var(--text-gray); line-height: 1.8; }
.footer-col a { color: var(--primary); }
.footer-col a:hover { text-decoration: underline; }

/* Footer Form */
.footer-form input,
.footer-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  font-size: 13px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s;
}
.footer-form input:focus,
.footer-form textarea:focus { border-color: var(--primary); }
.footer-form textarea { height: 80px; resize: none; }

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-bottom p { font-size: 13px; color: var(--text-light); }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.2s, transform 0.2s;
}
.social-links a:hover { background: var(--accent); transform: translateY(-2px); }

/* ===== FLOATING CHAT BUTTON ===== */
.floating-chat {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(232,100,42,0.4);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: pulse 2.5s infinite;
}
.floating-chat:hover { transform: scale(1.1); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(232,100,42,0.4); }
  50% { box-shadow: 0 4px 28px rgba(232,100,42,0.65); }
}

/* ===== PORTFOLIO GALLERY ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--light-bg);
  border: 2px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.portfolio-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; }
.video-item { border-radius: 10px; overflow: hidden; }
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(45,52,148,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ===== PAGE HERO (Inner Pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 70px 20px;
  text-align: center;
  color: var(--white);
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: 16px; }
.page-hero .breadcrumb { font-size: 13px; color: rgba(255,255,255,0.7); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--primary-dark); padding: 16px; gap: 4px; }
  .nav-menu.open { display: flex; }
  .menu-toggle { display: block; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-box { padding: 28px 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .hero-title { font-size: 1.6rem; }
}
