/* Define client colors */
:root {
    --primary-color: rgba(0, 0, 0,1); /* Black */
    --secondary-color: #12087b; /* blue */
    --accent-color: #e41122; /* red */ 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container and Grid */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    background-color:#3fafff;
}

.navbar {
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    font-size: 20px;
    height: 70px;
}
/* General Navigation Styles */
.nav-links {
    display: flex;
    gap: 20px;
    z-index: 999;
}

.logo {
    margin-top: 10px;
    width: 170px;
}

.nav-links .on {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.nav-links ul li a:hover {
    color: var(--accent-color);
}
/* Basic styling for navbar */
.navbar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: var(--primary-color);
}

.navbar > li {
    display: inline-block;
    position: relative;
}

.navbar > li > a {
    display: block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.navbar > li > a:hover {
    background-color: #fff;
}

/* Dropdown menu styling */
.dropdown-menu {
    list-style: none;
    display: none;
    position: absolute;
    background-color: black;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-menu > li > a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-menu > li > a:hover {
    background-color: #1c55c0;;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}


/* Hamburger Menu Styles */
.hamburger {
    z-index: 1000;
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: all 0.3s;
}

/* Sticky Navbar */
.sticky {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 22px;
    margin-right: 15px;
    border-radius: 7px 0 7px 7px;
}
button a {
    text-decoration: none;
    color: black;
}
button:hover {
    background-color: #cc0000;
}


.title {
    text-align: center;
    padding: 50px 20px;
    background: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Professional shadow effect */
    color: #fff;
    margin: 0 auto; /* Ensure it's centered */
    border-radius: 15px;
    max-width: 98%; /* Set to 100% to prevent overflow */
    width: 100%;
    background-size: cover; /* Make sure background covers the section */
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden; /* Prevent any overflow */
    display: flex;
    justify-content: center;
    flex-direction: column; /* Ensure content is stacked */
    align-items: center;
}





.services {
    padding: 40px 20px;
    text-align: center;
    background: white;
    margin: 0 20px 15px 20px;
    border-radius: 15px;
}

.services h1 {
    color: rgb(0, 0, 0);
    font-size: 2em;
    margin: 10px 10px;
}
.services .title {
    background-color: var(--primary-color);
    text-align: center;
    padding: 50px 20px;
    color: #fff;
    border-radius: 15px;
    margin: 10px 10px;
}

 .title h1 {
    color: #ffffff;
    font-size: 3em;
}


.services p {
    color: #020202;
    font-size: 1.2em;
    margin-bottom: 40px;
}

.service-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}
.icon-circle {
    background-color: var(--accent-color);
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 auto 15px; /* Centering the circle */
}

.icon-circle i {
    font-size: 24px;
}
.service ul{
    list-style: none;
    text-decoration: none;
}
.service {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    padding: 20px;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service:hover {
    background-color:#3fafff;
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service.expanded {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.service p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
}

.services img {
    width: 100%;
    height: auto;
    max-width: 600px;
    margin: 40px auto 0;
    border-radius: 10px;
}   

/* Divine Technologies CC Showcase Section */
.divine-showcase {
    background: #fff;
    padding: 90px 8%;
    border-top: 6px solid var(--secondary-color);
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
  }
  
  .divine-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
  }
  
  .divine-image {
    flex: 1;
    min-width: 300px;
  }
  
  .divine-image img {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 10px 40px var(--secondary-color);
    transition: all 0.4s ease;
  }
  
  .divine-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 60px var(--secondary-color);
  }
  
  .divine-text {
    flex: 1;
    min-width: 300px;
  }
  
  .divine-title {
    font-size: 2.2em;
    color: var(--secondary-color);
    font-weight: 800;
    margin-bottom: 20px;
  }
  
  .divine-desc {
    color: #333;
    line-height: 1.7;
    font-size: 1.05em;
    margin-bottom: 40px;
  }
  
  .divine-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
  }
  
  .divine-card {
    background: #faf8fc;
    border: 1px solid #eae0f3;
    border-radius: 18px;
    padding: 25px 20px;
    flex: 1;
    min-width: 240px;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  .divine-card:hover {
    background: linear-gradient(145deg, #12087b, #2e20ca);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--secondary-color);
  }
  
  .divine-card i {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 10px;
  }
  
  .divine-card:hover i {
    color: #fff;
  }
  
  .divine-card h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
  }
  
  .divine-card p {
    font-size: 0.95em;
    color: #555;
  }
  
  .divine-card:hover p {
    color: #f8f8f8;
  }
  
  .divine-btn {
    display: inline-block;
    background: linear-gradient(90deg, #12087b, #2e20ca);
    color: #fff;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
  }
  
  .divine-btn:hover {
    background: linear-gradient(90deg, #12087b, #2e20ca);
    transform: scale(1.05);
    box-shadow: 0 8px 25px var(--secondary-color);
  }
  
  @media (max-width: 850px) {
    .divine-wrapper {
      flex-direction: column;
    }
  }
  
  
  

/* Footer Styles */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}
footer a {
    color: #5badce;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer .hours, footer .visit-us {
    margin-bottom: 20px;
}

footer img {
    width: 200px;
    height: auto;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer .social-media {
    margin-top: 20px;
}

footer .social-media a {
    margin: 0 10px;
    display: inline-block;
}

footer .social-media img {
    width: 30px;
    height: 30px;
    filter: invert(100%);
    transition: filter 0.3s;
}

footer .social-media img:hover {
    filter: invert(70%);
}

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 16px;
}
  
#scrollToTopBtn {
    background-color: var(--accent-color);
}
/* Responsive Design */
@media (max-width: 768px) {
    .navbar{
        mix-blend-mode: unset;
    }
    .hamburger {
        display: flex; /* Ensure it's visible */
        position: absolute;
        top: 10px;
        right: 20px;
        z-index: 10;
        padding: 10px; /* Add some padding for better appearance */
        border-radius: 5px; /* Optional, for rounded edges */
    }

    .nav-links {
        position: fixed;
        top: 10%;
        border: 2px solid white;
        right: -100%; /* Initially hide off-screen */
        width: 100%; /* Menu takes half the screen */
        height: 20%;
        background-color: black;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease; /* Smooth slide-in effect */
        z-index: 9;
    }
    .nav-links .on {
        display: inline-block;
        list-style-type: none;
        padding: 0;
        text-align: center;
    }

    .nav-links ul li {
        border-bottom: 2px solid #4a9bbf;
        margin: 20px 0;
    }

    .nav-links ul li a {
        color: #fff;
        text-decoration: none;
        font-size: 24px;
    }
    .nav-links li:hover .dropdown {
        display: block;
      }
      

    /* When the menu is active, bring it on screen */
    .nav-links.active {
        right: 0;
    }
    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        background: #1ba3bb;
        width: 220px;
        padding: 0;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
        flex-direction: column; /* Stack items vertically */
    }
    
    .dropdown-menu li {
        display: block; /* Ensure each list item takes a full line */
    }
    
    .dropdown-menu li a {
        display: block; /* Ensure the anchor tags take up the full width of the parent */
        padding: 10px;
        color: white;
        text-decoration: none;
        transition: background 0.3s ease;
    }
    
    .dropdown-menu li a:hover {
        background: #da6d6d;
    }
    
    .dropdown:hover .dropdown-menu {
        display: flex;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 10px;
    }

   
    .navbar .contact-devine{
        display: none;
    } 
    

    footer {
        padding: 20px 10px;
    }
    
    footer img {
        flex-direction: column;
        align-items: center;
    }
    
    footer img {
        width: 80%;
        margin-bottom: 10px;
    }
}
/* Media Query for screens smaller than 400px */
@media (max-width: 400px) {
    /* General Body Styles */
    body {
        font-size: 14px;         /* Smaller font for better fit */
        padding: 0;
        margin: 0;
        line-height: 1.4;
    }

    /* Specific Styles for the Services Box */
    .services-box {
        padding: 15px 10px;      /* Ensure there's enough space inside the box */
        margin: 10px 0;          /* Margin to separate the boxes */
        background-color: #000;  /* Black background */
        color: #fff;             /* White text color */
        width: 100%;             /* Box should take up the full width on small screens */
        box-sizing: border-box;  /* Ensure padding is included in the width */
        border-radius: 10px;     /* Rounded corners */
    }

    /* Adjusting the title inside the service box */
    .services-box h1 {
        font-size: 1.5em;        /* Smaller font for the title */
        text-align: center;      /* Center the title */
        margin-bottom: 10px;     /* Space below the title */
    }

    /* Adjusting the text inside the service box */
    .services-box p {
        font-size: 0.9em;        /* Smaller text size for the paragraph */
        line-height: 1.3;        /* Tighten line height */
        margin-bottom: 15px;     /* Reduced space below text */
    }

    /* Adjusting the image inside the service box */
    .services-box img {
        width: 100%;             /* Full width for the image */
        height: auto;            /* Maintain aspect ratio */
        margin-top: 10px;        /* Space between text and image */
    }

    /* Optional: Adjust button inside service box */
    .services-box button {
        padding: 8px 12px;       /* Smaller button padding */
        font-size: 14px;         /* Smaller button font */
        width: auto;             /* Full width button */
        border-radius: 5px;
        box-sizing: border-box;
    }

    /* Hero Section */
    .title {
        padding: 30px 15px;  /* Reduced padding for better space management */
        text-align: center;
        font-size: 1.1em;
    }

    .title h1 {
        font-size: 1.5em;     /* Reduced heading size for small screens */
        margin-bottom: 15px;
    }

    .title p {
        font-size: 0.9em;     /* Reduced paragraph size */
    }

    /* Services Section */
    .services {
        padding: 10px 5px;   /* Reduced padding */
        text-align: center;
        margin: 10px;
        border-radius: 10px;
    }

    .services h1 {
        font-size: 1.5em;    /* Smaller heading for better fit */
    }

    .services p {
        font-size: 1em;      /* Smaller font for paragraphs */
        margin-bottom: 20px;  /* Less bottom margin */
    }

    .service-boxes {
        display: flex;
        flex-direction: column;  /* Stack services vertically */
        gap: 15px;               /* Space out the services */
        padding: 0 10px;         /* Add horizontal padding */
    }

    .service {
        width: 100%;             /* Service items take full width on small screens */
        padding: 15px;           /* Smaller padding */
        font-size: 0.9em;        /* Smaller font size for services */
        box-sizing: border-box;  /* Ensures the service box fits within the container */
    }

    .service h2 {
        font-size: 1.2em;        /* Slightly smaller heading */
    }

    .service p {
        font-size: 0.9em;        /* Slightly smaller paragraph text */
    }

    .service img {
        width: 100%;             /* Full width for images */
        height: auto;            /* Maintain aspect ratio */
        margin-top: 10px;        /* Less margin above the image */
    }

    /* Buttons */
    button {
        padding: 8px 15px;       /* Smaller padding for buttons */
        font-size: 16px;          /* Slightly smaller font */
        width: 100%;              /* Full width buttons for easier tapping */
        border-radius: 5px;       /* Rounded corners */
        box-sizing: border-box;
    }

    /* Grid Layout for all sections (for sections using a grid system) */
    .grid-container {
        display: grid;
        grid-template-columns: 1fr;  /* Single column layout on small screens */
        gap: 15px;                   /* Space between grid items */
        padding: 0 15px;             /* Padding to ensure content doesn't touch edges */
    }

    /* Divine Technologies Section */
    .divine-showcase {
        padding: 50px 5%;        /* Reduced padding */
        border-top: 4px solid var(--secondary-color);  /* Thinner top border */
        border-radius: 20px;     /* Rounded corners for a cleaner look */
        margin-bottom: 30px;      /* Add some margin at the bottom for separation */
    }

    .divine-wrapper {
        flex-direction: column;  /* Stack items vertically */
        gap: 30px;               /* Space between elements */
    }

    .divine-title {
        font-size: 1.8em;        /* Smaller title size */
    }

    .divine-desc {
        font-size: 0.95em;       /* Smaller description text */
        line-height: 1.4;
    }

    .divine-card {
        width: 100%;             /* Cards take full width */
        padding: 20px 15px;      /* Reduced padding */
        font-size: 0.9em;        /* Smaller font for cards */
        box-sizing: border-box;  /* Ensure proper sizing */
    }

    .divine-btn {
        padding: 10px 20px;      /* Smaller padding for the button */
        font-size: 16px;         /* Smaller button text */
        width: 100%;             /* Full-width buttons for easier tapping */
        border-radius: 5px;
        box-sizing: border-box;
    }

    /* Footer */
    footer {
        padding: 20px 10px;      /* Less padding to fit small screens */
        text-align: center;
    }

    footer img {
        width: 80%;              /* Ensure logo images scale down */
        margin-bottom: 10px;
    }

    footer .social-media {
        margin-top: 15px;        /* Reduced margin */
    }

    footer .social-media img {
        width: 25px;             /* Smaller social media icons */
        height: 25px;
        margin: 0 8px;           /* Spacing between icons */
    }

    footer .social-media img:hover {
        filter: invert(50%);     /* Slight change on hover */
    }

    /* Scroll to Top Button */
    #scrollToTopBtn {
        width: 40px;             /* Smaller button size */
        height: 40px;            /* Square button */
        font-size: 14px;         /* Smaller icon font */
        padding: 8px;            /* Smaller padding */
    }

    /* Additional Mobile-First Grid Example (if you're using a grid for any section) */
    .grid-item {
        width: 100%;             /* Make sure grid items take full width on small screens */
        padding: 10px;           /* Adjust padding inside grid items */
        box-sizing: border-box;  /* Prevent overflow */
    }
    
    .two-column-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;  /* 2 columns for larger screens */
        gap: 15px;
    }

    @media (max-width: 400px) {
        .two-column-grid {
            grid-template-columns: 1fr;  /* Stack into 1 column for small screens */
        }
    }
}