/* ===================
   THEME VARIABLES
=================== */
:root {
    --bg-color: #ffffff;
    --text-color: #333132;
    --accent-color: #175487;
    --secondary-color: #326b99;
    --card-bg: #f5f7fa;
    --footer-bg: #333132;
    --footer-text: #ffffff;
}

body.dark {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --accent-color: #00c2ff;
    --secondary-color: #0097cc;
    --card-bg: #1e1e1e;
    --footer-bg: #000000;
    --footer-text: #eeeeee;
}

html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

/* ===================
   BASE STYLES
=================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

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

/* ===================
   NAVBAR
=================== */
.navbar-nav .nav-link {
    position: relative;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.nav-phone {
    font-weight: 600;
    color: var(--accent-color);
    background-color: #eef6ff;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-phone:hover {
    background-color: #cce9ff;
    color: #003a63;
    transform: scale(1.05);
}

.logo {
    max-width: 150px;
    height: auto;
}

@media (max-width: 767px) {
    .logo {
        max-width: 120px;
    }
}

/* Hamburger & Offcanvas */
.custom-toggler {
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1061;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: #000;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.custom-toggler.active .top-bar {
    transform: rotate(45deg) translate(5px, 5px);
}

.custom-toggler.active .middle-bar {
    opacity: 0;
}

.custom-toggler.active .bottom-bar {
    transform: rotate(-45deg) translate(5px, -5px);
}

.offcanvas-style {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: #fff;
    padding: 4rem 1.5rem 2rem;
    transition: right 0.3s ease;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.offcanvas-style.show {
    right: 0;
}

@media (max-width: 991px) {
    .navbar-nav {
        flex-direction: column;
        gap: 1.5rem;
        margin: 0;
    }

    .navbar-nav .nav-link {
        font-size: 1.25rem;
    }
}

/* ===================
   HERO SECTION
=================== */
.hero {
    background-color: #121212;
    padding: 3rem 0;
    overflow: hidden;
}

.hero-left {
    color: white;
    animation: slideUp 1s ease-out forwards;
    opacity: 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.hero-highlight {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00c2ff;
}

.typed-cursor {
    font-weight: bold;
    color: #00c2ff;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-tagline {
    font-size: 1.1rem;
    margin: 1.5rem 0;
    max-width: 600px;
    color: #ccc;
}

.cta-button {
    padding: 1rem 2rem;
    background: #00c2ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #0097cc;
}

.hero-right img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    animation: fadeIn 1.5s ease-out forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ===================
   ABOUT SECTION
=================== */
.about {
    padding: 3rem 5%;
    background-color: #121212;
}

.about-content h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #00c2ff;
}

.about-content p {
    font-size: 1.05rem;
    margin: 1rem 0;
    line-height: 1.7;
    color: #fff;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.animated {
    opacity: 0;
    transform: scale(1.2) translate(-30px, -30px);
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.animated.aos-animate {
    opacity: 1;
    transform: scale(1) translate(0, 0);
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1.2);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===================
   SERVICES SECTION
=================== */
.services {
  padding: 3rem 5%;
  background: #121212;
  text-align: center;
}

.services h1 {
  color: #00c2ff;
  margin-top: 40px;
  font-size: 2rem;
}

.services-subtitle {
  margin-bottom: 4rem;
  color: #fff;
  font-size: 1.5rem;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Card Styling */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.card img {
  width: 100%;
  height: auto;
  max-height: 270px;
  object-fit: contain;
  padding: 1rem 0; /* Solves watermark clipping */
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  font-size: 1.25rem;
  padding: 1rem;
  background-color: #f9f9f9;
  margin: 0;
  font-weight: 700;
  color: #121212;
  border-top: 1px solid #ddd;
}

/* Overlay (unchanged) */
.card ul {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: top 0.4s ease, opacity 0.4s ease;
  text-align: left;
  z-index: 2;
}

.card:hover ul {
  top: 0;
  opacity: 1;
}

.card ul li {
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s ease-in-out;
}

.card:hover ul li {
  opacity: 1;
  transform: translateY(0);
}

/* Fix grid responsiveness */
@media (max-width: 992px) {
  .service-cards {
    grid-template-columns: 1fr;
  }
}

/* ===================
   INDUSTRIES SECTION
=================== */
.industries {
    padding: 4rem 5%;
    text-align: center;
    background: #121212;
}

.industries h1 {
    color: #00c2ff;
    margin-top: 40px;
    font-size: 2rem;
}

.industries-subtitle {
    margin-bottom: 4rem;
    color: #fff;
    font-size: 1.5rem;
}

.industry-card {
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    text-align: center;
}

.industry-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 194, 255, 0.2);
}

.industry-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.industry-card p {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
}



/* ===================
   CONTACT SECTION
=================== */
.contact {
    padding: 4rem 5%;
    background: #121212;
}

.contact-subtitle {
    font-size: 1.5rem;
}

.contact-form .form-control {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    font-size: 1rem;
}

.contact-form button {
    background: var(--accent-color);
    border: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: var(--secondary-color);
}

.contact-info p {
    margin-bottom: 1rem;
    color: #a3d6e6;
}

.contact-info a {
    color: #ccc;
    text-decoration: none;
}
.contact-icon {
    margin-right: 8px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.fa-map-marker-alt {
    color: #f44336;
}

.fa-phone-alt {
    color: #4CAF50;
}

.fa-envelope {
    color: #2196F3;
}

.fa-whatsapp {
    color: #25D366;
}

.contact-info p:hover .contact-icon {
    transform: scale(1.3) rotate(5deg);
    filter: brightness(1.2);
}

/* Animate link and text on hover */
.contact-link {
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-info p:hover .contact-link {
    color: #ffffff;
    /* fallback to your accent */
    transform: translateX(5px);
}

/* Optional smooth text float for normal text (non-link) */
.contact-info p:hover {
    transition: transform 0.3s ease;
    transform: translateX(3px);
}

/* ===================
   FOOTER
=================== */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.toast {
  visibility: hidden;
  min-width: 250px;
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 16px 20px;
  position: fixed;
  z-index: 9999;
  bottom: 30px;
  right: 30px;
  font-size: 16px;
  transition: visibility 0.4s, opacity 0.4s ease;
  opacity: 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.toast.show {
  visibility: visible;
  opacity: 1;
}

.toast-success {
  background-color: #28a745; /* green */
}

.toast-error {
  background-color: #dc3545; /* red */
}
