:root {
    --primary-dark: #333;
    --primary-light: #f4f4f4;
    --accent-blue: #007BFF;
}

/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    display: flex;
    justify-content: center; /* Center the logo */
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo {
    height: 250px;
    margin: 0 auto;
    display: block; /* Ensure the logo is treated as a block element */
}

.nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.nav ul li {
    display: inline;
    margin: 0 15px;
    position: relative;
    padding-bottom: 1rem;  /* Add padding to extend hover area */
}

.nav ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

.dropdown-content {
    display: block;  /* Changed from 'none' to 'block' */
    position: absolute;
    background: #444;
    min-width: 200px;
    z-index: 20;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0;
    border: 1px solid #555;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.dropdown-content a {
    display: block;
    padding: 0.8rem 1rem;
    text-align: left;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #555;
}

.nav ul li:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Add padding above dropdown to prevent gap */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 0;
    right: 0;
    height: 1rem;
}

/* Navigation effects */
.hover-underline {
    font-size: 1.2rem;
    color: #ffffff;
    position: relative;
    display: inline-block;
}

.hover-underline::after,
.hover-underline::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #f45f05, #76c9b9);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;
}

.hover-underline::before {
    top: -5px;
    transform-origin: left;
}

.hover-underline:hover::after,
.hover-underline:hover::before {
    transform: scaleX(1);
}


/* Hero Section */
.hero {
    background: #f4f4f4;
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-main {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-features span {
    color: #444;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hero-sub {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-features {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
}

/* Services Section */
.services {
    background: #f8f8f8;
    padding: 4rem 0;
    text-align: center;
}

.services h2 {
    margin-bottom: 1rem;
    color: #333;
}

.services .section-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #666;
    font-size: 1.2rem;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

@media screen and (max-width: 992px) {
    .service-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    .service-items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services {
        padding: 3rem 0;
    }
    
    .service-item {
        padding: 1.5rem;
    }
}

/* About Section */
.about {
    background: #f4f4f4;
    padding: 2rem 0;
    text-align: center;
}

.team {
    margin: 2rem 0;
}

.team-members {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.team-member {
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;   
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.team-member div {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.team-member .portrait {
    width: 150px;
    height: 150px;
    border-radius: 5px;
    margin: 1rem;
    box-shadow: #333 0px 0px 10px;
}

.team-member h3 {
    margin: 0 1rem;
}

.team-member p {
    margin-left: 1rem;
    margin-right: 1rem;
    flex: 1; /* Added to ensure all paragraphs have the same width */
}

.portrait {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

@media screen and (min-width: 992px) {
    .team-members {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .team-member {
        padding: 1rem;
    }

    .team-member div {
        flex-direction: column;
        text-align: center;
    }
}

/* Portfolio Section */
.portfolio {
    background: #f4f4f4;
    padding: 2rem 0;
    overflow: hidden;  /* Prevent content overflow */
}

.portfolio-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.portfolio-item {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
}

.portfolio-item img {
    width: 100%;
    height: 200px; /* Set a fixed height to ensure all images take up the same vertical space */
    object-fit: contain; /* Ensure the image covers the area without distortion */
    border-radius: 5px;
}

/* Carousel Styles */
.carousel {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
    max-width: 1000px;  /* Limit maximum width */
    margin: 0 auto;     /* Center the carousel */
}

.portfolio-items {
    display: flex;
    transition: transform 0.5s ease;
    gap: 0;
}

.portfolio-item {
    min-width: 100%;
    max-width: 100%;    /* Ensure item doesn't exceed container */
    padding: 2rem;      /* Increased padding */
    box-sizing: border-box;
    overflow-y: auto;   /* Allow vertical scrolling if needed */
    max-height: 800px;  /* Maximum height before scrolling */
}

.portfolio-item img {
    width: 100%;
    height: 150px;     /* Reduced height */
    object-fit: contain;
    margin-bottom: 1rem;
}

.portfolio-item.active {
    transform: scale(1);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}

.dot.active {
    background: #333;
}

/* Contact Section */
.contact {
    background: #fff;
    padding: 2rem 0;
}

.contact form {
    display: grid;
    grid-gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact input, .contact textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact button {
    background: #48847c;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        width: 95%;
    }

    .nav ul li {
        display: block;
        margin: 10px 0;
    }

    /* Hide dropdown on mobile */
    .nav ul li .dropdown-content {
        display: none !important; /* Use !important to override any other styles */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .service-items {
        grid-template-columns: 1fr;
    }

    .team-members {
        gap: 2rem;
    }

    .team-member {
        width: 100%;
        margin: 0;
        padding: 1rem;
    }

    .team-member div {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .portrait {
        width: 120px;
        height: 120px;
    }

    .portfolio-items {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
}

/* Image Responsiveness */
img {
    max-width: 100%;
    height: auto;
}

.portrait {
    max-width: 200px;
    width: 100%;
}

/* Improved Form Responsiveness */
@media screen and (max-width: 480px) {
    .contact form {
        grid-template-columns: 1fr;
    }
    
    .contact input,
    .contact textarea {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Animation Keyframes */
@keyframes expandIn {
    from {
        transform: scale(0.95);
        opacity: 0.8;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shrinkOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

.team-member, .portfolio-item {
    transition: all 0.3s ease-out;
}

.scroll-animate {
    animation: shrinkOut 0.3s forwards;
}

.scroll-animate.visible {
    animation: expandIn 0.3s forwards;
}

@media screen and (min-width: 769px) {
    .scroll-animate {
        animation: none;
    }
    .scroll-animate.visible {
        animation: none;
    }
}

.quick-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 1rem 0;
}

@media screen and (max-width: 768px) {
    .quick-links {
        flex-direction: column;
        align-items: center;
    }
}

.about-page-bg,
.home-page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        linear-gradient(217deg, rgba(255,255,255,.9), rgba(220,220,220,0) 70%),
        linear-gradient(127deg, rgba(230,230,230,.9), rgba(200,200,200,0) 70%),
        linear-gradient(336deg, rgba(240,240,240,.9), rgba(210,210,210,0) 70%);
    background-size: 400% 400%;
    transition: all 0.3s ease-out;
}

/* Create a subtle grid pattern overlay */
.about-page-bg::after,
.home-page-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* Ensure main content sits above background */
main {
    position: relative;
    z-index: 1;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* ...existing code... */

.experience-summary {
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #df6b18;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
}

.expertise-areas {
    text-align: left;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.expertise-areas h4 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.expertise-areas ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-areas li {
    padding: 0.5rem 1rem;
    background: #f8f8f8;
    border-radius: 4px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .expertise-areas ul {
        grid-template-columns: 1fr;
    }
}

/* ...existing code... */

.member-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;  /* Reduced from 0.5rem */
}

.member-info h3 {
    font-size: 1.8rem;  /* Increased from default size */
    margin: 0;
    color: #333;
}

.linkedin-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(to right, #f45f05, #5c9d90);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    font-size: 1rem;      /* Increased from 0.85rem */
    font-weight: 500;     /* Added medium weight */
    margin-top: 0.1rem;   /* Adjusted spacing */
    transition: opacity 0.2s ease;
    padding: 0.2rem 0;    /* Added vertical padding */
}

.linkedin-icon {
    width: 20px;          /* Increased from 16px */
    height: 20px;         /* Increased from 16px */
    filter: hue-rotate(15deg) saturate(1.5); /* Adjust icon to match theme */
}

.linkedin-link:hover {
    opacity: 0.8;
}

@media screen and (max-width: 768px) {
    .member-info {
        align-items: center;
    }
    
    .member-info h3 {
        font-size: 1.6rem;  /* Slightly smaller on mobile */
    }
}

/* ...existing code... */

.process {
    background: #fff;
    padding: 4rem 0;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.2rem;
    color: #666;
}

.process-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, #f45f05, #76c9b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.process-step h3 {
    color: #333;
    margin-bottom: 1rem;
}

.cta-section {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(rgba(244, 95, 5, 0.05), rgba(118, 201, 185, 0.05));
    border-radius: 8px;
    margin-top: 2rem;
}

.cta-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.cta-section p {
    margin-bottom: 2rem;
    color: #666;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

@media screen and (max-width: 768px) {
    .process-flow {
        gap: 1rem;
    }
    
    .process-step {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
}

/* ...existing code... */

/* Common CTA button styles */
.cta-button {
    display: inline-block;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    background: #dc5705;
    color: white;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(244, 95, 5, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 95, 5, 0.4);
    background: #ff6b0d;
}

/* Remove the older hero-cta class styles since they're now handled by the common cta-button class */
.hero-cta {
    /* Any hero-specific overrides would go here if needed */
}

/* Adjust pulse animation to work with new styling */
.pulse {
    animation: pulse 2s infinite;
    transform-origin: center;
}

/* ...existing code... */