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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #000000;
}

/* Global color variables for consistency */
:root {
    --primary-dark: #45496a;    /* Dark blue-gray for main backgrounds and text */
    --primary-mid: #7d8bae;     /* Medium blue-gray for cards and secondary elements */
    --accent-primary: #e5857b;  /* Coral pink for primary accents and CTAs */
    --accent-light: #f1b2b2;    /* Light pink for hover states and highlights */
    --accent-soft: #e8ccc7;     /* Soft pink for subtle backgrounds and transitions */
    --white: #ffffff;
}

/* Navigation */
nav {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    position: relative;
}

.nav-links a {
    color: var(--primary-dark);
    text-decoration: none;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

/* Separator between nav links */
.nav-links a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1rem;
    background: var(--primary-mid);
    opacity: 0.3;
}

/* Animated underline for current page and hover */
.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

/* Show full underline for current page */
.nav-links a.current::before {
    width: 100%;
}

/* Show animated underline on hover */
.nav-links a:hover::before {
    width: 100%;
}

/* Mobile adjustments for the separator */
@media (max-width: 768px) {
    .nav-links a:not(:last-child)::after {
        height: 0.8rem;
        right: -0.5rem;
    }
}

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

.nav-links a.current {
    position: relative;
}

.nav-links a.current::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-link {
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    transition: color 0.3s;
    position: relative;
    color: var(--primary-dark);
}

.lang-link:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.lang-link:hover:after {
    width: 80%;
}

.lang-link.current {
    color: var(--accent-primary);
    font-weight: 600;
}

.lang-link.current:after {
    width: 80%;
}

.lang-separator {
    color: #000000;
}

/* Hero Section */
.hero {
    background: linear-gradient(to top, rgba(69, 73, 106, 0.9), rgba(69, 73, 106, 0) 50%), url('./media/hero-image.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 80px 1rem 1rem 1rem;
    position: relative;
    box-sizing: border-box;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}


/* Services Section */
.services {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, var(--white), var(--primary-dark));
}

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

.section-title {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

/* Hover effect for the underline */
.section-title:hover:after {
    width: 100px;
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.services-intro p {
    color: var(--primary-dark);  /* Changed from white to match section title */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}


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

.service-card {
    background: var(--primary-mid);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(254, 253, 253, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: center;
}

.service-card:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--white);
    line-height: 1.6;
}

.service-card .support-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    text-align: left;
}

.service-card .support-list li {
    padding: 0.5rem 0;
    color: var(--white);
    display: flex;
    align-items: center;
}

.service-card .support-list li::before {
    content: '•';
    color: var(--white);
    margin-right: 0.5rem;
}

/* Services Outro */
.services-outro {
    text-align: center;
    margin: 3rem auto 0;
    padding: 1.5rem 2rem;
    background: #45496a;
    color: white;
    border-radius: 15px;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 1000px;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 1rem 1rem;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }
} 

/* Employer Page Specific Styles */
.employer-hero {
    background: linear-gradient(to top, rgba(69, 73, 106, 0.9), rgba(69, 73, 106, 0)), url('./media/employer-hero-image.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 80px 1rem 1rem 1rem;
    position: relative;
    box-sizing: border-box;
}

.employer-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 2rem;
}

.employer-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.employer-hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .employer-hero h1 {
        font-size: 2.5rem;
    }
    
    .employer-hero p {
        font-size: 1.2rem;
    }
}

/* Get to Know Us Section */
.about-section {
    padding: 2rem 1rem;
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-card {
    background: var(--primary-mid);
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-card:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.team-image {
    margin-bottom: 2rem;
}

.team-img {
    width: 180px;
    height: 220px;
    border-radius: 15px;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.team-info h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive adjustments for team cards */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
    }
    
    .team-card {
        min-height: 350px;
        padding: 2rem 1.5rem;
    }
    
    .team-img {
        width: 140px;
        height: 180px;
    }
}

/* Why Choose PerFind Section */
.why-choose-section {
    padding: 2rem 1rem;
    background: #f8f9fa;
}

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

.reason-card {
    background: var(--primary-mid);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.reason-card:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.reason-card i {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.reason-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.reason-card p {
    color: var(--white);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Who We Hire Section */
.who-we-hire-section {
    padding: 2rem 1rem;
    background: #fff;
}

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

.profession-card {
    background: var(--primary-mid);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--white);
}

.profession-card:hover {
    background: var(--primary-dark);
}

.profession-card i {
    font-size: 1.5rem;
    color: var(--white);  /* Default icon color */
    width: 24px;
    transition: color 0.3s ease;  /* Add transition for smooth color change */
}

.profession-card:hover i {
    color: var(--accent-light);  /* Icon color changes to accent-light on hover */
}

.profession-card span {
    color: #ffffff;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .professions-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
}

/* Vision & Mission Section */
.vision-mission-section {
    padding: 2rem 1rem;
    background: #f8f9fa;
}

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

.vision-card, .mission-card {
    background: var(--primary-dark);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--white);
}

.vision-card:hover, .mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px var(--primary-dark);
}

.vision-card h2, .mission-card h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.vision-card h2:after, .mission-card h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.vision-card:hover h2:after, .mission-card:hover h2:after {
    width: 100px;
}

.vision-card p, .mission-card p {
    color: #ffffff;
    line-height: 1.8;
    font-size: 1rem;
}

/* Add icon to each card */
.vision-card, .mission-card {
    position: relative;
}

.vision-card:before, .mission-card:before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    color: #f8f8f8;
    opacity: 0.5;
}

.vision-card:before {
    content: '\f024'; /* flag icon */
}

.mission-card:before {
    content: '\f0b1'; /* briefcase icon */
}

/* Contact Section */
.contact-section {
    padding: 4rem 1rem;
    background: linear-gradient(to bottom, var(--white), var(--primary-dark));
}

.contact-form-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--primary-mid);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 5px var(--accent-light);
}

.submit-button {
    background-color: var(--primary-dark);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--accent-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .founder-profile {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

    .founder-img {
        max-width: 300px;
    }
} 

/* Common section styles */
.about-section,
.why-choose-section,
.who-we-hire-section,
.vision-mission-section,
.contact-section {
    padding: 2rem 1rem;
}

/* Container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section title spacing */
.section-title {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-dark);
}

/* Adjust specific section spacings */
.founder-profile {
    margin-top: 2rem;
}

.reasons-grid,
.professions-grid,
.vision-mission-grid {
    margin-top: 2rem;
}

/* Contact form container */
.contact-form-container {
    margin-top: 2rem;
}

/* Add to your existing styles */
.submit-button:disabled {
    background-color: #94c6e7;
    cursor: not-allowed;
}

/* Optional: Add animation for loading state */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.submit-button:disabled {
    animation: pulse 1.5s infinite;
} 

/* Text Colors */
.services-outro p {
    color: var(--white);
}

.service-card,
.reason-card {
    color: var(--white);
}

/* Hover Effects */
.nav-links a:hover,
.lang-link:hover {
    color: var(--accent-primary);
}

.service-card:hover i,
.reason-card:hover i {
    color: var(--accent-light);
} 

/* Add top border to footer */
footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--white);
    opacity: 0.3;  /* Makes the line subtle */
} 

/* Mobile Navigation */
@media (max-width: 768px) {
    nav {
        height: auto;
        padding: 0.5rem 0;
    }

    .nav-container {
        gap: 0.25rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.25rem 0.5rem;
    }

    .language-switcher {
        font-size: 0.9rem;
        gap: 0.25rem;
    }

    .lang-link {
        padding: 0.1rem 0.25rem;
    }
} 

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    color: var(--white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transition: bottom 0.3s ease-in-out;
    z-index: 1000;
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-text {
    flex: 1;
    padding-right: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.accept-cookies {
    background: var(--accent-primary);
    color: var(--white);
}

.accept-cookies:hover {
    background: var(--accent-light);
}

.reject-cookies {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.reject-cookies:hover {
    background: rgba(255,255,255,0.1);
}

/* Cookie Settings Button in Footer */
.cookie-settings-btn {
    background: none;
    border: none;
    color: var(--accent-soft);
    cursor: pointer;
    padding: 0;
    font-size: 1.17rem;
    font-weight: bold;
    line-height: 1.6;
    text-decoration: none;
    transition: opacity 0.3s ease;
    margin-bottom: 1rem;
}

.cookie-settings-btn:hover {
    color: var(--accent-primary);
    opacity: 1;
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cookie-modal-header h2 {
    color: var(--primary-dark);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
}

.cookie-preference {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--primary-mid);
    border-radius: 5px;
}

.cookie-preference label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .cookie-consent {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-text {
        padding-right: 0;
    }
} 

.contact-cookie {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}


@media (max-width: 768px) {
    .contact-cookie {
        flex-direction: column;
        gap: 1rem;
    }
} 

/* Mobile Navigation adjustments */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 0.5rem;  /* Reduce container padding */
    }

    .logo h1 {
        font-size: 1.4rem;  /* Reduce logo size */
    }

    .nav-links {
        gap: 1rem;  /* Reduce gap between links */
    }

    .nav-links a {
        font-size: 0.9rem;  /* Reduce font size */
        padding: 0.25rem 0.5rem;
        line-height: 1.2;
    }

    .language-switcher {
        margin-left: 1rem;  /* Reduce margin */
        font-size: 0.9rem;  /* Match nav links font size */
    }

    .lang-link {
        padding: 0.2rem 0.3rem;  /* Reduce padding */
    }
} 

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;  /* Space between image and text */
}

.logo img {
    height: 40px;  /* Adjust this value to match your desired logo size */
    width: auto;
    object-fit: contain;
}

/* Mobile adjustments for logo */
@media (max-width: 768px) {
    .logo img {
        height: 30px;  /* Slightly smaller on mobile */
    }
} 

/* Update footer contact link styles */
.contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.8;
    text-decoration: underline;  /* Added underline on hover for better UX */
}

.contact-info p {
    margin-bottom: 0.5rem;  /* Add some spacing between contact items */
} 

/* Add these styles for the logo link */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 0.5rem;
}

.logo a:hover {
    opacity: 0.9;
}

/* Ensure the h1 inside the link maintains its styles */
.logo a h1 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin: 0;
} 

/* Add loading animation styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.15s ease-out;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-light);
    border-radius: 50%;
    border-top-color: var(--primary-dark);
    animation: spin 0.4s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hide loader */
.loader-wrapper.fade-out {
    opacity: 0;
    pointer-events: none;
} 
