/* style.css */

/* --- 1. CSS Variables and Root Configuration --- */
:root {
  /* Tetradic Color Palette */
  --primary-color: #0077B6;      /* Deep Sea Blue */
  --secondary-color: #F7B801;    /* Sandy Gold */
  --accent-color-1: #F77F00;      /* Sunset Orange */
  --accent-color-2: #009688;      /* Teal Green */

  /* Text & Neutral Colors */
  --text-color: #333333;
  --text-light-color: #FFFFFF;
  --background-color: #FFFFFF;
  --background-light-color: #f8f9fa;
  --border-color: #dee2e6;
  --shadow-color: rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-family-headings: 'Roboto', sans-serif;
  --font-family-body: 'Lato', sans-serif;

  /* UI Elements */
  --card-shadow: 0 5px 15px var(--shadow-color);
  --card-hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition-speed: 0.4s;
  --transition-timing: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- 2. Global Styles & Bulma Overrides --- */
html {
  scroll-behavior: smooth;
  background-color: var(--background-color);
}

body {
  font-family: var(--font-family-body);
  color: var(--text-color);
  line-height: 1.7;
  font-size: 1.1rem;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--font-family-headings);
  color: var(--text-color);
}

.section {
  padding: 5rem 1.5rem;
}

.section-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem !important;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section .subtitle {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

/* --- 3. Buttons & Interactive Elements --- */
.button {
  font-family: var(--font-family-headings);
  transition: all var(--transition-speed) var(--transition-timing);
  border-radius: 50px;
  border-width: 2px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 1.5em 2.5em;
  transform: translateY(0);
}

.button.is-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.button.is-primary:hover,
.button.is-primary:focus {
  background-color: var(--accent-color-1);
  border-color: var(--accent-color-1);
  box-shadow: 0 8px 25px rgba(0, 119, 182, 0.3);
  transform: translateY(-3px);
}

.button.is-primary.is-outlined {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.button.is-primary.is-outlined:hover,
.button.is-primary.is-outlined:focus {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-light-color);
  transform: translateY(-2px);
  box-shadow: none;
}

/* --- 4. Header & Navigation --- */
.navbar {
  transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.navbar.is-scrolled {
  background-color: var(--background-color);
  box-shadow: 0 2px 10px var(--shadow-color);
}

.navbar-item, .navbar-link {
  font-family: var(--font-family-headings);
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color var(--transition-speed);
}

.navbar-item:hover, .navbar-item:focus, .navbar-link:hover, .navbar-link:focus {
  background-color: transparent !important;
  color: var(--primary-color) !important;
}

.navbar-brand .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Burger menu on mobile */
.navbar-burger {
  color: var(--primary-color);
}
.navbar.is-transparent .navbar-burger {
  color: var(--text-light-color);
}
.navbar.is-scrolled .navbar-burger {
   color: var(--primary-color);
}

@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: var(--background-color);
    box-shadow: 0 8px 16px var(--shadow-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
  }
  .navbar-menu .navbar-item {
    color: var(--text-color);
  }
}

/* --- 5. Hero Section --- */
.hero {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.hero .hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero .hero-title, .hero .hero-subtitle {
  color: var(--text-light-color);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero .hero-title {
  font-size: 4.5rem;
  font-weight: 700;
}

.hero .hero-subtitle {
  font-size: 1.8rem;
  font-weight: 400;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

/* --- 6. Cards (Projects, Pricing, Testimonials) --- */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform var(--transition-speed) var(--transition-timing), 
              box-shadow var(--transition-speed) var(--transition-timing);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.card .card-image img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.card .card-content {
  text-align: left;
  padding: 1.5rem;
  flex-grow: 1; /* Allows content to fill space */
}

/* Specific Card Styles */
.project-card .title {
  color: var(--accent-color-2);
}

.pricing-card {
  text-align: center;
}

.pricing-card.is-featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.pricing-card .price {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1.5rem 0;
}

.pricing-card ul {
  list-style: none;
  margin: 0 0 2rem 0;
  text-align: left;
}

.pricing-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.pricing-card ul li::before {
  content: '✓';
  color: var(--accent-color-2);
  margin-right: 10px;
  font-weight: bold;
}

.testimonial-card .media-left img {
  border: 3px solid var(--primary-color);
}

/* --- 7. Portfolio Gallery --- */
#portfolio .tile.is-child {
  transition: transform var(--transition-speed) var(--transition-timing);
  padding: 0.5rem;
}
#portfolio .tile.is-child:hover {
  transform: scale(1.03);
  z-index: 10;
}
#portfolio .tile.is-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

/* --- 8. Parallax & Stats Section --- */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  color: var(--text-light-color);
}
.parallax-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.parallax-bg .container {
  position: relative;
  z-index: 2;
}

#stats .heading {
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#stats .title.stat-number {
  color: var(--text-light-color);
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* --- 9. External Resources Section --- */
.resource-list {
  list-style: none;
  margin: 0;
}
.resource-list li {
  margin-bottom: 1.5rem;
}
.resource-list a {
  display: block;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: var(--background-light-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  transition: all var(--transition-speed) var(--transition-timing);
}
.resource-list a:hover {
  border-color: var(--primary-color);
  box-shadow: var(--card-shadow);
  transform: translateY(-5px);
}
.resource-list a strong {
  color: var(--primary-color);
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.resource-list a p {
  color: var(--text-color);
  opacity: 0.8;
  margin: 0;
}

/* --- 10. Contact Form --- */
.contact-form .input, .contact-form .textarea {
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
  font-size: 1rem;
}
.contact-form .input:focus, .contact-form .textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.125em rgba(0, 119, 182, 0.25);
}
.contact-form .label {
  font-weight: 700;
  color: var(--text-color);
}

/* --- 11. Footer --- */
.footer {
  background-color: var(--text-color);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 1.5rem;
}
.footer .title {
  color: var(--text-light-color);
}
.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-speed);
}
.footer a:hover {
  color: var(--secondary-color);
}
.footer ul {
  list-style: none;
  margin: 0;
}
.footer ul li {
  margin-bottom: 0.75rem;
}
.footer .footer-title {
  margin-bottom: 1.5rem;
}

/* --- 12. Static Pages (Success, Privacy, Terms) --- */
.page-container {
  padding-top: 100px;
  padding-bottom: 5rem;
  min-height: 80vh;
}

.success-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  padding: 2rem;
  background-color: var(--background-light-color);
}
.success-container .success-icon {
  font-size: 5rem;
  color: var(--accent-color-2);
  margin-bottom: 1.5rem;
}
.success-container .title {
  color: var(--text-color);
}

/* --- 13. Responsive Design --- */
@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
  .hero .hero-title {
    font-size: 3rem;
  }
  .hero .hero-subtitle {
    font-size: 1.3rem;
  }
  #stats .level-item {
    margin-bottom: 2rem;
  }
  .footer .columns {
    text-align: center;
  }
}