@import url("https://fonts.googleapis.com/css?family=Montserrat:400,800");

* {
  box-sizing: border-box;
}

body {
  display: block;
  font-family: 'Noto Sans Kannada', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  margin: 0;
  background: url(../img/MSB1.jpg) center/cover fixed no-repeat;
}

h1 {
  font-weight: bold;
  margin: 0;
}

h2 {
  text-align: center;
}

p {
  font-size: 14px;
  font-weight: 100;
  line-height: 20px;
  letter-spacing: 0.5px;
  margin: 20px 0 30px;
}

span {
  font-size: 12px;
}

a {
  color: #333;
  font-size: 14px;
  text-decoration: none;
  margin: 15px 0;
}

/* ================= BUTTONS ================= */

button {
  border-radius: 20px;
  border: 1px solid #e16a6a;
  background-color: #54091f;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 80ms ease-in;
}

button:active {
  transform: scale(0.95);
}

button:focus {
  outline: none;
}

button.ghost {
  background-color: transparent;
  border-color: #ffffff;
}

/* ================= FORM ================= */

form {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 50px;
  height: 100%;
  text-align: center;
}

input {
  background-color: #eee;
  border: none;
  padding: 12px 15px;
  margin: 8px 0;
  width: 100%;
}

/* ================= LOGO ================= */

.logo {
  z-index: 9999;
  text-align: center;
  margin-top: 1rem;
}

.logo > img {
  width: 4rem;
  height: 4rem;
  border-radius: 3.5rem;
}

/* ================= CONTAINER ================= */

.container {
  background-color: #fff;
  border-radius: 10px;
  margin: 100px auto 80px auto; /* balanced spacing */
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
              0 10px 10px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
  width: 900px;
  max-width: 100%;
  min-height: 550px;
}


/* ================= FORM CONTAINERS ================= */

.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
}

.sign-in-container {
  left: 0;
  width: 50%;
  z-index: 2;
}

.container.right-panel-active .sign-in-container {
  transform: translateX(100%);
}

.sign-up-container {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}

.container.right-panel-active .sign-up-container {
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
  animation: show 0.6s;
}

@keyframes show {
  0%, 49.99% {
    opacity: 0;
    z-index: 1;
  }
  50%, 100% {
    opacity: 1;
    z-index: 5;
  }
}

/* ================= OVERLAY ================= */

.overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
  z-index: 100;
}

.container.right-panel-active .overlay-container {
  transform: translateX(-100%);
}

.overlay {
  background: linear-gradient(to right, #5f0b0b, #974949);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0 0;
  color: #ffffff;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.overlay {
    background: linear-gradient(
        rgba(92, 8, 8, 0.85),
        rgba(150, 40, 40, 0.9)
    ),
    url("../img/luxury-bg.jpg"); /* optional image */
    
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .kannada-hero {
        font-size: 14px;
        padding: 0 10px;
    }

    .kannada-hero .brand {
        font-size: 16px;
    }
}

.container.right-panel-active .overlay {
  transform: translateX(50%);
}

.overlay-panel {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  top: 0;
  height: 100%;
  width: 50%;
  transition: transform 0.6s ease-in-out;
}

.overlay-left {
  transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
  transform: translateX(0);
}

.overlay-right {
  right: 0;
}


/* ===== PREMIUM KANNADA HERO TEXT ===== */
.kannada-hero {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    margin-top: 20px;
    font-family: 'Noto Sans Kannada', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

/* Each line animation */
.kannada-hero span {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 1s ease forwards;
}

/* Delay effect */
.kannada-hero span:nth-child(1) { animation-delay: 0.3s; }
.kannada-hero span:nth-child(2) { animation-delay: 0.7s; }
.kannada-hero span:nth-child(3) { animation-delay: 1.1s; }

/* Brand highlight */
.kannada-hero .brand {
    font-size: 20px;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 1px;
}

/* Animation keyframes */
@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kannada-hero span {
    text-shadow: 
        0 0 5px rgba(255,255,255,0.3),
        0 0 10px rgba(255,215,0,0.4);
}

.kannada-hero span {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #fff;
    animation: typing 2s steps(30, end), blink 0.7s infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent }
}

/* ================= WHY CHOOSE US ================= */

.why-section-wrapper {
    display: flex;
    justify-content: center;   /* center horizontally */
    align-items: center;
    padding: 80px 20px;
}

.why-choose-heading {
  color: #54091f;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.why-choose-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.why-choose-list li {
  font-size: 14px;
  margin: 10px 0;
  color: #090707;
  padding-left: 10px;
}

/* ================= Pipeline ================= */
/* Our Work Pipeline heading */
.pipeline-section {
    display: block;
    padding: 120px 10% 80px; /* 👈 extra top padding */
    background: rgba(246, 246, 246, 0.3);
    backdrop-filter: blur(0px);
}

/* Heading */
.pipeline-section h2 {
    text-align: center;
    color: #7b1e1e;
    margin-top: 40px;      /* 👈 moves headline DOWN */
    margin-bottom: 40px;
    font-size: 32px;
}

/* Pipeline card */
.pipeline-box {
    background: rgba(255, 255, 255, 0.55); /* glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    padding: 25px;
    margin-bottom: 25px;
    border-radius: 18px;

    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.3);

    transition: 
        transform 0.4s ease,
        box-shadow 0.4s ease,
        background 0.4s ease;
}

/* Hover zoom effect */
.pipeline-box:hover {
    transform: scale(1.06);
    box-shadow: 0 20px 45px rgba(0,0,0,0.45);
    background: rgba(255, 255, 255, 0.75);
}

/* Title inside box */
.pipeline-box h4 {
    color: #7b1e1e;
    margin-bottom: 8px;
}

/* Clean single-side pipeline list */
.clean-pipeline {
    list-style: none;           /*  removes bullets */
    padding: 0;
    margin: 25px 0;
    text-align: left;
}

/* ================= ERRORS ================= */

#error-email,
#error-password,
#login-error-email,
#login-error-password {
  color: red;
  font-size: 12px;
  margin-bottom: 10px;
}

/* ================= MIDDLE IMAGE ================= */

.middle-image {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 300;
  background: #ffffff;
  padding: 8px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.middle-image img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
}

/* ================= FOOTER (ALTERED CLEANLY) ================= */

.info {
  background-color: #d6cdbb; /* royal beige */
  padding: 10px 20px;
}

.info h2 {
  font-size: 16px; /* NORMAL footer text */
  margin: 5px 0;
}

.primary-color {
  color: #7b0000; /* royal maroon */
}

/* Kannada tagline — SMALL SIZE */
.kannada-text {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

/* ================= THEME VARIABLES (ROYAL) ================= */
:root {
    --royal-gold: #5c0808;
    --royal-dark: #962828;
    --card-bg: #ffffff;
    --float-speed: 4s; /* change to 3s (fast) or 6s (slow) */
}

/* ================= SECTION ================= */
.cartoon-3d {
    margin: 120px auto 0 auto;   /* 👈 space on top */

    width: 1200px;
    min-height: 600px;           /* better than fixed height */

    background-image: url("../img/Cback.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 80px 20px;
    text-align: center;
    perspective: 1200px;
}

.cartoon-3d h2 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;

    /* 3D Effect */
    color: #ffffff;
    text-shadow:
        1px 1px 0 #551212,
        2px 2px 0 #5c1919,
        3px 3px 0 #520d0d,
        4px 4px 0 #661919,
        6px 6px 12px rgba(0,0,0,0.4);

    transform: perspective(800px) rotateX(15deg);
    display: inline-block;

    margin-bottom: 30px;
    transition: transform 0.4s ease, text-shadow 0.4s ease;
}

/* Hover Animation */
.cartoon-3d h2:hover {
    transform: perspective(800px) rotateX(0deg) scale(1.08);
    text-shadow:
        1px 1px 0 #560d0d,
        2px 2px 0 #5b1717,
        3px 3px 0 #410303,
        4px 4px 0 #521414,
        8px 8px 20px rgba(0,0,0,0.5);
}

.cartoon-3d h2 {
    display: block;
    margin-bottom: 20px;
}

.cartoon-3d .subtitle {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;

    background: rgba(255, 255, 255, 0.95);
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

    color: #5d0808;
    font-weight: 600;
    font-size: 15px;

    margin: 0 auto 50px auto;   /* center & spacing */
}

/* Optional: subtle hover effect */
.cartoon-3d .subtitle:hover {
    transform: translateY(-2px);
    transition: 0.3s ease;
}

/* ================= GRID ================= */
.cartoon-3d-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: auto;
}

/* ================= CARD ================= */
.cartoon-3d-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    transform-style: preserve-3d;
    animation: float var(--float-speed) ease-in-out infinite;
    transition: 
        transform 0.4s ease,
        box-shadow 0.4s ease,
        opacity 0.4s ease,
        filter 0.4s ease;
    border: 2px solid transparent;
}

/* Floating delay */
.cartoon-3d-card:nth-child(2) { animation-delay: 0.5s; }
.cartoon-3d-card:nth-child(3) { animation-delay: 1s; }
.cartoon-3d-card:nth-child(4) { animation-delay: 1.5s; }

/* ================= IMAGE ================= */
.cartoon-3d-card img {
    width: 140px;
    margin-bottom: 15px;
    transform: translateZ(60px);
    transition: transform 0.4s ease;
}

/* Construction-style motion */
.cartoon-3d-card:hover img {
    transform: translateZ(90px) scale(1.15) rotate(-3deg);
}

/* ================= TEXT ================= */
.cartoon-3d-card h4 {
    font-size: 20px;
    color: var(--royal-dark);
}

/* ================= HOVER EFFECT ================= */
.cartoon-3d-grid:hover .cartoon-3d-card {
    opacity: 0.6;
    filter: blur(1px);
    transform: scale(1);
    animation-play-state: paused;
}

.cartoon-3d-grid .cartoon-3d-card:hover {
    transform: scale(1.25) rotateX(12deg) rotateY(-12deg);
    box-shadow: 0 40px 80px rgba(0,0,0,0.3);
    border-color: var(--royal-gold);
    opacity: 1;
    filter: blur(0);
    z-index: 10;
    animation-play-state: running;
}

/* ================= MOBILE TAP SUPPORT ================= */
@media (max-width: 768px) {
    .cartoon-3d-grid:hover .cartoon-3d-card {
        opacity: 1;
        filter: none;
        animation-play-state: running;
    }

    .cartoon-3d-card:active {
        transform: scale(1.15);
        box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    }
}

/* ================= FLOAT ANIMATION ================= */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}

/* Floating animation */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* Mobile footer */
@media (max-width: 768px) {
    .footer-kannada {
        font-size: 11px;
        text-align: center;
    }
}

  .kannada-text {
    font-size: 12px;
  }

.footer-email {
    color: #7b0000;            /* normal footer color (not blue) */
    text-decoration: none;     /* remove underline */
    display: inline-block;     /* required for zoom */
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-email:hover {
    transform: scale(1.15);    /* zoom on hover */
    color: #7b0000;            /* keep same color */
    cursor: pointer;
}

/* Prevent browser default blue/purple */
.footer-email:visited,
.footer-email:active {
    color: #7b0000;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

html {
    scroll-behavior: smooth;
}


/* ================= PLANS SECTION ================= */

.plans-section {
    padding: 100px 20px;
    margin-top: 120px;

    /* 🔹 Background Image */
    background-image: url("../img/Cback.png");  /* change image name */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    text-align: center;
    position: relative;
}

.plans-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85); /* light overlay */
    z-index: 0;
}

.plans-section > * {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #832525;
}

.plans-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    perspective: 1200px;   /* important for 3D */
}

.plan-card {
    background: #ffffff;
    width: 420px;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    text-align: left;

    transform-style: preserve-3d;
    animation: float 4s ease-in-out infinite;
    transition: 
        transform 0.4s ease,
        box-shadow 0.4s ease,
        opacity 0.4s ease,
        filter 0.4s ease;
}

.plans-container:hover .plan-card {
    opacity: 0.6;
    filter: blur(1px);
    transform: scale(1);
    animation-play-state: paused;
}

.plans-container .plan-card:hover {
    transform: scale(1.15) rotateX(10deg) rotateY(-10deg);
    box-shadow: 0 40px 80px rgba(0,0,0,0.25);
    opacity: 1;
    filter: blur(0);
    z-index: 10;
    animation-play-state: running;
}

/* Floating delay for second card */
.plan-card:nth-child(2) {
    animation-delay: 0.8s;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.plan-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #812525;
}

.plan-desc {
    font-size: 15px;
    margin-bottom: 20px;
    color: #555;
}

.plan-details {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.plan-details li {
    margin-bottom: 10px;
    font-size: 15px;
    color: #333;
}

.plan-btn {
    padding: 10px 20px;
    border: none;
    background: #7e2828;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s ease;
}

.plan-btn:hover {
    background: #8b3232;
}

.plans-container {
    gap: 60px;
}

.plan-card {
    width: 500px;
    padding: 60px;
}

/* ================= RESPONSIVE ================= */

@media(max-width: 768px) {
    .plans-container {
        flex-direction: column;
        align-items: center;
    }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

/* ===== Bottom Center Back Button ===== */
.bottom-back-btn {
    text-align: center;
    margin: 50px 0 40px 0; /* space from bottom */
}

.bottom-back-btn button {
    background: #611717;
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    border-radius: 30px;
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(105, 25, 25, 0.3);
}

.bottom-back-btn button:hover {
    background: #791e1e;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(138, 38, 38, 0.5);
}

/* ================= MOBILE RESPONSIVENESS ================= */

@media (max-width: 768px) {
    /* 1. Reset Containers */
    .container {
        width: 95%;
        min-height: 500px;
        margin: 20px auto;
        display: flex;
        flex-direction: column;
    }

    /* 2. Fix Cartoon & Pipeline Sections */
    .cartoon-3d {
        width: 100%;
        margin-top: 40px;
        padding: 40px 15px;
        min-height: auto;
    }

    .cartoon-3d h2 {
        font-size: 26px;
        transform: none; /* Disable 3D tilt for easier reading on mobile */
    }

    .pipeline-section {
        padding: 50px 5% 30px;
    }

    /* 3. Handle the Sliding Form Logic for Mobile */
    /* Since side-by-side isn't possible, we stack them or hide the overlay */
    .form-container {
        position: relative; /* Change from absolute */
        width: 100%;
        height: auto;
    }

    .sign-in-container, 
    .sign-up-container {
        width: 100%;
        position: relative;
    }

    /* Hide the sliding overlay on mobile as it blocks the inputs */
    .overlay-container {
        display: none; 
    }

    .container.right-panel-active .sign-in-container {
        transform: none;
        display: none; /* Hide sign-in when sign-up is active */
    }

    .container.right-panel-active .sign-up-container {
        transform: none;
        opacity: 1;
        position: relative;
    }

    form {
        padding: 30px 20px;
    }

    /* 4. Middle Floating Image */
    .middle-image {
        top: 10px;
        transform: translateX(-50%);
    }

    /* 5. Typography Adjustments */
    h1 {
        font-size: 24px;
    }

    .why-section-wrapper {
        padding: 40px 10px;
        flex-direction: column;
    }
}

/* Extra small devices (Phones) */
@media (max-width: 480px) {
    .cartoon-3d h2 {
        font-size: 20px;
    }
    
    button {
        padding: 10px 30px;
        width: 100%; /* Full width buttons for easier tapping */
    }
}
