/* GLOBAL RESETS AND BASE STYLES */

:root {
    --primary-color: rgba(255, 162, 0, 0.8); /* A vibrant blue for growth/digital */
    --secondary-color: #28a745; /* Green for success/growth */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --transition-speed: 0.3s;
    
    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


    @media (max-width:600px) {
        .container{
            padding: 10px;
        }
        
    }


body {
    
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevents horizontal scroll from animations */
    object-fit: cover;
    /* background-image: url("/bg3.jpeg"); */
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 700;
}

section {
    padding: 60px 5%;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

section:nth-child(even) {
    background-color: var(--light-bg);
}

/* --- HEADER AND NAVIGATION --- */

.main-header {
    background-color: #050505;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    --text-color: #f1eeee;
}

.logo {
    /* width: 200px; */
    height: 100px; /* Adjust as needed */
    /* Logo Animation */
    transform: scale(0);
    /* opacity: 0; */
    animation: logo-pop-in 0.8s ease-out forwards;
}

@keyframes logo-pop-in {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    margin-left: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    transition: color var(--transition-speed);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Underline Animation on Hover */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
    background: var(--primary-color);
}

.cta-link {
    background-color: var(--secondary-color);
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.cta-link:hover {
    background-color: #1e7e34;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- 1. HERO/HOME SECTION --- */

.hero-section {
    min-height: 90vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 100px;
    text-align: left;
}

.hero-content {
    flex: 1;
    max-width: 50%;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-color);
}

.digital-info {
    padding: 20px;
    border-left: 4px solid var(--secondary-color);
    background-color: #e9f7ef;
    border-radius: 5px;
    margin-top: 30px;
}

.digital-info h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.hero-image {
    flex: 1;
    max-width: 40%;
}

.hero-image img {
    width: 100%;
    height: auto;
    /* Floating Animation */
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- 2. ABOUT US SECTION --- */

.about-section {
    text-align: center;
}

.about-content {
    max-width: 900px;
    margin: 20px auto;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* --- 3. SERVICES SECTION --- */

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin-top: 30px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 280px;
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background var(--transition-speed);
}

/* Hover Animation for Services */
.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
    background: var(--primary-color);
    color: #fff;
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: color var(--transition-speed);
}

.service-card:hover i {
    color: #fff;
}

.service-card h3 {
    margin: 0;
    font-weight: 600;
}

/* --- 5. CLIENTS SECTION --- */

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.client-logo {
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    transition: transform 0.5s ease-in-out;
}

/* Subtle Scale Animation for Clients */
.client-logo:hover {
    transform: scale(1.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 300px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter var(--transition-speed), opacity var(--transition-speed);
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- 6. PROJECTS SECTION --- */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin-top: 30px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-item img {
    width: 100%;
    height: 100%px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease-in-out;
}

/* Zoom Animation on Hover */
.project-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 162, 0, 0.8);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-item:hover .overlay {
    opacity: 1;
}

/* --- 7. CONSULTATION FORM --- */

.consultation-section {
    background: var(--primary-color);
    color: #fff;
    min-height: 50vh;
}

.form-container {
    background: #fff;
    color: var(--text-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.form-container h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

#consultation-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    width: 100%;
}

.submit-btn:hover {
    background-color: #1e7e34;
    transform: translateY(-2px);
}

.success-message {
    color: var(--secondary-color);
    margin-top: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    display: none; /* Hidden by default */
}

/* --- FOOTER (CONTACT US) --- */

.main-footer {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 40px 5%;
    font-size: 0.9rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 20px;
}

.footer-info, .footer-social {
    flex: 1;
    min-width: 250px;
}

.footer-info h3, .footer-social h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-social a {
    color: #fff;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

/* Social Icon Animation */
.footer-social a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* --- POPUP MODAL STYLES --- */

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
    animation: fade-in 0.5s ease;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    /* Pop-up entrance animation */
    animation: pop-up-slide 0.5s ease-out;
}

@keyframes pop-up-slide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color var(--transition-speed);
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* --- RESPONSIVENESS (MOBILE) --- */

@media (max-width: 992px) {
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Below the header */
        left: 0;
        background-color: #fff;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
    }

    .nav-list li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-section {
        flex-direction: column;
        padding-top: 80px;
    }

    .hero-content, .hero-image {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        margin-top: 20px;
    }
}