* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #0a3d62;
    --secondary: #2ecc71;
    --accent: #3498db;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --gray: #7f8c8d;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scroll-down {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(15px);
    }
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #f5f7fa;
}



.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    padding-left: 40px;
}
 /* Header */
.logo img {
    height: 70px;
    width: auto;
    display: block;

}
/* Footer */
.footer-logo{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:20px;
}

.footer-logo img{
    width:55px;
    height:auto;
    flex-shrink: 0;
    
}

.footer-logo h3{
    margin-top: -8px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    white-space: nowrap;
}

.footer-about p{
    color:#d8d8d8;
    line-height:1.8;
    margin:0;   
    max-width:300px;
}

.footer-content{
    display:grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    column-gap:70px;
    align-items:start;
}


.quick-links{
    margin-left: 60px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    padding-right: 40px;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--secondary);
}

nav a.active {
    color: var(--primary);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.35) 100%), url('images/image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInDown 0.8s ease-out;
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.cta-button:hover {
    background-color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid white;
    border-radius: 13px;
    position: relative;
    animation: fadeIn 0.8s ease-out 0.6s backwards;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background-color: white;
    border-radius: 1px;
    animation: scroll-down 1.5s ease-in-out infinite;
} */

/* Section Styling */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #f8f9fa;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    animation: fadeInDown 0.8s ease-out;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

.section-title p {
    color: #f8f9fa;
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
#about {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.15) 100%), url('images/images.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}

/* ensure about-text spans full width when it's the only child */
.about-content > .about-text {
    width: 100%;
}


.about-text h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.about-text p {
    color: white;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* adjust cards inside about-text context if needed */
.about-text .card {
    background: rgba(255,255,255,0.9);
}

/* ensure text inside mission/vision cards is dark for readability */
.mission-vision .card p,
.mission-vision .card h3 {
    color: #000;
}

.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary);
    height: 100%;
    transition: all 0.3s ease;
}

.card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s, transform 0.3s;
}

.card h3:hover {
    color: var(--secondary);
    transform: scale(1.05);
}

.card h3 i {
    color: var(--secondary);
}

/* Services Section */
.services {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.15) 100%), url('images/images.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}


.services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Services List Top - Grid Layout */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Flip card for Smart Mining */
.flip-card {
    perspective: 1000px;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card.flipped .flip-inner {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.flip-front img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.flip-front h3 {
    margin: 15px 0;
    color: var(--primary);
}

.flip-back {
    background: #ffffff;
    padding: 25px;
    transform: rotateY(180deg);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    /* allow content to scroll if it exceeds available space */
    max-height: calc(100% - 20px);
}

.flip-back h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.flip-back ul li {
    color: var(--primary); /* navy color consistent with technology card */
}

.flip-back ul {
    list-style: none;
    padding: 0;
}

.flip-back ul li {
    color: #555;
    padding: 4px 0;
}


.service-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px 35px;
    min-height: 320px; /* base height for non-flip items */
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* make flip cards slightly taller to accommodate longer text */
.service-item.flip-card {
    min-height: 380px;
}


.service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(46, 204, 113, 0.15);
}

/* numbering removed; kept for reference in case needed later */
/*.service-number {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    background-color: var(--secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
}*/

.service-content h3 {
    color: var(--primary);
    margin: 35px 0 15px; /* allow space for number badge */
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.service-content h3:hover {
    color: var(--secondary);
}

.service-content h3 i {
    color: var(--secondary);
    font-size: 1.6rem;
}

.service-content ul {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
}

.service-content ul li {
    color: #555;
    padding: 4px 0;
    transition: color 0.3s;
}

.service-content ul li:before {
    content: "• ";
    color: var(--secondary);
    font-weight: bold;
    margin-right: 6px;
}

.service-content ul li:hover {
    color: var(--secondary);
}

/* Continuous horizontal slide-track (thongo images) */
.slider {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.slide-track {
    display: flex;
    gap: 20px;
    /* animation duration controls speed; adjust as needed */
    animation: scroll 30s linear infinite;
}

.slide-track img {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 768px) {
    .services-wrapper {
        gap: 30px;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .services-slider {
        height: 220px;
        max-width: 100%;
    }

    .service-number {
        font-size: 1.5rem;
    }

    .service-content h3 {
        font-size: 0.95rem;
    }

    .service-content ul {
        font-size: 0.85rem;
    }
}

/* Goals Section */
#goals {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.15) 100%), url('images/image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.goal-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.goal-number {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Marketing Section */
.marketing {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.15) 100%), url('images/images.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.marketing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.marketing-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.marketing-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s, transform 0.3s;
}

.marketing-card h3:hover {
    color: var(--secondary);
    transform: scale(1.05);
}

.marketing-card h3 i {
    color: var(--secondary);
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.15) 100%), url('images/images.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-container { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    background-color: var(--dark);
    color: white;
    padding: 40px;
    border-radius: 8px;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
    color: white;
    padding: 80px 0 0;
    border-top: 4px solid var(--secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
    padding: 0 0 50px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-links i {
    margin-right: 10px;
    width: 20px;
    color: var(--secondary);
}

/* Footer Social Media */
.footer-social {
    animation: fadeInUp 0.8s ease-out;
}

.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
}

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

.social-icons a {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary), #27ae60);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1.2rem;
}

.social-icons a:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.4);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #bbb;
    font-size: 0.9rem;
    flex: 1;
}

.back-to-top {
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: 600;
}

.back-to-top:hover {
    transform: translateY(-3px);
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s;
        visibility: hidden;
    }
    
    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0; 
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* Accessibility & UX Enhancements */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    background: #fff;
    padding: 10px 15px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 6px;
}

.sr-only {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cta-button:focus, .cta-button:focus-visible, a:focus-visible {
    outline: none;
    box-shadow: 0 6px 18px rgba(46,204,113,0.12), 0 0 0 4px rgba(46,204,113,0.08);
    transform: translateY(-1px);
}

.service-card, .marketing-card, .goal-card {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    will-change: transform;
}
.service-card:hover, .marketing-card:hover, .goal-card:hover {
    transform: translateY(-18px) scale(1.08);
    box-shadow: 0 25px 60px rgba(46, 204, 113, 0.25);
}

.contact-form .card {
    padding: 30px;
}
.contact-form .cta-button {
    width: 100%;
    margin-top: 10px;
}

footer {
    border-top: 4px solid rgba(255,255,255,0.03);
}
.footer-links a {
    color: #ddd;
}
.footer-links a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}