/*HEADER AND FOOTER STYLE START*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Orbitron:wght@400..900&display=swap');
body {
    margin: 0;
    padding: 0;
    background-color: #0b0b0c;
    color: #00ff00; /* Green text */
}

/*Apply Orbitron to headings*/
h1, h2, h3, h4, h5, h6, .bn31span, .cta-button, nav, .btn, .ccc, .counter {
    font-family: "Orbitron", sans-serif;
}
/*Apply system font stack to body text */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Make scrollbar transparent */
body::-webkit-scrollbar {
    width: 10px; /* Width of the scrollbar */
}

body::-webkit-scrollbar-track,
body::-webkit-scrollbar-thumb {
    background: transparent; /* Transparent background and thumb */
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    padding-bottom: 5px;
    position: fixed;
    z-index: 1000;
    top: 0; /* Align to the top of the viewport */
    width: 100%;
}
    
header .container {
    display: flex;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    backdrop-filter: blur(5px); /* Apply blur effect */
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
    margin: 0;
    color: #00FF00;
    text-transform: uppercase;
}

/* Navigation styles */
nav {
    position: relative;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: #00FF00; /* Green links */
    text-decoration: none;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #00FF00; /* Green underline */
    transition: width 0.4s ease, right 0.4s ease;
}

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

/* Styles for mobile menu toggle button */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block; /* Display on mobile devices */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 20px;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-menu {
        display: none; /* Hide the mobile menu by default */
        position: absolute;
        top: 100%;
        right: 0;
        background-color: rgba(0, 0, 0, 0.765); /* Semi-transparent background */
        backdrop-filter: blur(5px); /* Apply blur effect */
        width: 100%;
    }

    .mobile-menu.active {
        display: block; /* Show the mobile menu when active */
    }

    .mobile-menu ul {
        list-style-type: none;
        padding: 0;
        display: flex; /* Display list items in a column */
        flex-direction: column; /* Display list items vertically */
    }

    .mobile-menu ul li {
        margin: 10px 0;
    }

    .mobile-menu ul li a {
        color: #00FF00;
        text-decoration: none;
        padding: 10px 0;
    }
}

/* Media query for mobile view */
@media only screen and (max-width: 768px) {
    header .container {
        text-align: center; /* Center align the header content */
    }

    nav ul {
        display: inline-block; /* Keep the list items in a line */
        margin-top: 10px; /* Add some space on top */
    }

    nav ul li {
        display: inline-block; /* Keep the list items in a line */
        margin: 0 10px; /* Add margin to separate list items */
    }

    header {
        margin-top: 2px;
    }
}

/*HEADER FONT SIZINHE FOR DIFFERENT SCREENS*/
/* Font size for screens 768px and below */
@media (max-width: 768px) {
    header h1 {
        font-size: 28px; /* Adjust the size as needed */
    }
}

/* Font size for screens 365px and below */
@media (max-width: 365px) {
    header h1 {
        font-size: 25px; /* Adjust the size as needed */
    }
}

/* Font size for screens 325px and below */
@media (max-width: 325px) {
    header h1 {
        font-size: 20px; /* Adjust the size as needed */
    }
}

/* Media query for smaller screen devices */
@media only screen and (max-width: 768px) {
    /* Reduce list item spacing and font size */
    nav ul {
        margin-top: 5px; /* Reduced top margin */
    }

    nav ul li {
        margin: 0 5px; /* Reduced horizontal margin */
    }

    nav ul li a {
        font-size: 14px; /* Reduced font size */
    }
}

/* Change to "X" shape when menu is active */
.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

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

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #00FF00;
    margin: 5px 0;
}

/* Styles for mobile menu toggle button */
.mobile-menu-toggle {
    display: none; /* Hide by default */
}

/* Styles for mobile menu toggle button */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block; /* Display on mobile devices */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 20px;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-menu {
        display: none; /* Hide the mobile menu by default */
        position: absolute;
        top: 100%;
        right: 0;
        background-color: rgba(0, 0, 0, 0.765); /* Semi-transparent background */
        backdrop-filter: blur(5px); /* Apply blur effect */
        width: 100%;
    }

    .mobile-menu.active {
        display: block; /* Show the mobile menu when active */
    }

    .mobile-menu ul {
        list-style-type: none;
        padding: 0;
        display: flex; /* Display list items in a column */
        flex-direction: column; /* Display list items vertically */
    }

    .mobile-menu ul li {
        margin: 10px 0;
    }

    .mobile-menu ul li a {
        color: #00FF00;
        text-decoration: none;
        padding: 10px 0;
    }
}

/* Media query for mobile view */
@media only screen and (max-width: 768px) {
    header .container {
        text-align: center; /* Center align the header content */
    }

    nav ul {
        display: inline-block; /* Keep the list items in a line */
        margin-top: 10px; /* Add some space on top */
    }

    nav ul li {
        display: inline-block; /* Keep the list items in a line */
        margin: 0 10px; /* Add margin to separate list items */
    }

    header {
        margin-top: 2px;
    }
}

/*HEADER FONT SIZINHE FOR DIFFERENT SCREENS*/
/* Font size for screens 768px and below */
@media (max-width: 768px) {
    header h1 {
        font-size: 28px; /* Adjust the size as needed */
    }
}

/* Font size for screens 365px and below */
@media (max-width: 365px) {
    header h1 {
        font-size: 25px; /* Adjust the size as needed */
    }
}

/* Font size for screens 325px and below */
@media (max-width: 325px) {
    header h1 {
        font-size: 20px; /* Adjust the size as needed */
    }
}

/* Media query for smaller screen devices */
@media only screen and (max-width: 768px) {
    /* Reduce list item spacing and font size */
    nav ul {
        margin-top: 5px; /* Reduced top margin */
    }

    nav ul li {
        margin: 0 5px; /* Reduced horizontal margin */
    }

    nav ul li a {
        font-size: 14px; /* Reduced font size */
    }
}


.section {
    padding: 40px 0;
}
footer {
    background-color: transparent;
    padding: 20px 0;
    text-align: center;
}
/* Contact styling */
.social-icons img {
    width: 36px; 
    height: 36px; 
}

.social-icons a {
    margin: 0 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

/* Add styles for the matrix effect */
.matrix-effect {
    position: fixed;
    top: 0; /* Position at the top of the screen */
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Ensure the matrix effect is behind other content */
    pointer-events: none; /* Allow clicks to go through the matrix effect */
    animation: matrixAnimation -1s linear infinite; /* Adjust animation duration as needed */
}


@keyframes matrixAnimation {
    from {
        transform: translateY(0%);
    }
    to {
        transform: translateY(100%);
    }
}
/* Media query for mobile view */
@media only screen and (max-width: 768px) {
    header .container {
        text-align: center; /* Center align the header content */
    }

    nav ul {
        display: inline-block; /* Keep the list items in a line */
        margin-top: 10px; /* Add some space on top */
    }

    nav ul li {
        display: inline-block; /* Keep the list items in a line */
        margin: 0 10px; /* Add margin to separate list items */
    }

    header {
        margin-top: 2px;
    }

    .social-icons img {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .social-icons img {
        width: 25px; /* Adjust icon size */
        height: 25px; /* Adjust icon size */
    }

}

/* Media query for smaller screen devices */
@media only screen and (max-width: 768px) {
    /* Reduce list item spacing and font size */
    nav ul {
        margin-top: 5px; /* Reduced top margin */
    }

    nav ul li {
        margin: 0 5px; /* Reduced horizontal margin */
    }

    nav ul li a {
        font-size: 14px; /* Reduced font size */
    }
}

/* Media query for mobile view */
@media only screen and (max-width: 768px) {
    header .container {
        width: 90%; /* Reduce the width of the header container */
        padding: 10px; /* Adjust padding */
    }
}

/*HEADER AND FOOTER STYLE END*/
/*MAIN STYLES*/
/* Default font sizes for p, h2 and h3 tags */
h2 {
    font-size: 32px; /* Default font size for h2 */
}

p {
    font-size: 15px; /* Default font size */
}

.intro-section {
    margin-top: 100px; /* Adjust the value as needed */
}

.intro-section h1 {
    font-size: 2.5rem; /* Adjust the value as needed */
    margin-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
}

.intro-section p {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 20px;
}

#projects {
    width: 90%;
    margin: 0 auto; /* Center the section horizontally */
    padding: 0 20px; /* Add left and right spacing */
    align-items: center;
}

#projects h2 {
    text-align: center;
}

#projects-intro {
    background-color: #0b0b0c;
}
.cta-button {
    display: inline-block;
    padding: 10px 10px;
    background: #00ff00;
    color: #000;
    border: 2px solid #00ff00;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 95%;
    text-align: center;
}

.cta-button:hover {
    background: transparent;
    color: #00ff00;
}

.project-card {
    background-color: #0b0b0c;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: center; /* Center align the contents */
    opacity: 0; /* Initial state for animation */
    animation: fadeIn 1s forwards; /* Apply the fadeIn animation */
    border: 1px solid #00ff00;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00 inset;
  transform: scale(1.03); /* subtle zoom */
}

.project-card h3 {
    margin-bottom: 10px;
}

.project-card p {
    margin-bottom: 10px;
}

.project-card img {
  width: 100%;
  display: block;
  border-radius: 5px;
  transition: opacity 0.3s ease;
  opacity: 0.85; /* slightly darkened */
}

.project-card:hover img {
  opacity: 1; /* full brightness on hover */
}

.projects {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* Add spacing between project cards */
}

/* Media query for mobile view */
@media only screen and (max-width: 768px) {
    .projects {
        grid-template-columns: repeat(1, 1fr);
    }
    .intro-section {
        margin-top: 70px; /* Adjust the value as needed */
    }
}
body, html {
    overflow-x: hidden; /* Prevent horizontal scrolling */
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*Delay Project cards animation*/
.project-card:nth-child(1) {
    animation-delay: 0s;
}
.project-card:nth-child(2) {
    animation-delay: 0.2s;
}
.project-card:nth-child(3) {
    animation-delay: 0.4s;
}
.project-card:nth-child(4) {
    animation-delay: 0.6s;
}
.project-card:nth-child(5) {
    animation-delay: 0.8s;
}
.project-card:nth-child(6) {
    animation-delay: 1.0s;
}
.project-card:nth-child(7) {
    animation-delay: 1.2s;
}
.project-card:nth-child(8) {
    animation-delay: 1.4s;
}
.project-card:nth-child(9) {
    animation-delay: 1.6s;
}
.project-card:nth-child(10) {
    animation-delay: 1.8s;
}
.project-card:nth-child(11) {
    animation-delay: 2.0s;
}
.project-card:nth-child(12) {
    animation-delay: 2.2s;
}
.project-card:nth-child(13) {
    animation-delay: 2.4s;
}
.project-card:nth-child(14) {
    animation-delay: 2.6s;
}
.project-card:nth-child(15) {
    animation-delay: 2.8s;
}
.project-card:nth-child(16) {
    animation-delay: 3.0s;
}
.project-card:nth-child(17) {
    animation-delay: 3.2s;
}
.project-card:nth-child(18) {
    animation-delay: 3.4s;
}
.project-card:nth-child(19) {
    animation-delay: 3.6s;
}
.project-card:nth-child(20) {
    animation-delay: 3.8s;
}
.project-card:nth-child(21) {
    animation-delay: 4.0s;
}
.project-card:nth-child(22) {
    animation-delay: 4.2s;
}
.project-card:nth-child(23) {
    animation-delay: 4.4s;
}

/*Other Animations*/
/* Animation Styles */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate.in-view {
    opacity: 1;
    transform: translateY(0);
}


/* Adjust CSS to trigger animation when element is visible */
.animate-visible {
    animation: scaleIn 0.5s forwards;
}