/* 
  Modern Academic Design System 
  Indigo, Gold, and White 
*/

:root {
  --primary: #1e3a8a; /* Deep Academic Blue */
  --primary-light: #3b82f6;
  --secondary: #fbbf24; /* Gold */
  --accent: #f59e0b;
  --text-dark: #0f172a;
  --text-light: #f8fafc;
  --bg-light: #ffffff;
  --bg-dark: #0f172a;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navbar --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  background: transparent;
}

nav.scrolled {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.875rem;
    margin-left: auto;
    margin-right: 1.5rem;
    color: var(--glass-border);
}

.lang-switch button {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-weight: 600;
    opacity: 0.5;
    transition: var(--transition);
}

.lang-switch button.active {
    opacity: 1;
    color: var(--secondary);
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--secondary);
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  border: none;
}

.btn-primary {
  background: var(--secondary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(251, 191, 36, 0.2);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  filter: blur(100px);
  opacity: 0.2;
  z-index: -1;
}

.hero-text {
  max-width: 700px;
}

.badge {
  background: rgba(251, 191, 36, 0.1);
  color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--secondary);
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.8;
  margin-bottom: 2.5rem;
}

/* --- Features --- */
.section {
  padding: 8rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-head h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 2rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.card:hover {
  border-color: var(--secondary);
  transform: translateY(-10px);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.card h3 {
  margin-bottom: 1rem;
}

.card p {
  opacity: 0.7;
}

/* --- Portfolio --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.project-card {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background: var(--bg-light);
}

.project-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-weight: 600;
}

.project-info {
  background: var(--bg-dark);
  padding: 2rem;
  border: 1px solid var(--glass-border);
  border-top: none;
  border-radius: 0 0 2rem 2rem;
}

/* --- CTA Section --- */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  padding: 5rem;
  border-radius: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: var(--secondary);
  filter: blur(120px);
  opacity: 0.1;
}

/* --- Pain Points & Solutions --- */
.pain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pain-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    border-left: 4px solid #ef4444; /* Red for pain */
}

.solution-item {
    border-left: 4px solid #10b981; /* Green for solution */
    background: rgba(16, 185, 129, 0.05);
}

.pain-icon { color: #ef4444; font-weight: bold; margin-bottom: 0.5rem; display: block; }
.solution-icon { color: #10b981; font-weight: bold; margin-bottom: 0.5rem; display: block; }

/* --- Footer --- */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  opacity: 0.6;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #128c7e;
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding-top: 8rem; padding-bottom: 4rem; text-align: center; }
  .hero h1 { font-size: 2.25rem; line-height: 1.2; }
  .hero p { font-size: 1.1rem; }
  .hero-btns { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
  .hero-btns .btn { margin-left: 0 !important; width: 100%; max-width: 300px; }
  
  .section { padding: 4rem 0; }
  .section-head { margin-bottom: 2.5rem; }
  .section-head h2 { font-size: 1.8rem; }
  
  .grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .portfolio-grid { grid-template-columns: 1fr !important; gap: 2rem; }
  .pain-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
  
  .card { padding: 1.5rem; border-radius: 1.5rem; }
  .project-info { padding: 1.5rem; }
  
  .nav-links { display: none; }
  .nav-content { justify-content: space-between; position: relative; }
  .nav-content .btn { display: none; } /* Hide button on mobile nav to save space, CTA is in hero anyway */
  
  .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 25px; }
  .cta-box { padding: 3rem 1.5rem; border-radius: 2rem; }
  .cta-box h2 { font-size: 1.5rem; }
  .cta-box .btn { width: 100%; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .container { padding: 0 1rem; }
}
