/* --- Default Sections Layout --- */
.section {
    width: 100vw;
    padding: 5rem 0;
    position: relative;
    overflow-x: hidden;
}

.section.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 88px;
    padding-bottom: 2rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
}

.section .container {
    padding-left: 60px;
    padding-right: 60px;
}

/* --- Hero Section --- */
.hero .hero-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1 1 500px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* --- GLITCH EFFECT (Chromatic Aberration Style) --- */
.glitch-effect {
    position: relative;
    color: var(--color-text);
    z-index: 1;
}
.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: transparent;
    z-index: -1;
    mix-blend-mode: lighten;
}

.glitch-effect::before {
    left: 1px;
    text-shadow: -2px 0 var(--color-primary);
    animation: glitch-anim-1 30s infinite linear alternate-reverse;
}

.glitch-effect::after {
    left: -1px;
    text-shadow: 2px 0 var(--color-secondary);
    animation: glitch-anim-2 28s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0%   { clip-path: inset(87% -6% 8% 0); transform: translate(-2px, -1px); }
  1.5% { clip-path: inset(54% -6% 43% 0); transform: translate(2px, 1px); }
  3%   { clip-path: inset(55% -6% 29% 0); transform: translate(-1px, 2px); }
  4.5% { clip-path: inset(81% -6% 16% 0); transform: translate(1px, -1px); }
  6%   { clip-path: inset(45% -6% 52% 0); transform: translate(-2px, 1px); }
  6.1% { clip-path: inset(0); transform: translate(0, 0); }
  93%  { clip-path: inset(0); transform: translate(0, 0); }
  94.5%{ clip-path: inset(93% -6% 5% 0); transform: translate(2px, -1px); }
  96%  { clip-path: inset(43% -6% 54% 0); transform: translate(-1px, 2px); }
  97.5%{ clip-path: inset(79% -6% 12% 0); transform: translate(1px, 1px); }
  99%  { clip-path: inset(34% -6% 59% 0); transform: translate(-2px, -1px); }
  100% { clip-path: inset(48% -6% 47% 0); transform: translate(1px, 0); }
}

@keyframes glitch-anim-2 {
  0%   { clip-path: inset(13% -6% 81% 0); transform: translate(1px, 2px); }
  1.5% { clip-path: inset(93% -6% 5% 0); transform: translate(-2px, -1px); }
  3%   { clip-path: inset(43% -6% 54% 0); transform: translate(1px, -1px); }
  4.5% { clip-path: inset(79% -6% 12% 0); transform: translate(-1px, 1px); }
  6%   { clip-path: inset(34% -6% 59% 0); transform: translate(2px, 1px); }
  6.1% { clip-path: inset(0); transform: translate(0, 0); }
  92%  { clip-path: inset(0); transform: translate(0, 0); }
  93.5% { clip-path: inset(98% -6% 1% 0); transform: translate(-1px, 2px); }
  95%  { clip-path: inset(69% -6% 22% 0); transform: translate(1px, -1px); }
  96.5% { clip-path: inset(12% -6% 84% 0); transform: translate(-2px, -1px); }
  98%  { clip-path: inset(89% -6% 3% 0); transform: translate(1px, 1px); }
  100% { clip-path: inset(42% -6% 50% 0); transform: translate(-1px, 0); }
}

.hero-image {
    flex: 1 1 400px;
    display: grid;
    place-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: clamp(250px, 100%, 450px);
    animation: float 4s ease-in-out infinite;
}

.hero-image-wrapper .main-logo {
    max-width: 100%;
    width: 100%;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.badge {
    position: absolute;
    animation: float-badge 5s ease-in-out infinite;
    background: none;
    border: none;
    width: auto;
    height: auto;
    box-shadow: none;
    padding: 0;
    display: block;
}

.badge-inner {
    display: flex;
    align-items: stretch;
    height: 50px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}

[data-theme="dark"] .badge-inner {
     filter: drop-shadow(0 4px 15px rgba(0, 150, 255, 0.15));
}

.badge-icon {
    width: 50px;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    color: var(--color-white);
    clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
    padding-right: 10px;
    flex-shrink: 0;
}

.badge-label {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: none;
    padding: 0.6rem 1rem 0.6rem 1.2rem;
    margin-left: -12px;
    display: grid;
    place-items: center;
    transform: skewX(-15deg);
    border-radius: 0 3px 3px 0;
}

.badge-label span {
    display: inline-block;
    transform: skewX(15deg);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text);
    white-space: nowrap;
}

.badge-1 { top: -5%; left: -5%; animation-delay: 0s; }
.badge-2 { top: 15%; right: -15%; animation-delay: 1s; }
.badge-3 { bottom: 5%; left: -20%; animation-delay: 2s; }
.badge-4 { bottom: -10%; right: -5%; animation-delay: 3s; }

@keyframes float-badge {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
    100% { transform: translateY(0px) scale(1); }
}

@media screen and (max-width: 1299px) {
    .hero .hero-content-wrapper {
        flex-direction: column-reverse;
        gap: 1rem;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-image-wrapper {
        width: clamp(250px, 80%, 380px);
        margin-top: 1rem;
    }
    .badge-1 { top: -2%; left: -2%; }
    .badge-2 { top: 12%; right: -12%; }
    .badge-3 { bottom: 8%; left: -15%; }
    .badge-4 { bottom: -8%; right: -2%; }
}

@media screen and (max-width: 768px) {
    .section .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .hero-content p {
        font-size: clamp(0.9rem, 4vw, 1rem);
    }

    .hero-image-wrapper {
        width: clamp(200px, 70vw, 280px);
        margin-top: 2rem;
    }

    .badge-inner {
        height: 40px;
    }
    .badge-icon {
        width: 40px;
        font-size: 1.5rem;
        padding-right: 8px;
    }
    .badge-label {
        padding: 0.4rem 0.75rem 0.4rem 1rem;
        margin-left: -10px;
        transform: skewX(-15deg);
    }
    .badge-label span {
        font-size: 0.55rem;
        transform: skewX(15deg);
    }

    .badge-1 { top: -8%; left: -8%; }
    .badge-2 { top: 10%; right: -15%; }
    .badge-3 { bottom: 8%; left: -10%; }
    .badge-4 { bottom: -12%; right: -10%; }
}

.hero-btn {
    display: inline-flex;
    align-items: stretch;
    margin-top: 1.5rem;
    height: 55px;
    text-decoration: none;
    filter: drop-shadow(0 4px 10px rgba(0, 150, 255, 0.3));
    transition: transform 0.2s ease, filter 0.2s ease;
    padding: 0;
    border-radius: 0;
    background: none;
    transform: none;
}

.hero-btn:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 6px 18px rgba(0, 150, 255, 0.4));
}

.hero-btn-icon {
    width: 55px;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: var(--color-white);
    clip-path: polygon(0% 0%, 80% 0%, 100% 50%, 80% 100%, 0% 100%);
    padding-right: 12px;
}

.hero-btn-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    padding: 0 2rem 0 1.5rem;
    margin-left: -11px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    transform: skewX(-15deg);
    border-radius: 0 4px 4px 0;
    font-style: normal;
}

/* --- FIX: Unskew the text inside --- */
.hero-btn-text span {
    display: inline-block;
    transform: skewX(15deg);
    font-style: normal;
}
/* --- END OF FIX --- */

@media screen and (max-width: 768px) {
    .hero-btn {
       height: 50px;
    }
    .hero-btn-icon {
        width: 50px;
        font-size: 1.8rem;
    }
    .hero-btn-text {
        font-size: 0.9rem;
        padding: 0 1.5rem 0 1.2rem;
        margin-left: -10px;
    }
}
/* --- Typing Effect --- */
.typing-container {
    font-size: clamp(1rem, 2.5vw, 1.4rem); /* Pinaliit nang bahagya */
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 2rem; /* Dinagdagan ang space para consistent */
    /* --- FIX: Para hindi mag-wrap at maputol ng maayos --- */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%; /* Ensure it takes full width initially */
    max-width: 100%; /* Ensure it doesn't exceed parent */
    /* Tinanggal ang fixed height */
}

#typing-effect {
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline; /* Changed back to inline, might work better with nowrap */
}
.typing-cursor {
    display: inline-block;
    margin-left: 2px;
    opacity: 1;
    animation: blink 0.7s infinite;
    color: var(--color-primary);
}

@keyframes blink {
    0% { opacity: 1; }
    49% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

@media screen and (max-width: 992px) {
    .typing-container {
        /* Center alignment is handled by .hero-content's text-align: center */
        max-width: 100%; /* Limit width on smaller screens */
        margin-left: auto; /* Center block */
        margin-right: auto; /* Center block */
    }
}

/* Optional: Make it slightly smaller on very small screens */
@media screen and (max-width: 480px) {
    .typing-container {
         font-size: clamp(0.9rem, 4vw, 1rem);
    }
}
#typing-effect {
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    /* --- FIX: Ginawang Gradient --- */
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block; /* Kailangan para gumana ang gradient */
}