*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'sans-serif';
    box-sizing: border-box;

}
body{
    background: #000000;
    color: #fff;
}
#header {
    width: 100%;
    height: 100vh; /* Make sure it fits the viewport height */
    background-image: url(images/background2.jpg); /* Ensure the path to your image is correct */
    background-size: contain; /* Contain the image so it fits the section without cutting off */
    background-position: bottom right; /* Align the image to the bottom right */
    background-repeat: no-repeat; /* Ensures the image doesn’t repeat */
    display: flex;
    justify-content: flex-end; /* This is used for aligning any additional content */
    align-items: center; /* Centers additional content vertically */
}
.container{
    padding: 10px 10%;
}
.logo {
    position: absolute; /* Allows you to position the logo relative to the page */
    top: 20px; /* Distance from the top of the page */
    left: 60px; /* Distance from the left side of the page */
    max-width: 150px; /* Adjust the size of the logo if needed */
    height: auto; /* Maintain the aspect ratio */
    z-index: 100; /* Ensures the logo stays on top of other elements */
}
/* Navigation Bar Styling - Matches Home Page */
nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: absolute;
    top: 0;
    right: 54px;
    width: 10%;
    z-index: 100;
}

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 20px 0;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 19.1px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease;
}

nav ul li a:hover {
    color: #01adec;
    border-bottom: 2px solid #f54242;
}

/* Responsive Nav for Mobile */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        background: #111;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        display: none;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    nav.active ul {
        display: flex;
    }
}

.header-text {
    position: absolute;
    top: 200px; /* Adjusts the position below the logo */
    left: 150px; /* Adjusts the position from the left */
    font-size: 30px; /* Font size for the text */
    color: white; /* Set the text color */
    line-height: 1.5; /* Improve line spacing */
}

.header-text h1 {
    font-size: 50px; /* Make the heading larger for emphasis */
    font-weight: bold; /* Bold text */
    margin: 10px 0; /* Space around heading */
}

.header-text p {
    font-size: 20px; /* Smaller paragraph text */
    margin-bottom: 20px; /* Space at the bottom of the paragraph */
}

.header-text span {
    font-weight: 300; /* Lighter weight for "UI/UX Designer" */
    font-size: 24px;
    display: block; /* To keep it on a separate line */
    margin-bottom: 10px; /* Space between elements */
} 
/* fav Section Styling */
.fav-section {
    padding: 50px 10%;
    background: #000000; /* You can change the color if needed */
    color: #fff;
    height: 100vh; /* Full height for vertical centering */
    display: flex;
    justify-content: center;
    align-items: center;
}

.fav-container {
    display: flex;
    flex-direction: row; /* Align the image and text side by side */
    gap: 40px; /* Space between the images and the text */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    text-align: center; /* Center text */
}

.fav-images {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between the images */
}

.fav-images img {
    width: 250px; /* Adjust the width as needed */
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.fav-images img:hover {
    transform: scale(1.05); /* Adds hover effect for interaction */
}

.fav-text {
    max-width: 500px; /* Limit the width of the text */
    line-height: 1.6;
}

.fav-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.fav-text p {
    font-size: 18px;
} 

.typing {
    font-size: 18px;
    max-width: 100%; /* Ensure text occupies full width of its container */
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide the overflow text */
    border-right: 3px solid #fff; /* Simulate a cursor */
    animation: typing 8s steps(80, end), blink-caret 0.75s step-end infinite; /* Adjusted timing */
    display: inline-block;
}

/* Typing effect */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Blinking caret */
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: white; }
} 



.fav-text {
    max-width: 600px; /* Ensure that the text fits into the container */
    line-height: 1.6;
}
/* My Work Section Styling */
.work-section {
    padding: 100px 10%;
    background: #000000; /* Matches the rest of the portfolio styling */
    color: #fff;
    text-align: center;
}

.work-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.work-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
}

.work-item {
    background: #222; /* Dark background for work items */
    border-radius: 15px;
    overflow: hidden;
    width: 30%; /* Make each work item take roughly one-third of the row */
    min-width: 250px;
    transition: transform 0.3s ease-in-out;
}

.work-item:hover {
    transform: scale(1.05); /* Enlarge slightly on hover */
}

.work-item img {
    width: 100%;
    height: auto;
    display: block; /* Ensure images maintain proportions */
}

.work-description {
    padding: 20px;
}

.work-description h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #01adec; /* You can adjust the color for a consistent theme */
}

.work-description p {
    font-size: 16px;
    color: #ddd; /* Light gray for text */
}
 
/* About page */  
/* Work Section Styling */
.work-section {
    text-align: center;
    padding: 50px 0;
}

.work-section h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 30px;
}

.work-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* Project Card Styling */
.work-item {
    display: flex;
    flex-direction: column;
    background: #111;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    width: 320px; /* Adjust this based on your layout */
    height: 450px; /* Ensures equal height for both cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item img {
    width: 100%;
    height: 60%; /* Ensures images take up the same amount of space */
    object-fit: cover;
    border-bottom: 3px solid #01adec;
}

/* Description Box */
.work-description {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Project Titles */
.work-description h3 {
    color: #01adec;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Hover Effect */
.work-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

/* Responsive Fix */
@media (max-width: 768px) {
    .work-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Fixed News Ticker */
.news-ticker {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    background: black; /* Start with black */
    color: white;
    padding: 12px 0;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 1000;
}

/* News Content Scroll Effect */
.news-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 12s linear infinite;
    background: linear-gradient(to right, black, black 20%, #c10707 60%, #fb0505 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Smooth scrolling effect */
@keyframes ticker {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}
.skills-section {
    padding: 60px 20px;
    background-color: #000;
    text-align: center;
}

.skills-heading {
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: #01adec;
    text-shadow: 0 0 10px cyan;
    animation: fadeIn 1s ease-in-out;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}


 
.skill-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 15px 20px;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(1, 173, 236, 0.3); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    transform: translateY(30px);
    opacity: 0;
    animation: skillFadeIn 0.6s ease forwards;
}

/* Sequential delays using nth-child */
.skill-box:nth-child(1)  { animation-delay: 0.2s; }
.skill-box:nth-child(2)  { animation-delay: 0.4s; }
.skill-box:nth-child(3)  { animation-delay: 0.6s; }
.skill-box:nth-child(4)  { animation-delay: 0.8s; }
.skill-box:nth-child(5)  { animation-delay: 1s; }
.skill-box:nth-child(6)  { animation-delay: 1.2s; }
.skill-box:nth-child(7)  { animation-delay: 1.4s; }
.skill-box:nth-child(8)  { animation-delay: 1.6s; }
.skill-box:nth-child(9)  { animation-delay: 1.8s; }
.skill-box:nth-child(10) { animation-delay: 2s; }
.skill-box:nth-child(11) { animation-delay: 2.2s; }
.skill-box:nth-child(12) { animation-delay: 2.4s; }
.skill-box:nth-child(13) { animation-delay: 2.6s; }
.skill-box:nth-child(14) { animation-delay: 2.8s; }
.skill-box:nth-child(15) { animation-delay: 3s; }
.skill-box:nth-child(16) { animation-delay: 3.2s; }

@keyframes skillFadeIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cursor {
    display: inline-block;
    background-color: #fff;
    width: 2px;
    height: 1.2em;
    margin-left: 2px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* company names and logo */
.company-section {
    margin-top: 80px;
    text-align: center;
    padding: 40px 20px;
}

.company-heading {
    font-size: 2.5rem;
    color: #01adec;
    margin-bottom: 40px;
    text-shadow: 0 0 8px #01adecaa;
}

.company-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.company-logo {
    height: 60px;
    opacity: 0;
    cursor: pointer;
    transform: scale(0.9);
    transition: transform 0.4s ease, opacity 0.6s ease;
}

/* Animation on scroll */
.company-logo.animate {
    opacity: 1;
    transform: scale(1);
}

/* POPUP STYLING */
.popup {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.popup.hidden {
    display: none;
}

.popup-content {
    background: #111;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 20px #01adec88;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
}

.popup-link {
    display: inline-block;
    margin-top: 15px;
    color: #01adec;
    text-decoration: underline;
}
/* for effects  */ 

/* Shared fade effect container */
.fade-hover-parent {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    position: relative;
}

/* Every child starts normal */
.fade-hover-parent > * {
    transition: all 0.4s ease;
    z-index: 1;
}

/* When parent has hover, dim all */
.fade-hover-parent:hover > * {
    filter: brightness(30%) blur(1px);
    opacity: 0.3;
    transform: scale(0.95);
}

/* Except the hovered one */
.fade-hover-parent > *:hover {
    filter: brightness(120%) blur(0px);
    opacity: 1;
    transform: scale(1.05);
    z-index: 2;
}

.company-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.company-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.skills-section,
.company-section,
.work-section {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.logo-strip {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }
  
  .bounce-logo {
    width: 50px;
    height: 40px;
    border-radius: 12px;
    animation: bounce 2s infinite ease-in-out;
    transition: transform 0.3s ease;
    background: #fff;
    padding: 4px;
    box-shadow: 0 0 10px #01adec80;
  }
  
  .bounce-logo:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px #01adec;
  }
  
  @keyframes bounce {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  @media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        background: #111;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        display: none;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    nav.active ul {
        display: flex;
    }

    .header-text h1 {
        font-size: 24px;
        text-align: center;
    }

    .logo-strip {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }

    .skills-grid,
    .company-logos,
    .work-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .work-item img {
        width: 100%;
        height: auto;
    }
}


  #welcome-video {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    height: 100vh;
    overflow: hidden;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.8s ease-in-out;
  }
  
  #welcome-video.show {
    transform: translateY(0);
    opacity: 1;
  }
  
  #welcome-video video {
    width: 100%;
    max-width: 1200px;
    border-radius: 20px;
    box-shadow: 0 0 30px #5e7769;
  }
  .site-footer {
  background-color: #0b0b0c;
  color: #ccc;
  padding: 40px 20px 20px;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 2rem;
}

.footer-left h3 {
  font-size: 1.6rem;
  color: #00e0ff;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links h4,
.footer-social h4 {
  color: #00e0ff;
  margin-bottom: 10px;
}

.footer-links ul,
.footer-social .social-icons {
  list-style: none;
  padding: 0;
}

.footer-links ul li a {
  text-decoration: none;
  color: #aaa;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #00e0ff;
}

.footer-social .social-icons a {
  display: block;
  color: #aaa;
  margin-bottom: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.footer-social .social-icons a:hover {
  color: #00e0ff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #222;
  margin-top: 20px;
}
