/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* CSS Variables for Colors */
:root {
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --accent: #2ecc71;
    --accent-glow: rgba(46, 204, 113, 0.4);
    --text: #ffffff;
    --neon-blue:#5390d9;
    --neon-pink:#56cfe1;
    --neon-purple:#72efdd;
}

/* Link Styling */
a {
    color:#fff;
    text-decoration: none;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    padding: 25px 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.2s;
}

/* Animation for showing content */
@keyframes show-content {
    100% {
        visibility: visible;
        opacity: 1;
    }
}

/* Logo Styling */
.navbar .logo {
    font-size: 30px;
    font-weight: 700;
}

/* Navigation Links */
.navbar ul {
    display: flex;
}

.navbar ul li {
    list-style: none;
    margin-left:35px;
}

.navbar ul li a {
    font-weight: 500;
    font-size: 20px;
    transition: 0.5s;
}

/* Hover and Active States for Nav Links */
.navbar ul li:hover a,
.navbar ul li.active a {
    color:#7cf01d;
}

/** Responsive Navigation - hides links on small screens **/
@media screen and (max-width: 768px) {
  .navbar ul li {
    display: none;
  }
}

/* Home Section */
.home {
    display: flex;
    align-items: center;
    gap: 50px;
    height:100vh;
    padding: 60px 9% 0;
    color: #fff;
    visibility: hidden;
    opacity: 0;
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.6s;
}

/* Home Information */
.home-info h1 {
    font-size:55px;
}

.home-info h2 {
    display: inline;
    font-size: 32px;
    margin-top:-10px;
}

/* Animated Text Effect */
.home-info h2 span {
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: .7px #7cf03d;
    animation: display-text 16s linear infinite;
    animation-delay: calc(-4s * var(--i));
}

@keyframes display-text {
    25%, 100% {
        display:none;
    }
}

/* Text Fill Animation */
.home-info h2 span::before {
    content:attr(data-text);
    position: absolute;
    width:0;
    border-right: 2px solid #7cf03d;
    color: #7cf03d;
    white-space: nowrap;
    overflow: hidden;
    animation: fill-text 4s linear infinite;
}

@keyframes fill-text {
    10%, 100% {
        width: 0;
    }
    70%, 90% {
        width: 100%;
    }
}

/* Home Paragraph */
.home-info p {
    font-size: 16px;
    margin: 10px 0 25px;
}

/* Button and Social Icons Container */
.home-info .btn-sci {
    display:flex;
    align-items: center;
}

/* Button Styling */
.btn {
    display:inline-block;
    padding: 10px 30px;
    background: #7cf03d;
    border: 2px solid #7cf03d;
    border-radius: 40px;
    box-shadow: 0 0 10px #7cf03d;
    font-size: 16px;
    color: #1f242d;
    font-weight: 600;
    transition: .5s;
}

.btn:hover {
    background: transparent;
    color: #7cf03d;
    box-shadow: none;
}

/* Social Icons */
.home-info .btn-sci .sci {
    margin-left: 20px;
}

.home-info .btn-sci .sci a {
    display:inline-block;
    padding: 10px 30px;
    background: #7cf03d;
    border: 2px solid #7cf03d;
    border-radius: 40px;
    box-shadow: 0 0 10px #7cf03d;
    font-size: 16px;
    color: #1f242d;
    font-weight: 600;
    transition: .5s;
}

.home-info .btn-sci .sci a:hover {
    background: transparent;
    color: #7cf03d;
    box-shadow: none;
}

/* Profile Image Container */
.home-img .img-box {
    position: relative;
    width: 32vw;
    height:32vw;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Animated Border Effect */
.home-img .img-box::before,
.home-img .img-box::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: conic-gradient(transparent, transparent,
    transparent, #7cf03d);
    transform:rotate(0deg);
    animation:rotate-border 10s linear infinite;
}

.home-img .img-box::after {
    animation-delay: -5s;
}

@keyframes rotate-border {
    100% {
        transform: rotate(360deg);
    }
}

/* Actual Profile Image */
.home-img .img-box .img-item {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1f242d;
    border-radius: 50%;
    border: .1px solid #1f242d;
    display: flex;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.home-img .img-box .img-item img {
    position: absolute;
    display: block;
    top: 30px;
    width: 85%;
    object-fit: cover;
    mix-blend-mode: lighten;
}

/* Background Animation Bars */
.bars-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: -1;
}

.bars-animation .bar {
    width: 100%;
    height: 100%;
    background: #1f242d;
    transform: translateY(-100%);
    animation: show-bars .5s ease-in-out forwards;
    animation-delay: calc(.1s * var(--i))
}

@keyframes show-bars {
    100% {
        transform: translateY(0%);
    }
}

/* Responsive Home Section */
@media (max-width: 768px) {
    .home {
        flex-direction: column;
        height: auto;
        padding: 40px 5% 60px;
        text-align: center;
        background: #1f242d;
    }
    
    .home-info {
        order: 2;
        margin-top: 30px;
    }
    
    .home-img {
        order: 1;
    }
    
    .home-info h1 {
        font-size: 40px;
    }
    
    .home-info h2 {
        font-size: 24px;
    }
    
    .home-info .btn-sci {
        flex-direction: column;
        gap: 15px;
    }
    
    .home-info .btn-sci .sci {
        margin-left: 0;
    }
    
    .home-img .img-box {
        width: 60vw;
        height: 60vw;
        max-width: 250px;
        max-height: 250px;
    }
    
    .home-img .img-box::before,
    .home-img .img-box::after {
        width: 100%;
        height: 100%;
    }
}

/* Skills Section */
.skills {
    padding: 5rem 5%;
    background:#1f242d;
}

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

.skill-card {
    padding: 2rem;
    border-radius: 15px;
    background: #1f242d;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.skill-card img {
    font-size: 2.5rem;
    color: #7cf03d;
    margin-bottom: 1rem;
}

/* Text Colors for Skills Section */
.skills h2,
.skills h3,
.skills p {
  color: white;
}

/* About Me Section */
.about {
    padding: 5rem 5%;
    background-color: #1f242d;
    position: relative;
    color:white;
}

/* Top Border Gradient */
.about::before {
    content:'';
    position:absolute;
    top: 0;
    left:0;
    width: 100%;
    height: 5px;
    background:linear-gradient(90deg, var(--neon-blue),var(--neon-pink));
}

/* Section Title Styling */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left:50%;
    transform: translateX(-50%);
    color: #fff;
}

/* Underline Effect for Section Titles */
.section-title::after {
    content:'';
    position:absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height:3px;
    background:linear-gradient(90deg, #7cf01d, #7cf03d);
}

/* About Content Layout */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #ccc;
}

.skills {
    flex: 1;
}

.skill-item {
    margin-bottom:1.5rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 10px;
    background-color: #333;
    border-radius:5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius:5px;
    background:linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    animation:fillBar 2s ease-out forwards;
}

/* Responsive About Me Section */
@media (max-width: 768px) {
    .about {
        padding: 3rem 1.5rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-text, .skills {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .skill-item {
        margin-bottom: 1.2rem;
    }
}

/* Projects Section */
.projects {
    padding: 5rem 5%;
    position:relative;
    background: #1f242d;
}

/* Projects Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Project Card Styling */
.project-card {
    background-color: black;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    border: 1px solid #333;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 136, 255, 0.2);
    border: 1px solid var(--neon blue);
}

.project-img {
    width:100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding:1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color:var(--neon-blue);
}

.project-description {
    color: #ccc;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Technology Tags */
.project-tech {
    display:flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom:1rem;
    color:beige;
}

.tech-tag {
    background-color: rgba(0, 136, 255, 0.2);
    color: var(--neon-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Project Links */
.project-links {
    display: flex;
    gap:1rem;
}

.project-link {
    color:white;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--neon-pink);
}

/* Contact Section */
.contact {
    padding:5rem 5%;
    background-color: black;
    position:relative;
    color:white;
}

/* Contact Form */
.contact-form {
    max-width:600px;
    margin:0 auto;
    display: grid;
    gap:1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap:0.5rem;
}

.form-label {
    font-weight:500;
}

.form-input, .form-textarea {
    padding: 0.8rem 1rem;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 5px;
    color:white;
    font-size: 1rem;
    transition:all 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.3);
}

.form-textarea {
    min-height: 150px;
    resize:vertical;
}

.submit-btn {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    color: white;
    border: none;
    padding: 1rem;
    font-weight:600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 136, 255, 0.3);
}

.submit-btn:hover {
    transform:translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 136, 255, 0.5);
}

/* Footer */
footer {
    text-align: center;
    padding:2rem;
    background-color: #1f242d;
    position: relative;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap:1.5rem;
    margin-bottom: 1.5rem;
}

.social-link {
    color:#ccc;
    font-size:1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color:var(--neon-blue);
    transform: translateY(-3px);
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* Skill Bar Animation */
@keyframes fillBar {
    from {
        width: 0;
    }
    to {
        width:100%;
    }
}