/* 
 * Andy Shields Website Styles
 * Main stylesheet for andyshields.com
 */

/* Base Styles & Variables */
:root {
  --primary: #2C3E50;
  --secondary: #3498DB;
  --accent: #E74C3C;
  --light: #ECF0F1;
  --dark: #2C3E50;
  --gray: #95A5A6;
  --white: #FFFFFF;
  --black: #000000;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

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

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

ul {
  list-style: none;
}

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

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

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

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

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

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.divider {
  height: 4px;
  width: 60px;
  background-color: var(--secondary);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem 0;
}

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

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

.logo h1 {
  font-size: 1.5rem;
  margin: 0 0 0 0.5rem;
  color: var(--primary);
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--dark);
  font-weight: 500;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  text-align: center;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: var(--light);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-stats {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-item {
  flex: 1;
  min-width: 120px;
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-weight: 500;
}

/* Services Section */
.services {
  padding: 5rem 0;
}

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

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

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
  color: var(--secondary);
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 48px;
  height: 48px;
}

/* Expertise Section */
.expertise {
  padding: 5rem 0;
  background-color: var(--light);
}

.expertise-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.expertise-list {
  flex: 1;
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.expertise-item {
  text-align: center;
}

.expertise-percentage {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
}

.expertise-percentage svg {
  width: 100%;
  height: 100%;
}

.expertise-percentage svg circle {
  fill: none;
  stroke-width: 8;
}

.expertise-percentage svg circle:first-child {
  stroke: #e6e6e6;
}

.expertise-percentage svg circle:last-child {
  stroke: var(--secondary);
  stroke-dasharray: 283;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1s ease-in-out;
}

.expertise-percentage .percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.expertise-text {
  flex: 1;
  min-width: 300px;
}

.expertise-text p {
  margin-bottom: 1.5rem;
}

/* Entertainment Section */
.entertainment {
  padding: 5rem 0;
}

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

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

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

.resource-links {
  margin-top: 1.5rem;
}

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

.resource-links li a {
  display: inline-block;
  color: var(--secondary);
  font-weight: 500;
  transition: var(--transition);
}

.resource-links li a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: var(--light);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.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 #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  outline: none;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.info-icon {
  color: var(--secondary);
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.info-text h4 {
  margin-bottom: 0.5rem;
}

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

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

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

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--white);
  padding-top: 3rem;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

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

.footer-logo img {
  margin-bottom: 1rem;
}

.footer-links {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.footer-nav, .footer-legal {
  margin: 0 1rem;
}

.footer-nav h4, .footer-legal h4 {
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-nav h4:after, .footer-legal h4:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-nav ul, .footer-legal ul {
  margin-top: 1.5rem;
}

.footer-nav li, .footer-legal li {
  margin-bottom: 0.75rem;
}

.footer-nav a, .footer-legal a {
  color: var(--light);
  transition: var(--transition);
}

.footer-nav a:hover, .footer-legal a:hover {
  color: var(--secondary);
}

.copyright {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
  }
  
  nav ul.active {
    display: flex;
  }
  
  nav ul li {
    margin: 0;
    text-align: center;
  }
  
  nav ul li a {
    display: block;
    padding: 1rem;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .about-content,
  .expertise-content,
  .contact-container {
    gap: 2rem;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .expertise-percentage {
    width: 100px;
    height: 100px;
  }
  
  .expertise-percentage .percentage {
    font-size: 1.25rem;
  }
}
