@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    --primary-color : #914bf1;

}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Jost", serif;
}

body {
    color: #333;
}

header {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: transparent;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color)
}

.logo span {
    color: black;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    font-size: 16px;
    transition: all .3s ease;
}

nav ul li a:hover {
    color: var(--primary-color)
}

.download-btn {
    border: 2px solid var(--primary-color);
    color: black;
    border-radius: 50px;
    padding: 6px 30px;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out, border-color 0.3s ease-in-out;
    z-index: 1;
    font-weight: 500;
    font-size: 18px;
}

.download-btn::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0%; 
    background: var(--primary-color);
    border-radius: 50px; 
    transition: height 0.3s ease-in-out;
    z-index: -1; 
}

.download-btn:hover::before {
    height: 100%;
}

.download-btn:hover {
    color: white; 
}


.hero {
    display: flex;
    justify-content: space-between;
    padding: 100px 50px;
}

.hero-content {
    display: flex;
    max-width: 50%;
    flex-direction: column;
    align-content: flex-start;
    justify-content: space-between;
    align-items: flex-start;
}

.hero-content h2 {
    color: var(--primary-color);
    font-size: 28px;
}

.hero-content h1 {
    font-size: 64px;
    margin: 10px 0;
}

.hero-content .highlight {
    color: var(--primary-color);
    font-weight: bold;
}

.hero-content .city {
    color: rgb(151, 7, 7);
}

.about-btn {
    display: inline-block;
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    margin-top: 20px;
    text-decoration: none;
    border-radius: 25px;
    transition: color 0.3s ease-in-out, border-color 0.3s ease-in-out;
    z-index: 1;
    font-weight: 500;
    font-size: 18px;
    position: relative; /* Add this */
    overflow: hidden; /* Ensures smooth animation */
}

.about-btn::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%; 
    background: var(--primary-color);
    border-radius: 50px; 
    transition: transform 0.3s ease-in-out; 
    z-index: -1;
    transform: scaleY(1); /* Initially visible */
    transform-origin: bottom; /* Animate from bottom */
}

.about-btn:hover::before {
    transform: scaleY(0); /* Hide on hover */
}

.about-btn:hover {
    background-color: transparent;
    color: black; 
}


.social-icons {
    margin-top: 20px;
}

.social-icons img {
    width: 24px;
    margin-right: 10px;
}

.hero-image {
    margin-right: 50px;
    position: relative;
}

.hero-image img {
    width: 500px;
    border-radius: 10px;
} 

.floating-icons {
    position: absolute;
    top: 20px;
    right: -40px;
}

.floating-icons1 {
    position: absolute;
    top : 120px;
    right: 400px;
}

.floating-icons2 {
    position: absolute;
    top : 170px;
    right: 30px;
}


.floating-icons3 {
    position: absolute;
    top : 480px;
    right: 200px;
}

.floating-icons img {
    width: 50px;
    margin-top: -150px;
    margin-right: 15px;
    animation: float 2s infinite alternate ease-in-out;
}

@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(-15px); }
}


.menu-toggle {
    display: none;
}

/* Responsive Design for Mobile */
@media screen and (max-width: 768px) {
    /* Adjust header */
    header {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }

    .logo {
        margin-bottom: 10px;
    }

    /* Hamburger menu */
    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 24px;
        background: white;
        border: none;
        color: black;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 3;
    }

    /* Hide nav menu by default */
    nav ul {
        flex-direction: column;
        display: none; /* Hide menu initially */
        width: 100%;
        background: white;
        position: absolute;
        top: 50px;
        left: 0;
        padding: 10px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Show menu when active */
    nav.active ul {
        display: flex;
    }

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

    /* Responsive Hero Section */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content h2 {
        font-size: 22px;
    }

    .hero-image {
        display: none;
    }

    .hero-image img {
        width: 100%;
    }

    .download-btn {
        z-index: -1;
    }
    .download-btn:hover {
        color: white; 
    }

    .about-btn:hover {
        background-color: transparent;
        color: black; 
    }
    
    /* Hide floating icons on small screens */
    .floating-icons {
        display: none;
    }
}


/* About me section */
.about {
    width: 100%;
    overflow: hidden;
    padding: 50px;
}

.left-section {
    width: 50%;
    float: left;
    text-align: center;
}

.left-section img {
    width: 90%; /* Adjust as needed */
    max-width: 400px;
    border-radius: 10px;
}

.right-section {
    width: 50%;
    float: right;
    padding: 20px;
    text-align: left;
    margin-top: 2%; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 5px; 
}

.right-section h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 5px; /* Reduce spacing */
}

.right-section p {
    background-color: rgb(246, 246, 246);
    border-radius: 20px;
    padding: 20px;
    margin-left: -10px;
    font-size: 16px;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.color {
    color: var(--primary-color);
}
/* Responsive: Stack them on small screens */
@media screen and (max-width: 768px) {
    .left-section,
    .right-section {
        width: 100%;
        float: none;
        text-align: center;
    }

    .left-section img {
        width: 60%;
    }

    .right-section {
        padding-top: 20px;
        align-items: center; /* Centers content on small screens */
    }

    .right-section h2,
    .right-section p {
        text-align: center;
    }
}


/* section of portoflio  */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio {
    padding: 60px 20px;
    border-radius: 12px;
}

.portfolio-subtitle {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: bold;   
    text-align: center;
}

.portfolio-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    color: #222;
}

.portfolio-desc {
    color: #666;
    font-size: 18px;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.portfolio-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 15px;
    color: var(--primary-color);
}

.portfolio-item p {
    font-size: 16px;
    color: #666;
    margin: 0 15px 15px;
}

.portfolio-item a {
    text-decoration: none;
    display: block;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-title {
        font-size: 28px;
    }

    .portfolio-desc {
        font-size: 16px;
    }

    .portfolio-item h3 {
        font-size: 20px;
    }

    .portfolio-item p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .portfolio-title {
        font-size: 24px;
    }

    .portfolio-desc {
        font-size: 14px;
    }

    .portfolio-item h3 {
        font-size: 18px;
    }

    .portfolio-item p {
        font-size: 12px;
    }
}




/* section of contact */
.contact-me {
    display: flex;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1rem;
    background-color: rgb(245, 245, 245);
    flex-direction: column;
    flex-wrap: wrap;
  }

  .contact-me h1 {
    font-size: 2.5rem;
    color: black;
  }

 .contact-me h1 span {
    color: #9f7aea;
  }

  form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
  }

  label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-align: left;
  }

  input, textarea {
    background-color: white;
    border: 1px solid #444;
    color: white;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    outline: none;
  }

  input:focus, textarea:focus {
    border-color: #9f7aea;
    box-shadow: 0px 0px 4px #9f7aea;
  }

  button {
    background-color: #9f7aea;
    color: white;
    padding: 0.75rem;
    font-size: 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  button:hover {
    background-color: #805ad5;
  }


  /* footer section */
  footer {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    background-color: #f2f5fb;
    flex-wrap: wrap;
    font-family: 'Arial', sans-serif;
    color: #333;
  }
  

  
  .right-section {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-end;
  }
  
  .right-section h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
  }
  
  .right-section h4 {
    margin: 0;
    font-size: 16px;
    color: #666;
  }
  
  footer p {
    margin-top: 20px;
    text-align: center;
    color: #777;
    font-size: 14px;
    width: 100%;
  }
  
  footer span {
    color: var(--primary-color);
  }
  
  @media (max-width: 768px) {
    footer {
      flex-direction: column;
      align-items: center;
      padding: 20px; /* Adjust padding for mobile */
    }
  
    .logo {
      font-size: 20px; /* Slightly smaller logo on mobile */
    }
  
    .right-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 20px;
    align-content: center;
    }
  
    .right-section h3 {
      font-size: 18px; /* Slightly smaller heading */
    }
  
    .right-section h4 {
      font-size: 14px; /* Adjust text size for better readability */
    }
  
    footer p {
      font-size: 12px; /* Smaller font size for copyright on mobile */
    }
  }
  
  @media (max-width: 480px) {
    footer {
      padding: 15px; /* Further reduce padding on very small screens */
    }
  
    .logo {
      font-size: 18px; /* Smaller logo for very small screens */
    }
  
    .right-section h3 {
      font-size: 16px; /* Reduce the size of contact heading */
    }
  
    .right-section h4 {
      font-size: 12px; /* Reduce the size of contact text */
    }
  
    footer p {
      font-size: 12px; /* Keep smaller font for copyright */
    }
  }