/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f39c12;
    --secondary-color: #2c3e50;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --text-dark: #333333;
    --text-medium: #5a6a7a;
    --text-light: #999999;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-primary: rgba(243, 156, 18, 0.3);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-primary: 'Open Sans', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --primary-color-rgb: 243, 156, 18;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color var(--transition-normal);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-medium);
    margin-bottom: 1em;
}

img {
    border: 5px solid transparent;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px var(--shadow-light);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1480px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo {
    width: 100px; /* Increase the width further */
    height: auto;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.header-right { /* Contains nav and contact button */
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav {
    display: flex;
    align-items: center; /* Vertical alignment */
}

/* Mobile Menu Button (Hamburger)  - Renamed for clarity */
.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: color var(--transition-normal);
    display: none;  /* Hidden by default */
    margin-right: 15px; /* Space from contact button */
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 700;
    transition: color var(--transition-normal);
    white-space: nowrap; /* Prevent wrapping */
}

/* Add styles for the new Home link */
.nav-link.home-link {
    color: var(--text-dark);
    font-weight: 700;
    transition: color var(--transition-normal);
    white-space: nowrap; /* Prevent wrapping */
}

.nav-link.home-link:hover {
    color: var(--primary-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Reused button styles (consistent styling) */
.contact-button, .view-success-story-button, .about-us-button, .know-more-button, .contact-us-button {
    position: relative;
    padding: 8px 20px; /* Reduced padding */
    border-radius: 6px;
    font-weight: 600;
    color: var(--primary-color);
    background-color: transparent;
    font-size: 0.85rem; /* Reduced font size */
    letter-spacing: 0.5px;
    border: 2px solid var(--primary-color);
    overflow: hidden;
    z-index: 1;
    display: inline-block;
    font-family: var(--font-secondary);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    text-decoration: none; /* Ensure no underline on buttons */
    display: inline-flex; /* For consistent alignment with icons */
    align-items: center;  /* Center text and icon vertically */
}

.contact-button span, .view-success-story-button span, .about-us-button span, .know-more-button span, .contact-us-button span{
    position: relative;
    z-index: 2;
    transition: color var(--transition-normal);
}

/* Shared button hover effect */
.contact-button:hover, .view-success-story-button:hover, .about-us-button:hover, .know-more-button:hover, .contact-us-button:hover {
     background-color: var(--primary-color); /* Change background color on hover */
    color: var(--bg-white); /* Change text color on hover */
}
.contact-button:hover span, .view-success-story-button:hover span, .about-us-button:hover span, .know-more-button:hover span, .contact-us-button:hover span {
    color: white;
}

/* Homepage Slider Styles */
.homepage-slider {
    max-width: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-white);
    box-shadow: 0 4px 20px var(--shadow-light);
    margin-bottom: 60px;
    height: 600px;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-content {
    flex: 0 0 45%;
    padding: 60px;
    z-index: 2;
    position: relative;
}

.slide-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
    position: relative;
    overflow: hidden;
}

.slide-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin-bottom: -10px;
}

.slide-content p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 10px;
    max-width: 550px;
}

/* (view-success-story-button styles are now in the shared button styles) */
.view-success-story-button i {
     margin-left: 8px;
    transition: transform var(--transition-normal);
}
.view-success-story-button:hover i {
   transform: translateX(3px);
}

.slide-image {
    flex: 0 0 55%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    z-index: 3;
}

.slider-arrow {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-medium);
    cursor: pointer;
    transition: color var(--transition-normal);
    padding: 10px;
    margin: 0 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

slider-arrow:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.9);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color var(--transition-normal);
    border: none;  /* Remove border */
    padding: 0;    /* Remove padding */
    display: inline-block; /* Ensure proper display */
}

.dot.active {
    background-color: var(--primary-color);
}

/* Our Promise Section */
.our-promise {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

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

.promise-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.promise-content p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 30px;
}

/* (about-us-button styles are now in the shared button styles) */
 .about-us-button i {
     margin-left: 8px;
    transition: transform var(--transition-normal);
 }
 .about-us-button:hover i {
    transform: translateX(4px);
 }
.promise-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.3;
    animation: moveParticles linear infinite;
}

@keyframes moveParticles {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* What We Do Section */
.what-we-do {
    padding: 80px 20px;
    background-color: var(--bg-white);
}

.what-we-do-content {
    max-width: 1280px;
    margin: 0 auto;
}

.what-we-do-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--secondary-color);
}

.tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-normal);
    color: var(--text-medium);
    border-bottom: 2px solid transparent;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.service-cards, .specialization-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card, .specialization-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px var(--shadow-light);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
    transform: perspective(1000px);
    position: relative;
    overflow: hidden;
}

.service-card:hover, .specialization-card:hover {
    transform: scale(1.05) rotateY(3deg) translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover::before, .specialization-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    box-shadow: 0 0 15px 3px var(--primary-color);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.2; }
    50% { opacity: 0.4; }
    100% { opacity: 0.2; }
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(var(--primary-color-rgb), 0.1); /* Use RGB for opacity */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-card:hover .card-icon, .specialization-card:hover .card-icon {
    transform: rotate(10deg) scale(1.2);
    background-color: rgba(var(--primary-color-rgb), 0.2); /* Use RGB for opacity */
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.service-card:hover .card-content h3, .specialization-card:hover .card-content h3 {
    color: var(--primary-color);
}

.card-content p {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 15px;
    flex: 1;
    transition: color 0.3s ease;
}

.service-card:hover .card-content p, .specialization-card:hover .card-content p {
    color: var(--text-dark);
}

.card-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    transition: color var(--transition-normal);
    margin-top: auto;
    position: relative;
    text-decoration: none; /* Remove underline */
}

.card-link i {
    margin-left: 5px;
    transition: transform var(--transition-normal);
}

.card-link:hover {
    color: var(--secondary-color);
}

.card-link:hover i {
    transform: translateX(8px);
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.card-link:hover::after {
    width: 100%;
}

.tab-pane {
    transition: all 0.5s ease-in-out;
    position: relative;
}

.tab-pane.active {
    animation: fadeInScale 0.7s ease-in-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.tab-pane.active .service-card,
.tab-pane.active .specialization-card {
    animation: slideInUp 0.6s ease-out backwards;
}

.tab-pane.active .service-card:nth-child(1),
.tab-pane.active .specialization-card:nth-child(1) { animation-delay: 0.1s; }
.tab-pane.active .service-card:nth-child(2),
.tab-pane.active .specialization-card:nth-child(2) { animation-delay: 0.2s; }
.tab-pane.active .service-card:nth-child(3),
.tab-pane.active .specialization-card:nth-child(3) { animation-delay: 0.3s; }
.tab-pane.active .service-card:nth-child(4),
.tab-pane.active .specialization-card:nth-child(4) { animation-delay: 0.4s; }
.tab-pane.active .service-card:nth-child(5),
.tab-pane.active .specialization-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content {
    position: relative;
}

.tab-content::before {  /*for flas effect, not needed, looks weird*/
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.tab-content.switching::before { /*for flas effect, not needed, looks weird*/
    animation: flashEffect 0.5s ease-out;
}

@keyframes flashEffect { /*for flas effect, not needed, looks weird*/
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Why ideaCOLAB Labs Section - Removed, not used on homepage */

/* Positive Difference Section */
.positive-difference {
    padding: 80px 20px;
    background-color: var(--bg-light);
    text-align: center;
}

.positive-difference-content {
    max-width: 800px;
    margin: 0 auto;
}

.positive-difference h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* (contact-us-button styles are now in the shared button styles) */
.contact-us-button i {
    margin-left: 8px;
    transition: transform var(--transition-normal);
}
.contact-us-button:hover i {
     transform: translateX(3px);
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 60px 20px 40px;
    text-align: center;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.footer-column h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--bg-white); /* Change text color to white */
    transition: color var(--transition-normal);
    display: block;
    padding: 5px 0;
}

.footer-column a:hover {
    color: var(--primary-color); /* Yellow color on hover */
}

.footer-column a:active {
    color: var(--primary-color); /* Change text color to yellow when clicked */
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: ffffff;
    font-size: 1.4rem;
    transition: color var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #ffffff;
    text-align: center;
    width: 100%;
}

.legal-links {
    display: none;  /* Hidden */
}

.legal-links a {
    color: var(--text-light);
    transition: color var(--transition-normal);
}

.legal-links a:hover {
    color: var(--bg-white);
}

/* Media Queries */
@media (max-width: 768px) {
    /* Header Adjustments */
    .header-container {
        flex-direction: row; /* Keep horizontal layout */
        padding: 15px 20px; /* Consistent padding */
        align-items: center; /* Center alignment */
        justify-content: space-between; /* Space between logo and menu */
    }

    .header-left {
        width: auto; /* Let it take natural width */
        justify-content: flex-start; /* Align to start */
    }

    /* Hamburger menu styling */
    .mobile-menu-toggle {
        display: block;
        font-size: 1.3rem; /* Slightly smaller icon */
        padding: 8px;
        border-radius: 4px;
        margin-left: 15px; /* Space from logo */
        transition: background-color var(--transition-normal);
    }

    .mobile-menu-toggle:hover {
        background-color: rgba(var(--primary-color-rgb), 0.1);
    }

    /* Mobile navigation improvements */
    .main-nav {
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        z-index: 1001;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: 0 4px 10px var(--shadow-light);
        padding: 0; /* Remove padding */
        margin: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height var(--transition-normal);
    }

    .nav-list.active {
        display: flex;
        max-height: 300px; /* Enough height for menu items */
        padding: 10px 0; /* Add padding when open */
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 12px 20px;
        text-align: left;
        font-weight: 600;
    }

    /* Contact button in mobile */
    .contact-button {
        margin: 10px 20px; /* Add margin inside nav list */
        width: calc(100% - 40px); /* Full width with margins */
        justify-content: center; /* Center button text */
        padding: 6px 16px; /* Further reduced padding */
        font-size: 0.75rem; /* Further reduced font size */
    }

    /* Slider Adjustments */
    .homepage-slider {
        height: auto;
    }

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

    .slide-content, .slide-image {
        flex: 0 0 100%;
        padding: 40px 20px;
    }

    .slide-image {
        height: 300px;
    }

    .slide-content h1 {
        font-size: 2.2rem;
    }

    .slide-content h1::after {
        margin: 0 auto;
        margin-bottom: -5px;
    }

    .view-success-story-button {
        margin: 10px auto;
        margin-top: 25px;
    }

    .promise-content h2 {
        font-size: 2rem;
    }

    .what-we-do-content h2 {
        font-size: 2rem;
    }

    .service-cards, .specialization-cards {
        grid-template-columns: 1fr;
    }

    .slider-controls {
        bottom: 5px;
    }

    .header-logo {
        width:100px; /* Adjust the width for smaller screens */
    }
}

/* Mobile View Styles for Homepage Slider */
@media (max-width: 768px) {
    .homepage-slider .slide {
        flex-direction: column;
    }

    .homepage-slider .slide-content {
        width: 100%;
        padding: 2rem 1.5rem;
        text-align: center;
        order: 1;
    }

    .homepage-slider .slide-image {
        width: 100%;
        height: 200px; /* Adjust height as needed */
        order: 2;
    }

    .homepage-slider .slide-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .homepage-slider .slide-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .homepage-slider .view-success-story-button {
        margin: 0 auto;
    }

    .slider-controls {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .header-logo {
        width: 100px; /* Further adjust the width for even smaller screens */
    }

    .logo-text {
        font-size: 1.3rem; /* Smaller text */
    }

    .mobile-menu-toggle {
        margin-left: 10px; /* Less space in smaller screens */
    }
    .logo-text {
        font-size: 1.1rem; /* Further reduce font size for iPhone X */
    }
     /* Footer Adjustments */
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0;
    }

    .legal-links {
        justify-content: center;
    }
    /* Adjust font sizes for smaller screens */
    .slide-content h1 {
        font-size: 2rem; /* Even smaller */
    }

    .promise-content h2, .what-we-do-content h2 {
        font-size: 1.8rem; /* Slightly smaller */
    }

    .positive-difference h2{
      font-size: 1.8rem;
    }

    .card-content h3 {
        font-size: 1.3rem; /* Smaller card headings */
    }

    .footer-column h4 {
      font-size: 1.1rem;
    }
}
