/* =========================
   GRAVINA TECH ACADEMY
   PROFESSIONAL UI
========================= */

:root{
  --primary:#1d4f91;
  --primary-dark:#163d6f;
  --accent:#2563eb;

  --bg:#f5f7fb;
  --section:#ffffff;

  --text:#0f172a;
  --muted:#64748b;

  --card:#ffffff;

  --border:rgba(15,23,42,0.06);

  --shadow:
    0 10px 30px rgba(15,23,42,0.05);

  --radius:22px;
}

/* =========================
   RESET
========================= */

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

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter',sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.7;
  overflow-x:hidden;
}

img{
  max-width:100%;
  display:block;
}

a{
  text-decoration:none;
  color:inherit;
}

.container{
  width:min(92%,1150px);
  margin:auto;
}

/* =========================
   TOP BANNER
========================= */

.top-banner{
  background:#0f172a;
  color:white;
  text-align:center;
  padding:11px 16px;
  font-weight:600;
  font-size:14px;
}

/* =========================
   HEADER
========================= */

header{
  background:#163d6f;
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 2px 10px rgba(0,0,0,0.04);
}

.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
}

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

.site-logo{
  width:68px;
  height:68px;
  object-fit:contain;
  border-radius:18px;
  background:white;
  padding:6px;
}

.site-name{
  color:white;
  font-size:18px;
  font-weight:700;
  letter-spacing:-0.3px;
}

/* =========================
   NAVIGATION
========================= */

.nav-links{
  display:flex;
  list-style:none;
  gap:12px;
}

.nav-links a{
  color:white;
  padding:12px 18px;
  border-radius:14px;
  font-weight:600;
  font-size:15px;
  transition:0.25s ease;
}

.nav-links a:hover{
  background:rgba(255,255,255,0.08);
}

.nav-links a.active{
  background:rgba(255,255,255,0.12);
}

/* =========================
   MOBILE MENU
========================= */

.menu-btn{
  display:none;
  background:rgba(255,255,255,0.1);
  color:white;
  border:none;
  padding:12px 16px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
}

.mobile-nav{
  display:none;
  flex-direction:column;
  gap:10px;
  padding-bottom:15px;
}

.mobile-nav.open{
  display:flex;
}

.mobile-nav a{
  background:rgba(255,255,255,0.08);
  color:white;
  padding:13px;
  border-radius:12px;
  font-weight:600;
}

/* =========================
   HERO SECTION
========================= */

.hero{
  background:
    linear-gradient(
      180deg,
      #234f7e 0%,
      #1d456f 100%
    );

  color:white;

  padding:72px 0 78px;
}

.hero-inner{
  text-align:center;
  max-width:920px;
  margin:auto;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;

  background:rgba(255,255,255,0.08);

  border:1px solid rgba(255,255,255,0.12);

  padding:11px 22px;

  border-radius:999px;

  margin-bottom:26px;

  font-size:14px;

  font-weight:600;

  color:rgba(255,255,255,0.94);

  backdrop-filter:blur(8px);
}

.hero h1{
  font-size:clamp(2.8rem,5vw,4.8rem);

  line-height:1.05;

  letter-spacing:-2px;

  margin-bottom:22px;

  font-weight:800;

  max-width:900px;

  margin-inline:auto;
}

.hero p{
  max-width:760px;

  margin:auto;

  color:rgba(255,255,255,0.84);

  font-size:1.1rem;

  line-height:1.8;

  font-weight:400;
}

.hero-actions{
  margin-top:34px;

  display:flex;

  justify-content:center;

  gap:16px;

  flex-wrap:wrap;
}

.hero-note{
  margin-top:28px;

  color:rgba(255,255,255,0.72);

  font-size:0.98rem;
}

/* =========================
   BUTTONS
========================= */

.btn{
  display:inline-flex;

  align-items:center;

  justify-content:center;

  padding:15px 28px;

  border-radius:16px;

  font-weight:700;

  transition:0.25s ease;

  border:none;

  cursor:pointer;
}

.btn-primary{
  background:#2563eb;

  color:white;

  box-shadow:
    0 10px 24px rgba(37,99,235,0.25);
}

.btn-primary:hover{
  transform:translateY(-3px);
  background:#1d4ed8;
}

.btn-ghost{
  background:rgba(255,255,255,0.08);

  border:1px solid rgba(255,255,255,0.14);

  color:white;
}

.btn-ghost:hover{
  background:rgba(255,255,255,0.14);
}

.btn-apply{
  background:#2563eb;
  color:white;
  margin-top:18px;
}

.btn-apply:hover{
  background:#1d4ed8;
  transform:translateY(-2px);
}

/* =========================
   GENERAL SECTIONS
========================= */

section{
  padding:52px 0;
}

.compact-section{
  padding:52px 0;
}

.section-title{
  text-align:center;

  font-size:2.1rem;

  margin-bottom:10px;

  font-weight:750;

  letter-spacing:-1px;
}

.section-subtitle{
  text-align:center;
  max-width:700px;
  margin:0 auto 30px;
  color:var(--muted);
  font-size:1rem;
}

/* =========================
   GRID
========================= */

.grid{
  display:grid;
  gap:22px;
}

.grid-2{
  grid-template-columns:repeat(2,1fr);
}

.grid-3{
  grid-template-columns:repeat(3,1fr);
}

.grid-4{
  grid-template-columns:repeat(4,1fr);
}

/* =========================
   CARDS
========================= */

.card{
  background:var(--card);

  border-radius:24px;

  padding:28px;

  border:1px solid var(--border);

  box-shadow:0 6px 18px rgba(15,23,42,0.04);

  transition:0.25s ease;
}

.card:hover{
  transform:translateY(-5px);
  box-shadow:0 16px 32px rgba(15,23,42,0.08);
}

.card h3{
  margin:18px 0 10px;
  font-size:1.32rem;
}

.card p{
  color:#475569;
  font-size:0.98rem;
}

/* =========================
   FEATURE ICONS
========================= */

.feature-icon{
  width:62px;
  height:62px;

  border-radius:18px;

  background:#eff6ff;

  display:flex;
  align-items:center;
  justify-content:center;

  color:#2563eb;

  font-size:24px;
}

/* =========================
   STEP CHIP
========================= */

.step-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  background:#eef4ff;

  color:#2563eb;

  padding:8px 15px;

  border-radius:999px;

  font-size:13px;

  font-weight:700;

  margin-bottom:18px;
}

/* =========================
   SECURE BADGE
========================= */

.secure-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;

  margin-top:18px;

  padding:10px 16px;

  background:#eafaf1;

  color:#15803d;

  border:1px solid #bbf7d0;

  border-radius:999px;

  font-size:13px;

  font-weight:700;
}

/* =========================
   PROGRAMS
========================= */

.program-card{
  text-align:left;
}

.launching-soon{
  display:inline-block;
  margin-top:18px;

  background:#f59e0b;
  color:white;

  padding:10px 18px;

  border-radius:12px;

  font-size:14px;

  font-weight:700;
}

/* =========================
   TOOLS SECTION
========================= */

.tools-section{
  background:white;
}

.tools-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:18px;
}

.tool-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  background:#f8fafc;

  padding:24px;

  border-radius:22px;

  text-align:center;

  border:1px solid rgba(0,0,0,0.05);

  transition:0.25s ease;
}

.tool-card:hover{
  transform:translateY(-5px);
  box-shadow:0 12px 24px rgba(0,0,0,0.05);
}

.tool-icon{
  font-size:52px;
  margin-bottom:14px;
}

.tool-card span{
  font-weight:700;
  font-size:15px;
}

/* OFFICIAL BRAND COLORS */

.fa-python{
  color:#3776AB;
}

.fa-github{
  color:#181717;
}

.fa-database{
  color:#2563eb;
}

.fa-chart-column{
  color:#f59e0b;
}

.fa-file-excel{
  color:#16a34a;
}

.fa-table{
  color:#0f766e;
}

/* =========================
   FAQ SECTION
========================= */

.faq-section{
  background:#f8fafc;
}

/* =========================
   FOUNDER SECTION
========================= */

.founder-section{
  background:white;
}

.founder-card{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:34px;
  align-items:center;

  background:white;

  border-radius:28px;

  padding:34px;

  border:1px solid rgba(0,0,0,0.05);

  box-shadow:0 10px 25px rgba(15,23,42,0.05);
}

.founder-image{
  width:220px;
  height:220px;
  object-fit:cover;
  border-radius:28px;
}

.founder-role{
  color:var(--muted);
  margin:10px 0 14px;
}

.founder-role span{
  color:var(--primary);
  font-weight:700;
}

.founder-bio{
  max-width:760px;
}

/* =========================
   FORMS / PORTAL
========================= */

.portal-section{
  min-height:80vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:60px 0;
}

.portal-card,
.register-card,
.contact-card,
.login-card{
  width:min(92%,520px);

  background:white;

  padding:38px;

  border-radius:28px;

  border:1px solid rgba(0,0,0,0.05);

  box-shadow:0 10px 30px rgba(15,23,42,0.05);
}

.portal-card h1,
.login-card h1{
  font-size:2.5rem;
  margin-bottom:10px;
  letter-spacing:-1px;
}

.portal-subtitle{
  color:var(--muted);
  margin-bottom:28px;
  font-size:1rem;
}

.portal-box{
  background:#f8fafc;
  border:1px solid rgba(0,0,0,0.04);
  padding:26px;
  border-radius:24px;
}

.form-group{
  margin-bottom:20px;
}

.form-group label{
  display:block;
  margin-bottom:8px;
  font-weight:700;
}

.form-group input,
.form-group textarea{
  width:100%;
  padding:15px 16px;
  border-radius:14px;
  border:1px solid #dbe2ea;
  background:white;
  font-size:15px;
  outline:none;
  transition:0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 4px rgba(37,99,235,0.1);
}

.helper-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:6px;
}

.show-password{
  display:flex;
  align-items:center;
  gap:8px;
}

.helper-link{
  color:#2563eb;
  font-weight:600;
  cursor:pointer;
}

.apply-text{
  margin-top:18px;
  text-align:center;
}

.msg{
  margin-top:16px;
  font-size:14px;
}

/* =========================
   FOOTER
========================= */

footer{
  padding:24px 0;
  text-align:center;
  color:var(--muted);
  font-size:14px;
  background:white;
  border-top:1px solid rgba(0,0,0,0.05);
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media(max-width:768px){

  .nav-links{
    display:none;
  }

  .menu-btn{
    display:block;
  }

  .site-name{
    font-size:16px;
  }

  .site-logo{
    width:60px;
    height:60px;
  }

  .hero{
    padding:60px 0 68px;
  }

  .hero h1{
    font-size:2.9rem;
  }

  .hero p{
    font-size:1rem;
  }

  .hero-actions{
    flex-direction:column;
    width:100%;
  }

  .btn{
    width:100%;
  }

  .grid-2,
  .grid-3,
  .grid-4{
    grid-template-columns:1fr;
  }

  .founder-card{
    grid-template-columns:1fr;
    text-align:center;
    padding:28px;
  }

  .founder-image{
    width:180px;
    height:180px;
    margin:auto;
  }

  section,
  .compact-section{
    padding:44px 0;
  }

  .section-title{
    font-size:1.9rem;
  }

  .portal-card,
  .login-card,
  .register-card,
  .contact-card{
    padding:28px;
  }

  .portal-card h1,
  .login-card h1{
    font-size:2rem;
  }

  .helper-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .tools-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:480px){

  .hero h1{
    font-size:2.45rem;
  }

  .hero-badge{
    font-size:13px;
    padding:10px 18px;
  }

  .section-title{
    font-size:1.7rem;
  }

  .tools-grid{
    grid-template-columns:1fr;
  }

  .card{
    padding:24px;
  }
}
/* =========================
   FOOTER
========================= */
/* --- UPDATED PREMIUM FOOTER CSS --- */

.footer {
  background: #0f172a; 
  color: white;
  margin-top: 80px; /* Increased separation from the main content */
  font-family: 'Inter', sans-serif; /* Recommended clean tech font */
}

.footer-content {
  display: grid;
  /* Balanced proportions: Brand takes more space, Links are centered */
  grid-template-columns: 1.5fr 1fr 1.5fr; 
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}

.footer h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.footer h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
  color: #38bdf8; /* Modern sky blue for section headers */
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.8; /* Added room to breathe for the description */
  font-size: 15px;
  max-width: 350px;
}

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px; /* More vertical space between links */
}

.footer-links a, .footer-contact a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.6;
  transition: all 0.3s ease;
}

/* Hover effects for interactive feel */
.footer-links a:hover, .footer-contact a:hover {
  color: #38bdf8;
  transform: translateX(6px);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}

/* Label next to the icon for better UX */
.footer-socials::after {
  content: "Follow our updates";
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 10px; /* Modern rounded-square look */
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-socials a:hover {
  background: #0077b5; /* LinkedIn brand color */
  transform: translateY(-4px) scale(1.05);
  border-color: transparent;
  box-shadow: 0 10px 15px -3px rgba(0, 119, 181, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 20px; /* Extra padding for a professional finish */
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr; /* Stack columns on tablets/mobile */
    text-align: center;
    gap: 40px;
    padding: 60px 20px;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .footer-links a:hover {
    transform: none; /* Cleaner feel on touch devices */
  }

  .footer-socials {
    justify-content: center;
  }
}
.footer-socials {
  display: flex;
  align-items: center; /* Vertically centers the icon and the text */
  gap: 12px;
  margin-top: 20px;
  height: auto; /* Ensures the container doesn't squash the content */
}

.footer-socials a {
  flex-shrink: 0; /* Prevents the icon box from getting squashed */
}
/* =========================
   CONTACT PAGE MOBILE FIX
========================= */

.contact-card{
  overflow:hidden;
}

.contact-card a,
.contact-card p,
.contact-card span{
  overflow-wrap:break-word;
  word-break:break-word;
}

.contact-card .portal-box{
  width:100%;
}

.contact-card .btn{
  width:100%;
  text-align:center;
}

/* MOBILE */

@media(max-width:768px){

  .contact-card{
    padding:30px 22px;
  }

  .contact-card h1{
    font-size:2.3rem;
    line-height:1.1;
  }

  .contact-card .portal-box{
    padding:24px;
  }

  .contact-card p{
    font-size:15px;
    line-height:1.8;
  }

  .contact-card a{
    font-size:15px;
  }

}
/* Fix long email overflow on mobile */
.contact-card a,
.contact-card p,
.contact-info a {
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.contact-card {
    overflow: hidden;
}

@media (max-width: 768px) {
    .contact-card {
        width: 100%;
        padding: 20px;
    }

    .contact-card a {
        font-size: 0.95rem;
        line-height: 1.6;
        display: inline-block;
        max-width: 100%;
    }
}