:root {
    --primary-color: #C0C0C0;
    --secondary-color: #ecf0f1;
    --accent-color: #3498db;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --navy-blue: #003366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.main-nav {
    background-color: var(--primary-color);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    top: 0;
    height: 60px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
}

@media screen and (max-width: 768px) {
    .main-nav .container {
        padding: 0 15px;
    }

    .logo-img {
        height: 30px;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .main-nav ul {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .main-nav ul.show {
        display: flex;
    }

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

    .hero {
        padding-top: 80px;
    }
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    position: relative;
    padding: 120px 0;
    margin-top: -60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section {
    margin-bottom: 40px;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
}

.hero-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.hero-section h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

.hero-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-cta {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--navy-blue);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.team-image {
    width: 100%;
    border-radius: 10px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: white;
}

.services-content {
    max-width: 1000px;
    margin: 0 auto;
}

.services-section {
    margin-bottom: 40px;
    text-align: center;
}

.services-section h3 {
    color: var(--navy-blue);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.services-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.services-section p {
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-header {
    padding: 30px;
    text-align: center;
}

.service-header h4 {
    color: var(--navy-blue);
    font-size: 1.4rem;
    margin: 15px 0;
}

.service-icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section h2,
    .hero-section h3 {
        font-size: 1.8rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .services-section h3 {
        font-size: 1.5rem;
    }
}

/* Case Studies */
.case-study {
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.case-study-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Team Image */
.team-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info {
    max-width: 600px;
}

.footer-info h3 {
    color: var(--secondary-color);
    margin: 20px 0;
    font-size: 1.5rem;
}

.footer-info p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-info {
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-links nav {
        align-items: center;
    }
}

/* Contact Section */
.contact {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.contact-subtitle {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h4 {
    color: var(--navy-blue);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form h4 {
    color: var(--navy-blue);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info,
    .contact-form {
        padding: 20px;
    }
}

.ebook-image {
    width: 200px;
    height: 280px; /* Adjusted height for better aspect ratio */
    object-fit: contain; /* Changed to contain to preserve aspect ratio */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: white; /* Added to ensure clean background */
}

/* Updated About Section Styles */
.about {
    background-color: var(--light-gray);
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: start;
}

.about-section {
    margin-bottom: 40px;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h3 {
    color: var(--navy-blue);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.about-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.about-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.value-item {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.about-image {
    position: sticky;
    top: 100px;
}

.team-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.about-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.about-card h4 {
    color: var(--navy-blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Responsive Design for About Section */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        position: static;
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .about {
        padding: 60px 0;
    }

    .about-section h3 {
        font-size: 1.5rem;
    }

    .team-image {
        height: 300px;
    }
}

.ebook-offer {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    text-align: left;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Portfolio Section Styles */
.portfolio {
    background-color: var(--light-gray);
    padding: 100px 0;
}

.portfolio-content {
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-section {
    margin-bottom: 40px;
}

.portfolio-section h3 {
    color: var(--navy-blue);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.portfolio-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.portfolio-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.webtech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.webtech-item {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.webtech-item:hover {
    transform: translateY(-5px);
}

.webtech-item h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Blog Section Styles */
.blog {
    padding: 100px 0;
    background-color: white;
}

.blog-content {
    max-width: 1000px;
    margin: 0 auto;
}

.blog-section {
    margin-bottom: 40px;
}

.blog-section h3 {
    color: var(--navy-blue);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.blog-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.blog-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.resource-grid {
    margin-top: 30px;
}

.ebook-offer {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ebook-content h4 {
    color: var(--navy-blue);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .webtech-grid {
        grid-template-columns: 1fr;
    }

    .ebook-offer {
        flex-direction: column;
        text-align: center;
    }

    .portfolio-section h3,
    .blog-section h3 {
        font-size: 1.5rem;
    }
}

/* Update footer styles */
.group-logo {
    display: block;
    margin-bottom: 20px;
}

.footer-logo {
    height: 60px; /* Adjusted height for AdVentus Group logo */
    width: auto;
    object-fit: contain;
}

.group-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.group-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-logo {
        height: 50px;
    }
}

/* Add/Update these styles in your CSS file */
.service-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.dropdown-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.dropdown-btn:hover {
    background-color: #2980b9;
}

.duties-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
    padding: 0 20px;
}

.duties-dropdown.active {
    max-height: 300px;
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.duties-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.duties-dropdown li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    text-align: left;
}

.duties-dropdown li:last-child {
    border-bottom: none;
}
