:root {
    --primary-color: #ff0000;
    --secondary-color: #222222;
    --gradient-start: #1a1a1a;
    --gradient-end: #2a2a2a;
    --card-bg: rgba(40, 40, 40, 0.5);
    --card-border: rgba(255, 0, 0, 0.2);
    --card-hover-bg: rgba(50, 50, 50, 0.6);
}

/* Dark theme adjustments */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #101010, #1a1a1a);
    color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.7;
    width: 100%;
    max-width: 100%;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 30, 47, 0.5);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Navbar */
.navbar {
    background: rgba(30, 30, 47, 0.95);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    transition: all 0.4s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(30, 30, 47, 1);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    height: 65px;
    width: auto;
    margin-right: 10px;
}

.nav-link {
    /* color: #fff !important; */
     color: #d92b2b;
    font-weight: 500;
    position: relative;
    padding: 8px 15px !important;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), #990000);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    /* color: var(--primary-color) !important; */
    color: #fff !important;
}

.nav-link:hover::after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section with Video Background */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(30, 30, 47, 0.9), rgba(45, 48, 71, 0.8)); */
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* filter: brightness(1.2);  */
}

.hero-content {
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-in-out forwards 0.5s;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-in-out forwards 0.8s;
}

.hero-content .btn-custom {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-in-out forwards 1.1s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-custom {
    background: linear-gradient(to right, var(--primary-color), #990000);
    border: none;
    padding: 15px 35px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    border-radius: 50px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, #990000, var(--primary-color));
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-custom:hover {
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

.btn-custom:hover::before {
    width: 100%;
}

/* Floating elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #990000);
    opacity: 0.2;
    z-index: 0;
    animation: float 15s infinite ease-in-out;
    overflow: hidden;
}

.elem1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.elem2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

.elem3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.elem4 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 10%;
    animation-delay: 7s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(10px, 10px) rotate(5deg);
    }

    50% {
        transform: translate(0, 20px) rotate(0deg);
    }

    75% {
        transform: translate(-10px, 10px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    position: relative;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.section-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* General Section Styling */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Service/About Cards */
.card-wrapper {
    transition: all 0.3s ease;
    perspective: 1000px;
    height: 100%; /* Make wrapper fill the column */
    display: flex;
}

.card-custom {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.5s ease;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;

     flex-grow: 1; /* Allow the card to fill the wrapper */
    display: flex;
    flex-direction: column;
}

.card-custom::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: rotate(30deg);
    transition: all 0.8s ease;
    z-index: 1;
}

.card-custom:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.3);
    background: var(--card-hover-bg);
    border-color: rgba(0, 212, 255, 0.3);
}

.card-custom:hover::before {
    left: 100%;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    display: inline-block;
    color: var(--primary-color);
    background: rgba(255, 0, 0, 0.1);
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    transition: all 0.5s ease;
}

.card-custom:hover .card-icon {
    transform: scale(1.1) rotateY(360deg);
    color: #fff;
    background: rgba(255, 0, 0, 0.7);
}

.card-custom h4 {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.card-custom h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: all 0.5s ease;
}

.card-custom:hover h4::after {
    width: 70%;
}

.card-custom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover::after {
    margin-left: 10px;
}

/* About Section */
.about-card-left {
    transform: perspective(1000px) rotateY(10deg);
    transition: all 0.5s ease;
}

.about-card-right {
    transform: perspective(1000px) rotateY(-10deg);
    transition: all 0.5s ease;
}

.about-card-left:hover,
.about-card-right:hover {
    transform: perspective(1000px) rotateY(0);
}

/* Stats Counter */
.stats-counter {
    padding: 40px 0;
    background: linear-gradient(to right, rgba(0, 212, 255, 0.1), rgba(255, 0, 122, 0.1));
    border-radius: 15px;
    margin: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-title {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Form */
.contact-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 15px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.contact-text h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-text p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Footer */
footer {
    background: var(--gradient-start);
    padding: 70px 0 20px;
    position: relative;
}

.footer-brand {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    max-width: 400px;
}

.social-links {
    display: flex;
    margin-bottom: 30px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(to right, var(--primary-color), #990000);
    transform: translateY(-5px);
}

.footer-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), #990000);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::before {
    content: '→';
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}



.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, var(--primary-color), #990000);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Animation for all sections */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Fix for horizontal scrolling and right gap */
html, body {
    /* overflow-x: hidden; */
    scroll-behavior: smooth;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    section {
        padding: 70px 0;
    }

    .section-header h2 {
        font-size: 2.3rem;
    }

    .card-custom {
        margin-bottom: 30px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .card-icon {
        font-size: 2.5rem;
        width: 80px;
        height: 80px;
        line-height: 80px;
    }

    .card-custom h4 {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

      .social-links {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .btn-custom {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .card-custom h4 {
        font-size: 1.3rem;
    }

    .footer-brand {
        font-size: 1.6rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
}

/* massge */
   .alert {
      padding: 10px 15px;
      border-radius: 4px;
      font-size: 14px;
      transition: opacity 0.5s ease;
      opacity: 1;
  }

  .fade-out {
      opacity: 0;
  }


        footer .row {
    display: flex;
    justify-content: center;
    gap: 2rem; /* Optional spacing between columns */
    flex-wrap: wrap;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.footer-title {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}
