@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;700;800&display=swap');

:root {
  --primary: #D36B36; /* Derived from logo */
  --primary-dark: #B95828;
  --text-dark: #202124;
  --text-light: #5F6368;
  --bg-light: #FFFFFF;
  --bg-gray: #F8F9FA;
  --bg-dark: #1A1A1A;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
  --shadow-md: 0 4px 6px -1px rgba(60,64,67,0.1), 0 2px 4px -1px rgba(60,64,67,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(60,64,67,0.1), 0 4px 6px -2px rgba(60,64,67,0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

/* Typography */
.title-xl { font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -0.02em; }
.title-lg { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.01em; }
.title-md { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
.subtitle { font-size: 1.125rem; color: var(--text-light); }
.text-body { font-size: 1rem; color: var(--text-light); }

/* Layout & Utils */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.bg-gray { background-color: var(--bg-gray); }
.bg-dark { background-color: var(--bg-dark); color: var(--white); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--white); }
.bg-dark .subtitle, .bg-dark .text-body { color: rgba(255,255,255,0.8); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
}

.btn-outline:hover {
  background-color: var(--text-dark);
  color: var(--white);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary-dark);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 0;
  background-color: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-dark);
}

.nav-logo img {
  height: 45px;
  transition: transform 0.3s ease;
}

.nav-logo:hover img {
  transform: scale(1.05);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

.nav-cta {
  background-color: var(--primary);
  color: var(--white) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 50px;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(211, 107, 54, 0.3);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background-color: #e87b45 !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 107, 54, 0.4);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero .label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(211, 107, 54, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 1;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-bottom-left-radius: 40px;
}

/* Feature Cards */
.feature-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(211, 107, 54, 0.1);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Image Grid */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.masonry-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-item:first-child {
  grid-row: span 2;
}

/* Hero Collage */
.hero-collage {
  display: grid;
  grid-template-columns: 10fr 7fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-img-main {
  grid-row: span 2;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 500px;
}

.hero-img-sec {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: calc(250px - 0.75rem);
}

.hero-img-main img, .hero-img-sec img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-img-main:hover img, .hero-img-sec:hover img {
  transform: scale(1.05);
}

/* Program Components */
.component-list {
  padding-left: 0;
}

.component-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.component-item .check {
  color: var(--primary);
  margin-right: 1rem;
  margin-top: 5px;
  font-size: 1.25rem;
}

/* Footer Section / Apply CTA */
.cta-box {
  background: #0f0f0f;
  color: var(--white);
  border-radius: 40px;
  padding: 6rem 3rem;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  margin-top: 6rem;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(211,107,54,0.2) 0%, rgba(15,15,15,0) 60%);
  z-index: 1;
  pointer-events: none;
}

.cta-box > * {
  position: relative;
  z-index: 2;
}

.cta-box h2 {
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 3.25rem;
  font-weight: 300;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}

.cta-box p.cta-sub {
  color: rgba(255,255,255,0.6);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.cta-box .subtitle {
  color: rgba(255,255,255,0.8);
}

.footer {
  background: var(--bg-dark);
  color: var(--white);
  padding: 6rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.7);
}

.founder-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.founder-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: 3rem;
    border-radius: var(--radius);
    overflow: hidden;
  }
  
  .hero-image-wrapper img {
    border-radius: var(--radius);
  }

  .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  
  .grid-3, .grid-4, .masonry-grid { grid-template-columns: 1fr; }
  .masonry-item:first-child { grid-row: auto; }
  
  .title-xl { font-size: 2.5rem; }
  .section { padding: 4rem 0; }
  .cta-box { padding: 2rem; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Dynamic Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.hero-content h1 {
  animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content h2 {
  opacity: 0;
  animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-content div {
  opacity: 0;
  animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-collage {
  opacity: 0;
  animation: fadeInRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-img-main img {
  animation: floatAnim 6s ease-in-out infinite;
}

.hero-img-sec:nth-child(2) img {
  animation: floatAnim 7s ease-in-out infinite 0.5s;
}

.hero-img-sec:nth-child(3) img {
  animation: floatAnim 8s ease-in-out infinite 1s;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
