/* Base CSS */
:root {
    --header-bg-color: #000000; 
    --font-color: #fff;
    --font-family: 'Lato', sans-serif;
    --font-size: 17px;
    --font-weight: 600;
    --dropdown-bg-color: #000000;
    --dropdown-font-color: #fff;
    --dropdown-hover-color: #f75216;
}

/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header styles */
header {
    background-color: var(--header-bg-color);
    color: var(--font-color);
    padding: 10px 0;
    font-family: var(--font-family);
    font-weight: var(--font-weight);
}

/* Container and logo styles */
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    position: relative;
}

.logo img {
    max-width: 100px;
}

/* Navigation styles */
nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-end;
    align-items: center;
}

nav ul li {
    position: relative;
    margin-left: 20px;
}

nav ul li a {
    color: var(--font-color);
    text-decoration: none;
    font-size: var(--font-size);
    padding: 5px 10px;
    position: relative;
    transition: color 0.3s;
}

/* Hover effect for links */
nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--dropdown-hover-color);
    transition: width 0.3s ease-in-out;
    position: absolute;
    bottom: 0;
    left: 0;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--dropdown-hover-color);
}

/* Dropdown styles */
nav ul li .dropdown {
    display: none;
    position: absolute;
    background-color: var(--dropdown-bg-color);
    padding: 10px;
    top: 100%;
    left: 0;
    list-style: none;
    z-index: 1000;
    min-width: 200px;
}

nav ul li:hover .dropdown {
    display: block;
}

nav ul li .dropdown li {
    margin: 5px 0;
    text-align: center;
}

nav ul li .dropdown li a {
    color: var(--dropdown-font-color);
    font-size: calc(var(--font-size) - 2px);
    display: block;
    padding: 5px 10px;
    white-space: nowrap;
}

nav ul li .dropdown li a:hover {
    color: var(--dropdown-hover-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: var(--font-color);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        background-color: var(--header-bg-color);
        width: 100%;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 0;
        margin: 0;
        z-index: 1000;
        align-items: center;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    nav ul li a {
        padding: 10px;
        display: block;
    }

    nav ul li .dropdown {
        position: static;
        display: none;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    nav.active ul {
        display: flex;
    }

    nav ul li.active .dropdown {
        display: block;
    }
}

/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Portfolio Section */
.portfolio-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
}

.portfolio-section h1 {
    font-size: 36px;
    font-weight: 600;
    color: #333;
}

.portfolio-section .highlight {
    color: #ff7705;
}

.filter-menu {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* For responsiveness */
}

.filter-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #ff7705;
    color: #fff;
}

/* Grid and Image Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 20px;
    margin-top: 20px;
}

.portfolio-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--item-bg-color, #f0f0f0); /* Default grey color */
}

.portfolio-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Maintain aspect ratio without cropping */
    transition: transform 0.3s ease;
}

.portfolio-item img:hover {
    transform: scale(1.05); /* Zoom effect on hover */
}

/* Specific background color for each category */
.clogos {
    --item-bg-color: #000000; /* Light blue background for Logo Design */
}

.stationery {
    --item-bg-color: #ffe4e1; /* Light pink background for Business Stationery */
}

.marketing {
    --item-bg-color: #e6ffe9; /* Light green background for Marketing Materials */
}

.social {
    --item-bg-color: #f9f2e7; /* Light yellow background for Social Media Creatives */
}

.infographics {
    --item-bg-color: #f0f0f0; /* Default grey background for Infographics */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr; /* 1 column on smallest screens */
    }
}


/* Footer Styles */
.footer {
    background-color: #000000;
    padding: 30px 50px;
    color: #fff;
}

.footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.footer .footer-logo img {
    max-width: 120px;
}

.footer .footer-address, .footer .footer-contact {
    flex: 1 1 200px;
    max-width: 300px;
}

.footer .footer-address h4, .footer .footer-contact h4 {
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #f7901e;
}

.footer .footer-address p, .footer .footer-contact p {
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer .social-icons {
    display: flex;
    gap: 10px;
}

.footer .social-icons a {
    display: inline-block;
}

.footer .social-icons img {
    width: 30px;
    height: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .footer {
        padding: 20px 30px;
    }

    .footer .footer-content {
        gap: 20px;
    }

    .footer .footer-address, .footer .footer-contact {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 20px;
    }

    .footer .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer .footer-logo {
        margin-bottom: 20px;
    }

    .footer .footer-address, .footer .footer-contact {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .footer .social-icons {
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 15px;
    }

    .footer .footer-content {
        gap: 15px;
    }

    .footer .footer-address, .footer .footer-contact {
        font-size: 14px;
    }

    .footer .social-icons img {
        width: 25px;
        height: 25px;
    }
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    background-color: #333;
    padding: 10px 0;
    text-align: center;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
}

.footer-bottom-bar p {
    margin: 0;
}


/* Base styles for portfolio grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns by default for desktop */
    gap: 20px; /* Space between items */
    margin-top: 20px;
}

/* Media query for tablets (up to 768px) */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
}

/* Media query for mobile (up to 480px) */
@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr; /* 1 column for mobile */
    }
}

/* Ensure the portfolio items adjust to available width */
.portfolio-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--item-bg-color, #dadada); /* Default grey color */
    padding: 0; /* Remove padding to allow full width */
    margin: 0 auto; /* Center the item */
    width: 100%; /* Ensure the portfolio item uses the full width available */
}

.portfolio-item iframe {
    width: 100%;
    max-width: 1200px; /* Maximum width for the videos */
    height: auto;
    aspect-ratio: 16/9; /* Maintain 16:9 aspect ratio */
}

.portfolio-item iframe:hover {
    transform: scale(1.05); /* Zoom effect on hover */
}
