@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Regular.ttf') format('truetype'),
         url('fonts/Montserrat-Regular.woff') format('woff'),
         url('fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Bold.ttf') format('truetype'),
         url('fonts/Montserrat-Bold.woff') format('woff'),
         url('fonts/Montserrat-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Pixelify Sans';
    src: url('fonts/PixelifySans-Regular.ttf') format('truetype'),
         url('fonts/PixelifySans-Regular.woff') format('woff'),
         url('fonts/PixelifySans-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.ttf') format('truetype'),
         url('fonts/Poppins-Regular.woff') format('woff'),
         url('fonts/Poppins-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Bold.ttf') format('truetype'),
         url('fonts/Poppins-Bold.woff') format('woff'),
         url('fonts/Poppins-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

* {
    font-family: 'Montserrat', sans-serif;
}

.info-box h3 span,
.skills ul li span {
    font-family: 'Pixelify Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
}

:root{
    --background: #19151b;
    --second-background: #0b0b0b;
}

body{
    min-height: 100vh;
    background-color: var(--background);
}

/* Clouds Background */
.clouds-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url('images/clouds1.png') 10% 20% no-repeat,
        url('images/clouds2.png') 80% 40% no-repeat,
        url('images/clouds3.png') 30% 70% no-repeat,
        url('images/clouds4.png') 90% 90% no-repeat;
    background-size: 15%, 20%, 25%, 10%; 
    opacity: 0.6;
    z-index: -1; 
    animation: moveClouds 30s linear infinite; 
}

/* Navigation Bar */
nav{
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--second-background);
    backdrop-filter: blur(10px);
    padding: 10px 5%;
    z-index: 1000;
    opacity: 0.95;
}

ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav ul a{
    color: white;
    opacity: 0.7;
    transition: 0.2s ease-in-out;
    font-size: 16px;
}

nav ul a:hover{
    opacity: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    color: white;
    font-weight: 800;
    opacity: 0.8;
    transition: 0.2s ease-in-out;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo:hover{
    opacity: 1;
}

.btn{
    display: inline-block;
    padding: 8px 16px;
    color: white;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 8px;
    font-size: 18px;
    border: 2px solid white;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.btn:hover{ 
    background-color: white;
    color: var(--background);
}

nav ul a.active {
    color: #a70fd1;
    opacity: 1;
	font-weight: 700;
}

span{
    background: linear-gradient(to right, #ea7af4, #cc17ff);
    background-clip: text;
    color: transparent;
}

#menu{
    color: white;
    font-size: 24px;
    display: none;
}

section{
   min-height: 200px;
   padding: 50px 15%; 
}

/* Home Section */
#home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    color: white;
    text-align: center;
    padding-top: 125px;
	padding-bottom: 150px;
}

.profile-container {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    transition: opacity 0.3s ease-in-out;
}

.profile-container img:last-child {
    opacity: 0;
}

.profile-container:hover img:first-child {
    opacity: 0;
}

.profile-container:hover img:last-child {
    opacity: 1;
}

.info-box {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 12px;
    max-width: 650px;
}

.info-box h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
}

.info-box h3 span{
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
	font-family: 'Pixelify Sans';
	color: white;
}

.info-box p {
    opacity: 0.7;
    font-size: 17px;
    line-height: 1.6;
    padding: 0 15px;
}

.btn-box {
    display: flex;
    gap: 20px;
}

.btn-box .btn:nth-last-of-type(2):hover {
    background-color: var(--background);
    color: white;
}

/* Video Section */
#video-section {
    position: relative;
    width: 100%;
    padding: 80px 10%;
    padding-top: 100px;
    padding-bottom: 125px;
    background-image: url('images/building.png');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}
/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 450px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    border: 15px solid #a70fd1;
}

#scroll-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Play/Pause Icon */
.play-pause-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease-in-out;
}

.play-pause-icon:hover {
    opacity: 0.8; /* Show on hover */
}

.play-pause-icon i {
    font-size: 40px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 20px;
    background-color: var(--background);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ea7af4, #cc17ff);
}

/* About Section */
#about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 80px 10%;
	background: linear-gradient(to bottom, #250450, #19151b);
	padding-top: 175px;
	padding-bottom: 175px;
}

#about img {
    width: 380px;
    border-radius: 10px;
}

.about-box {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 32px;
    max-width: 600px;
}

.about-box h1 {
    font-size: 48px;
    color: white;
    opacity: 0.9;
}

.about-box p {
    font-size: 17px;
    color: white;
    opacity: 0.7;
    line-height: 1.6;
}

.about-box h2 {
    font-size: 32px;
    color: white;
    opacity: 0.8;
    margin: 0;
    padding: 0;
}

.skills {
    display: flex;
    gap: 80px; 
    margin: 0; 
    padding: 0; 
}

.skills ul {
    font-size: 20px;
    font-weight: 500;
    color: white;
    opacity: 0.8;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.skills ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease-in-out;
}

.skills ul li span{
	font-family: 'Pixelify Sans';
	color: white;
}

.skills ul li:hover {
    transform: translateX(10px);
}

.skills ul li i {
    font-size: 19px;
}

.skills-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
	opacity: 0.8;
    background-color: #a70fd1; 
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    margin-top: 20px; 
}

.skills-button:hover {
    background-color: #e64fed; 
    transform: translateY(-3px);
}

/* Achievements Section */
#achievements {
    padding: 80px 10%;
    background-color: var(--background);
    color: white;
    padding-top: 100px;
    padding-bottom: 150px;
}

.achievements-box {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.achievements-box h1 {
    font-size: 48px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.achievement-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

.achievement-text {
    flex: 1;
}

.achievement-text h2 {
    font-size: 32px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.achievement-text p {
    font-size: 17px;
    opacity: 0.7;
    line-height: 1.6;
}

.achievement-images {
    flex: 1;
    display: flex;
    gap: 20px;
}

.achievement-images img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.achievement-images img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.achievement-images img:first-child {
    max-width: 200px;
    height: 250px;
}

.achievement-images img:last-child {
    max-width: 500px;
    height: 250px;
}

/* Educational Attainment Section */
#education {
    background: #19151b;
    padding: 80px 10%;
    padding-top: 100px;
    padding-bottom: 100px;
    color: white;
    text-align: left;
}

.education-box {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.education-box h1 {
    font-size: 48px;
    color: white;
    opacity: 0.9;
    margin-bottom: 20px;
}

.education-box h2 {
    font-size: 32px;
    color: white;
    opacity: 0.8;
    margin-top: 30px;
    margin-bottom: 20px;
}

.education-info {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
}

.education-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.education-info ul li {
    flex: 1 1 calc(90% - 20px);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: white;
    opacity: 0.8;
    margin-bottom: 10px;
    transition: transform 0.3s ease-in-out;
}

.education-info ul li span {
    font-family: 'Poppins', sans-serif;
    color: white;
}

.education-info ul li i {
    font-size: 19px;
    color: #cc17ff;
}

.education-info ul li:hover {
    transform: translateX(10px);
}

.training-certs {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
}

.training-certs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.training-certs ul li {
    flex: 1 1 calc(90% - 20px);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: white;
    opacity: 0.8;
    margin-bottom: 10px;
    transition: transform 0.3s ease-in-out;
}

.training-certs ul li span {
    font-family: 'Poppins', sans-serif;
    color: white;
}

.training-certs ul li i {
    font-size: 19px;
    color: #cc17ff;
}

.training-certs ul li:hover {
    transform: translateX(10px);
}

/* Services Section */
#services {
    background-color: var(--background);
    padding: 80px 10%;
    text-align: center;
	padding-top: 100px;
}

.header {
    font-size: 60px;
    margin-bottom: 40px;
    color: #ffffff;
}

.service-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    justify-content: center;
    align-items: start;
}

.box {
    border: 3px solid rgb(49, 49, 49);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;  
    text-align: left;
    padding: 32px;
    gap: 16px;
    color: #ffffff;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    background-color: rgba(255, 255, 255, 0.05);
}

.box p{
	color: #ffffff;
	padding-bottom: 10px;
}
.box:hover {
    border: 3px solid rgb(100, 100, 100);
}

.box h1 {
    font-size: 28px;
    font-weight: bold;
}

.box p {
    opacity: 0.8;
    font-size: 16px;
    line-height: 1.5;
}

.box img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

section:target {
    padding-top: 80px;
    margin-top: -80px;
    scroll-margin-top: 80px; 
}

.details-section {
    padding: 100px 10%;
	padding-top: 150px;
    background-color: var(--background);
    color: white;
    text-align: left;
}

.details-content {
    max-width: 800px;
    margin: 0 auto;
}

.details-content h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: white;
}

.details-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    flex: 1 1 calc(50% - 20px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.detail-item i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
}

.detail-item span {
    font-size: 16px;
    opacity: 0.9;
}

.back-to-top {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgb(100, 100, 100);
    border-radius: 5px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
}

.back-to-top:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.service-container .box {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-container .box:hover {
    border: 3px solid rgb(100, 100, 100);
}

/* Gallery Section (Updated to Flexbox) */
#gallery {
    background-color: var(--background);
    padding: 80px 10%;
    padding-bottom: 100px;
    text-align: center;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    transition: all 0.3s ease-in-out;
}

.gallery-item {
    flex: 1 1 250px;
    max-width: 300px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #ccc;
}

/* Media Queries (Flexbox Responsive Gallery Edits Included) */

@media (max-width: 992px) {
    .gallery-container {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        justify-content: center;
    }

    .gallery-item {
        flex: 1 1 100%;
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .gallery-item {
        flex: 1 1 100%;
        max-width: 95%;
    }
}

@media (max-width: 400px) {
    .header {
        font-size: 40px !important;
    }
}

/* Contact Section */
#contact {
    background: linear-gradient(to bottom, #19151b, #250450);
    padding: 80px 10%;
    text-align: center;
	padding-top: 100px;
}

#contact .header {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 40px;
    color: white;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

form .input-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

form .input-box label {
    font-size: 18px;
    color: white;
    opacity: 0.8;
}

form .input-box input,
form .input-box textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    transition: border-color 0.3s ease-in-out;
}

form .input-box input:focus,
form .input-box textarea:focus {
    border-color: #cc17ff;
}

form .input-box textarea {
    resize: vertical;
    min-height: 150px;
}

form .btn {
    font-size: 18px;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 8px;
    background-color: transparent;
    color: white;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

form .btn:hover {
    background-color: white;
    color: var(--background);
}

/* Footer */
footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 160px;
    bottom: 0;
    background-color: var(--second-background);
    width: 100%;
    padding: 50px 15%;
}

.col-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.col-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.col-box i {
    font-size: 32px;
}

.col-box span {
    font-size: 17px;
    font-weight: 400;
    padding-bottom: 16px;
}

.col-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: white;
    max-width: 500px;
}

.col-right span {
    font-size: 22px;
    font-weight: 700;
}

.col-right p {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.7;
}

.social-icons {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.social-icons i {
    font-size: 32px;
    position: relative; 
    background: linear-gradient(to right, #ea7af4, #cc17ff);
    -webkit-background-clip: text; 
    color: transparent; 
    transition: 0.2s ease-in-out;
    cursor: pointer;
}

.social-icons i:hover {
    color: white;  
    background: linear-gradient(to right, #ea7af4, #cc17ff); 
    -webkit-background-clip: text;
}

.social-icons a {
    text-decoration: none;
    color: inherit;
}

/* Cloud movement animation */
@keyframes moveClouds {
    0% {
        background-position: 
            10% 20%, 
            80% 40%, 
            30% 70%, 
            90% 90%; 
    }
    50% {
        background-position: 
            20% 30%, 
            90% 50%, 
            40% 80%, 
            100% 100%; 
    }
    100% {
        background-position: 
            10% 20%, 
            80% 40%, 
            30% 70%, 
            90% 90%; 
    }
}

/* Responsiveness */

@media (max-width: 1200px) {
    section {
        padding: 80px 8%;
    }

    footer {
        gap: 80px;
        padding: 50px 8%;
    }

    /* Video Section */
    .video-container {
        max-width: 90%;
        height: 400px;
    }
}

@media (max-width: 992px) {
    /* Tablet landscape and smaller laptops */
    section {
        padding: 70px 6%;
    }

    /* Navigation */
    nav .links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 16px 5%;
    }

    nav .links.active {
        display: flex;
    }

    nav .btn {
        display: none;
    }

    #menu {
        display: block;
    }

    /* About section */
    #about {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    #about img {
        width: 80%;
        max-width: 350px;
    }

    .skills {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    /* Services and Gallery */
    .service-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    footer {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .col-left, .col-right {
        align-items: center;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Tablet portrait */
    section {
        padding: 60px 5%;
    }

    /* Video Section */
    .video-container {
        height: 350px;
        border-width: 10px;
    }

    /* Services and Gallery */
    .service-container,
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Achievements */
    .achievement-content {
        flex-direction: column;
    }

    .achievement-images {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .achievement-images img {
        max-width: 45%;
        height: auto;
    }

    /* Education */
    .education-info ul li,
    .training-certs ul li {
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) {
    /* Mobile devices */
    section {
        padding: 50px 4%;
    }

    /* Video Section */
    .video-container {
        height: 250px;
        border-width: 8px;
    }

    /* Home Section */
    .info-box h1 {
        font-size: 28px;
    }

    .info-box h3 span {
        font-size: 16px;
    }

    .info-box p {
        font-size: 15px;
    }

    /* About Section */
    .about-box h1 {
        font-size: 32px;
    }

    .about-box h2 {
        font-size: 24px;
    }

    .about-box p {
        font-size: 15px;
    }

    /* Achievements */
    .achievement-images {
        flex-direction: column;
        align-items: center;
    }

    .achievement-images img {
        max-width: 80%;
    }

    /* Services details */
    .detail-item {
        flex: 1 1 100%;
    }

    /* Contact Form */
    form .input-box input,
    form .input-box textarea {
        padding: 10px;
        font-size: 14px;
    }

    form .btn {
        padding: 10px 20px;
        font-size: 16px;
    }
	
    .info-box h1 {
        font-size: 32px; /* was 28px */
    }

    .info-box h3 span {
        font-size: 18px; /* was 16px */
    }

    .info-box p {
        font-size: 16px; /* was 15px */
    }

    .about-box h1 {
        font-size: 36px; /* was 32px */
    }

    .about-box h2 {
        font-size: 26px; /* was 24px */
    }

    .about-box p {
        font-size: 16px; /* was 15px */
    }

    form .input-box input,
    form .input-box textarea {
        font-size: 16px; /* was 14px */
    }

    form .btn {
        font-size: 18px; /* was 16px */
    }

    .col-box span {
        font-size: 16px; /* was 14px */
    }
	
    nav ul a {
        font-size: 18px;
        padding: 12px 0;
    }

    .logo span {
        font-size: 22px;
    }

    #menu {
        font-size: 32px; /* make the hamburger icon bigger */
    }

}

@media (max-width: 400px) {
    /* Small mobile devices */
    .video-container {
        height: 200px;
    }

    .header {
        font-size: 40px !important;
    }

    .logo span {
        font-size: 20px;
    }

    /* Footer contact info */
    .col-box span {
        font-size: 14px;
    }
}

/* Smooth transitions for responsive elements */
#about img,
.service-container,
.gallery-container,
.achievement-content,
.achievement-images,
.detail-item,
footer {
    transition: all 0.3s ease-in-out;
}

/* Ensure images don't exceed container width */
img {
    max-width: 100%;
    height: auto;
}

/* Updated Media Queries */

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Keep existing 1200px styles */
}

/* Medium devices (tablets, 992px to 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    section {
        padding: 70px 5%;
    }
    
    /* Navigation */
    nav .links {
        display: none;
    }
    
    nav .links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        padding: 20px 5%;
        gap: 15px;
    }
    
    #menu {
        display: block;
    }
    
    /* About section */
    #about {
        flex-direction: column;
        text-align: center;
    }
    
    #about img {
        width: 60%;
    }
    
    .skills {
        justify-content: center;
    }
    
    /* Footer */
    footer {
        flex-direction: column;
        gap: 40px;
    }
}

/* Small devices (landscape phones, 576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    section {
        padding: 60px 4%;
    }
    
    /* Video Section */
    .video-container {
        height: 300px;
    }
    
    /* Home Section */
    .info-box h1 {
        font-size: 28px;
    }
    
    .profile-container {
        width: 200px;
        height: 200px;
    }
    
    /* Services and Gallery */
    .service-container,
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    /* Achievements */
    .achievement-content {
        flex-direction: column;
    }
    
    .achievement-images {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .achievement-images img {
        max-width: 45%;
        height: auto;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    section {
        padding: 50px 15px;
    }
    
    /* Navigation */
    nav {
        padding: 10px 15px;
    }
    
    .logo span {
        font-size: 18px;
    }
    
    /* Video Section */
    .video-container {
        height: 200px;
        border-width: 5px;
    }
    
    /* Home Section */
    .info-box h1 {
        font-size: 24px;
    }
    
    .info-box h3 span {
        font-size: 16px;
    }
    
    .profile-container {
        width: 150px;
        height: 150px;
    }
    
    /* About Section */
    #about img {
        width: 80%;
    }
    
    .about-box h1 {
        font-size: 32px;
    }
    
    .skills {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Services */
    .service-container .box {
        padding: 20px;
    }
    
    /* Achievements */
    .achievement-images {
        flex-direction: column;
    }
    
    .achievement-images img {
        max-width: 100%;
    }
    
    /* Contact Form */
    form .input-box input,
    form .input-box textarea {
        padding: 8px;
        font-size: 14px;
    }
    
    /* Footer */
    footer {
        padding: 30px 15px;
    }
    
    .col-box {
        flex-direction: column;
        text-align: center;
    }
    
    .col-box i {
        font-size: 24px;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Special cases for very small screens */
@media (max-width: 400px) {
    .header {
        font-size: 36px !important;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .logo img {
        height: 30px;
    }
    
    #menu {
        font-size: 20px;
    }
}