/* NNIL Website - Optimized Stylesheet */
:root {
    --primary: #0b2c4d;
    --primary-dark: #081f36;
    --primary-light: #1a3a5f;
    --secondary: #1f6fd6;
    --secondary-light: #4a8fea;
    --accent: #2ecc71;
    --light: #ffffff;
    --light-gray: #f8fafc;
    --gray: #e8ecf1;
    --dark-gray: #6c757d;
    --text: #1a1a1a;
    --text-light: #4a5568;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Accessibility */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary);
    color: white;
    padding: 8px 16px;
    z-index: 1001;
    text-decoration: none;
}

.skip-to-main:focus {
    top: 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 44, 77, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    line-height: 1.2;
}

.logo span {
    font-weight: 400;
    color: var(--secondary-light);
}

.logo-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: -2px;
}

/* Search */
.search-container {
    flex: 1;
    max-width: 400px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.15);
}

#search-input {
    background: transparent;
    border: none;
    color: white;
    padding: 5px;
    width: 100%;
    font-size: 0.95rem;
    outline: none;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#search-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    font-size: 1rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-top: 5px;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray);
    color: var(--text);
    text-decoration: none;
    display: block;
}

.search-result-item:hover {
    background: var(--light-gray);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    min-width: 100px;
}

.btn-sm {
    padding: 8px 16px;
    min-width: 80px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* Navigation */
.nav {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.mobile-auth {
    display: none;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: 70px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.slide1 {
    background-image: linear-gradient(rgba(11, 44, 77, 0.85), rgba(11, 44, 77, 0.8)), url('../images/hero-agriculture.jpg');
}

.slide2 {
    background-image: linear-gradient(rgba(11, 44, 77, 0.85), rgba(11, 44, 77, 0.8)), url('../images/hero-energy.jpg');
}

.slide3 {
    background-image: linear-gradient(rgba(11, 44, 77, 0.85), rgba(11, 44, 77, 0.8)), url('../images/hero-minerals.jpg');
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 0;
    background: linear-gradient(transparent, rgba(11, 44, 77, 0.9));
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: center;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.slider-controls {
    position: absolute;
    bottom: 120px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--secondary);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: white;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

.section-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--secondary), transparent);
    margin: 20px auto;
}

.section-description {
    max-width: 700px;
    margin: 20px auto 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content .lead {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.logo-in-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary);
}

.logo-in-section .logo-img {
    height: 50px;
}

.about-cta {
    margin-top: 30px;
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.value-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.value-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(11, 44, 77, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 40px;
    text-align: center;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-page-logo {
    max-height: 60px;
    width: auto;
    max-width: 150px;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.service-features li::before {
    content: "✓";
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-cta {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Stats */
.stats {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.stats-header {
    text-align: center;
    margin-bottom: 50px;
}

.stats-logo {
    height: 60px;
    margin-bottom: 20px;
}

.stats-title {
    font-size: 2.2rem;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-light);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.stat-detail {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary);
    position: relative;
}

.quote-mark {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    color: var(--secondary);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-card cite {
    color: var(--text-light);
    font-style: normal;
    font-weight: 600;
    display: block;
}

.testimonial-card cite span {
    color: var(--secondary);
    font-weight: 500;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info h3,
.contact-social h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info address {
    font-style: normal;
}

.contact-info p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.contact-detail {
    margin-bottom: 20px;
}

.contact-detail strong {
    display: flex;
    align-items: center;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-detail i {
    color: var(--secondary);
    margin-right: 10px;
    width: 20px;
}

.contact-detail a {
    color: var(--secondary);
    text-decoration: none;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: var(--light-gray);
    color: var(--primary);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 500;
}

.social-link:hover {
    transform: translateX(10px);
    background: var(--secondary);
    color: white;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-light);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-icon {
    height: 20px;
    width: auto;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        padding: 30px 0;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .slider-controls {
        bottom: 100px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .logo-container {
        order: 1;
    }
    
    .mobile-menu-btn {
        display: block;
        order: 2;
        margin-left: auto;
    }
    
    .auth-buttons {
        display: none;
    }
    
    .nav {
        order: 4;
        width: 100%;
        margin-top: 15px;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        background: var(--primary);
        border-radius: var(--radius);
        margin-top: 10px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-auth {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .search-container {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .service-cta {
        flex-direction: column;
    }
}