* {
    margin: 0;
    padding: 0;
    font-family: "Source Code Pro", monospace;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
body {
    background: rgb(11, 23, 23);
    color: rgb(163, 169, 169);
}

#header {
    width: 100%;
    height: 100vh;
    background-image: url('../images/home.jpg');
    background-size: cover;
    background-position: center;
}

.container {
    padding: 10px 10%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}


#late {
    font-size: 30px;
    color: rgb(8, 7, 63);
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px;
}

nav ul li a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

ul li a:hover {
    color: grey;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: rgb(43, 42, 97);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

.intro {
    margin-top: 100px;
}

.intro h1 {
    margin-top: 60px;
    font-size: 50px;
}

.intro h1 span {
    color: rgb(8, 7, 97);
}


/* -----------------about--------------*/
img {
    width: 100%;
    border-radius: 10px;
}

#about {
    padding: 80px 0;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.aboutCol1 {
    flex-basis: 35%;
}

.aboutCol2 {
    flex-basis: 60%;
}

.sub-title {
    font-size: 50px;
    font-weight: 600;
    color: gray;
}

.tab-titles {
    display: flex;
    margin: 20px;
}

.tab-link {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-link::after {
    content: '';
    width: 0;
    height: 3px;
    background: rgb(43, 42, 97);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-link.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span {
    color: rgb(43, 42, 97);
    font-size: 14px;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-box {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

    .service-box:hover {
        transform: translateY(-10px);
    }

.icon-center {
    display: block;
    margin: 0 auto 15px;
    color: #2b7a78; /* Optional: change to your theme color */
}



/*-----------------services---------------*/

#services {
    padding: 30px 0;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.services-list div {
    background: rgb(11, 14, 11);
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}

.services-list h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.services-list div:hover {
    background: rgb(14, 18, 38);
    transform: translateY(-10px);
}
.services-list div a {
    text-decoration: none;
    color: rgb(54, 52, 147);
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.services-list div a:hover {
    color: rgb(104, 103, 159);
}


/* -----------------about--------------*/
#portfolio {
    padding: 50px 0;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgb(22, 29, 68));
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

.layer h3 {
    font-weight: 500;
    margin-bottom: 20px;
}

.work img {
    transition: transform 0.5s;
}

.layer a {
    margin-top: 20px;
    color: rgb(22, 161, 38);
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: rgb(107, 24, 24);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

.work:hover img{
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

.ukzn {
    list-style-type: circle;
}

.seebtn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid grey;
    padding: 14px 50px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: background 0.5s;
}

.seebtn:hover {
    background: rgb(4, 99, 41);
}



/*-----------------contact-------------------*/
.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-left p {
    margin-top: 30px;
}

.contact-left p i {
    color: gray;
    margin-right: 14px;
    font-size: 20px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 17px;
    color: rgb(80, 156, 101);
    display: inline;
}

.x:hover {
    color: white;
}

.fb:hover {
    color: rgb(08, 102, 255);
}

.ig:hover {
    color: rgb(129, 52, 175);
}

.lin:hover {
    color: rgb(0, 119, 181);
}

.seebtn.sb {
    display: inline-block;
    background-color: rgb(8, 7, 63);
}

.seebtn.sb2 {
    background-color: rgb(8, 7, 63);
}

.seebtn.sb2:hover {
    background-color: rgb(43, 42, 97);
}

.seebtn.sb:hover {
    background-color: rgb(43, 42, 97);
}

.contact-right form {
    width: 100%;
}

form input, form textarea {
    width: 100%;
    border: 0;
    outline: none;
    color: #f5f5f5;
    background: #383838;
    padding: 15px;
    margin: 15px 0;
    font-size: 13px;
    border-radius: 6px;
}
::placeholder { color: #bdbdbd; }

form .sb2 {
    padding: 14px 50px;
    font-size: 13px;
    margin-top: 20px;
    margin-left: 0;
    cursor: pointer;
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    font-weight: 300;
    margin-top: 20px;
}

#confirm {
    color: green;
    margin-top: -40px;
    display: block;
}


/*-------------------for mobile phones------------------*/
nav .fa-solid {
    display: none;
}

@media only screen and (max-width: 600px) {
    #header {
        background-image: url('../images/homeMobile.jpg');
    }

    .intro {
        margin-top: 100%;
        font-size: 16px;
    }

    .intro h1 {
        font-size: 30px;
    }

    nav .fa-solid {
        display: block;
        font-size: 25px;
        cursor: pointer;
    }

    nav ul {
        background: rgb(8, 7, 63);
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul .fa-solid {
        position: absolute;
        top: 25px;
        left: 25px;
    }

    .sub-title {
        font-size: 40px;
    }

    .aboutCol1, .aboutCol2 {
        flex-basis: 100%;
    }

    .aboutCol1 {
        margin-bottom: 30px;
    }

    .aboutCol1 {
        font-size: 14px;
    }

    .tab-link {
        font-size: 16px;
    }

    .contact-left, .contact-right {
        flex-basis: 100%;
    }
}


/* ===================== */
/* Fancy animations area */
/* ===================== */


/* Keyframes */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glow { 0% { box-shadow: 0 0 0px rgba(4,99,41,0.0);} 50% { box-shadow: 0 8px 24px rgba(4,99,41,0.35);} 100% { box-shadow: 0 0 0px rgba(4,99,41,0.0);} }
@keyframes float { 0%, 100% { transform: translateY(0);} 50% { transform: translateY(-6px);} }


/* On-load reveals (respect reduced motion below) */
#header .intro { animation: fadeUp 0.8s ease both 0.2s; }
.aboutCol1 { animation: fadeUp 0.8s ease both 0.15s; }
.aboutCol2 { animation: fadeUp 0.8s ease both 0.3s; }
.services-list div { animation: fadeUp 0.8s ease both 0.3s; }
.work { animation: fadeUp 0.8s ease both 0.35s; }
.contact-left { animation: fadeUp 0.8s ease both 0.2s; }
.contact-right { animation: fadeUp 0.8s ease both 0.35s; }


/* Button shimmer/glow on hover */
.seebtn:hover { animation: glow 1.4s ease-in-out; }


/* Floating icons when card hovered */
.services-list div:hover .icon-center { animation: float 2s ease-in-out infinite; }


/* Portfolio tile micro-interactions */
.work:hover .layer h3, .work:hover .layer p, .work:hover .layer a { animation: fadeUp 0.5s ease both; }


/* Reduced motion: disable animations */
@media (prefers-reduced-motion: reduce) {
#header .intro,
.aboutCol1,
.aboutCol2,
.services-list div,
.work,
.contact-left,
.contact-right { animation: none !important; }
.seebtn:hover { animation: none !important; }
.services-list div:hover .icon-center { animation: none !important; }
}

/* Scroll-reveal utility */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    will-change: opacity, transform;
}

/* Typewriter caret */
.typewriter::after {
    content: '▁';
    margin-left: 4px;
    animation: caret 1s step-end infinite;
}

@keyframes caret {
    50% {
        opacity: 0;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .typewriter::after {
        animation: none !important;
    }
}

