/* General Styles */
body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    background-color: #060606;
    color: #c7c7c7;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000; 
    background: rgba(0, 0, 0, 0.3); 
    backdrop-filter: blur(7px); 
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    transition: background 0.3s ease-in-out; /* Smooth transition */
}

/* Push content down so it doesn't get hidden under the fixed header */
body {
    padding-top: 70px; /* Adjust according to the header height */
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 40px; /* Adjust logo size */
    height: auto;
    margin-right: 10px; /* Space between logo and text */
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    margin-left: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin-right: 20px;
}

nav ul li {
    display: inline;
    margin-left: 15px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

/* Hero Section */
#hero {
    background: url('hero-background.jpg') no-repeat center center/cover; /* Replace 'your-image.jpg' with the actual image path */
    padding: 150px 20px;
    margin-top: 0; /* Removes space between header and hero section */
    color: #ffffff;
    text-align: center;
    position: relative;
}

/* Adding an overlay for better text visibility */
#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* Dark overlay to improve contrast */
    z-index: 1;
}

#hero h2 {
    font-size: 64px; /* Keep this size for the heading */
    font-weight: bold;
    line-height: 0.5;
    color: white !important;
    z-index: 2;
}

#hero p {
    font-size: 18px; /* Smaller font size for the paragraph below */
    max-width: 600px; /* Keeps text readable */
    margin: 10px auto; /* Centers the paragraph */
    line-height: 1.25;
    z-index: 2;
}

@keyframes typing {

from {

    width: 0;

}

to {

    width: 100%;

}

}

@keyframes blink {

50% {

    border-color: transparent;

}

}

.typing-text {

display: inline-block;

white-space: nowrap;

overflow: hidden;

border-right: 3px solid orange; /* Simulates a blinking cursor */

width: 0;

animation: typing 3s steps(40, end) forwards, blink 0.7s infinite 2s;
}

/* About Section */
#about {

    padding: 100px 20px;
    color: #ffffff;
    position: relative;
}

#about h2, #about-text {
    position: relative;
    z-index: 2;
    font-size: 2em;
    color: orange;
}

#about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-me {
    text-align: center;
    margin: 50px 0;
}

.section-title {
    font-size: 2em;
    margin-bottom: 20px;

}
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    max-width: 80%;
    margin: auto;
    gap: 40px; /* Adds space between text and image */
}

.about-image {
    width: 250px;
    height: auto;
    border-radius: 10px;
}

.about-text {
    flex: 1;
    font-size: 1.4em;
    height: 120px;
    max-width: 500px; /* Ensures text wraps properly */
    line-height: 1.6; /* Improves readability */
    text-align: justify; /* Justifies the text */
    color: #c7c7c7;
}

/* Services Section */
#services {
    padding: 50px 20px;
    color: #ffffff;
    position: relative;
}

#services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    z-index: 1;
}

/* Services Grid */
.services-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    padding: 20px;
    max-width: 70%;
    margin: auto;
}

.service-box {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-box img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

#services p {
    position: relative;
    z-index: 2;
    color: #c7c7c7;
    margin-left: 20px;
    margin-right: 20px;
    font-size: 16px; /* Match the size of the Contact heading */
}


#services h2 {
    position: relative;
    z-index: 2;
    color: orange;
    font-size: 2em; /* Match the size of the Contact heading */
}

#services h3 {
    font-size: 23px;  
  color: #ffffff;
line-height: 1.0;
}

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    display: block; /* Ensures it doesnâ€™t get hidden */
}
.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}



/* Contact Section */
#contact {
    text-align: center;
    color: orange;
    padding: 50px 0;
}

/* Contact container */
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 800px;
    margin: 0 auto;
    gap: 30px;
}

/* Contact form */
#contact {
    text-align: center;
    color: white;
    padding: 50px 0;
}

/* Contact container layout */
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 800px;
    margin: 50px auto;
    gap: 120px; /* 3x the original gap */
}


/* Contact form */
.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-right: 50px; /* Add space without affecting overall width */
}


/* Name fields */
.full-name {
    width: 100%; /* Makes it match other input fields */
    padding: 12px;
    background: #222;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 5px;
}


/* Input fields */
.contact-form input,
.contact-form textarea {
    width: 120%; /* 1.3x wider */
    max-width: 520px; /* Prevents it from stretching too much on large screens */
    padding: 12px;
    background: #222;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 5px;
}

/* Email & Message box width fix */
.contact-form input[type="email"],
.contact-form textarea {
    width: 120%; /* Removed unnecessary calc */
    max-width: 500px;
}

/* Increased message box height */
.contact-form textarea {
    display: block;
    height: 180px;
  
}

/* Send button */
.contact-form button {
    align-self: flex-end; /* Aligns button to the right */
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    display: block;
    width: auto; /* Keeps button width natural */
    margin-top: 10px; /* Adds space between message box and button */
}



/* Contact info */
.contact-info {
    flex: 1;
    text-align: left;
    padding: 20px;
    color: white;
    font-size: 16px;
}

#contact h2 {
    font-size: 2em;
    color: orange;
}

#contact h3 {
    color: orange;
}


@media (max-width: 768px) {	
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-box {
        width: 100%;
        margin-bottom: 20px;
    }
    
    footer {
        margin-top: 50px; /* Ensures footer doesn't overlap content */
    }
}
.contact-form button {
    background-color: white;  /* Initial white background */
    color: black;  /* Black text */
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth transition */
}

.contact-form button:hover {
    background-color: orange; 
}



nav ul li a:hover {
    color: orange;
}

/* Hide the menu button by default */
.menu-toggle {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-right: 20px;
}

/* Mobile menu styles */
@media (max-width: 768px) {
     header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
    padding: 15px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000; /* Ensures it stays above other content */
    background: rgba(0, 0, 0, 0.3); 
    backdrop-filter: blur(7px); 
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    transition: background 0.3s ease-in-out;
}

/* Push content down so it doesn't get hidden under the fixed header */
body {
    padding-top: 70px; /* Adjust according to the header height */
}

.logo {
    font-size: 10px;
    font-weight: bold;
    color: #ffffff;
    margin-left: 20px;
}

    .services-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%; /* Make sure grid takes full width */
        max-width: 100%; /* Prevents extra margin from `max-width: 70%` */
        padding: 0 20px; /* Adds padding instead of reducing width */
    }

    .service-box {
        width: 90%; /* Adjusted width to avoid overflow */
        max-width: 400px; /* Ensures they don’t stretch too much */
        margin: 0 auto; /* Centers the box */
    }
	
    nav ul {
        display: none; /* Hide menu by default */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #000;
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .menu-toggle {
        display: block; /* Show menu button */
    }

    nav.active ul {
        display: flex; /* Show menu when active */
    }
    
    #hero h2 {
    font-size: 24px; /* Keep this size for the heading */
    font-weight: bold;
    line-height: 1.0;
}

	
    #hero p {
    font-size: 12px; /* Smaller font size for the paragraph below */
    max-width: 600px; /* Keeps text readable */
    margin: 10px auto; /* Centers the paragraph */
    line-height: 1.25;

    }
     .typing-text {
        display: block;
        white-space: normal;
        overflow: visible;
        width: auto; /* Show full text immediately */
        border-right: none; /* Remove cursor */
        animation: none; /* Disable typing animation */
     }	
	
    .about-container {
        flex-direction: column; /* Stack items vertically */
        text-align: center; /* Center the text */
    }

    .about-image {
        width: 150px; /* Adjust image size for mobile */
        height: auto;
        margin-bottom: 20px; /* Adds space between image and text */
    }

    .about-text {
        margin: 0 40px;
	text-align: center; /* Centers the text */
        font-size: 1.2em;
        max-width: 90%; /* Keeps text from stretching too wide */
    }
}
    
    .about p {
    font-size: 16px; /* Smaller font size for the paragraph below */
    max-width: 600px; /* Keeps text readable */
    margin: 10px auto; /* Centers the paragraph */
    line-height: 1.5;
}

}

#contactForm {
    max-width: 100%;
    padding: 0;
    margin: 0;
}


input, textarea {
    width: 100%; /* Makes them fit within the form */
    max-width: 350px; /* Prevents them from stretching too much */
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

button {
    background: #4277fc;
    color: #000;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}





#hero, #about, #skills, #contact {
    background-size: cover; /* Ensures the image covers the full section */
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw; /* Forces full viewport width */
}

/* Footer */
footer {
    background: #000;
    padding: 20px;
    bottom: 0;
    width: 100%;
    position: relative; /* Change from fixed to relative */
    text-align: center;
}

* {
    max-width: 100vw; /* Prevents elements from being wider than the viewport */
    box-sizing: border-box; /* Ensures padding/borders don't increase element size */
}
 

footer p {
    margin: 0;
}
