:root {
  --primary: #38bdf8;
  --dark: #0f172a;
  --text: #4b5563;
  --light: #f8fafc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background-color: #fff;
  overflow-x: hidden;
  width: 100%;
}

.container { max-width: 1200px; margin: auto; padding: 0 20px; }

/* --- LOADER --- */
.main-container-loader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: #000; display: flex; justify-content: center; align-items: center; z-index: 9999;
}
.fade-out-loader { opacity: 0; visibility: hidden; transition: 0.6s ease; }

.loader { display: block; width: 10em; height: 10em; overflow: visible; }
.loader path.fill { fill: var(--primary); opacity: 0.1; animation: fill 4s ease-in-out infinite; }
.loader .dash path { stroke: var(--primary); stroke-width: 1px; stroke-linecap: round; animation: dashArray var(--sped, 2s) ease-in-out infinite, dashOffset var(--sped, 2s) linear infinite; }
.loader .dash path.aaa { stroke-width: 2px; stroke-linecap: butt; }
.loader .dash path.big { stroke-width: 2px; filter: drop-shadow(0 0 2px var(--primary)); }

@keyframes dashArray { 0% { stroke-dasharray: 0 1 359 0; } 50% { stroke-dasharray: 0 359 1 0; } 100% { stroke-dasharray: 359 1 0 0; } }
@keyframes dashOffset { 0% { stroke-dashoffset: -5; } 100% { stroke-dashoffset: -365; } }
@keyframes fill { 0%, 100% { opacity: 0.1; } 30%, 55% { opacity: 0; } 50% { opacity: 0.4; } }

/* --- NAVBAR --- */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  padding: 15px 0; border-bottom: 1px solid #f1f5f9;
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--dark); transition: 0.3s; }
.logo:hover { transform: scale(1.05); }
.logo span { color: var(--primary); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; transition: 0.3s; position: relative; }
.nav-links a:not(.nav-cta):hover { color: var(--primary); }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--primary); transition: 0.3s;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta { background: var(--dark); color: #fff !important; padding: 10px 22px; border-radius: 8px; transition: 0.3s ease !important; }
.nav-cta:hover { 
    background: var(--primary); 
    color: #000 !important; 
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* --- HERO --- */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; background: #000; color: #fff; padding: 100px 0; }
.video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, transparent 20%, #000 100%); }
.hero-content { position: relative; z-index: 2; max-width: 850px; }
.badge { background: rgba(56, 189, 248, 0.2); color: var(--primary); padding: 8px 16px; border-radius: 50px; font-weight: 800; font-size: 0.85rem; margin-bottom: 20px; display: inline-block; transition: 0.3s; cursor: default; }
.badge:hover { background: var(--primary); color: #000; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 4.2rem); line-height: 1.1; margin-bottom: 25px; font-weight: 800; }
.highlight { color: var(--primary); }
.hero p { font-size: clamp(1.1rem, 3vw, 1.4rem); opacity: 0.9; margin-bottom: 45px; }

.hero-btns { display: flex; gap: 20px; flex-wrap: wrap; }
.btn { padding: 18px 35px; border-radius: 12px; text-decoration: none; font-weight: 700; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: inline-block; text-align: center; border: none; font-size: 1rem; cursor: pointer; }

.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { 
    background: #fff; 
    transform: translateY(-5px); 
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.8), 0 0 40px rgba(56, 189, 248, 0.4) !important; 
}

.btn-outline { border: 2px solid rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: #fff; color: #000; border-color: #fff; transform: translateY(-5px); }

/* --- TICKER --- */
.ticker-wrapper { background: #fff; border-bottom: 1px solid #eef2f6; overflow: hidden; padding: 30px 0; white-space: nowrap; }
.ticker-scroll { display: inline-flex; animation: scrollTicker 40s linear infinite; }
.ticker-item { color: var(--dark); font-weight: 800; font-size: 0.85rem; letter-spacing: 2px; padding: 0 50px; display: flex; align-items: center; transition: 0.3s; }
.ticker-item:hover { color: var(--primary); transform: scale(1.1); cursor: default; }
.ticker-item::after { content: "✦"; color: var(--primary); margin-left: 50px; }
@keyframes scrollTicker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- SECTIONS --- */
.section { padding: 100px 0; position: relative; z-index: 1; }
.bg-light { background-color: var(--light); }
.section-title { font-size: clamp(2rem, 5vw, 3rem); color: var(--dark); font-weight: 800; margin-bottom: 35px; line-height: 1.2; }
.center-head { text-align: center; margin-bottom: 60px; }

/* --- ABOUT --- */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; align-items: center; }
.lead { font-size: 1.3rem; margin-bottom: 40px; color: var(--dark); font-weight: 600; }
.expertise-lists { display: flex; gap: 40px; flex-wrap: wrap; }
.exp-col h3 { color: var(--primary); font-size: 0.9rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.exp-col ul { list-style: none; }
.exp-col li { margin-bottom: 12px; font-weight: 600; padding-left: 25px; position: relative; transition: 0.3s; }
.exp-col li:hover { transform: translateX(10px); color: var(--primary); }
.exp-col li::before { content: "✔"; position: absolute; left: 0; color: var(--primary); }
.about-image { position: relative; }
.about-image img { width: 100%; border-radius: 40px; box-shadow: 0 30px 60px rgba(0,0,0,0.1); transition: 0.5s ease; }
.about-image:hover img { transform: translateY(-15px) scale(1.02); box-shadow: 0 40px 80px rgba(56, 189, 248, 0.2); }

/* --- TOOLS --- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.tool-card { background: #fff; padding: 50px 35px; border-radius: 28px; border: 1px solid #eef2f6; text-align: center; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.tool-card img { width: 65px; height: 65px; object-fit: contain; margin-bottom: 25px; transition: 0.4s; }
.tool-card h3 { transition: 0.3s; }
.tool-card:hover { 
    border-color: var(--primary); 
    transform: translateY(-15px); 
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.2); 
}
.tool-card:hover img { transform: scale(1.2) rotate(5deg); }
.tool-card:hover h3 { color: var(--primary); }

/* --- PROJECTS --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-top: 50px; }

.card { 
  background: #fff; 
  border-radius: 30px; 
  overflow: hidden; 
  box-shadow: 0 15px 35px rgba(0,0,0,0.05); 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important; 
  border: 1px solid #f1f5f9;
  position: relative;
  z-index: 1;
}

.card a { display: block; overflow: hidden; width: 100%; height: 200px; cursor: pointer; }
.card img { width: 100%; height: 205px; object-fit: cover; transition: transform 0.6s ease !important; }
.card-info { padding: 30px; transition: 0.3s; }
.card h3 { color: var(--dark); font-size: 1.4rem; margin-bottom: 10px; transition: 0.3s; }

.card:hover { 
  transform: translateY(-10px) !important; 
  z-index: 10; 
  border-color: #38bdf8 !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15), inset 0 0 10px rgba(56, 189, 248, 0.05) !important;
}

.card:hover img { transform: scale(1.05) !important; }
.card:hover h3 { color: var(--primary) !important; }

/* --- CONTACT (WITH ADDED DOT GRID EFFECT) --- */
.contact-box { 
    background: var(--dark); 
    color: #fff; 
    padding: 80px 40px; 
    border-radius: 50px; 
    text-align: center; 
    transition: 0.4s; 
    border: 1px solid transparent; 
    position: relative; /* Kinakailangan para sa pseudo-element */
    overflow: hidden;
    z-index: 1;
}

/* ITO ANG DINAGDAG PARA SA DOT GRID ANIMATION */
.contact-box::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(rgba(56, 189, 248, 0.15) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    z-index: -1;
    animation: gridMove 30s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    from { transform: translate(0, 0); }
    to { transform: translate(-30px, -30px); }
}

.contact-box:hover { 
    border-color: var(--primary); 
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3); 
}

.brilliant-form { 
    max-width: 600px; 
    margin: 40px auto 0; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    position: relative; 
    z-index: 2; /* Para hindi matabunan ng dots */
}

.brilliant-form input, .brilliant-form textarea {
  background: rgba(255,255,255,0.08); 
  backdrop-filter: blur(5px); /* Subtle glass effect sa inputs */
  border: 1px solid rgba(255,255,255,0.15);
  padding: 20px; border-radius: 15px; color: #fff; font-family: inherit; width: 100%; outline: none; transition: 0.3s;
}
.brilliant-form input:focus, .brilliant-form textarea:focus { 
  border-color: var(--primary); 
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(50px); transition: 1.2s cubic-bezier(0.17, 0.67, 0.83, 0.67); }
.roll-in { opacity: 0; transform: translateX(-100px) rotate(-120deg) scale(0.3); transition: 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

.reveal.active, .roll-in.active { 
    opacity: 1; 
    transform: translateY(0) rotate(0) scale(1); 
}

footer { padding: 45px 0; text-align: center; background: #070b14; color: #64748b; }

@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .expertise-lists { justify-content: center; text-align: left; }
  .about-image { max-width: 450px; margin: auto; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; flex-direction: column; gap: 6px; cursor: pointer; z-index: 2000; position: relative; }
  .hamburger span { width: 28px; height: 3px; background: var(--dark); border-radius: 10px; transition: 0.3s; }
  .hamburger.active .line1 { transform: translateY(9px) rotate(45deg); }
  .hamburger.active .line2 { opacity: 0; }
  .hamburger.active .line3 { transform: translateY(-9px) rotate(-45deg); }
  nav { position: fixed; top: 0; right: -100%; width: 85%; height: 100vh; background: #fff; z-index: 1050; padding: 120px 40px; transition: 0.5s; }
  nav.active { right: 0; }
  .nav-links { flex-direction: column; gap: 35px; }
}