
html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    background: #000;
    font-family: "Roboto","Poppins", sans-serif;
    color: white;
}

/* ----------------- NAVBAR ----------------- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    transition: 0.3s ease;
}

nav:hover {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(0, 255, 136, 0.4);
}

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

nav ul li a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #00ff88;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #00ff88;
}

nav ul li a:hover::after {
    width: 100%;
}

/* ----------------- HERO SECTION ----------------- */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #008f7700, #006948, #000c0a00);
    background-size: 300% 300%;
    animation: gradientMove 8s ease infinite;
    z-index: -1;
    opacity: 0.8;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header h1 {
    font-size: 3rem;
    color: #00ff88;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease forwards;
    text-shadow: 0 0 20px #00ff88;
    user-select: none;
}

header h2 {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1.5s ease forwards;
}

header p {
    max-width: 600px;
    color: #e2e8f0;
    margin-bottom: 2rem;
    animation: fadeInUp 2s ease forwards;
}

@keyframes fadeInUp {
    from {
    opacity: 0;
    transform: translateY(30px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    background: transparent;
    border: 2px solid #00ff88;
    color: #00ff88;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    color: #000;
    background: #00ff88;
    box-shadow: 0 0 20px #00ff88;
    transform: scale(1.05);
}

/* ----------------- SECTIONS ----------------- */
section {
    padding: 6rem 10%;
    text-align: center;
    position: relative;
}

.main {
    max-width: 1300px;
    margin: 0  auto;
}
section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    z-index: -1;
    margin: 2rem;
}

h2.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #00ff88;
    text-shadow: 0 0 10px #00ff8857;
    user-select: none;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.projects a {
    color: white;
    text-decoration: none;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(6px);
    transition: 0.3s;
    cursor: pointer;
    user-select: none;
}

.project-card img {
    width: 100%;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    height: 180px;
    object-fit: cover;
}

.project-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.project-card h3 {
    margin-bottom: 1rem;
    color: #00ff88;
}

/* ----------------- CONTACT SECTION ----------------- */
#contact p {
    max-width: 600px;
    margin: 1rem auto;
    color: #e2e8f0;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #94a3b8;
}

@media (max-width: 768px) {
    nav {
    padding: 1rem;
    }
    nav ul {
    gap: 1rem;
    }
    header h1 {
    font-size: 2.2rem;
    }
    header h2 {
    font-size: 1.2rem;
    }
}

/* particles */
    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

    body {
    background: #000;
    overflow-x: hidden;
    }

    canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
    }
.skills {
    display: flex;
    justify-content: center;
    gap: 20px;
    /* max-width: 999px; */
    flex-wrap: wrap;
}
.skillcard {
    width: 60px;
    text-align: center;
    font-size: 12px;
    overflow: hidden;
    transition: transform 0.4s ease;
    cursor: pointer;
    
}

.skillcard:hover {
    transform: scale(1.3) translateY(-10px);

}
.skillcard img {
    width: 100%;
    height: auto;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.email {
    transition: transform 0.2s ease;
}
.email:hover {
    transform: scale(1.2);
}

.about-text {
    transition: transform 0.5s ease;
}
.about-text:hover {
    transform: translateY(-10px);
}

.resume {
  position: fixed;
  top: 90vh;         
  right: 20px;       
  z-index: 9999;     

  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.keys  {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;

}



