
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
  /* Base Colors */
  --bg-color: #0d1117; /* Dark background */
  --second-bg-color: #161b22; /* Slightly lighter dark */
  --text-color: #e6edf3; /* Soft white */
  --main-color: #ffb400; /* Golden accent */

  /* Gradients */
  --gradient-1: linear-gradient(135deg, #ffb400, #ff6f61); 
  --gradient-2: linear-gradient(135deg, #36d1dc, #5b86e5);
  --gradient-3: linear-gradient(135deg, #ff7eb3, #ff758c);
  --gradient-4: linear-gradient(135deg, #43cea2, #185a9d);
  
  /* Background Gradients */
  --gradient-bg: linear-gradient(135deg, #0d1117, #161b22, #1e2732);
  --gradient-header: linear-gradient(135deg, rgba(13, 17, 23, 0.95), rgba(22, 27, 34, 0.95));
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--gradient-bg);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
}

section {
    min-height: 100vh;
    padding: 9rem 9% 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--gradient-header);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header.sticky {
    border-bottom: 0.1rem solid rgba(0, 0, 0, .2);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    cursor: default;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: 0.3s;
    font-weight: 500;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}
/* Home Section - No Image Mode */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* Stack content vertically */
  text-align: center; /* Center all text */
  position: relative;
  min-height: 100vh;
  background: var(--gradient-bg); /* Matches your theme */
  padding: 50px 20px;
}

.home-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.home-content h3 {
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--main-color);
}

.home-content h1 {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 1rem 0;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 1.5rem;
}

span {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.home-content p {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-color);
}

/* Social Media Icons */
.social-media a {
  display: inline-block;
  font-size: 2.4rem;
  margin: 0 10px;
  color: var(--text-color);
  transition: 0.3s;
}

.social-media a:hover {
  color: var(--main-color);
  transform: translateY(-3px);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--main-color);
  color: #000;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn:hover {
  background: var(--gradient-1);
  color: #fff;
  transform: scale(1.05);
}


@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.4rem);
    }
}

.social-media {
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    transition: 0.5s ease;
}

.social-media a:hover {
    background: var(--gradient-1);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
    transform: translateY(-5px);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--gradient-1);
    border-radius: 4rem;
    box-shadow: 0 0 1rem rgba(79, 172, 254, 0.5);
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: .1rem;
    font-weight: 600;
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gradient-3);
    transition: all 0.5s;
    z-index: -1;
    border-radius: 4rem;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    box-shadow: 0 0 2rem rgba(79, 172, 254, 0.8);
    transform: translateY(-5px);
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    background: var(--gradient-bg);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.1"><circle cx="50" cy="50" r="40" stroke="%230ef" stroke-width="2" fill="none" /></svg>');
    background-size: 200px;
    opacity: 0.05;
}

.about-img img {
    width: 35vw;
    border-radius: 2rem;
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.5);
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 5rem;
    position: relative;
}

.heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
    margin: 2rem 0;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.services h2 {
    margin-bottom: 5rem;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.services-box {
    flex: 1 1 30rem;
    background: rgba(37, 46, 61, 0.7);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: 2px solid transparent;
    transition: 0.5s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.services-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.05;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.services-box:hover {
    border-color: var(--main-color);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 150, 255, 0.2);
}

.services-box:hover::before {
    opacity: 0.1;
}

.services-box i {
    font-size: 7rem;
    margin-bottom: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.services-box h3 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.services-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

.technical-skill{
    margin-top: 2rem;
    text-align: left;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    display: grid;
    gap: 1.5rem;

}
.project-box {
    flex: 1 1 30rem;
    background: rgba(37, 46, 61, 0.7);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: 2px solid transparent;
    transition: 0.5s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 375px;
}

.project-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.05;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.project-box:hover {
    border-color: var(--main-color);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 150, 255, 0.2);
}

.project-box:hover::before {
    opacity: 0.1;
}

.project-box i {
    font-size: 7rem;
    margin-bottom: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.project-box h3 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.project-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}



.portfolio {
    background: var(--gradient-bg);
    position: relative;
}

.portfolio::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    z-index: 1;
}

.portfolio h2 {
    margin-bottom: 4rem;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    align-items: center;
    gap: 2.5rem;
}

.portfolio-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;
    height: 250px;
}

.portfolio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

.portfolio-layer h4 {
    font-size: 3rem;
}

.portfolio-layer p {
    font-size: 1.6rem;
    margin: .3rem 0 1rem;
    color: #000;
    font-weight: 500;
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--text-color);
    border-radius: 50%;
    transition: 0.3s ease;
}

.portfolio-layer a:hover {
    background: var(--gradient-1);
    transform: scale(1.1);
}

.portfolio-layer a i {
    font-size: 2rem;
    color: var(--second-bg-color);
}

.contact {
    position: relative;
}

.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: rgba(37, 46, 61, 0.8);
    border-radius: 0.8rem;
    margin: 0.7rem 0;
    border: 1px solid transparent;
    transition: 0.3s ease;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.3);
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
    min-height: 200px;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--gradient-header);
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--gradient-1);
    border-radius: .8rem;
    transition: 0.3s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
    transform: translateY(-5px);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--text-color);
}

/* Particle background effect */
.particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 990px) {
    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 9rem 4% 2rem;
    }

    .services {
        margin-bottom: 3rem;
    }

    .contact {
        min-height: auto;
    }

    .footer {
        padding: 2rem 4%;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
        cursor: pointer;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--gradient-header);
        padding: 1rem 3%;
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
        backdrop-filter: blur(10px);
    }

    .portfolio {
        padding-bottom: 7rem;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .about {
        flex-direction: column-reverse;
    }

    .about-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .services h2 {
        margin-bottom: 4rem;
    }

    .portfolio h2 {
        margin-bottom: 3rem;
    }

    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-media {
justify-content: center;    }
}

@media (max-width: 618px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }

    .contact form .input-box input {
        width: 100%;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }
}

@media (max-width: 365px) {
    .home-img img {
        width: 90vw;
    }

    .about-img img {
        width: 90vw;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        text-align: center;
        margin-top: 2rem;
    }
}