/* styles.css */
:root {
    --primary-dark: #0e3144;
    --primary-green: #00964f;
    --accent-green: #7fbd40;
    --accent-red: #e74c3c;
    --light: #f5f5f5;
    --dark: #212529;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--dark);
    line-height: 1.6;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: white;
    color: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 90px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    transition: var(--transition);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: var(--dark);
    text-decoration: none;
    padding: 10px 18px;
    display: block;
    transition: var(--transition);
    border-radius: 4px;
    margin: 0 5px;
    font-weight: 500;
    position: relative;
}

nav ul li a:hover, 
nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.15);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--accent-red);
    transition: var(--transition);
    transform: translateX(-50%);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 70%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(14, 49, 68, 0.8), rgba(14, 49, 68, 0.8)), url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 120px 20px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-green);
    color: white;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn.btn-red {
    background-color: var(--accent-red);
}

.btn.btn-red:hover {
    background-color: #c0392b;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-green), var(--accent-red));
    border-radius: 2px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-left: 4px solid var(--primary-dark);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--accent-red);
}

.service-img {
    height: 200px;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.service-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-red), transparent);
    opacity: 0.3;
    transition: var(--transition);
}

.service-card:hover .service-img::before {
    opacity: 0.5;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-content ul {
    list-style-type: none;
    margin-top: 15px;
}

.service-content ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-content ul li::before {
    content: '•';
    color: var(--accent-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(14, 49, 68, 0.8), rgba(231, 76, 60, 0.8));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

/* Testimonials */
.testimonials {
    background: linear-gradient(to bottom, var(--primary-dark), var(--primary-dark));
    color: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-red);
}

.testimonial-card::before {
    content: '\201C';
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonials .services-grid .service-content p {
    color: #0e3144;
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--accent-red);
}

.testimonials .section-title h2 {
    color: white;
}

/* Container & Layout */
.about-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
    max-width: 600px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #0e3144;
    margin-bottom: 20px;
}

.about-text h3 {
    font-size: 1.5rem;
    color: #0e3144;
    margin-top: 30px;
    margin-bottom: 10px;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

/* Image & Animation */
.about-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-icon {
    height: 200px;
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, var(--primary-dark), var(--accent-red));
    border-radius: 50%;
    color: #fff;
    font-size: 5rem;
    transition: transform 0.3s ease;
}

.about-icon:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Smooth Icon Animation */
.animated-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--accent-red), transparent);
    border-radius: 0 0 0 100px;
    opacity: 0.7;
}

.contact-info h3 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--accent-red);
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-icon {
    margin-right: 15px;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-detail:hover .contact-icon {
    background: var(--accent-red);
    transform: scale(1.1);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a2330 100%);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--accent-red), transparent);
    border-radius: 100% 0 0 0;
    opacity: 0.1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
    color: var(--accent-red);
}

.footer-about p {
    margin-bottom: 25px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 1.3rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--accent-red);
    transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    color: var(--accent-red);
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-red);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-red);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 12px;
    color: var(--accent-red);
    width: 20px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: #ccc;
}

/* WhatsApp Icon - Updated for vertical alignment */
.whatsapp-icon {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 160px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon i {
    color: white;
    font-size: 32px;
}

/* Scroll to top button - Updated for vertical alignment */
.scroll-to-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Apply Page Styles */
.job-listings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.job-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-left: 4px solid var(--primary-green);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--accent-red);
}

.job-header {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-green));
    color: white;
    padding: 20px;
}

.job-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.job-meta span {
    display: flex;
    align-items: center;
}

.job-meta i {
    margin-right: 5px;
}

.job-body {
    padding: 25px;
}

.job-details {
    margin-bottom: 20px;
}

.job-details h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.job-details ul {
    list-style-type: none;
}

.job-details ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.job-details ul li::before {
    content: '•';
    color: var(--accent-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.job-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.application-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
}

.application-form h3 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--primary-dark);
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.file-upload {
    position: relative;
    margin-bottom: 20px;
}

.file-upload-label {
    display: block;
    padding: 12px 15px;
    border: 1px dashed #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-label:hover {
    border-color: var(--accent-red);
    background-color: rgba(231, 76, 60, 0.05);
}

.file-upload-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        color: var(--primary-dark);
    }
    
    nav {
        position: fixed;
        top: 100px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 100px);
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
        transition: 0.4s;
        z-index: 99;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 30px;
    }
    
    nav ul li {
        margin-bottom: 15px;
        
    }
    
    .hero {
        padding: 100px 20px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    /* Adjust logo size for mobile */
    .logo-img {
        height: 50px;
        max-width: 200px;
    }
    
    /* Adjust floating icons for mobile */
    .whatsapp-icon {
        bottom: 140px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-icon i {
        font-size: 28px;
    }
    
    .scroll-to-top {
        bottom: 70px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .job-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .job-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
        max-width: 160px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Further adjust floating icons for small screens */
    .whatsapp-icon {
        bottom: 130px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-icon i {
        font-size: 26px;
    }
    
    .scroll-to-top {
        bottom: 65px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}