/* ===========================
GLOBAL VARIABLES
============================== */
:root{
    --primary-color: #6b21a8;
    --primary-light: #9b59b6;

    --bg-light:#e5e5e5;
    --bg-dark:#0e0e11;

    --text-dark: #1a1a1a;
    --white:#ffffff;
}

/* ===========================
GLOBAL RESET
============================== */
*{
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
}

html,body{
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    scroll-behavior: smooth;
}

/* ==================================
NAVBAR GENERAL
===================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0.15rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Logo */
.logo img {
    height: auto;         /* adjust as you like */
    width: 120px;
    display: block;
    object-fit: contain;
}


/* Links center */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  text-decoration: none;
  color: var(--white);
  font-size: 1rem;
  transition: 0.2s;
}

.nav-links li a:hover {
  color: var(--primary-light);
}

/* Login / Get Started buttons */
.nav-actions a {
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--white);
  border-radius: 6px;
  text-decoration: none;
  color: var(--white);
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-actions a:hover {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
  cursor: pointer;
}

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none; /* hidden on desktop */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1000; /* above the menu */
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--white);
  transition: all 0.4s ease;
  display: block;
}

/* When menu is open, animate spans into X */
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* -------------------
  MOBILE RESPONSIVE
------------------- */
@media (max-width: 768px) {
/* Mobile nav links */
.nav-links {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* full viewport height */
  background: var(--bg-light);
  flex-direction: column;
  align-items: flex-start; /* align links to the left */
  justify-content: center; /* vertically center the group of links */
  padding-left: 2.5rem; /* space from left edge */
  gap: 2rem;
  
  opacity: 0;
  transform: translateY(100%); /* start below the screen */
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 999; /* above everything else */
}

/* Show menu overlay */
.nav-links.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Each link starts slightly left and invisible */
.nav-links li {
  opacity: 0;
  transform: translateX(-30px);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* When menu is shown, stagger animation */
.nav-links.show li:nth-child(1) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.1s;
}

.nav-links.show li:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
}

.nav-links.show li:nth-child(3) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.3s;
}

.nav-links.show li:nth-child(4) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.4s;
}

.nav-links.show li:nth-child(5) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.5s;
}

/* Links styling */
.nav-links li a {
  font-size: 2rem; /* bigger for full-screen menu */
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--primary-light);
}

/* Hide login/get started buttons on mobile */
.nav-actions {
  display: none;
}

/* Hamburger toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1000;
}
}


/*===========================
 HERO SECTION
 ============================ */
.hero{
  padding: 5rem 2rem;
  text-align: center;
  color: var(--text-dark);  
}

.hero-content{
    max-width: 700px;
    margin: 0 auto;
}

.hero h1{
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p{
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.85;
}

/* Animation Size */
#hero-animation{
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto;
}

.hero-button{
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-buttons a{
    padding: 0.75rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.hero-buttons a:hover{
    background-color: var(--primary-color);
    color: var(--white);
}


/* Base styles already set for desktop/mobile-first */

/* Tablet / medium screens */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.2rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    #hero-animation {
        max-width: 500px;
        height: 500px;
    }
}

/* Large screens / Desktop */
@media (min-width: 1024px) {
    .hero {
        padding: 6rem 3rem;
    }
    .hero h1 {
        font-size: 3.8rem;
    }
    .hero p {
        font-size: 1.3rem;
    }
    #hero-animation {
        max-width: 550px;
        height: 550px;
    }
} 

/* ANIMATION */

/* Initial state */
.hero-content > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Class to trigger animation */
.hero-content.animate > * {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger the animation */
.hero-content.animate h1 {
    transition-delay: 0.2s;
}
.hero-content.animate p {
    transition-delay: 0.4s;
}
.hero-content.animate .hero-buttons {
    transition-delay: 0.6s;
}

 /* ===========================
 SEE WHAT WE DO SECTION
 ============================= */
 /* ========== SHOWCASE SECTION ========== */
.raynix-showcase {
  padding: 60px 5%;
  text-align: center;
}

.showcase-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--primary-color);
}

/* ========== SLIDESHOW CONTAINER ========== */
.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  height: 240px; /* container height */
}

/* ========== IMAGES ========== */
.slideshow-container img {
  position: absolute;
  top: 20px; 
  left: 50%;
  transform: translateX(-50%) translateY(20px) scale(0.95);
  width: auto;
  height: 320px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  opacity: 0;
  animation: none; /* paused by default */
}

/* Hover effect for cinematic pop */
.slideshow-container img:hover {
  transform: translateX(-50%) translateY(0) scale(1.08);
  transition: transform 0.3s ease;
}

/* ========== START ANIMATION WHEN SCROLLED INTO VIEW ========== */
.animate-on-scroll.active .slideshow-container img {
  animation: fadeSlide 12s infinite;
}

.animate-on-scroll.active .slideshow-container img:nth-child(2) {
  animation-delay: 6s; /* half of total duration */
}

/* ========== FADE + SLIDE KEYFRAMES ========== */
@keyframes fadeSlide {
  0% { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.95); }
  10% { opacity: 1; transform: translateX(-50%) translateY(0px) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) translateY(0px) scale(1); }
  60% { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0.95); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0.95); }
}

/* =========================
   FEATURES SECTION
============================ */

.features {
    padding: 5rem 2rem;
    background-color: var(--background-color);
    text-align: center;
}

/* Header */
.features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.features-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.features-header p {
    font-size: 1.1rem;
    color: var(--text-dark);
    max-width: 700px;
    margin: 0 auto;
}

/* Grid Layout */
.features-container {
    display: grid;
    grid-template-columns: 1fr; /* mobile first */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   CARD BASE STYLES
============================ */
.feature-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease;
    
    /* Scroll initial state */
    opacity: 0;
    transform: translateY(25px);
}

/* Scroll reveal state */
.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }

/* =========================
   HOVER EFFECT (must be last)
============================ */
.feature-card:hover {
    transform: translateY(-10px); /* override visible transform */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

/* Icon & Text */
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.feature-card p {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

/* Tablet */
@media (min-width: 768px) {
    .features-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .features-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================
   ABOUT SECTION
============================ */
.about {
  padding: 5rem 2rem;
  background-color: var(--background-color);
  color: var(--text-light);
}

/* Main Container: two columns */
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Lottie Animation Left */
.about-animation {
  flex: 1 1 400px;
  max-width: 500px;
  min-width: 300px;
  height: auto;
}

#about-lottie{
    width: 100%;
    height: 100%;
    min-height: 300px;
}

/* Text Right */
.about-text {
  flex: 1 1 400px;
}

.about-text h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
}

/* Paragraph styling + initial hidden state */
.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When visible on scroll */
.about-text p.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.about-text p:nth-child(2) {
  transition-delay: 0.1s;
}
.about-text p:nth-child(3) {
  transition-delay: 0.2s;
}
.about-text p:nth-child(4) {
  transition-delay: 0.3s;
}

/* Mission & Vision Container */
.mission-vision {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
  flex-wrap: wrap;
}

/* Individual Cards */
.mission,
.vision {
  flex: 1 1 400px;
  background-color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);

  opacity: 0;
  transform: translateY(25px);
  transition: all 0.6s ease;
}

/* Headings inside cards */
.mission h3,
.vision h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* List in Mission */
.mission ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.mission li {
  margin-bottom: 0.5rem;
}

/* Hover effect */
.mission:hover,
.vision:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

/* Scroll reveal visibility */
.mission.visible,
.vision.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .mission-vision {
    flex-direction: column;
  }

  .about-text,
  .about-animation {
    flex: 1 1 100%;
  }
}

@media(max-width:768px){
    #about-lottie{
        min-height:350px;
    }
}

/* =========================
  WHAT WE OFFER - TRIANGLE LAYOUT
============================ */

.offer-section {
  padding: 5rem 2rem;
  background-color: var(--background-color);
  text-align: center;
}

.offer-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.offer-header p {
  font-size: 1.1rem;
  color: var(--text-dark);
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* Triangle Grid Layout */
.offer-triangle {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two columns for top cards */
  grid-template-rows: auto auto;   /* top row + bottom row */
  gap: 3rem;
  justify-items: center;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cards */
.offer-card {
  background: white;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 300px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* Top-left card */
.top-left {
  justify-self: end; /* push to right in first column */
}

/* Top-right card */
.top-right {
  justify-self: start; /* push to left in second column */
}

/* Bottom-center card */
.bottom-center {
  grid-column: 1 / 3; /* span both columns */
  justify-self: center;
}

/* Lottie Animations */
.offer-lottie {
  margin-top: 1.5rem;
  width: 180px;
  height: 180px;
}

/* Card Titles */
.offer-card h3 {
  font-size: 1.4rem;
  margin-top: 1rem;
  color: var(--primary-color);
}

/* Card Descriptions */
.offer-card p {
  font-size: 1rem;
  color: #333;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* -------------------------
   RESPONSIVE
------------------------- */

/* Tablet */
@media (max-width: 1024px) {
  .offer-triangle {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .top-left { justify-self: end; }
  .top-right { justify-self: start; }
  .bottom-center { justify-self: center; }
}

/* Mobile */
@media (max-width: 768px) {
  .offer-triangle {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 2rem;
  }

  .top-left, .top-right, .bottom-center {
    justify-self: center;
  }

  .offer-lottie {
    width: 150px;
    height: 150px;
  }
}

/* ===========================
   CONTACT SECTION
=========================== */
.contact-section {
    background: var(--primary-color);
    padding: 1rem 2rem 5rem 2rem; /* top right bottom left */
    color: var(--white);
}

/* HEADER */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-header p {
    opacity: 0.9;
    line-height: 1.6;
}

/* CONTAINER */
.contact-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
}

/* LEFT SIDE */
.contact-left {
    flex: 1;
    max-width: 45%;
}

/* INFO ITEMS */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon svg {
    width: 36px;
    height: 36px;
}

.info-text h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

.info-text p {
    margin: 0.2rem 0 0 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Small image */
.contact-small-image img {
    width: 400px; /* perfect size for 1000×750 image */
    margin-top: 2.5rem;
    border-radius: 12px;
    object-fit: cover;
}

/* RIGHT SIDE – FORM */
.contact-right {
    flex: 1;
    max-width: 50%;
}

.contact-form {
    background: var(--white);
    color: var(--primary-color);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form label {
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.contact-form textarea {
    height: 140px;
    resize: none;
}

.contact-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.95rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.contact-btn:hover {
    background: var(--primary-light);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        text-align: left;
    }

    .contact-left,
    .contact-right {
        max-width: 100%;
    }

    .contact-small-image img {
        width: 200px;
    }
}



/* ===========================
FOOTER (final) 
=============================*/
.footer {
  background: var(--white);
  padding: 48px 30px 24px;
  color: var(--text-color);
  font-family: inherit;
  border-top: 1px solid #eaeaea;
  /* border-radius: 20px; */
  overflow: hidden;
  /* margin: 0 20px; */

}

/* top grid */
.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin-bottom: 28px;
}

.footer-col h3 {
  font-size: 1.05rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: var(--text-color);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color .18s ease;
}

.footer-col a:hover {
  color: var(--primary-color);
}

.footer-col p {
  margin: 6px 0;
  color: var(--text-color);
  font-size: .97rem;
}

/* divider line */
.footer-line {
  height: 1px;
  background: #eee;
  margin-bottom: 22px;
}

/* bottom row */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* logo */
.footer-logo img {
  height: auto;
  width: 120px;
  display: block;
   background: rgba(255, 255, 255, 0.1);
}

/* copyright centered */
.footer-copy {
  margin: 0 auto;
  color: var(--text-color);
  font-size: 0.95rem;
}

/* social icons (uses inline svg so no font library needed) */
.footer-social {
  display: flex;
  gap: 14px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f6f6f6;
  color: var(--text-color);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.icon-link:hover {
  transform: translateY(-4px);
  background: var(--primary-color);
  color: #fff;
}

/* responsive */
@media (max-width: 720px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-copy {
    order: 2;
    margin: 12px 0;
  }

  .footer-logo {
    order: 1;
  }

  .footer-social {
    order: 3;
  }
}

/* ========================
OTHER PAGES
=========================== */


