* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    list-style: none;
}


/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 35px 12%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-sizing: border-box;
    transition: top 0.3s; /* Smooth transition for the navbar */
}

/* Logo Styles */
.logo {
    font-size: 25px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #FF6F61;
    text-shadow: 0 0 25px #FF6F61, 0 0 25px #FF6F61;
    transform: scale(1.1);
}

span {
    color: #FF6F61;
}

/* Navbar Link Styles */
.navbar a {
    font-size: 18px;
    color: white;
    font-weight: 500;
    margin: 0 20px;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: #FF6F61;
    border-bottom: 3px solid #FF6F61;
}

/* Hamburger Menu (Hidden by Default) */
.hamburger {
    display: none;
    font-size: 2em;
    color: white;
    cursor: pointer;
    background: transparent;
    border: none;
}

/* Navbar Layout for Larger Screens */
@media (min-width: 768px) {
    .navbar {
        display: flex;
        gap: 2em;
    }

    .hamburger {
        display: none; /* Hide the hamburger menu on larger screens */
    }
}

/* Navbar Layout for Small Screens (Phones) */
@media (max-width: 768px) {
    .navbar {
        display: none; /* Hide navbar by default */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2em;
    }

    .navbar a {
        font-size: 1.5em;
    }

    .contact {
        font-size: 1.5em;
        color: white;
        text-align: center;
        display: block;
    }

    /* Show hamburger on small screens */
    .hamburger {
        display: block;
    }

    /* Show navbar when hamburger is active */
    .hamburger.active + .navbar {
        display: flex;
    }
}






/* sf hta lhna */




.contact {
    padding: 10px 28px;
    background-color: white;
    color: black;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 600;
    transition: 0.3s ease;
}

.contact:hover {
    background-color: #FF6F61;
    box-shadow: 0 0 25px #FF6F61;
    color: white;
}

.home {
    width: 100%;
    min-height: 100vh;
    background: rgb(241, 241, 241);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5em;
    padding: 100px 12% 0;
    flex-wrap: wrap;
    position: relative;
}

.home-content {
    max-width: 800px;
    flex: 1;
}

.home-content h3 {
    font-size: 42px;
}

.home-content h1 {
    font-size: 62px;
    line-height: 1.1;
}

.home-content p {
    font-size: 20px;
    line-height: 1.2;
    margin: 25px 0 30px;
}

.btn-box {
    width: 345px;
    display: flex;
    gap: 2em;
}

.btn-1, .btn-2 {
    padding: 15px 28px;
    font-size: 18px;
    border-radius: 8px;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn-1 {
    background-color: black;
    color: white;
    border: 2px solid transparent;
}

.btn-1:hover {
    background-color: white;
    color: black;
    border: 2px solid black;
}

.btn-2 {
    background-color: #FF6F61;
    color: white;
    border: 2px solid black;
}

.btn-2:hover {
    background-color: white;
    color: #FF6F61;
}

.img-box {
    border-radius: 50%;
    width: 450px;
    flex-shrink: 0;
}

.img-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
}

/* Responsive Design */

@media (max-width: 1024px) {
    .home {
        flex-direction: column;
        text-align: center;
        gap: 2em;
    }
    .home-content {
        max-width: 100%;
    }
    .img-box {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .home {
        padding: 100px 5% 0;
    }
    .home-content h3 {
        font-size: 32px;
    }
    .home-content h1 {
        font-size: 40px;
    }
    .home-content p {
        font-size: 18px;
    }
    .img-box {
        display: none;
    }
}

@media (max-width: 480px) {
    .home-content h3 {
        font-size: 28px;
    }
    .home-content h1 {
        font-size: 36px;
    }
    .home-content p {
        font-size: 16px;
    }
    .btn-box {
        flex-direction: column;
        align-items: center;
    }
    .img-box {
        display: none;
    }
}


::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-thumb {
    background-color: #FF6F61;
}

::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .home {
        flex-direction: column;
        gap: 2em;
    }
    
    .home-content h1 {
        font-size: 48px;
    }
    
    .btn-box {
        flex-direction: column;
        gap: 1.5em;
    }
}

.btn-1:focus,
.btn-2:focus {
    outline: none;
    border: 2px solid #FF6F61;
}


/* about me */


.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Stack items on mobile */
    padding: 10% 8%;
    gap: 3em;
    background: black;
}

.about-img img {
    width: 100%;
    max-width: 550px;
    box-shadow: 0 0 25px #FF6F61, 0 0 25px #FF6F61;
    border-radius: 50%;
    transition: transform 0.3s ease; /* Smooth image hover effect */
}

.about-img img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

.about-content {
    text-align: center;
}

.about-content h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 3em;
    margin-top: -120px;
}

.about-content h3 {
    font-size: 48px;
    color: white;
    margin-bottom: 1em;
    margin-top: 1em;
}

.about-content p {
    color: white;
    font-size: 20px;
    margin: 20px 0;
    line-height: 1.5;
    padding-bottom: 40px;
}

/* 🌍 Responsive Adjustments */
@media (max-width: 768px) {
    .about {
        flex-direction: column;
        gap: 2em;
        padding: 8% 5%;
    }

    .about-img img {
        max-width: 100%;
    }

    .about-content h2 {
        font-size: 30px;
    }

    .about-content h3 {
        font-size: 40px;
    }

    .about-content p {
        font-size: 18px;
    }
}



/* contact form*/

.contact-section {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.contact-intro > * + * {
    margin-top: 1rem;
}

.contact-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    text-align: center;
}

.contact-description {
    color: rgb(107 114 128);
    text-align: center;
}

/* Form Layout */
.form-group-container {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Input Fields */
.form-input,
.form-textarea {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    height: 2.75rem;
    width: 100%;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: 0.3s;
}

/* Placeholder Style */
.form-input::placeholder,
.form-textarea::placeholder {
    color: #6b7280;
    opacity: 0.8;
}

/* Focus Effect */
.form-input:focus-visible,
.form-textarea:focus-visible {
    outline: 2px solid #FF6F61;
    outline-offset: 2px;
    border-color: #FF6F61;
}

/* Textarea */
.form-textarea {
    min-height: 120px;
}

/* Submit Button */
.form-submit {
    width: 100%;
    margin-top: 1.2rem;
    background-color: #FF6F61;
    color: #fff;
    padding: 13px 5px;
    border: none;
    border-radius: 0.375rem;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.form-submit:hover {
    background-color: #ffffff;
    border: 2px solid #FF6F61;
    color: #FF6F61;
}

/* Responsive Design */
@media (max-width: 600px) {
    .contact-section {
        padding: 2rem 1rem;
    }

    .contact-title {
        font-size: 1.5rem;
    }
}


  
/*               foooooooooooooter         */



.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: black;
}
.footer .social {
    text-align: center;
    padding-bottom: 25px;
    color: white;
}
.footer .social a{
    font-size: 24px;
    color: white;
    border: 2px solid #FF6F61;
    width: 40px;
    height: 40px;
    line-height: 38px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 8px;
    box-shadow: inset 0 0 10px #FF6F61, 0 0 10px #FF6F61;
    transition: 0.3s ease;
}
.footer .social a:hover {
    transform: scale(1.2)translateY(-10px);
    color: #FF6F61;
    border: 2px solid #FF6F61;
}
.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}
.footer ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}
.footer ul li a:hover {
    border-bottom: 3px solid #FF6F61;
}
.footer ul li{
    display: inline-block;
    padding: 0 15px;
}
.footer .copyright{
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
    color: white;
}





.services-section {
    display: grid; /* Use grid layout */
    grid-template-columns: repeat(2, 1fr); /* 2 columns of equal width */
    gap: 2em; /* Space between cards */
    padding: 5% 8%; /* Padding around the section */
}

.services-content h2 {
    text-align: center;
    margin-top: 3em;
    font-size: 36px;
    color: rgb(0, 0, 0);
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space out items vertically */
    align-items: center;
    width: 100%; /* Full width in grid cell */
    height: 400px; /* Taller cards for larger content */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.card:hover {
    transform: translateY(-5px);
    box-shadow:0 0 25px #FF6F61, 0 0 25px #FF6F61;
}

.card img {
    width: 80px; /* Larger icons */
    height: 80px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5em; /* Bigger headings */
    margin: 10px 0;
}

.card p {
    color: #666;
    font-size: 1em;
    margin: 15px 0;
    flex-grow: 1; /* Pushes button to the bottom */
}

.card button {
    padding: 10px 28px;
    background-color: black;
    color: white;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 600;
    transition: 0.3s ease;
}

.card button:hover {
    background-color: white;
    color: black;
    border: 2px solid black;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .services-section {
    grid-template-columns: 1fr; /* Switch to 1 column on smaller screens */
    gap: 1.5em;
  }

  .card {
    height: auto; /* Let cards adjust height on smaller screens */
  }
}

/* Education section */

.education {
    margin: 0;
    font-family: sans-serif;
    color: #fff;
    padding: 2em;
    background-size: cover;
    background-color: black;
}

.education p {
    padding-top: 12px;
    font-size: large;
    line-height: 1.6;
}

.title {
    text-align: center;
    margin-top: 2em;
    margin-bottom: 1.5em;
    font-size: 36px;
}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 1200px; /* Limits width for readability */
    margin: 4em auto;
}

.timeline::before {
    content: "";
    position: absolute;
    width: 3px;
    background: #888;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.checkpoint {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    position: relative;
    padding: 2em 0;
}

.checkpoint:nth-child(even) {
    justify-content: flex-end;
}

.checkpoint div {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #888;
    border-radius: 1em;
    padding: 1.5em;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

/* Circular checkpoint indicators */
.checkpoint::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: #888;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .title {
        font-size: 28px;
    }
    .timeline::before {
        left: 10px;
        transform: none;
    }
    .checkpoint {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 2em;
    }
    .checkpoint:nth-child(even) {
        justify-content: flex-start;
    }
    .checkpoint div {
        max-width: 100%;
    }
    .checkpoint::before {
        left: 10px;
    }
}


/* Skills Section */

.skills {
    padding: 50px 20px;
    background: linear-gradient(135deg, black, #ac4e46);
    color: white;
    text-align: center;
}

.skills h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.skill h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.skill p {
    font-size: 1em;
    line-height: 1.5;
    color: #ffffff;
}
.skill i {
    padding-bottom: 2vh;
}
html {
    scroll-behavior: smooth;
}



/* Return to Top Button Styles */

* {
	margin: 0;
	padding: 0;
	font-family: 'Poppins', sans-serif;
}
html {
	scroll-behavior: smooth;
}
.homepage {
	height: 75vh;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	text-transform: uppercase;
	letter-spacing: 8px;
	background-image: url(https://images.pexels.com/photos/5399117/pexels-photo-5399117.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940);
	-webkit-background-size: cover;
	background-size: cover;
	background-position: center center;
}
.homepage h1 {
	color: #fff;
}
.box {
	padding: 60px;
}
.box h2 {
	text-align: center;
	text-transform: uppercase;
	font-size: 50px;
}
.box h2:before {
	content: '-';
	color: #262626;
	font-weight: 400;
}
.box h2:after {
	content: '-';
	color: #262626;
	font-weight: 400;
}
.box p {
	line-height: 2.2;
}
.scrollTop {
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 35px;
	color: #fff;
	text-decoration: none;
	opacity: 0;
	pointer-events: none;
	transition: all .4s;
	background: #FF6F61;
	position: fixed;
	bottom: 16px;
	right: 32px;
	height: 60px;
	width: 60px;
	border-radius: 5px;
    z-index: 10;
}
.scrollTop.active {
	bottom: 32px;
	pointer-events: auto;
	opacity: 1;
	transform: translateY(-50px);
}


/* Navbar styles for smooth transitions */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 35px 12%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-sizing: border-box;
    transition: top 0.3s; /* Smooth transition for the navbar */
}




