/* Global Styles */
:root {
    --primary-color: #1b8dd8;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #f1ece0;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --gray-color: #4b5455;
    --white-color: #fff7f7;
    --black-color: #000000;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #6F4E37;
    overflow-x: hidden;
}



.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    background-color: #fffffff1;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.985);
    padding-bottom: 1px;
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/*.highlight {
    color: rgb(1, 1, 144);
    text-shadow:
    0 0 5px rgb(255, 247, 20),
    0 0 10px rgb(57, 255, 20),
    0 0 20px rgb(57, 255, 20),
    0 0 40px lime,
    0 0 60px lime,
    0 0 80px lime;

    transition: text-shadow 0.3s ease; 
    animation: neon-glow 1.5s ease-in-out infinite;
}*/
@keyframes neon-glow {
    0%, 100% {
      text-shadow:
        0 0 5px #f0f,
        0 0 10px #f0f,
        0 0 20px #f0f,
        0 0 40px #ff00ff,
        0 0 80px #ff00ff;
    }
    50% {
      text-shadow:
        0 0 2px #f0f,
        0 0 5px #f0f,
        0 0 10px #f0f,
        0 0 20px #ff00ff,
        0 0 40px #ff00ff;
    }
  }
  
  .highlight {
    color: rgb(35, 2, 155); /* Neon pink */
    font-size: 2.5rem;
    font-weight: bold;
    
    animation: neon-glow 1.5s ease-in-out infinite;
  }

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 10px;
    margin-bottom: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.499);


}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}
/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 0;
    background-color: #6F4E37;
}

header.scrolled {
    background-color: #6F4E37;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;

}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links ul {
    display: flex;
    list-style: none;
    align-items:center ;

}

.nav-links ul li {
    margin-left: 30px;
    position: relative;
    align-items:center ;

    
}

.nav-links ul li a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
   align-items:center ;
}

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

.nav-links ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.visitor-count {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.visitor-count i {
    margin-right: 5px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: #6f4e37e8;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 2px rgba(1, 45, 74, 0.722);


}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.985);

}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--gray-color);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--gray-color);
    max-width: 500px;
}

.image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    box-shadow: -10px 20px 40px rgb(0, 0, 0);
    border-radius: 50%;

}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /*border: 10px solid var(--light-color);*/
    box-shadow: -10px 20px 40px rgba(0, 0, 0, 0.759);
    position: relative;
    z-index: 2;
}
.profile-img:hover{
    transform: scale(1.2);
}

.circle-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, rgb(2, 67, 232));
    animation: pulse 2.5s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 2;
    }
    50% {
        transform: scale(1.05);
        opacity: 4;
    }
    100% {
        transform: scale(0.95);
        opacity: 7;
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--dark-color);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;

}
.about{
    box-shadow: 0 0 0 2px rgba(1, 45, 74, 0.722);
}
.about-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.699);
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: translateY(-10px);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 0;
    color: var(--gray-color);
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 25px 0;
}

.detail-item {
    display: flex;
}

.detail-item span {
    font-weight: 600;
    margin-right: 10px;
    min-width: 100px;
}

/* Skills Section */
.skills-container {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}
.skills {
    box-shadow: 0 0 0 2px rgba(1, 45, 74, 0.722);

}

.skill-category {
    flex: 1;
    background-color: black;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.903);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: white;
}

.skill-bar {
    height: 10px;
    background-color: var(--light-color);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    position: relative;
    width: 0;
    transition: width 1.5s ease;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0) 100%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.html {
    width: 95%;
}

.css {
    width: 90%;
}

.js {
    width: 65%;
}

.react {
    width: 20%;
}

.node {
    width: 20%;
}

.python {
    width: 40%;
}

.php {
    width: 40%;
}

.sql {
    width: 30%;
}
.mongo{
    width: 40%;
}
/* Projects Section */
.projects {
    box-shadow: 0 0 0 2px rgba(1, 45, 74, 0.722);

}
.projects-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    margin: 0 10px 10px 0;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.projects-grid {
    display: inline-flex;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.project-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;

}

.project-item:hover {
    transform: translateY(-10px);
}

.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
    color: var(--white-color);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--white-color);
}

.project-overlay p {
    margin-bottom: 20px;
    color: var(--light-color);
}

.project-link {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: var(--secondary-color);
    transform: rotate(45deg);
}

/* Certificates Section */
.certificates {
    box-shadow: 0 0 0 2px rgba(1, 45, 74, 0.722);

}
.certificates-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.certificates-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.certificate-item {
    scroll-snap-align: start;
    min-width: 300px;
    flex: 0 0 auto;
}

.certificate-img {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.certificate-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    color: var(--white-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-img:hover .certificate-overlay {
    opacity: 1;
}

.certificate-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.certificate-overlay p {
    margin-bottom: 5px;
    color: var(--light-color);
}

.view-certificate {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-certificate:hover {
    background-color: var(--secondary-color);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
}

.slider-prev, .slider-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-prev:hover, .slider-next:hover {
    background-color: var(--black-color);
    transform: scale(1.1);
}

/* Contact Section */
.contact{
    box-shadow: 0 0 0 2px rgba(1, 45, 74, 0.722);

}
.contact-content {
    display: flex;
    gap: 50px;
    padding-bottom: 10px;
}

.contact-info {
    flex: 1;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.251);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--black-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(57, 31, 38, 0.3); /* X Y blur color */

    
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(2, 147, 244, 0.711);
}

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

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0 0;
    box-shadow: 0 0 0 2px rgba(2, 60, 98, 0.93);

}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-logo p {
    color: black;
}

.footer-links h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--black-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

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

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: black;
}

.footer-contact p {
    color: black;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgb(0, 0, 0);
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--danger-color);
    font-size: 0.9rem;
}

.visitor-count-footer {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

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

    .skills-container {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 50%;
        height: calc(100vh - 80px);
        background-color: var(--white-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
        border-radius: 15px;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links ul {
        flex-direction: column;
        align-items:baseline;
        padding-left: 2rem;
    }

    .nav-links ul li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .image-wrapper {
        width: 300px;
        height: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        display: grid;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    .certificate-item {
        min-width: 250px;
    }
}
/* CV Download Button Styles */
#downloadCv {
    position: relative;
    overflow: hidden;
}

#downloadCv i {
    margin-right: 8px;
}

.download-success {
    position: absolute;
    bottom: -40px;
    left: 0;
    background-color: var(--success-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    animation: slideUp 0.3s ease;
    z-index: 10;
}

.download-success i {
    margin-left: 5px;
    color: white;
}

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