/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

header {
    text-align: center;
    padding: 50px;
    background: #1a1a2e;
    color: white;
}

header h1 {
    font-size: 2.5rem;
}

header .dynamic-text {
    font-style: italic;
    animation: fadeIn 3s ease-in-out;
}

/* About Section */
#about {
    padding: 50px;
    text-align: center;
}

#about .profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-top: 20px;
}

/* Skills Section */
#skills {
    padding: 50px;
    background: #f4f4f4;
    text-align: center;
}

/* Skills List */
.skills-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px; /* Space between each skill */
}

/* Skill Box */
.skill {
    background: #333;
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 120px; /* Adjust width to fit logo and text */
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

/* Icon size */
.skill i {
    font-size: 3rem; /* Larger icon size */
    margin-bottom: 10px;
}

/* Hover effect */
.skill:hover {
    background: #e6082d;
    transform: scale(1.1);
}

.skill h3 {
    margin-top: 10px;
    font-size: 1rem;
}


/* Portfolio Section */
#portfolio {
    padding: 50px;
}

.projects {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project {
    width: calc(50% - 10px);
    background: #f4f4f4;
    border: 1px solid #ddd;
    padding: 15px;
}

.project-image {
    width: 20%;
    height: auto;
    border-radius: 10px;
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, #0f3460, #16213e);
    padding: 40px;
    color: white;
    text-align: center;
    border-radius: 10px;
    margin: 50px 20px;
}

form input, form textarea {
    width: 70%; /* Reduced width for better proportions */
    max-width: 400px; /* Limit max width */
    padding: 10px; /* Reduced padding */
    margin: 8px auto; /* Smaller margin for compact spacing */
    display: block;
    border: none;
    border-radius: 5px;
    background: #d7dfdb;
    color: white;
    font-size: 0.9rem; /* Slightly smaller font */
}

form input:focus, form textarea:focus {
    outline: none;
    background: #e6ebe9;
    color: white;
    border: 2px solid #e94560;
}

form button {
    padding: 10px 25px; /* Reduced button size */
    background: #af0020;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem; /* Smaller font size for the button */
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

form button:hover {
    background: #1a1a2e;
    transform: scale(1.05);
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between; /* Space between logo and menu */
    align-items: center;
    padding: 15px 30px;
    background: #1a1a2e; /* Keep the dark background color */
    color: white;
    position: sticky;
    top:0;
    z-index: 1000;
    border: 2px solid rgb(220 220 255); /* Add white border around the entire nav */
    border-radius: 10px; /* Optional: Rounded corners for the nav box */
}

/* Navigation links container */
nav .nav-links {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    margin-left: 300px; /* Pushes the nav links to the right    this is what i need */ 
}

/* Navigation links style */
nav .nav-links li {
    display: inline-block;
}

nav .nav-links a {
    text-decoration: none;
    color: white;
    padding: 8px 12px;
    transition: background 0.3s;
    border-radius: 5px; /* Rounded corners for the links */
}

/* Hover effect for links */
nav .nav-links a:hover {
    background: #e94560;
    border-radius: 5px;
}

/* Logo Styling */
nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
}


/* Responsive Navigation */
@media (max-width: 768px) {
    nav {
        flex-direction: column; /* Stack navigation links vertically */
        align-items: center;
    }

    nav .nav-links {
        display: flex;
        flex-direction: column; /* Stack links vertically */
        gap: 10px;
    }

    nav .nav-links a {
        font-size: 1rem; /* Adjust font size */
        padding: 10px 0;
    }

    .logo {
        font-size: 1.5rem; /* Resize logo */
        margin-bottom: 10px;
    }
}

/* Sticky Navbar Effect */
nav.sticky {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Add spacing below nav */
body {
    margin-top: 60px; /* Adjust margin to avoid overlap */
}

/* Services Section */
#services {
    background: linear-gradient(135deg, #16213e, #1a1a2e);
    color: white;
    padding: 50px 20px;
    text-align: center;
    border-radius: 10px;
}

.services-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.service {
    background: #0f3460;
    color: white;
    padding: 20px;
    width: 300px; /* Set width for desktop */
    border-radius: 10px;
    transition: transform 0.3s, background 0.3s;
}

.service h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service:hover {
    background: #e94560;
    transform: scale(1.1);
}

/* General Button Styling */
button {
    font-family: 'Poppins', sans-serif; /* Add custom font */
    letter-spacing: 1px;
}

h2 {
    font-size: 2rem;
    color: #e94560;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.8;
    background: #f4f4f4; /* Softer background for contrast */
}

p {
    color: #555; /* Softer text for readability */
}

/* Responsive Navigation */
@media (max-width: 768px) {
    nav {
        flex-direction: column; /* Stack navigation links */
        align-items: center; /* Center links */
        padding: 10px 0;
    }

    nav .nav-links {
        display: flex;
        flex-direction: column; /* Stack links vertically */
        gap: 10px;
        padding: 0;
        margin: 0;
    }

    nav .nav-links a {
        font-size: 1rem; /* Adjust font size */
        padding: 10px 15px; /* Adjust padding */
        width: 100%; /* Take full width */
        text-align: center; /* Center text */
    }

    .logo {
        font-size: 1.5rem; /* Resize logo */
        margin-bottom: 10px;
    }

    body {
        font-size: 0.9rem; /* Slightly smaller font size */
    }

    h1, h2, h3 {
        font-size: 1.5rem; /* Adjust heading sizes */
    }
}

/* Navigation Layout for Larger Screens */
@media (min-width: 769px) {
    .nav-links {
        display: flex; /* Show links inline for larger screens */
        flex-direction: row;
        gap: 20px;
    }

    .nav-links a {
        padding: 10px 15px; /* Normal spacing for desktop */
    }
}

/* Responsive Services Section */
@media (max-width: 768px) {
    .service {
        width: 80%; /* Adjust width for mobile screens */
        margin-bottom: 20px; /* Add margin for spacing */
    }
}





/* CSS */
.social-media {
    text-align: center;
    margin: 40px 0;
}

.social-icon {
    text-decoration: none;
    font-size: 2rem;
    margin: 0 15px;
    padding: 10px;
    border-radius: 10%;
    display: inline-block;
    transition: transform 0.3s, background 0.3s;
    color: white;
}

.social-icon.facebook {
    background: #3b5998;
}

.social-icon.facebook:hover {
    background: #2d4373;
    transform: scale(1.1);
}

.social-icon.twitter {
    background: #1da1f2;
}

.social-icon.twitter:hover {
    background: #1a91d0;
    transform: scale(1.1);
}

.social-icon.linkedin {
    background: #0077b5;
}

.social-icon.linkedin:hover {
    background: #005c8d;
    transform: scale(1.1);
}

.social-icon.github {
    background: #333;
}

.social-icon.github:hover {
    background: #444;
    transform: scale(1.1);
}

.social-icon:hover {
    color: white;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .social-media {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    .social-icon {
        font-size: 1.5rem;
        padding: 12px;
    }
}

/* Footer Styling */
footer {
    background-color: #1a1a2e; /* Dark background for footer */
    color: white; /* White text for contrast */
    text-align: center; /* Center-align the text */
    padding: 20px 0; /* Add some padding around the text */
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 0.9rem; /* Adjust font size for copyright text */
    border-top: 2px solid #e94560; /* Add a thin top border for separation */
}

/* Ensure the text is responsive and looks good on mobile */
footer p {
    margin: 0;
}

/* Optional: Add hover effect to the copyright text */
footer p:hover {
    color: #e94560; /* Change color when hovered */
    cursor: pointer;
}

/* Clock Styling */
#clock {
    color: white; /* White text for contrast */
    font-size: 1rem; /* Adjust font size */
    margin-left: auto; /* Push the clock to the right */
    padding: 8px 15px; /* Add some padding for spacing */
    border: 1px solid white; /* Optional: Add a white border */
    border-radius: 5px; /* Rounded edges */
    background: #0f3460; /* Background color for clock */
    font-family: 'Poppins', sans-serif; /* Match the navbar font */
}


/* Popup Container */
.popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a2e, #0f3460); /* Gradient background */
    color: white;
    padding: 30px 50px;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    z-index: 9999; /* Always on top */
    text-align: center;
    width: 400px; /* Larger width */
    animation: fadeIn 0.5s ease-in-out;
  }
  
  /* Popup Content Styling */
  .popup-content h2 {
    font-size: 2rem; /* Bigger headline */
    color: #e94560; /* Vibrant accent color */
    margin-bottom: 10px;
  }
  
  .popup-content p {
    font-size: 1.2rem; /* Larger paragraph font */
    line-height: 1.6;
    color: #f3f3f3; /* Softer white for text */
  }
  
  /* Popup Animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translate(-50%, -55%);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%);
    }
  }
  
  @keyframes fadeOut {
    from {
      opacity: 1;
      transform: translate(-50%, -50%);
    }
    to {
      opacity: 0;
      transform: translate(-50%, -45%);
    }
  }
  
  /* Fade-out Animation Class */
  .popup-container.fade-out {
    animation: fadeOut 0.5s ease-in-out;
  }
  