/* Reset default padding and margin */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Basic body styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/pic2.jpg'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1; /* Ensures the background stays behind the content */
}

/* Header styling */
header {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: auto;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Name styling */
.name {
    display: flex;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 10px;
}

.name img {
    height: 50px;          /* adjust logo size */
    margin-right: 10px;    /* space between logo and text */
    transition: transform 0.3s ease; /* smooth animation */
  }

  .name img:hover {
    transform: scale(2); /* enlarges logo */
    margin-top: 20px; 
    margin-left: 10px;  
  }
  
.name p {
    margin: 10px;             /* remove default paragraph margin */
    font-size: 1.2em;
    font-weight: bold;
    color: white;
}

/* Navigation styling */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    flex-grow: 1;
}

nav ul li {
    margin: 0 1em;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

nav ul li a:hover {
    color: aqua;
} 

.menu {
    display: none;
}

.menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; /* Adjust as needed */
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

.menu li {
    margin-bottom: 10px;
}

.menu li a {
    color: #fff;
    text-decoration: none;
}

.menu-icon {
    left: 0;
    margin-left: auto;
    display: none;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .menu-icon {
        display: inline;
    }

    nav {
        position: relative;
        margin-right: 20px;
        
    }

    .menu{
        position: absolute;
        top: -800px;
        display: flex;
        justify-content: center;
        background: rgba(255, 255, 255, 0.2);
        width: 100%;
        height: 90vh;
        backdrop-filter: blur(20px);
        transition: .3s;
    }

    .menu li{
        flex-direction: column;
        text-align: center;
    }
}


/* Section styling */
section {
    padding: 2em;
    text-align: center;
}

/* Home section styling */
.home {
    background-image: url('images/R.jpg');
    background-size: cover;
    background-position: center;
    color: aqua;
    padding: 4em 2em;
    border-radius: 20px;
}

.home p {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1em;
    border-radius: 10px;
    text-align: left;
    margin: 0 auto;
    max-width: 800px;
}

/* About section styling */
.about {
    color: ghostwhite;
    max-width: 800px;
    margin: auto;
}

.about h2{
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    width: 25%;
    padding: auto;
    margin: auto;
}

.about p {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1em;
    border-radius: 10px;
    text-align: left;
    margin: 0 auto;
    max-width: 800px;
}

/* Skills Section */
.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('images/skills-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
}

.skills h2 {
    color: #ffdd57; /* same golden highlight as services/donations */
    width: 100%;
    margin-bottom: 40px;
    font-size: 2.2em;
}

/* Skill Card */
.skills div {
    margin: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    max-width: 200px;
    width: 100%;
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills div:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.6);
}

/* Skill Icons */
.skills img {
    display: block;
    margin: 0 auto 10px;
    width: 100px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.5s ease-in-out;
}

.skills img:hover {
    transform: scale(1.15); /* enlarge smoothly on hover */
}


/* Services Section */
#services {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('images/services-bg.jpg') no-repeat center center/cover;
    color: #fff;
  }
  
  #services h2 {
    font-size: 2.2em;
    margin-bottom: 40px;
    color: #ffdd57; /* golden highlight like donation */
  }
  
  .services-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .service-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    width: 280px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff;
  }

  .service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* space out content */
    min-height: 350px; /* ensures all cards have equal height */
  }
  
  .service-card button {
    margin-top: auto; /* pushes button to bottom */
    align-self: center; /* keeps button centered */
  }
  
  
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.6);
  }
  
  .service-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #ffdd57;
  }
  
  .service-card p {
    font-size: 0.95em;
    margin-bottom: 10px;
    color: #ddd;
  }
  
  .service-card .price {
    font-weight: bold;
    margin: 15px 0;
    color: #4caf50;
  }
  
  .service-card button {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .service-card butt:onhover {
    background: #43a047;
  }   
  
/* Donation Section */
#donate {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
  }
  
  #donate h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #333;
  }
  
  #donate p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
  }
  
  /* Donation options container */
  .donation-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  /* Donation Section */
#donate {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),url('images/donate-bg.jpg') no-repeat center center/cover;
    color: #fff;
  }

  .donate-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* push button to bottom */
    min-height: 280px; /* make cards equal height */
  }
  
  .donate-card button {
    margin-top: auto; /* align button at bottom */
    align-self: center; /* keep centered */
  }
  
  
  #donate h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #f9f9f9;
  }
  
  #donate p {
    font-size: 1.1em;
    color: #ddd;
    margin-bottom: 30px;
  }
  
  /* Donation card style */
  .donate-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    width: 260px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .donate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.6);
  }
  
  .donate-card img {
    height: auto;
    margin-bottom: 15px;
  }
  
  /* Adjust wallet text */
  .donate-card code {
    color: #ffdd57;
    word-break: break-all;
  }
  
  
  /* Specific button colors */
  .paypal-btn {
    background: #0070ba;
  }
  
  .paypal-btn:hover {
    background: #005c99;
  }
  
  .mpesa-btn {
    background: #34b233;
  }
  
  .mpesa-btn:hover {
    background: #279125;
  }
  
  .binance-btn {
    background: #f3ba2f;
    color: #000;
  }
  
  .binance-btn:hover {
    background: #d9a900;
  }
  

/* Contact section styling */
.contact {
    padding: 2em;
    text-align: center;
    width: 100%;
    height: auto;
    font-size: 1.2em;
    font-weight: 300;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.cont {
    max-width: 800px;
    margin: auto;
}

.cont h2 {
    margin-bottom: 1em;
}

.cont-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
}

.cont-form,
.cont-info {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.cont-form h4,
.cont-info h4 {
    margin-bottom: 1em;
}

.form-group {
    margin-bottom: 1em;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background-color: lightgray;
    color: #333;
}

input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 8px black;
}

button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    background-color: #4caf50;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, border-radius 0.3s ease; /* Added transition for smooth effect */
    border-radius: 5px; /* Set default border-radius */
}

button:hover {
    border-radius: 8px;
    background-color: #4caf;/* Set border-radius on hover */
}

/* Footer styling */
footer {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 0.5em;
    text-align: center;
}

footer p {
    margin-top: 5px;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    /* Adjust navigation for smaller screens */
    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background: rgba(0,0,0,0.8);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 20px 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }

    .cont-wrapper {
        flex-direction: column;
    }

    .about img {
        margin: 0 auto;
    }

    .services {
        flex-direction: column;
        align-items: center;
    }

    .projects {
        padding: 2em 1em;
    }
}

@media (max-width: 480px) {
    .home {
        padding: 2em 1em;
    }

    .about p {
        padding: 0 1em;
    }

    .contact {
        padding: 2em 1em;
    }
}
