/* General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f8ff;
    color: #333;
}

.navbar {
    display: flex;
    justify-content: space-between;
    /* logo left, nav center, button right */
    align-items: center;
    padding: 15px 2%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo */
.logo {
    font-weight: bold;
    color: #1a4cff;
    font-size: 28px;
    margin-left: 250px;
    /* keep as you had */
}

.logo span {
    margin-left: 8px;
    font-size: 20px;
    color: #555;
}

/* Nav container */
nav {
    display: flex;
    align-items: center;
}

/* Hamburger icon (mobile only) */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Nav links */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;

}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #1a4cff;
}

/* Button */
.btn {
    background: #1a4cff;
    color: #fff !important;
    /* force white text */
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    margin-right: 210px;
    /* keep for desktop */
}

.btn:hover {
    background: #0033cc;
    color: #fff !important;
    /* keep text white on hover */
}




/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 15px;
}

/* Smooth hover/fade for h1 and p */
.hero h1 {
    font-size: 60px;
    color: #1a4cff;
    margin-bottom: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.hero h1:hover {
    color: #0033cc;
    transform: translateY(-3px);
}

.hero p {
    font-size: 20px;
    color: #555;
    max-width: 650px;
    margin: 0 auto 30px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.hero p:hover {
    color: #333;
    transform: translateY(-2px);
}

/* Search Box */
.search-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.search-label {
    font-size: 16px;
    font-weight: 350;
    color: #000000;
    margin-bottom: 0px;
    text-align: center;
    line-height: 1px;
}

.search-input {
    display: flex;
    /* keeps input + button in one line */
    align-items: center;
}

.search-input input {
    padding: 18px;
    width: 550px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    outline: none;
    font-size: 18px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Input hover & focus effect */
.search-input input:hover,
.search-input input:focus {
    border-color: #1a4cff;
    box-shadow: 0 0 8px rgba(26, 76, 255, 0.3);
}

/* Button with smoother effect */
.search-input button {
    background: #1a4cff;
    padding: 18px 28px;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    font-size: 18px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.search-input button:hover {
    background: #0033cc;
    transform: scale(1.05);
}

/* Features */
.features {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
    color: #333;
}

/* Add subtle hover effect to features */
.features span {
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.features span:hover {
    background: #1a4cff;
    color: #fff;
    transform: translateY(-2px);
}

/* 1️⃣ Keyframes for sliding from top */
@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2️⃣ Keyframes for sliding from bottom */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3️⃣ Apply animation to h1 and p (from above) */
.hero h1,
.hero p {
    animation: slideDownFade 0.8s ease-out forwards;
}

/* Make p start slightly after h1 for stagger effect */
.hero p {
    animation-delay: 0.3s;
}

/* 4️⃣ Apply animation to search-box and features (from below) */
.search-box {
    animation: slideUpFade 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

.features {
    animation: slideUpFade 0.8s ease-out forwards;
    animation-delay: 0.9s;
}

/* Optional: make them invisible before animation starts */
.hero h1,
.hero p,
.search-box,
.features {
    opacity: 0;
}


/* Why Us */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
}

h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

p {
    font-size: 20px;
    color: #555;
    margin-bottom: 40px;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Card Styles */
.card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* cursor: pointer; */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.icon {
    font-size: 30px;
    color: #4A6CF7;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card p {
    font-size: 16px;
    color: #666;
}

/* Different directions */
.card:nth-child(1) {
    animation: slideInLeft 1s ease forwards;
}

.card:nth-child(2) {
    animation: slideInTop 1s ease forwards 0.2s;
}

.card:nth-child(3) {
    animation: slideInRight 1s ease forwards 0.4s;
}

.card:nth-child(4) {
    animation: slideInBottom 1s ease forwards 0.6s;
}

.card:nth-child(5) {
    animation: slideInLeft 1s ease forwards 0.8s;
}

.card:nth-child(6) {
    animation: slideInRight 1s ease forwards 1s;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

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

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

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

@keyframes slideInTop {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }

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

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

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

/* Different directions */
.card:nth-child(1) {
    animation: slideInLeft 1s ease forwards;
}

.card:nth-child(2) {
    animation: slideInTop 1s ease forwards 0.2s;
}

.card:nth-child(3) {
    animation: slideInRight 1s ease forwards 0.4s;
}

.card:nth-child(4) {
    animation: slideInBottom 1s ease forwards 0.6s;
}

.card:nth-child(5) {
    animation: slideInLeft 1s ease forwards 0.8s;
}

.card:nth-child(6) {
    animation: slideInRight 1s ease forwards 1s;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

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

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

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

@keyframes slideInTop {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }

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

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

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

/* Blue Top Border (hidden by default) */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: #4A6CF7;
    transition: width 1.4s ease;
}

.card:hover::before {
    width: 100%;
}

/* Hover Effect */
.card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.top-section {
    background: white;
}

/* Success Stories Section */
.container1 {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.success-stories {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    /* Needed for absolute positioning of PNGs */

}

.success-stories h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.success-stories p {
    color: #555;
    font-size: 1em;
}

/* Decorative PNGs */
.section-decor {
    position: absolute;
    top: 65%;
    /* center vertically */
    transform: translateY(-50%);
    width: 50px;
    /* adjust size as needed */
    height: auto;
    z-index: 5;
}

.section-decor.left {
    left: -14px;
    /* slightly outside the container */
}

.section-decor.right {
    right: -14px;
}

/* Wrapper to constrain scroll to center */
.cards-wrapper {
    overflow: hidden;
    /* hide overflowing cards */
    max-width: 100%;
    /* ensures it stays within container */
    margin: 0 auto;
    position: relative;
    z-index: 2;
    /* above the PNGs */

}

/* Horizontal scrolling cards */
.cards1 {
    display: flex;
    gap: 20px;
    animation: scrollCards 30s linear infinite;
    flex-wrap: nowrap;
    /* keep cards in one row */
}

/* Card styling */
.card1 {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    flex: 0 0 300px;
    /* fixed width */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s ease;
}

/* Hover effect */
.card1:hover {
    transform: rotateY(10deg) scale(1.05);
}

.stars {
    color: #f5c518;
    margin-bottom: 15px;
}

.card1 p {
    font-size: 0.95em;
    color: #333;
    margin-bottom: 20px;
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #6c63ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.user-info {
    text-align: left;
}

.user-info strong {
    display: block;
    font-size: 0.95em;
}

.user-info span {
    font-size: 0.85em;
    color: #888;
}

/* Auto scroll keyframes */
@keyframes scrollCards {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* adjust if needed */
}


/* Hosting Section */
.Hosting-container {
    background: linear-gradient(90deg, #9b4dff, #ff4d6d);
    /* purple to pink gradient */
    padding: 40px 20px;
    color: #fff;
    text-align: center;
}

.Hosting-container h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.Hosting-container p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
    color: white;
}

.Hosting-container img {
    width: 120px;
    /* adjust as per design */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Button styling */
.Hosting-container button {
    background-color: #ffe600;
    /* yellow button */
    color: #333;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.Hosting-container button:hover {
    background-color: #f7d600;
}

/* Footer Container */
.footer {
    background-color: #f8f9fb;
    padding: 50px 20px 20px;
    font-family: Arial, sans-serif;
    color: #111;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

/* Footer About Section */
.footer-about {
    flex: 1 1 250px;
    margin-right: 30px;
}

.footer-about h2 {
    font-size: 20px;
    color: #4b3aff;
    margin-bottom: 10px;
}

.footer-about .logo-icon {
    font-weight: bold;
    background-color: #e0e0ff;
    padding: 5px 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.footer-about p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.footer-social a {
    margin-right: 10px;
    font-size: 20px;
    color: #555;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #4b3aff;
}

/* Footer Links Section */
.footer-links {
    flex: 1 1 200px;
    margin-bottom: 20px;
}

.footer-links h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #111;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.footer-links ul li a i {
    margin-right: 8px;
    font-size: 14px;
}

.footer-links ul li a:hover {
    color: #4b3aff;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #ddd;
    margin-top: 30px;
    padding-top: 15px;
    font-size: 10px;
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically if multiple lines */
    flex-wrap: wrap;
    color: #555;
    text-align: center;
    /* Fallback for text inside flex items */
}

.footer-bottom p {
    margin: 0;
    /* Remove default margin */
}

.footer-bottom a {
    color: #4b3aff;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}
/* Fancy Animated Text Loader */
.loader {
    width: fit-content;
    font-weight: bold;
    font-family: monospace;
    font-size: 30px;
    background: radial-gradient(circle closest-side,#000 94%,#0000) right/calc(200% - 1em) 100%;
    animation: l24 1s infinite alternate linear;
  }
  
  .loader::before {
    content: "Loading...";
    line-height: 1em;
    color: #0000;
    background: inherit;
    background-image: radial-gradient(circle closest-side,#fff 94%,#000);
    -webkit-background-clip: text;
            background-clip: text;
  }
  
  @keyframes l24 {
    100% { background-position: left; }
  }
  
/* 
<!--------------------------------Code for making website responsive-------------------------------------------> */

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-about,
    .footer-links {
        flex: 1 1 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

/* ========= MOBILE RESPONSIVE NAVBAR ========= */
@media (max-width: 768px) {
    .navbar {
        justify-content: space-between;
        padding: 15px;
    }

    /* Logo — center-left */
    @media (max-width: 768px) {

        /* Nav links as column */
        .nav-links {
            flex-direction: column;
            display: none;
            width: 100%;
            text-align: center;
            padding: 20px 0;
            background: #fff;
            position: absolute;
            top: 60px;
            /* below navbar */
            left: 0;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .nav-links li {
            margin: 15px 0;
        }

        /* Button inside nav-links */
        .nav-links .btn {
            margin: 0;
            padding: 10px 20px;
            display: inline-block;
        }

        .nav-links.active {
            display: flex;
        }

        .hamburger {
            display: block;
            font-size: 28px;
            cursor: pointer;
            margin-left: auto;
        }

        .logo {
            margin-left: 0;
            font-size: 22px;
        }
    }



    /* Hero Section */
    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 20px;
        max-width: 90%;
    }

    /* Search Box */
    .search-input input {
        width: 350px;
        font-size: 16px;
        padding: 14px;
    }

    .search-input button {
        padding: 14px;
        font-size: 16px;
    }

    /* Features Section */
    .features {
        flex-direction: row;
        gap: 2px;
    }

    /* Grid Layout */
    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Cards */
    .card {
        padding: 20px;
    }

    .card h3 {
        font-size: 18px;
    }

    .card p {
        font-size: 14px;
    }

    /* Horizontal Scrolling Cards */
    .cards1 {
        flex-wrap: nowrap;
        overflow-x: scroll;
        animation: none;
    }

    .card1 {
        flex: 0 0 80%;
    }

    /* Hosting Section */
    .Hosting-container h2 {
        font-size: 1.5rem;
    }

    .Hosting-container p {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

    .footer-about,
    .footer-links {
        flex: 1 1 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}
/* Fullscreen overlay behind the loader */
#loader {
    display: none; /* hide initially */
    position: fixed; /* stay on top of everything */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* white with 80% opacity */
    z-index: 9999;
    display: flex; /* center content */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: black; /* text color for messages */
}
/* =========================
   MEGA MENU DROPDOWN STYLES 
   ========================= */

   .dropdown {
    position: relative;
    /* Static position allows full-width or larger menus if needed, 
       but relative keeps it anchored to the link */
}

.dropbtn i {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s;
}

/* Hover effect on the arrow */
.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
}

/* The Dropdown Container */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    
    /* Horizontal Layout Logic (Desktop) */
    left: 50%;
    transform: translateX(-50%); /* Centers the menu under the link */
    width: max-content; /* Expands to fit images */
    max-width: 90vw; /* Prevents overflow on smaller laptops */
    
    /* Flexbox for horizontal row */
    flex-direction: row;
    gap: 20px;
    top: 100%;
    margin-top: 10px; /* Slight gap from navbar */
}

/* Show on hover */
.dropdown:hover .dropdown-content {
    display: flex; /* Activates the flex row */
}

/* Individual Resource Card */
.resource-card {
    display: flex;
    flex-direction: column; /* Image top, text bottom */
    align-items: center;
    width: 140px; /* Fixed width for uniform cards */
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: transform 0.2s;
}

.resource-card:hover {
    transform: translateY(-5px); /* Pop up effect */
}

.resource-card img {
    width: 100%;
    height: 90px; /* Fixed height for uniformity */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.resource-card span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.resource-card:hover span {
    color: #1a4cff;
}

/* Small Triangle Pointing Up (Optional aesthetic) */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}


/* =========================
   MOBILE RESPONSIVE (Vertical)
   ========================= */
@media (max-width: 900px) {
    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static; /* Drops inside the flow */
        transform: none;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        background: #f9f9f9;
        margin-top: 0;
        padding: 10px;
        
        /* Switch to Vertical List on Mobile */
        flex-direction: column; 
        gap: 10px;
        display: none; /* Hidden by default */
    }

    /* Hide the aesthetic triangle on mobile */
    .dropdown-content::before {
        display: none;
    }

    /* Trigger on hover or focus (tap) */
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: flex;
    }

    /* Change Card Layout for Mobile (Row: Image Left, Text Right) */
    .resource-card {
        flex-direction: row; 
        width: 100%;
        align-items: center;
        text-align: left;
        padding: 10px;
        background: #fff;
        border-radius: 8px;
        border: 1px solid #eee;
    }
    
    .resource-card:hover {
        transform: none; /* Remove pop effect on mobile */
        background: #f0f4ff;
    }

    .resource-card img {
        width: 50px; /* Smaller thumbnail */
        height: 50px;
        margin-bottom: 0;
        margin-right: 15px;
    }

    .resource-card span {
        font-size: 15px;
    }
}
