/* Global Reset */
html, body {
  
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

/* Apply box-sizing to all elements */
*, *::before, *::after {
    box-sizing: inherit;
}

/* Header Section */
.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(110, 110, 118, 0.25), rgba(95, 111, 130, 0.234)), url('../images/dm-overview-img.avif');
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

/* Navbar Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 6%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent; /* Transparent initially */
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

/* Navbar when scrolled */
nav.scrolled {
    background: rgba(4, 47, 88, 0.85); /* Blue background when scrolling */
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 12px 6%;
}

/* Logo */
.logo img {
    width: 90px;
    height: auto;
    display: block;
}

/* Navigation Links */
.nav-links {
    flex: 1;
    text-align: right;
}

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

.nav-links ul li {
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.nav-links ul li a:hover {
    color: #f4a261;
    transform: scale(1.1);
}

/* Mobile Menu Icon */
nav .fa {
    display: none;
    font-size: 26px;
    color: white;
    cursor: pointer;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        background: rgba(4, 47, 88, 0.95);
        height: 100vh;
        width: 250px;
        top: 0;
        right: -250px;
        text-align: left;
        z-index: 999;
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links ul {
        padding: 30px;
    }

    .nav-links ul li {
        display: block;
        padding: 15px 0;
    }

    /* Ensure menu icon (hamburger) is visible */
    nav .fa {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
}

/* Text Box */
.text-box {
    color: white;
    max-width: 90%;
    padding: 20px;
    text-align: center;
}

.text-box h1 {
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .text-box h1 {
        font-size: 2rem;
    }
}


/* Digital Marketing Section */
.digital-marketing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(120deg, #e0f7fa, #fff3e6);
    position: relative;
    overflow: hidden;
}

/* Section Title */
.digital-marketing-heading {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a1a;
    background: linear-gradient(90deg, #00acc1, #ffca28);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 50px;
    animation: fadeIn 1s ease-in-out;
}

/* Grid Layout for Marketing Cards */
.digital-marketing-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* Individual Marketing Item */
.digital-marketing-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0, 172, 193, 0.2);
}

/* Hover Effect */
.digital-marketing-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 172, 193, 0.3);
}

/* Icon Styling */
.digital-marketing-item i {
    font-size: 3rem;
    color: #00acc1;
    background: linear-gradient(135deg, #ffca28, #00acc1);
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 172, 193, 0.4);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Icon Hover Effect */
.digital-marketing-item:hover i {
    transform: rotate(10deg) scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 172, 193, 0.6);
}

/* Heading */
.digital-marketing-item h3 {
    font-size: 1.6rem;
    color: #222;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* Description Text */
.digital-marketing-item p {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Back Button */
.back-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 35px;
    background: linear-gradient(90deg, #00acc1, #ffca28);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 172, 193, 0.3);
}

.back-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 172, 193, 0.5);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .digital-marketing-heading {
        font-size: 2.2rem;
    }
    .digital-marketing-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .digital-marketing-item {
        padding: 25px;
    }
    .digital-marketing-item i {
        font-size: 2.5rem;
        padding: 15px;
    }
    .digital-marketing-item h3 {
        font-size: 1.4rem;
    }
    .digital-marketing-item p {
        font-size: 0.95rem;
    }
    .back-btn {
        font-size: 1rem;
        padding: 12px 28px;
    }
}

@media (max-width: 480px) {
    .digital-marketing-container {
        padding: 40px 15px;
    }
    .digital-marketing-heading {
        font-size: 1.8rem;
    }
    .digital-marketing-item i {
        font-size: 2rem;
    }
}



/* ======== Footer Section ======== */

/* Footer Background - Elegant Theme */
footer {
    background: #25252e; /* Dark Theme */
    color: white;
    padding: 60px 0;
    width: 100%;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
}

/* Footer Container */
.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 20px 10%;
    gap: 30px;
    flex-wrap: nowrap; /* Prevents sections from wrapping */
}

/* Footer Sections */
.footer-section {
    flex: 1;
    min-width: 200px;
    padding: 10px;
}


/* Fix for Follow Us alignment */
.footer-section.follow-us {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to the left */
    justify-content: flex-start;
}

/* Section Headers */
.footer-section h3 {
    font-size: 20px;
    color: #f4a261;
    margin-bottom: 12px;
}

/* Quick Links */
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 8px 0;
    font-size: 16px;
}

.footer-section ul li a {
    color: #bbbbbb;
    text-decoration: none;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    color: #f4a261;
    padding-left: 5px;
}

/* Contact Info */
.footer-section p i {
    margin-right: 10px;
    color: #f4a261;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    color: white;
    font-size: 24px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #f4a261;
    transform: scale(1.2);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 12px;
    font-size: 14px;
    margin-top: 20px;
    color: #bbb;
}

/* Responsive Design */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .footer-container {
        flex-wrap: wrap; /* Allow wrapping */
        justify-content: center;
        text-align: center;
    }
    .footer-section {
        width: 45%; /* Show two sections per row */
        text-align: left;
    }
    .footer-section.follow-us {
        align-items: flex-start;
    }
    .social-icons {
        justify-content: flex-start;
    }
}


/* Small Tablets & Large Phones (700px - 768px) */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-section {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    .footer-section.follow-us {
        align-items: center;
    }
    .social-icons {
        justify-content: center;
    }
}

/* Small Phones (Below 700px) */
@media (max-width: 700px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .footer-section {
        width: 100%;
        text-align: center;
    }
    .footer-section.follow-us {
        align-items: center;
    }
    .social-icons {
        justify-content: center;
    }
}

