/* ========================================================
   GGRL PORTAL ENGINE 2026 - MASTER STYLE SHEET
   ======================================================== */

:root {
  --primary: #134866;
  --secondary: #ff6600;
  --accent: #ff4f5a;
  --light: #ffffff;
  --dark: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f4f4f4;
  overflow-x: hidden;
  transition: opacity 0.4s ease-in-out;
  opacity: 1;
}

/* ====================== HEADER ====================== */
header {
  background: var(--primary);
  color: white;
  padding: 50px 15px;
  position: relative;
  z-index: 2;
}

.logo {
  max-width: 250px;
  margin: 0 auto 30px;
  display: block;
  animation: logoFloat 5s infinite ease-in-out;
  filter: drop-shadow(0 6px 20px rgba(19,72,102,0.25));
  transition: all 0.6s ease;
  position: relative;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, filter;
}

.logo::after {
  content: '';
  position: absolute;
  inset: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  pointer-events: none;
}

header:hover .logo {
  transform: translateY(-12px) scale(1.08);
  filter: drop-shadow(0 15px 40px rgba(19,72,102,0.4));
}

header:hover .logo::after {
  animation: logoShine 1s ease-in-out;
}

header h1 {
  font-size: 2.1em;
  margin-bottom: 12px;
  font-weight: 600;
}

header p {
  font-size: 1.15em;
  max-width: 90%;
  margin: 0 auto;
  opacity: 0.95;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-10px) scale(1.03); }
}

@keyframes logoShine {
  0%   { left: -100%; }
  100% { left: 100%; }
}

/* ====================== SERVICES GRID ====================== */
.background-wrapper {
  flex: 1;
  background: #fff;
  padding: 120px 15px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-card {
  position: relative;
  flex: 0 0 460px;
  max-width: 460px;
  height: 580px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff, #f8f9fb);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.4);
  transition: all 0.7s cubic-bezier(0.25,0.8,0.25,1);
  opacity: 0;
  transform: translateY(40px) translateZ(0);
  animation: fadeUp 1s ease-out forwards;
  will-change: transform, opacity;
}

.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.service-card:hover {
  transform: translateY(-18px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.service-image {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 460 / 580;
  background: #f0f0f0;
  transition: all 1.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: scale(1.02);
  filter: brightness(1) contrast(1.05);
  content-visibility: auto;
}

.service-card:hover .service-image img {
  transform: scale(1.11);
  filter: brightness(1.08) contrast(1.00);
}

.service-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 1.2s ease;
  pointer-events: none;
  z-index: 2;
}

.service-card:hover .service-image::after {
  transform: translateX(100%);
}

.service-info {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.65) 60%, rgba(0,0,0,0.55) 100%);
  padding: 36px 28px 32px;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.25,0.8,0.25,1);
  transform: translateY(120px);
}

.service-card:hover .service-info,
.coming-soon .service-info {
  transform: translateY(0);
}

.service-info h3 {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.service-desc {
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.service-card:hover .service-desc {
  opacity: 1;
  transform: translateY(0);
}

.service-desc p {
  margin: 0 0 20px;
  line-height: 1.7;
  font-size: 1.05rem;
}

.btn-explore {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(255,102,0,0.4);
  transition: all 0.3s ease;
}

.btn-explore:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255,102,0,0.5);
}

.watermark {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-size: 4.8rem;
  font-weight: 900;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 12px;
  text-shadow: 0 12px 40px rgba(0,0,0,0.8);
  pointer-events: none;
  animation: pulseFade 3s infinite ease-in-out;
  z-index: 2;
}

@keyframes pulseFade {
  0%, 100% { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.6; transform: translate(-50%, -50%) scale(0.96); }
}

/* ====================== PORTAL CALL BUTTON ====================== */
.portal-call-container {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 15px;
}

.portal-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(255, 79, 90, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.portal-call-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: rgba(255, 79, 90, 0.4);
    z-index: -1;
    animation: portalHeartbeat 3.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.portal-call-btn:hover {
    transform: scale(1.05) translateY(-5px);
    background: white;
    color: var(--accent);
    box-shadow: 0 15px 40px rgba(255, 79, 90, 0.5);
}

@keyframes portalHeartbeat {
    0%   { transform: scale(0.95); opacity: 0.8; }
    25%  { transform: scale(1.15, 1.3); opacity: 0; }
    100% { transform: scale(1.15, 1.3); opacity: 0; }
}

/* ====================== CEO MESSAGE ====================== */
.ceo-section {
  background: #f4f4f4;
  padding: 60px 15px 0;
}

.ceo-message {
  max-width: 800px;
  margin: 30px auto;
  padding: 35px;
  background: linear-gradient(145deg, #e6e6e6, #f5f5f5);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12), 0 4px 15px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.6);
  border: 1px solid #d0d0d0;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
  animation: slideUpBlock 1.2s cubic-bezier(.34,1.56,.64,1) .3s forwards;
}

.ceo-message::before, .ceo-message::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), #1a7ba3, var(--primary));
}

.ceo-message::before {
  top: 0;
  border-radius: 22px 22px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineExpand 1.5s ease-out 1s infinite alternate;
}

.ceo-message::after {
  bottom: 0;
  border-radius: 0 0 22px 22px;
  opacity: .8;
  transform: scaleX(0);
  transform-origin: right;
  animation: lineExpand 1.5s ease-out 1.2s infinite alternate;
}

@keyframes slideUpBlock {
  0%   { opacity:0; transform:translateY(60px) scale(.95); }
  70%  { opacity:1; transform:translateY(-10px) scale(1.02); }
  100% { opacity:1; transform:translateY(0) scale(1); }
}

@keyframes lineExpand {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.ceo-message h2 {
  font-size: 1.9em;
  margin-bottom: 22px;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ceo-message h2 span {
  opacity: 0;
  transform: translateX(-20px);
  animation: typeWriter 1.8s steps(30) 1.4s forwards;
}

.ceo-message h2 i {
  color: #1a7ba3;
  font-size: 1.3em;
  opacity: 0;
  animation: fadeInIcon .8s ease-out 1.2s forwards;
}

@keyframes typeWriter {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInIcon {
  to { opacity: .9; }
}

.ceo-message .quote-text {
  text-align: left;
  font-size: 1.02em;
  line-height: 1.75;
  color: #444;
  max-width: 640px;
  margin: 0 auto;
  font-family: 'Georgia', serif;
}

.ceo-message .quote-text p {
  margin-bottom: 18px;
  padding-left: 28px;
  position: relative;
  opacity: 0;
  transform: translateX(-30px);
  animation: revealLine .8s ease-out forwards;
}

.ceo-message .quote-text p:nth-child(1) { animation-delay: 1.8s; }
.ceo-message .quote-text p:nth-child(2) { animation-delay: 2.1s; }
.ceo-message .quote-text p:nth-child(3) { animation-delay: 2.4s; }

@keyframes revealLine {
  to { opacity: 1; transform: translateX(0); }
}

.ceo-message .quote-text p::before {
  content: '“';
  position: absolute;
  left: 0;
  top: -2px;
  font-size: 2.8em;
  color: var(--primary);
  opacity: .25;
  transform: scale(0);
  animation: popQuote .6s ease-out forwards;
}

.ceo-message .quote-text p:nth-child(1)::before { animation-delay: 1.9s; }
.ceo-message .quote-text p:nth-child(2)::before { animation-delay: 2.2s; }
.ceo-message .quote-text p:nth-child(3)::before { animation-delay: 2.5s; }

@keyframes popQuote {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  70%  { transform: scale(1.3) rotate(10deg); }
  100% { transform: scale(1) rotate(0); opacity: .25; }
}

/* ====================== FOOTER ====================== */
.footer-info {
  background: var(--primary);
  color: white;
  padding: 4rem 5%;
  text-align: center;
}

.footer-columns {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-column:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.footer-column h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.6rem;
  letter-spacing: 1px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--accent);
}

.footer-column p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  opacity: 0.9;
}

.footer-address, .footer-phone, .footer-email {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  justify-content: center;
}

.footer-address i, .footer-phone i, .footer-email i {
  color: var(--accent);
  font-size: 1.1rem;
}

.footer-column a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover { color: var(--accent); }

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 1.2rem;
}

.social-icons a {
  font-size: 1.8rem;
  color: white;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover, .social-icons a:active {
  color: var(--accent);
  transform: scale(1.15);
}

footer {
  background: #ffffff;
  color: #000000;
  text-align: center;
  padding: 20px 15px;
  font-size: 0.95rem;
  font-weight: 700;
  border-top: 1px solid #e0e0e0;
  letter-spacing: 0.5px;
}

/* ====================== FLOATING SOCIAL BAR ====================== */
.social-float-bar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(240, 240, 240, 0.4); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 999;
  animation: slideInLeft .6s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px) translateY(-50%); }
  to   { opacity: 1; transform: translateX(0) translateY(-50%); }
}

.social-btn {
  width: 50px;
  height: 50px;
  background: white;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,.3);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width .6s, height .6s;
}

.social-btn:hover::before {
  width: 300px;
  height: 300px;
}

.social-btn i {
  position: relative;
  z-index: 1;
  transition: transform .3s;
}

.social-btn:hover i { transform: scale(1.2); }

.social-btn.facebook    { background: #1877F2; }
.social-btn.instagram   { background: linear-gradient(135deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D); }
.social-btn.whatsapp    { background: #25D366; }

.social-btn.whatsapp::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ====================== MASTER RESPONSIVE (MOBILE 2025) ====================== */
@media (max-width: 767px) {
  header { padding: 30px 15px; }
  .logo { max-width: 180px; margin-bottom: 20px; }
  header h1 { font-size: 1.8rem; }
  header p { font-size: 1.05rem; }

  .background-wrapper { padding: 50px 10px 70px; }

  .portal-call-btn {
    font-size: 1.05rem;
    padding: 15px 25px;
    width: 100%;
    justify-content: center;
  }
  .portal-call-container { margin-bottom: 30px; }

  .services-grid {
    flex-direction: column;
    gap: 40px;
    padding: 0 10px;
    width: 100%;
    max-width: 100vw;
  }

  .service-card {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    height: 520px;
    margin: 0 auto;
  }

  .social-float-bar {
    left: auto !important;
    right: 20px !important;
    top: auto !important;
    bottom: 20px !important;
    transform: none !important;
    flex-direction: column;
    padding: 12px 8px;
  }
  
  .social-btn {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .ceo-section { padding: 50px 15px 0; }
  .ceo-message { padding: 28px 20px; margin: 20px auto; max-width: 100%; }
  .ceo-message h2 { font-size: 1.7rem; }
  .ceo-message .quote-text { font-size: 1rem; }

  .footer-columns { flex-direction: column; gap: 30px; padding: 0 15px; }
  .footer-column { max-width: 100%; }
}

@media (min-width: 768px) and (max-width: 1120px) {
  .services-grid { gap: 40px; padding: 0 30px; }
  .service-card { flex: 0 0 calc(50% - 20px); max-width: 460px; height: 560px; }
}

@media (max-width: 480px) {
  header h1 { font-size: 1.65rem; }
  .logo { max-width: 160px; }
  .service-card { height: 480px; }
  .service-info h3 { font-size: 1.75rem; }
  .service-info { padding: 28px 20px; }
}

html, body, img {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  display: block;
  height: auto;
}

.instruction-badge {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 16px 45px;
    border-radius: 100px;
    margin-top: 5px !important;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.instruction-badge i {
    color: var(--secondary);
    font-size: 1.2rem;
    animation: elegantFloat 3s infinite ease-in-out;
}

@keyframes elegantFloat {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 767px) {
    .instruction-badge {
        margin-top: 5px !important;
        font-size: 1rem;
        padding: 14px 30px;
        width: auto;
        max-width: 95%;
        justify-content: center;
        gap: 12px;
    }
    
    .instruction-badge i {
        font-size: 1.1rem;
    }
}