@import url('https://fonts.googleapis.com/css?family=Lato:300,700|Prata');

body, h1, h2, h3, h4, h5, h6, .nav-links a, section h2 {
  font-family: 'Lato', sans-serif;
}

body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  background: #f8f9fa;
  color: #1a1a1a;

  }
#splash {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #3B75C6;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeOut 2s ease 2.5s forwards;
}
.splash-content img {
  width: 120px;
  animation: scaleFade 2s ease;
}
@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}
@keyframes scaleFade {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
header, footer, section {
  padding: 2em;
  
  margin: auto;
}
.hero {
  background: url('hero-bg.jpg') no-repeat center center / cover;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: white;
}
.hero::after { background: none !important; }
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-cta {
  background: #ffffff;
  color: #3B75C6;
  padding: 0.75em 1.5em;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
}
nav a {
  margin-right: 20px;
  text-decoration: none;
  color: #3B75C6;
  font-weight: bold;
}
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}
.card {
  background: white;
  padding: 1.5em;
  border-radius: 8px;
  flex: 1 1 calc(50% - 2em);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.card-icon {
  width: 40px;
  margin-bottom: 1em;
}
.cta {
  background: #3B75C6;
  color: white;
  text-align: center;
}
.cta a {
  background: #264c99;
  padding: 0.75em 1.5em;
  border-radius: 5px;
  color: white;
  text-decoration: none;
  display: inline-block;
  margin-top: 1em;
}
footer {
  background: #1a1a1a;
  color: white;
  padding: 3em 2em;
}
.footer-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer a {
  color: #5ca0f2;
  text-decoration: none;
}
@media (max-width: 768px) {
  .cards {
    flex-direction: column;
  }
  .card {
    flex: 1 1 100%;
  }
}


/* Dark mode adjustments */
body {
  background: #f8f9fa;
  color: #e2e8f0;

  }
.hero::after { background: none !important; }
.card {
  background: white;
  color: #e2e8f0;
}
footer {
  background: #0f172a;
}
.cta {
  background: #1e40af;
}
.cta a {
  background: #1d4ed8;
}
nav {
  display: flex;
  gap: 1em;
}
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5em;
  color: #ffffff;
}
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background: #1e293b;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  nav.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .menu-toggle:hover + nav,
  nav:hover {
    display: flex !important;
  }
}


/* Moving gradient background under splash logo */
#splash {
  overflow: hidden;
}
.splash-bg {
  position: absolute;
  width: 200%;
  height: 200%;
  background: linear-gradient(-45deg, #0a0f1c, #003b73, #0a0f1c, #001f3f);
  background-size: 400% 400%;
  animation: gradientMove 10s ease infinite;
  top: -50%;
  left: -50%;
  z-index: 0;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.splash-content {
  z-index: 1;
}
.splash-content img {
  width: 240px;
  z-index: 1;
}

/* Hero background image */
.hero {
  background: url('hero_background.jpg') no-repeat center center / cover;
}

/* Project image styling */
.project-image {
  margin: 2em 0;
  text-align: center;
}
.project-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Responsive nav dropdown fix */
@media (max-width: 768px) {
  .menu-toggle:hover + nav,
  nav:hover {
    display: flex !important;
  }
}


/* Mission section background */
.mission-bg {
  background: none no-repeat center center / cover;
  color: white;
  position: relative;
  
  padding: 4em 2em;
}
.mission-bg .cards {
  background: linear-gradient(to bottom right, #b497f3, #3B75C6);
  padding: 2em;
  border-radius: 8px;
}

/* Fully hidden dropdown on mobile, icon toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 2em;
  color: white;
  position: absolute;
  right: 2em;
  top: 1.2em;
  z-index: 1100;
}
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background: #1e293b;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
  }
  nav.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}


/* Splash screen with animated gradient */
#splash {
  position: fixed;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  animation: fadeOut 2s ease 3s forwards;
}
.splash-bg {
  position: absolute;
  width: 200%;
  height: 200%;
  background: linear-gradient(-45deg, #001F3F, #3B75C6, #001F3F, #5ca0f2);
  background-size: 300% 300%;
  animation: gradientMove 6s linear infinite;
  z-index: 0;
}
.splash-logo {
  width: 240px;
  z-index: 1;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}


/* Fix overlapping sections and hero image sizing */
.hero {
  min-height: 60vh;
  margin-bottom: 4em;
}

/* Nav fix */
.nav-links a {
  cursor: pointer;
  text-decoration: none;
  color: #5ca0f2;
  font-weight: bold;
  padding: 0.5em 1em;
}
.nav-links a:hover {
  background: transparent;
  text-decoration: underline;
  text-decoration: none;
  background: transparent;
}

/* Indigo-like animated background */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#splash {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
  z-index: 9999;
  animation: fadeOut 1.5s ease 3.5s forwards;
}

.animated-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #000000, #003366, #000000, #0055aa);
  background-size: 300% 300%;
  animation: gradientFlow 4s ease infinite;
  z-index: -1;
}

.splash-logo-enhanced {
  width: 300px;
  max-width: 80%;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
  animation: scaleIn 1.4s ease-out;
}

@keyframes scaleIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}



.section-box {
    background: linear-gradient(135deg, #001f3f, #003366);
    border-radius: 12px;
    padding: 32px;
    margin: 24px 0;
    
    font-size: 1.1rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.section-box h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}



.contact-section {
    background: linear-gradient(to right, #e6e6fa, #7a84ff);
    padding: 80px 20px;
    text-align: center;
    color: #000000;
}
.contact-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.contact-section .contact-btn {
    font-size: 1rem;
    padding: 14px 28px;
    background: #000;
    color: #fff;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}



.section-box {
    background: linear-gradient(to right, #e6e6fa, #7a84ff);
    border-radius: 12px;
    padding: 40px;
    margin: 32px auto;
    
    font-size: 1.1rem;
    color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 1000px;
    box-sizing: border-box;
}
.section-box h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}



.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  animation: bounce 2s infinite;
  z-index: 10;
}
.scroll-down a {
  color: white;
  text-decoration: none;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}



nav a {
  font-size: 1.2rem;
  font-family: 'Segoe UI', 'Prata', 'Helvetica Neue', sans-serif;
  color: white;
  text-decoration: none;
  position: relative;
  padding: 0 12px;
  transition: all 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}



.site-footer {
  text-align: center;
  padding: 30px 0;
  font-size: 0.9rem;
  color: white;
  background-color: #0a1a2f;
  margin-top: 40px;
}


h2 {
  font-size: 2.2em;
  font-weight: bold;
}


/* Dark grey for mission and about sections */
#mission h2, #mission h3, #mission p,
#about h2, #about p {
  color: #333333 !important;
}


/* Dark top header */
header {
  background-color: #0a1a2f;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 2em;
}

/* Ensure nav links inside the header are white */
header .nav-links a {
  color: white !important;
}

/* Keep body background soft white */
body {
  background-color: #f8f9fa;
}


/* Make only the solutions card text black */
#solutions .card h4,
#solutions .card p {
  color: black;
}


/* Modern soft gradient background for Recent Work section */
#work {
  background: linear-gradient(to bottom, #f7f3ff, #f1f5ff);
  padding: 5em 2em;
  text-align: center;
}

/* Card with hover animation and overlay */
#work .project-image {
  position: relative;
  max-width: 800px;
  margin: 2em auto;
  overflow: hidden;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  background: white;
}

#work .project-image:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* Text overlay */
#work .project-image::after {
  content: "AI in Agriculture – Smart automation for crop yield";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  padding: 1em;
  font-size: 1.1rem;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

#work .project-image:hover::after {
  transform: translateY(0%);
}


/* Ensure Recent Work section title and description text are black */
#work h2,
#work p {
  color: black;
}


/* Flip container */
#work .project-image {
  perspective: 1000px;
  width: 100%;
  max-width: 800px;
  margin: 2em auto;
  height: 400px;
}

/* Flip inner wrapper */
#work .project-image-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Flip on hover */
#work .project-image:hover .project-image-inner {
  transform: rotateY(180deg);
}

/* Front face (image) */
#work .project-image-front,
#work .project-image-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1rem;
  overflow: hidden;
}

/* Image side */
#work .project-image-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Back face (text box) */
#work .project-image-back {
  background: white;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateY(180deg);
  font-size: 1.2rem;
  padding: 2em;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

h1 { font-family: 'Lato', sans-serif; }

/* Interactive hover effect */
.card, .solution-card, .box, .flip-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .solution-card:hover, .box:hover, .flip-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

h1 { font-family: 'Lato', sans-serif; }
h2 { font-family: 'Lato', sans-serif; }
h3 { font-family: 'Lato', sans-serif; }
.nav-links a { font-family: 'Lato', sans-serif; }
section h2 { font-family: 'Lato', sans-serif; }

.card, .solution-card, .box, .flip-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.card:hover, .solution-card:hover, .box:hover, .flip-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}


.card, .solution-card, .box, .flip-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.card:hover, .solution-card:hover, .box:hover, .flip-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* About section background similar to Recent Work */
.about-bg {
  background: linear-gradient(to bottom, #f7f3ff, #f1f5ff);
  padding: 5em 2em;
  text-align: center;
}

/* Increase font size for Recent Work and About sections */
#work h2, .about-bg h2 {
  font-size: 3rem;
}
#work p, .about-bg p {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0.5em auto 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  background-color: #0a1a2f;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6em 1.5em;
}

header img {
  height: 50px;
  margin-right: auto;
}

header.scrolled {
  background-color: white !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header.scrolled .nav-links a,
header.scrolled .menu-toggle {
  color: #0a1a2f !important;
}

.nav-links {
  margin-left: 20px;
}

.hero {
  min-height: 85vh;
  padding-top: 80px; /* push content below fixed header */
}

#contact {
  margin-bottom: 120px;
}

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

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

.hero-cta {
  font-size: 1rem;
  padding: 0.75em 1.6em;
}


.clean-mission-vision {
  background: linear-gradient(to bottom, #f8f9ff, #ffffff);
  text-align: center;
  padding: 6em 1em;
  font-family: 'Segoe UI', sans-serif;
}

.clean-mission-vision h2 {
  font-size: 3.5rem;
  color: #0a1a2f;
  margin-bottom: 1rem;
  font-weight: 700;
}

.clean-mission-vision p {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
