@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: auto;
    background-color: black;
    overflow-x: hidden;
    color: white;
}

/* Custom Scrollbar CSS */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 12px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #c9302f;
}

/* Navigation Bar */
nav {
    width: 100%;
    height: 10vh;
    background-color: #1f1f1f; /* Added background color */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 10px #04BFAD;
}

.hamburger {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: white;
    font-size: 1.5rem; /* Increased size for better visibility */
    transition: opacity 0.3s ease;
    display: none; /* Hidden by default, shown on mobile */
}

.cancel {
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    position: absolute;
    top: 10px;
    right: 15px;
    display: none;
}

.nav-container .links {
    display: flex;
    gap: 20px; /* Added space between links */
}

.nav-container .links a {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-container .links a:hover {
    color: #04BFAD;
}

/* Dropdown Menu Styling */
.dropdown {
    display: none; /* Hidden initially for mobile view */
    position: absolute;
    top: 10vh; /* Adjusted position from top */
    left: 0;
    right: 0;
    background-color: #1f1f1f; /* Matches the navbar background */
    padding: 15px 0;
    border-top: 1px solid #b74b4b; /* Subtle border to match theme */
    z-index: 9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0; /* Initially hidden */
    transform: translateY(-20px); /* Start slightly above */
}

.dropdown.active {
    display: block;
    opacity: 1; /* Fade-in effect */
    transform: translateY(0); /* Move into place */
}

.dropdown .links {
    display: flex;
    flex-direction: column; /* Stacked links */
    align-items: center; /* Center links horizontally */
    gap: 15px; /* Space between links */
}

.dropdown .links a {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dropdown .links a:hover {
    background-color: #b74b4b; /* Hover effect to match theme */
    color: #fff; /* White text on hover */
}

.dropdown .cancel {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    color: white;
    font-size: 1.8rem; /* Increased size for better visibility */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.dropdown .cancel:hover {
    opacity: 1; /* Slight opacity change on hover */
}

/* Media query for small screens */
@media screen and (max-width: 768px) {
    .dropdown {
        width: 100%; /* Ensure dropdown takes full width */
    }
}
/* Media query for small screens */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block; /* Show hamburger on mobile */
    }

    .nav-container .links {
        display: none; /* Hide links on mobile */
    }

    .dropdown.active {
        display: block; /* Show dropdown when active */
    }

    .cancel {
        display: block; /* Show close button */
    }
}

/* Show the regular navigation menu on larger screens */
@media only screen and (min-width: 769px) {
    .hamburger {
        display: none; /* Hide hamburger on larger screens */
    }

    .nav-container .links {
        display: flex; /* Show links on larger screens */
    }

    .dropdown {
        display: none; /* Hide dropdown on larger screens */
    }
}


/* Main Section */
.main-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10vh 20px 5vh 20px; /* Adjusted to create space at the top for the nav */
}

.image img {
    width: 84%;
    height: auto;
    border-radius: 15px;
    border: 5px solid #04BFAD; /* Add this line to give the image a border */
}


.content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.content span {
    color:#58ebff ;
}

.typewriter {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
}

.social-links a:hover {
    color: #04BFAD;
}

.btn button {
    background-color: #012623;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn button:hover {
    background-color: #c9302f;
}

/* About Section */
.about {
    background: linear-gradient(to right, #1e1e1e, #292929);
    padding: 8vh 30px;
    color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about .content {
    max-width: 900px;
}

.about .topic {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #58ebff;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 30px;
}

.about strong {
    color: #ffffff;
    font-weight: 600;
}

.about .button button {
    background: #58ebff;
    color: #1f1f1f;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 235, 255, 0.3);
}

.about .button button:hover {
    background: #3ad7eb;
    transform: translateY(-2px);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .about .topic {
        font-size: 1.8rem;
    }

    .about p {
        font-size: 1rem;
    }

    .about .button button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}



.skills {
    background-color: #1e1e1e;
    padding: 6vh 20px;
    color: #f4f4f4;
    font-family: 'Poppins', sans-serif;
}

.skills .title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: #00d8c0;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.skills-details {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
}

.skills-details .text {
    flex: 1 1 320px;
    min-width: 300px;
}

.skills-details .topic {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.skills-details p {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 25px;
}

.skills-details .boxes {
    flex: 1 1 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    min-width: 300px;
}

.skills-details .box {
    background-color: #292929;
    padding: 25px 20px;
    width: 48%;
    border-radius: 12px;
    text-align: center;
    color: #f9f9f9;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: default;
}

.skills-details .box:hover {
    transform: translateY(-10px);
    background-color: #333;
}

.skills-details .box .topic {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #00d8c0;
    letter-spacing: 0.8px;
}

.skills-details .box .per {
    font-size: 2.4rem;
    font-weight: 700;
    color: #04BFAD;
}

/* Specialized skills - service boxes */
.skills > .content > .title:nth-of-type(2) {
    margin-top: 60px;
    margin-bottom: 40px;
    color: #58ebff;
}

.skills > .content > .boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.skills > .content > .boxes .box {
    background: #333;
    width: 250px;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: default;
    color: #f0f0f0;
    text-align: center;
}

.skills > .content > .boxes .box:hover {
    transform: translateY(-12px);
    background-color: #444;
    border-top: 4px solid #58ebff;
}

.skills > .content > .boxes .box .icon {
    font-size: 3.2rem;
    color: #58ebff;
    margin-bottom: 18px;
}

.skills > .content > .boxes .box .topic {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.skills > .content > .boxes .box p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.5;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .skills-details {
        flex-direction: column;
        align-items: center;
    }

    .skills-details .box,
    .skills > .content > .boxes .box {
        width: 90%;
    }
}


/* Services Section */
.services {
    background: linear-gradient(to right, #1f1f1f, #2e2e2e);
    padding: 6vh 30px;
    color: #fff;
}

.services .title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 40px;
}

.services .boxes {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.services .box {
    background: #333;
    padding: 30px 25px;
    width: 260px;
    border-radius: 15px;
    text-align: center;
    color: #f0f0f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    border-top: 4px solid transparent;
}

.services .box:hover {
    transform: translateY(-12px);
    background: #444;
    border-top: 4px solid #58ebff;
}

.services .icon {
    font-size: 3rem;
    color: #58ebff;
    margin-bottom: 20px;
}

.services .topic {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.services p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .services .boxes {
        flex-direction: column;
        align-items: center;
    }

    .services .box {
        width: 90%;
    }

    .services .title {
        font-size: 2rem;
    }
}

/* Work I've Done Section */
.work-done {
    padding: 60px 20px;
    background-color: #111;
    color: #fff;
    text-align: center;
}

.work-done .section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #00ffd5;
}

.work-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.work-card {
    background-color: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    width: 380px; /* Increased from 320px */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 6px 25px rgba(0, 255, 213, 0.3);
}

.work-card img {
    width: 100%;
    display: block;
    height: auto;
    border-bottom: 2px solid #04BFAD;
}

.work-description {
    padding: 20px;
    font-size: 1.2rem;
    color: #ddd;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .work-grid {
        flex-direction: column;
        align-items: center;
    }

    .work-card {
        width: 90%;
    }
}


/* Contact Section */
/* Contact Section */
.contact {
    background: #1c1c1c;
    padding: 8vh 30px;
    color: #f5f5f5;
    text-align: center;
}
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    background: #2e2e2e; /* Form background color */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.contact .title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #58ebff;
    font-weight: bold;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.info-box {
    background: #2e2e2e;
    padding: 20px 25px;
    border-radius: 10px;
    width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
}

.info-box .icon {
    font-size: 2rem;
    color: #58ebff;
    margin-bottom: 10px;
}

.info-box h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.info-box p {
    font-size: 1rem;
    color: #ccc;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #eee;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    background: #333;
    color: #f5f5f5;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border: 2px solid #58ebff;
}

.contact .button {
    text-align: center;
}

.contact .button button {
    background: #58ebff;
    color: #1f1f1f;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 235, 255, 0.3);
}

.contact .button button:hover {
    background: #3ad7eb;
    transform: translateY(-2px);
}

/* Optional Spinner / Response Styling */
.loading-spinner {
    display: none; /* Controlled via JS */
    width: 30px;
    height: 30px;
    margin: 20px auto;
    border: 4px solid #ccc;
    border-top: 4px solid #58ebff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.response-message {
    margin-top: 20px;
    text-align: center;
    color: #58ebff;
    font-weight: 500;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .info-box {
        width: 90%;
    }

    .contact .title {
        font-size: 2rem;
    }
}

/* Footer */
footer {
    background-color: #1f1f1f;
    padding: 20px;
    text-align: center;
    color: white;
}

footer a {
    color: #04BFAD ;
    text-decoration: none;
}

/* Pop-up message container */
.popup-message {
    display: none; /* Initially hidden */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #b74b4b; /* Match scrollbar thumb color */
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 1000; /* Ensure the pop-up appears above other elements */
    font-size: 16px;
    width: 300px;
}

/* Show pop-up message */
.popup-message.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Fade-in animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

   /* Add styles for loading spinner and messages */
   .loading-spinner {
    display: none;
    width: 30px;
    height: 30px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #b74b4b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.response-message {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.response-message.success {
    background-color: #c9302f;
    color: #fff;
    border: 1px solid #c9302f
}

.response-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Center the image for mobile screens (412x915 and smaller) */
@media screen and (max-width: 412px) {
    .main-container {
        flex-direction: column; /* Stack content vertically */
        align-items: center;   /* Center-align the content */
        justify-content: center; /* Center-align the items */
        text-align: center; /* Align text in the center */
    }

    .image img {
        width: 60%; /* Reduce image width for smaller screens */
    }
}
