/* Recruitment Page Specific Styles */

/* Active nav link - Match main navbar style */
.nav-link.active {
    background: #448c7f;
    color: white !important;
    box-shadow: 0 4px 12px rgba(68, 140, 127, 0.3);
}

/* Recruitment Hero Section */
.recruitment-hero {
    height: 100vh;
    background: linear-gradient(135deg, #448c7f 0%, #5aa59b 50%, #3a7a70 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.recruitment-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(45, 125, 45, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 93, 26, 0.3) 0%, transparent 50%);
}

.recruitment-hero .hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.recruitment-hero .hero-content p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    padding: 2.5rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 93, 26, 0.03) 0%, rgba(45, 125, 45, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), 0 12px 24px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #448c7f 0%, #5aa59b 50%, #3a7a70 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(26, 93, 26, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(26, 93, 26, 0.4);
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.benefit-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* Requirements Section */
.requirements {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.requirements-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.requirement-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.requirement-item i {
    font-size: 1.5rem;
    color: #27ae60;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.requirement-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 600;
}

.requirement-item p {
    color: #4a5568;
    line-height: 1.5;
}

.requirements-image {
    text-align: center;
    perspective: 1500px;
    position: relative;
    padding: 40px;
    display: inline-block;
    width: 100%;
}

.requirements-image-wrapper {
    position: relative;
    display: inline-block;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.requirements-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 110%;
    transform: translate(-50%, -50%);
    border-radius: 30px;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(68, 140, 127, 0.4) 0%,
        rgba(90, 165, 155, 0.2) 40%,
        transparent 70%
    );
    z-index: -1;
    filter: blur(25px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.requirements-image:hover::before,
.requirements-image.touch-active::before {
    opacity: 1;
}

.requirements-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.4) 20%,
        rgba(68, 140, 127, 0.1) 40%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: overlay;
}

.requirements-image:hover::after,
.requirements-image.touch-active::after {
    opacity: 1;
}

.requirements-image img {
    max-width: 100%;
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(68, 140, 127, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    z-index: 2;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, box-shadow;
}

.requirements-image:hover img,
.requirements-image.touch-active img {
    box-shadow: 
        0 30px 80px rgba(68, 140, 127, 0.25),
        0 15px 40px rgba(68, 140, 127, 0.2),
        0 0 60px rgba(90, 165, 155, 0.15),
        0 0 0 1px rgba(68, 140, 127, 0.2);
}

/* Floating animation */
@keyframes floatImage {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Fade in and scale animation */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Flowing gradient background */
@keyframes flowingGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Flowing light effect */
@keyframes flowingLight {
    0% {
        background-position: 0% 0%;
        opacity: 0.5;
    }
    50% {
        background-position: 100% 100%;
        opacity: 0.8;
    }
    100% {
        background-position: 0% 0%;
        opacity: 0.5;
    }
}

/* Pulse glow effect */
@keyframes pulseGlow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 5px rgba(68, 140, 127, 0.2));
    }
    50% {
        filter: brightness(1.05) drop-shadow(0 0 15px rgba(68, 140, 127, 0.4));
    }
}

/* Application Form Section */
.application-form {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.form-container {
    max-width: 1000px;
    margin: 0 auto;
}

.form-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.form-intro h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.form-intro p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.application-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: #448c7f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 600;
}

.step-content p {
    font-size: 0.9rem;
    color: #4a5568;
}

/* Google Form Container */
.google-form-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.form-placeholder {
    text-align: center;
    padding: 2rem;
}

.form-placeholder-content i {
    font-size: 4rem;
    color: #448c7f;
    margin-bottom: 1rem;
}

.form-placeholder-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 600;
}

.form-logo {
    margin-bottom: 1.5rem;
}

.zenith-logo {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.zenith-logo:hover {
    transform: scale(1.05);
}

.form-placeholder-content ol {
    text-align: left;
    max-width: 500px;
    margin: 2rem auto;
    color: #4a5568;
}

.form-placeholder-content ol li {
    margin-bottom: 0.5rem;
}

.example-code {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 600px;
    text-align: center; /* Center the button */
}

/* Mobile: Better spacing */
@media (max-width: 768px) {
    .example-code {
        padding: 1.5rem 1rem;
        margin: 1.5rem auto;
    }
}

.example-code code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #2d3748;
    word-break: break-all;
}

.demo-form-btn {
    padding: 12px 30px;
    background: #448c7f;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
    /* Mobile optimization */
    min-height: 44px; /* Apple's recommended touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* Mobile: Larger touch target */
@media (max-width: 768px) {
    .demo-form-btn {
        padding: 15px 40px;
        font-size: 1rem;
        min-height: 48px;
        width: auto;
        max-width: 100%;
    }
    
    .form-placeholder-content {
        padding: 1rem;
    }
}

/* Small mobile: Adjust button text */
@media (max-width: 480px) {
    .demo-form-btn {
        padding: 15px 25px;
        font-size: 0.95rem;
        white-space: normal; /* Allow text wrapping on very small screens */
        line-height: 1.4;
    }
}

.demo-form-btn:hover,
.demo-form-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 93, 26, 0.3);
}

/* Mobile: No hover effect, add active state */
@media (hover: none) {
    .demo-form-btn:hover {
        transform: none;
    }
    
    .demo-form-btn:active {
        transform: scale(0.98);
        box-shadow: 0 4px 15px rgba(26, 93, 26, 0.4);
    }
}

/* Demo Form Styles */
.recruitment-form {
    max-width: 800px;
    margin: 0 auto;
}

.recruitment-form h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.recruitment-form > p {
    text-align: center;
    color: #448c7f;
    margin-bottom: 2rem;
    font-style: italic;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #448c7f;
    box-shadow: 0 0 0 3px rgba(26, 93, 26, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-note {
    text-align: center;
    color: #448c7f;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Recruitment Contact Section */
.recruitment-contact {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.contact-card i {
    font-size: 2.5rem;
    color: #448c7f;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 600;
}

.contact-card p {
    color: #4a5568;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .recruitment-hero .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .recruitment-hero .hero-content p {
        font-size: 1.2rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .requirements-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .recruitment-hero {
        min-height: 90vh;
        padding: 100px 20px 60px;
    }

    .recruitment-hero .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .recruitment-hero .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .stat-item {
        width: 100%;
        max-width: 300px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.8rem;
    }
    
    .requirements-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .requirement-item {
        padding: 1.5rem;
    }
    
    .requirement-item:hover {
        transform: translateY(-3px);
    }
    
    /* Mobile touch support for image animation */
    .requirements-image {
        padding: 20px;
        touch-action: pan-y;
    }
    
    .requirements-image-wrapper {
        touch-action: none;
    }
    
    .requirements-image img {
        touch-action: none;
        user-select: none;
        -webkit-user-select: none;
    }
    
    .application-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .step-number {
        margin-bottom: 1rem;
    }
    
    .google-form-container {
        padding: 2rem 1rem;
    }
    
    .google-form-container iframe {
        height: 600px;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .recruitment-hero {
        min-height: 85vh;
        padding: 90px 18px 50px;
    }

    .recruitment-hero .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .recruitment-hero .hero-content p {
        font-size: 1rem;
    }
    
    .stat-item h3 {
        font-size: 2.2rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .requirement-item {
        padding: 1.3rem;
    }
    
    .google-form-container iframe {
        height: 550px;
    }
}

@media (max-width: 480px) {
    .recruitment-hero {
        padding: 85px 15px 40px;
    }

    .recruitment-hero .hero-content h1 {
        font-size: 1.9rem;
    }
    
    .recruitment-hero .hero-content p {
        font-size: 0.95rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .stat-item p {
        font-size: 0.85rem;
    }
    
    .benefit-card {
        padding: 1.3rem;
    }
    
    .benefit-card i {
        font-size: 2.5rem;
    }
    
    .benefit-card h3 {
        font-size: 1.2rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .requirement-item {
        padding: 1.2rem;
    }
    
    .google-form-container iframe {
        height: 500px;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
}
