@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');


/* Variable Create */
:root {
    --dark-clr: #081d2c;
    --second-dark-clr: #112e42;
    --text-clr: #f1f5f9;
    --light-text-clr: #c9d9e8;
    --global-clr: #0fbbff;
    --btn-clr: #ff499e; 
}




/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
}


/* html and body styles */
html {
    overflow-x: hidden;
    line-height: calc(1em + 0.5rem);
}

body {
    font-family: "Jost", serif;
    background: var(--dark-clr);
    color: var(--text-clr);
    line-height: 1.3;
    text-decoration: none;
    letter-spacing: 1px;
}


/* Header */
header {
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 1.5rem 0;
}

::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
}

.navbar {
    padding: 0.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-clr);
}

.logo span {
    color: var(--global-clr);
}


.menu-toggle {
    display: none;
    font-size: 2rem;
    color: var(--text-clr);
    cursor: pointer;
    z-index: 1100;
}

@media (max-width: 600px) { 
    .logo {
       /* font-size: 1.8rem;*/
        font-size: clamp(1.5rem, 4vw, 1.8rem); 
    }


.logo span {
    color: var(--global-clr);
}

}



/* Navigation Menu */
.navbar ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    position: relative;
}

header nav ul li {
    position: relative;
    margin-right: 20px;
}

.navbar ul li a {
    position: relative;
    font-size: 1.3rem;
    font-weight: 500;
    margin-left: 20px;
    color: var(--text-clr);
    transition: .3s;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: var(--global-clr);
}

header nav ul li a::after {
    content: '';
    position: absolute;
    background: var(--global-clr);
    height: 3px;
    width: 0;
    left: 0;
    bottom: 0;
    pointer-events: none;
    transition: .3s;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 100%;
}


/* Hide menu by default on small screens */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
		z-index: 1100;
    }

    .navbar ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 10px;
        background: var(--second-dark-clr);
        width: 200px;
        border-radius: 5px;
        padding: 10px;
        text-align: center;
		 z-index: 1000; /* Ensure the menu is above other content */
    }

    .navbar ul.show {
        display: flex;
    }

    .navbar ul li {
        margin: 10px 0;
    }
}



/* CV Button */
.cvbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--btn-clr);
    color: var(--text-clr);
    padding: 12px;
    border-radius: 5px;
    box-shadow: 0 0 5px var(--btn-clr);
    cursor: pointer;
    transition: .5s;
}

.cvbtn:hover {
    box-shadow: 0 0 5px var(--btn-clr),
        0 0 10px var(--btn-clr),
        0 0 15px var(--btn-clr);
}


/* section */
section {
    padding: 2% 10%;
}


/* Hero Section */
.hero-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 10%;
	flex-direction: row;
}

.hero-image img {
    height: 450px;
    width: 340px;
    min-width: 340px;
    filter: drop-shadow(0 0 60px var(--global-clr));
	flex: 1;
	padding: 40px;
}

.hero-content {
    max-width: 50%;
	flex: 1;

}
   
    .hero-content-two p {
        text-align: justify-content;

        /*text-wrap: balance;*/
        
    }

    .hero-content-two h4 {
       /*text-align: justify;*/
        text-justify: inter-word;
        text-align-last: left; 
        hyphens: auto;
        /*word-break: break-word;*/
    }

/* Mobile or small screen styles */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column; /* Stack the content vertically */
		
    }

    .hero-content {
        order: 2; /* Move hero-content above the hero-image */
		max-width: 80%;
    }
	.hero-image img {
    height: 300px;
    width: 180px;
    min-width: 180px;
    filter: drop-shadow(0 0 60px var(--global-clr));
	flex: 1;
	padding: 0px;
	padding-bottom: 50px;
    }

   .hero-content p {
    text-align: justify;
    max-width: 30ch;
    margin: 0 auto;
    hyphens: auto;
    word-break: break-word;
    letter-spacing: 0.005em;
    word-spacing: 0.005em;
    text-wrap: balance;
    }
    
    
    .hero-content-two h4 {
       /* text-align: justify;
        text-justify: inter-word;
        text-align-last: left;
        hyphens: auto;
        word-break: break-word;
            letter-spacing: 0.02em;
    word-spacing: -0.05em;
        line-height: 1.6; */
        /* Improves readability 
        text-wrap: balance;*/

    }
    


}

.hero-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 600;
}

.hero-content h2 span {
    color: var(--global-clr);
}

.hero-content p {
    font-size: 1.2rem;
    margin: 2rem 0;

}


/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.social-icons a {
    display: inline-flex;
    font-size: 2rem;
    background: transparent;
    color: var(--global-clr);
    transition: .5s;
    text-decoration: none;
}

.social-icons a:hover {
    transform: translateY(-10px);
    text-decoration: none;
}


/* Buttons */
.hero-btn {
    display: flex;
    gap: 1.5rem;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10rem;
    height: 100%;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0.6rem 0;
    color: var(--dark-clr);
    background: var(--global-clr);
    border: 2px solid var(--global-clr);
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    color: var(--global-clr);
}

.hero-btn .btn:nth-child(2) {
    background: transparent;
    color: var(--global-clr);
}

.hero-btn .btn:nth-child(2)::before {
    background: var(--global-clr);
}

.hero-btn .btn:nth-child(2):hover {
    color: var(--dark-clr);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--dark-clr);
    z-index: -1;
    transition: .5s;
}

.btn:hover::before {
    width: 100%;
}


@media (max-width: 600px) { /* Adjust the max-width as needed */
    .btn {
        font-size: 1.2rem; /* Reduce font size */
        width: auto; /* Adjust width dynamically */
        padding: 0.6rem 0.4rem; /* Increase horizontal padding */
    }
}

/* Stats Section */
/*
.stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.stats .stat {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-width: 200px;
}

.stats .stat:not(:last-child) {
    border-right: 1px solid var(--light-text-clr);
    padding-right: 5%;
}

.stats .stat h2 {
    font-size: 3.5rem;
    font-weight: 600;
}

.stats .stat span {
    display: inline-block;
    color: var(--light-text-clr);
    font-size: 1.1rem;
}

*/
/**The new stule for this section for smaller screens***/
.stats {
    display: flex;
    justify-content: space-around; 
    align-items: center;
    flex-wrap: wrap;
    gap: 6rem; /* Reduce gap for smaller screens */
}

.stats .stat {
    flex: 1 1 250px; /* Allows shrinking while keeping minimum width */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Reduce gap for compact look */
    min-width: 150px; /* Prevents excessive shrinking */
    max-width: 300px; /* Limits excessive stretching */
    box-sizing: border-box;
}

.stats .stat:not(:last-child) {
    border-right: 1px solid var(--light-text-clr);
    padding-right: 5%;
    
}

.stats .stat h2 {
    font-size: 2.5rem; /* Reduce font size for smaller screens */
    font-weight: 600;
}

.stats .stat span {
    font-size: 1rem; /* Slightly smaller text for better fit */

}

@media (max-width: 768px) {
    .stats {
        gap: 0.5rem; /* Reduce spacing for smaller screens */
    }
    
    .stats .stat {
        flex: 1 1 180px; /* Adjust width dynamically */
        gap: 10px;
        display: flex;
        justify-content: space-between; 
    }
    
    .stats .stat {
        border-right: 1px solid var(--light-text-clr);
        padding-right: 5%;
    }

    .stats .stat h2 {
        font-weight: 600;
        text-align: left; /* Align text to the left */
    }


    .stats .stat span {
        font-size: 0.9rem; /* Adjust text size */
        text-align: right;
    }
}

/***************************************************************/

@media (max-width: 768px) { 

    h1 {
        font-size: 1.5em !important; /* Force the change */
        font-weight: normal !important;
    }
    h2 {
        font-size: 1.17em !important; /* Force the change */
        font-weight: normal !important;
    }

    h3 {
        font-size: 1em !important; /* Force the change */
        font-weight: normal !important;
    }
	#home h1,
	#home h2 {
    text-align: center;
}


}