:root {
    --green1: #07b400;
    --green2: #08cd00;
    --green3: #09e700;
    --green4: #0bff01;
    --gray1: #919191;
    --gray2: #fcfcfc;
    --bg: #0a0a0a
}
body {
    font-family: 'Quantico', sans-serif;
}


@keyframes glow {
    0% { text-shadow: 0 0 5px var(--green3), 0 0 10px var(--green3); }
    50% { text-shadow: 0 0 10px var(--green3), 0 0 20px var(--green3); }
    100% { text-shadow: 0 0 5px var(--green3), 0 0 10px var(--green3); }
}

@keyframes hoverGlow {
    0% { text-shadow: 0 0 10px var(--green2), 0 0 20px var(--green2), 0 0 30px var(--green2); }
    50% { text-shadow: 0 0 20px var(--green2), 0 0 30px var(--green2), 0 0 40px var(--green2); }
    100% { text-shadow: 0 0 10px var(--green2), 0 0 20px var(--green2), 0 0 30px var(--green2); }
}

@keyframes shine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

header h1 {
    color: var(--green2);
    -webkit-text-stroke: 2px rgba(20, 20, 20, 0.651);
    text-stroke: 2px rgba(29, 29, 29, 0.712);
    animation: glow 3s infinite;
    transition: all 0.3s ease;
    letter-spacing: 0;
    position: relative;
    margin-top: 10px;
    margin-bottom: 20px;
}

header h1:hover {
    -webkit-text-stroke: 2px white;
    text-stroke: 2px white;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
    animation: hoverGlow 2s infinite;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 0, 0.2),
        transparent
    );
    background-size: 200% 100%;
    animation: hoverGlow 2s infinite, shine 3s infinite linear;
}

section h2 {
    transition: all 0.3s ease;
}

section h2:hover {
    -webkit-text-stroke: 1px white;
    text-stroke: 1px white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
* {
    margin-bottom: 3%;
    padding: 0;
    box-sizing: border-box; 
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><circle cx='12' cy='12' r='3'/></svg>") 11 11, auto;}


body {
    --sb-track-color: #3c3c3c;
    --sb-thumb-color: #1d1d1d;
    --sb-size: 10px;
    --grey: #808080;
    
}

body::-webkit-scrollbar {
    width: var(--sb-size);
}

body::-webkit-scrollbar-track {
    background: var(--sb-track-color);
    border-radius: 5px;
}

body::-webkit-scrollbar-thumb {
    background: var(--sb-thumb-color);
    border-radius: 5px;
    border: 2px solid #3c3c3c;
}

@supports not selector(::-webkit-scrollbar) {
    body {
        scrollbar-color: var(--sb-thumb-color)
                       var(--sb-track-color);
    }
}

.cursor {
    width: 8px;
    height: 8px;
    background: #f7f7f7;
    opacity: 30%;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor-follower {
    width: 20px;
    height: 20px;
    border: 1px solid #f7f7f7;
    opacity: 20%;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease;
}

a:hover ~ .cursor,
button:hover ~ .cursor {
    transform: translate(-50%, -50%) scale(1.5);
}

a:hover ~ .cursor-follower,
button:hover ~ .cursor-follower {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(128, 128, 128, 0.1);
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    margin-bottom: 0!important;
}

#graphCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg);
    opacity: 0.9;
    pointer-events: none;
    display: block !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2% 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    text-align: center;
    padding: 5% 0;
}

header h1 {
    font-size: 60px;
    font-weight: 900 ;
    color: #07b400;
    -webkit-text-stroke: 2px #000;
    animation: titleGlow 5s ease-in-out infinite;
    letter-spacing: 0.5px;
}

@keyframes titleGlow {
    0% {
        -webkit-text-stroke: 2px #000;
        text-shadow: 0 0 5px #fff,
                     0 0 10px #fff,
                     0 0 15px #07b400;
    }
    25% {
        -webkit-text-stroke: 2px #fff;
        text-shadow: 0 0 5px #000,
                     0 0 10px #000,
                     0 0 15px #07b400;
    }
    50% {
        -webkit-text-stroke: 2px #000;
        text-shadow: 0 0 5px #fff,
                     0 0 10px #fff,
                     0 0 15px #07b400;
    }
    75% {
        -webkit-text-stroke: 2px #fff;
        text-shadow: 0 0 5px #000,
                     0 0 10px #000,
                     0 0 15px #07b400;
    }
    100% {
        -webkit-text-stroke: 2px #000;
        text-shadow: 0 0 5px #fff,
                     0 0 10px #fff,
                     0 0 15px #07b400;
    }
}

/* Section Headers */
section {
    width: 100%;
    text-align: center;
    padding: 5% 0;
    margin: 1% auto;
}

section h2 {
    font-size: 35px !important;
    font-weight: 800 !important;
    color: #07b400;
    margin: 3% auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

section h2:hover {
    transform: scale(1.05);
    letter-spacing: 1px;
    animation: sectionGlow 3s ease-in-out infinite;
}

@keyframes sectionGlow {
    0% {
        text-shadow: 0 0 5px #ffffff17,
                     0 0 10px #07b400;
    }
    50% {
        text-shadow: 0 0 10px #ffffff3a,
                     0 0 20px #07b400,
                     0 0 30px #07b400;
    }
    100% {
        text-shadow: 0 0 5px #ffffff09,
                     0 0 10px #07b400;
    }
}

/* Project Cards */
.project-card {
    background: rgba(20, 20, 20, 0.1);
    padding: 5%;
    margin: 2% auto;
    border-radius: 10px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(7, 180, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(7, 180, 0, 0.1),
        rgba(7, 180, 0, 0.05)
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(7, 180, 0, 0.5);
    box-shadow: 0 5px 15px rgba(7, 180, 0, 0.2);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card h3 {
    font-size: 25px;
    font-weight: 700 !important;
    color: white;
    transition: all 3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    transform: translateY(0);
}

.project-card:hover h3 {
    color: var(--green3);
    text-shadow: 
        0 0 5px var(--green3),
        0 0 10px var(--green2),
        0 0 20px var(--green1);
    transform: translateY(-2px);
}

.project-card p {
    margin: 10px auto;
    padding: 10px 0;
}

.project-card .tech-stack {
    margin: 10px auto;
    padding: 10px 0;
}

.project-card .project-link {
    margin: 10px auto;
}

/* Code Symbols Section */
.code-symbols {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 5%;
    width: 100%;
    margin: 2% auto;
}

.code-symbols i {
    color: #07b400;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}

@keyframes symbolGlow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3),
                     0 0 20px rgba(255, 255, 255, 0.2);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
}

.code-symbols i:hover {
    transform: scale(1.2);
    animation: symbolGlow 3s ease-in-out infinite;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10%;
    width: 100%;
    margin: 2% auto;
    padding: 2%;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 5%;
    width: 100%;
    margin: 2% auto;
    padding: 2%;
}

/* Contact Section */
.contact-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;

    justify-items: center;
    align-items: center;
    place-content: center;

    text-align: center;
    background: rgba(26, 26, 26, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(252, 252, 252, 0.1);
    box-sizing: border-box;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;

    width: 100%;
    min-width: 0;
    max-width: 180px;
    min-height: 42px;

    color: var(--gray2);
    text-decoration: none;
    padding: 8px 12px;
    background: rgba(8, 205, 0, 0.05);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(252, 252, 252, 0.1);
    margin:auto;
    text-align: center;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    box-sizing: border-box;
}

.contact-item:hover {
    color: #07b400;
    text-shadow: 0 0 10px rgba(7, 180, 0, 0.3);
    transform: translateY(-2px);
}

.contact-item i {
    color: #07b400;
    transition: all 0.3s ease;
    margin-top: auto;
    margin-bottom: auto;
    font-size: 16px;
    width: 18px;
    min-width: 18px;
    text-align: center;
}


.contact-item:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(7, 180, 0, 0.3);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        padding: 3% 5%;
    }

    header h1 {
        font-size: 45px;
    }

    section h2 {
        font-size: 28px;
    }

    .project-card h3 {
        font-size: 20px;
    }

    .code-symbols {
        gap: 30px;
    }

    .code-symbols i {
        font-size: 2rem;
    }

    .contact-links {
        gap: 3%;
    }
    
    .contact-item {
        margin: 2% auto;
    }
}

@media screen and (max-width: 600px){

nav {

    flex-direction: column !important;
    gap: 10% !important;

}


#about {
    margin-top: 10% !important;
}
 
}

@media screen and (max-width: 480px) {
    .container {
        padding: 4% 5%;
    }

    #about {
        margin-top: 10% !important;
    }

    header h1 {
        font-size: 35px;
    }

    section h2 {
        font-size: 24px;
    }

    .project-card h3 {
        font-size: 18px;
    }

    .code-symbols {
        gap: 20px;
    }

    .code-symbols i {
        font-size: 1.5rem;
    }

    .contact-links {
        gap: 2%;
    }
    
    .contact-item {
        margin: 3% auto;
    }
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5%;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 2%;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 1% 2%;
}

nav a:hover {
    color: #07b400;
    text-shadow: 0 0 10px rgba(7, 180, 0, 0.3);
    transform: translateY(-2px);
}

/* About Section */

#about {

    margin-top: 5%;
}

.about-content {
    width: 100%;
    text-align: center;
    padding: 2%;
    margin: 2% auto;
}

.about-text {
    width: 100%;
    max-width: 800px;
    margin: 1% auto;
    padding: 1%;
}

.tech-highlights {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    margin: 2% auto;
    padding: 2%;
}

/* Tech Highlights */
.highlight {
    background: rgba(7, 180, 0, 0.1);
    padding: 5px 10px;
    margin: 5px;
    color: #07b400;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center !important;
    position: relative;
    overflow: hidden;
    text-align: center !important;
}

.highlight i {
    color: #07b400;
    position: relative;
    margin-top: auto;
    margin-bottom: auto;
    z-index: 2;
    transition: all 0.3s ease;
    text-align: center !important;
}

.highlight span {
    text-align: center !important;
}

.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(9, 231, 0, 0.2),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.5s;
}

.highlight:hover {
    background: rgba(7, 180, 0, 0.2);
    transform: translateY(-2px);
}

.highlight:hover i {
    color: #09e700;
    animation: iconShine 1.5s ease-in-out infinite;
}

.highlight:hover::before {
    left: 150%;
}

@keyframes iconShine {
    0% {
        text-shadow: 0 0 5px #09e700;
    }
    50% {
        text-shadow: 0 0 10px #09e700,
                     0 0 20px #09e700;
    }
    100% {
        text-shadow: 0 0 5px #09e700;
    }
}



@keyframes logo-shine {
    0% { left: -100%; }
    100% { left: 150%; }
}

/* Ensure headers within sections are centered */
section h1, section h2, section h3 {
    text-align: center;
    display: block;
    width: 100%;
}

.about-content h1, .about-content h2, .about-content h3 {
    text-align: center;
    display: block;
    width: 100%;
}

/* Menu interactivity - Adjust for inline layout */
nav {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    animation: float-small 4s infinite ease-in-out; /* Apply floating animation */
}

nav a {
    color: var(--gray2);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.8;
    padding: 5px 10px;
    display: inline-block;
    text-align: center;
}

/* Re-enable and style the underline effect */
nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--green4);
    transition: width 0.3s ease;
    display: block;
}

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

/* Remove the background fill effect */
nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 255, 1, 0.0);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 5px;
    display: none;
}

nav a:hover {
    color: var(--green4);
    opacity: 1;
    transform: scale(1.1);
    text-shadow: 0 0 8px var(--green4);
}

/* Set opacity for section content divs - adjusted to background */
section > div {
    /* opacity: 0.3; Removed overall opacity */
    transition: opacity 0.5s ease-in-out; /* Optional: Keep transition for potential other uses */
}

/* Set opacity for cards' background, overriding the section div opacity where applicable */
.project-card, .skill-card {
    background: rgba(20, 20, 20, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(252, 252, 252, 0.5);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    transform: translateY(0);
    transition: all 0.2s ease-out;
}

/* Define a small floating animation */
@keyframes float-small {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); } /* Adjust float distance here */
}

/* Remove rotation for smoother feel */
.project-card, .skill-card {
    border: 1px solid rgba(252, 252, 252, 0.5);
    box-shadow: 0 0 0 0 rgba(11, 255, 1, 0);
    transition: all 0.2s ease-out;
}

.project-card:hover, .skill-card:hover {
    animation: cardShine 3s ease-out;
    border-color: var(--green4);
    box-shadow: 
        0 0 0 2px rgba(11, 255, 1, 0.2),
        0 0 0 4px rgba(11, 255, 1, 0.1),
        0 0 15px rgba(11, 255, 1, 0.2);
}

.skill-icon {
    color: #07b400;
    margin-bottom: 1rem;
    transition: all 0.5s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(7, 180, 0, 0.3);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.tech-item {
    display: flex;
    background-color: rgba(30, 30, 30, 0.3);
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.884);
    padding: 0.5rem;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: transform 0s, background 0.3s ease;
    text-align: center;
}

.tech-item::before {
    content: '';
    position: absolute;
    color: rgba(255, 255, 255, 0.884);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tech-item:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: rgba(255, 255, 255, 0.95);
    background: rgba(7, 205, 0, 0.801);
}

.tech-item:hover::before {
    opacity: 1;
}

.tech-item i {
    color: #07b400;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    margin-top: auto;
    margin-bottom: auto;
}

.tech-item:hover i {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(7, 180, 0, 0.3);
}

.tech-item span {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.tech-item:hover span {
    color: var(--green4);
    text-shadow: 0 0 5px rgba(11, 255, 1, 0.3);
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 8px 20px !important;
    background: var(--green2);
    color: var(--bg);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.5s ease-out;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    border: 3px solid transparent;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.project-card:hover .project-link {
    opacity: 1;
    transform: translateY(0);
}

.project-link:hover {
    background: var(--green4);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    border: 2px solid var(--green2);
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-link:hover::before {
    transform: translateX(100%);
}

/* Section transitions */
section {
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 2rem 0;
    position: relative;
    background: rgba(26, 26, 26, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced project card animations */
.project-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add delay for each project card */
.project-card:nth-child(1) { transition-delay: 0.1s; }
.project-card:nth-child(2) { transition-delay: 0.2s; }
.project-card:nth-child(3) { transition-delay: 0.3s; }
.project-card:nth-child(4) { transition-delay: 0.4s; }
.project-card:nth-child(5) { transition-delay: 0.5s; }
.project-card:nth-child(6) { transition-delay: 0.6s; }
.project-card:nth-child(7) { transition-delay: 0.7s; }
.project-card:nth-child(8) { transition-delay: 0.8s; }
.project-card:nth-child(9) { transition-delay: 0.9s; }
.project-card:nth-child(10) { transition-delay: 1s; }
.project-card:nth-child(11) { transition-delay: 1.1s; }
.project-card:nth-child(12) { transition-delay: 1.2s; }
.project-card:nth-child(13) { transition-delay: 1.3s; }
.project-card:nth-child(14) { transition-delay: 1.4s; }
.project-card:nth-child(15) { transition-delay: 1.5s; }
.project-card:nth-child(16) { transition-delay: 1.6s; }

/* Responsive design */
@media (max-width: 1200px) {
    h1 {
        font-size: 3.7rem;
    }

    h2 {
        font-size: 2.4rem;
    }

    nav a {
        font-size: 1.4rem;
    }

    .contact-links {
        grid-template-columns: repeat(3, 1fr);
    }


    .tech-item i {
        font-size: 1.3rem;
    }

    .contact-item i {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    nav a {
        margin-left: 1rem;
        font-size: 1.3rem;
    }

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

    .project-grid, .skills-grid {
        grid-template-columns: 1fr;
    }


    .tech-item i {
        font-size: 1.2rem;
    }

    .contact-item i {
        font-size: 12px;
    }

    .code-symbols {
        font-size: 2.5rem;
        gap: 1.5rem;
    }

    .typing-text {
        font-size: 20px;
    }

    .about-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.7rem;
    }

    h2 {
        font-size: 2rem;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 0.5rem 0;
        font-size: 1.2rem;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }

    .skill-icon {
        font-size: 2rem;
    }

    .tech-item i {
        font-size: 1.1rem;
    }

    .contact-item i {
        font-size: 10px;
    }

    .code-symbols {
        font-size: 2rem;
        gap: 1rem;
    }

    .typing-text {
        font-size: 1.2rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .container {
        padding: 25px;
    }

    section {
        padding: 1.5rem;
        margin: 2rem 0;
    }
}

/* About section styles */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
   
    background: rgba(20, 20, 20, 0.1
    ); /* Set background opacity to 30% */
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(252, 252, 252, 0.5);
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-content h1, .about-content h2, .about-content h3 {
    text-align: left;
}

.code-symbols {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.code-symbols i:hover {
    transform: scale(1.2);
}

.code-symbols i:nth-child(2) { animation-delay: 0.2s; }
.code-symbols i:nth-child(3) { animation-delay: 0.4s; }
.code-symbols i:nth-child(4) { animation-delay: 0.6s; }
.code-symbols i:nth-child(5) { animation-delay: 0.8s; }
.code-symbols i:nth-child(6) { animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.about-text {
    text-align: center;
}

.typing-text {
    font-size: clamp(14px, 4vw, 20px);
    color: var(--gray2);
    position: relative;
    display: block;

    width: min(100%, 800px);
    max-width: calc(100vw - 32px);
    min-height: 5.6rem;

    line-height: 1.4;
    text-align: center;
    margin: 0 auto 2rem;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    box-sizing: border-box;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@media (max-width: 768px) {
    .typing-text {
        font-size: clamp(14px, 4.2vw, 17px);
        max-width: calc(100vw - 32px);
        min-height: 6.2rem;
        padding: 0 0.25rem;
    }
}

@media (max-width: 480px) {
    .typing-text {
        font-size: clamp(13px, 4vw, 16px);
        max-width: calc(100vw - 28px);
        min-height: 6.8rem;
    }
}

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

.typing-text::after {
    content: '|';
    position: absolute;
    right: -5px;
    animation: blink 1s infinite;
    color: var(--green4);
    text-shadow: 0 0 10px var(--green4);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.tech-highlights {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    width: 100%;
    margin: 2% auto;
    padding: 2%;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(26, 26, 26, 0.1);
    border-radius: 20px;
    color: var(--green2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.267);
}

.highlight:hover {
    background: rgba(8, 205, 0, 0.2);
    transform: translateY(-3px) scale(1.05);
    border-color: var(--green4);
    box-shadow: 0 5px 15px rgba(11, 255, 1, 0.2);
}

.highlight i {
    font-size: 15px;
    transition: all 0.3s ease;
}

.highlight:hover i {
    color: var(--green4);
    transform: scale(1.2) rotate(10deg);
}

@keyframes textShadowLoop {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3),
                     0 0 20px rgba(255, 255, 255, 0.2);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
}

#contact p {
    font-size: 12px;
    animation: textShadowLoop 3s ease-in-out infinite;
    margin-bottom: 2rem;
}

/* Responsive adjustments for highlights */
@media screen and (max-width: 1200px) {
    .tech-highlights {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .tech-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .tech-highlights {
        grid-template-columns: 1fr;
    }
}

/* Footer/Contact section styles */
#contact {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(26, 26, 26, 0.3);
    margin: 0;
    padding: 4rem 2rem;
    position: relative;
    border-top: 1px solid rgba(252, 252, 252, 0.1);
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green4), transparent);
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    text-align: center;
    background: rgba(26, 26, 26, 0.3); /* Set background opacity to 30% */
    border-radius: 10px; /* Added border radius for consistency */
    backdrop-filter: blur(5px); /* Kept existing blur */
    border: 1px solid rgba(252, 252, 252, 0.1); /* Kept existing border */
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--gray2);
    text-decoration: none;
    padding: 5px 10px;
    background: rgba(8, 205, 0, 0.05);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(252, 252, 252, 0.1);
    text-align: center;
    font-size: 12px;
}

.contact-item:hover {
    background: rgba(8, 205, 0, 0.1);
    transform: translateY(-5px) scale(1.02);
    border-color: var(--green4);
    box-shadow: 0 5px 20px rgba(11, 255, 1, 0.2);
}

.contact-item i {
    font-size: 16px;
    color: var(--green2);
    transition: all 0.3s ease;
}

.contact-item:hover i {
    color: var(--green4);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .contact-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .contact-links {
        grid-template-columns: 1fr;
    }
}

html {
    scroll-behavior: auto; /* Disabled native smooth scroll, using Lenis instead */
    scroll-padding-top: 80px; /* Adjust based on your header height */
}

/* Language Switcher Styles */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: rgba(26, 26, 26, 0.7);
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(252, 252, 252, 0.2);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--gray2);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.lang-btn:hover, .lang-btn.active {
    color: var(--green4);
    opacity: 1;
    transform: scale(1.1);
}

.lang-btn.active {
    text-shadow: 0 0 10px var(--green4);
}

/* RTL Support for Arabic */
[lang="ar"] {
    direction: rtl;
    text-align: right;
}

/* RTL Support for Persian */
[lang="fa"] {
    direction: rtl;
    text-align: right;
}

/* Center all other text elements */
p, span, .typing-text, .highlight {
    text-align: center;
}

/* Project grid and skills grid are direct children divs of sections */
.project-grid, .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 2rem;
    perspective: 1000px;
    /* background is handled by the cards inside */
}

section h2 {
    font-size: 33px;
    font-weight: 500;
    transition: all 0.5s ease;
}

:hover {
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        text-shadow: 0 0 5px #ffffff0e;
    }
    50% {
        text-shadow: 0 0 20px #ffffff75,
                     0 0 30px #07b400;
    }
    100% {
        text-shadow: 0 0 5px #ffffff0e;
    }
}

.project-card h3 {
    font-size: 23px;
    font-weight: 400;
    color: #07b400;
    transition: all 0.3s ease;
}

.project-card:hover  {
    transform: translateY(-2px);
    color: #0bff01;
}

.project-card p {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

@media screen and (max-width: 768px) {
    .code-symbols {
        gap: 15px;
    }
    
    .code-symbols i {
        font-size: 2rem;
    }
    
    header h1 {
        font-size: 50px;
    }
    
    section h2 {
        font-size: 35px;
    }
    
    .project-card h3 {
        font-size: 25px;
    }
}

@media screen and (max-width: 480px) {
    .code-symbols {
        gap: 10px;
    }
    
    .code-symbols i {
        font-size: 1.5rem;
    }
    
    header h1 {
        font-size: 32px;
    }
    
    section h2 {
        font-size: 25px;
    }
    
    .project-card h3 {
        font-size: 20px;
    }
}

/* Base text styles */
h1, h2, h3, p, .typing-text, .highlight, .tech-item, .contact-item {
    letter-spacing: 0.5px;
}

/* Add shine animation for cards */
@keyframes cardShine {
    0% {
        background: rgba(8, 205, 0, 0);
        box-shadow: 0 0 0 rgba(11, 255, 1, 0);
    }
    25% {
        background: rgba(8, 205, 0, 0.1);
        box-shadow: 0 0 20px rgba(11, 255, 1, 0.2);
    }
    50% {
        background: rgba(8, 205, 0, 0.2);
        box-shadow: 0 0 30px rgba(11, 255, 1, 0.3);
    }
    75% {
        background: rgba(8, 205, 0, 0.1);
        box-shadow: 0 0 20px rgba(11, 255, 1, 0.2);
    }
    100% {
        background: rgba(8, 205, 0, 0);
        box-shadow: 0 0 0 rgba(11, 255, 1, 0);
    }
}

@keyframes cardGlow {
    0% {
        border-color: rgba(11, 255, 1, 0.2);
    }
    50% {
        border-color: rgba(11, 255, 1, 0.5);
    }
    100% {
        border-color: rgba(11, 255, 1, 0.2);
    }
}

.project-card, .skill-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card:hover, .skill-card:hover {
    animation: cardShine 3s ease-out infinite;
    border-color: var(--green4);
    transform: translateY(-5px);
}

.project-card::after, .skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(11, 255, 1, 0.1),
        transparent
    );
    opacity: 0;
    transition: opacity 1s ease;
}

.project-card:hover::after, .skill-card:hover::after {
    opacity: 1;
    animation: cardGlow 3s ease-out infinite;
}

/* Remove conflicting styles */
.project-card:hover::before, .skill-card:hover::before {
    display: none;
}

/* Enhanced card animations */
@keyframes slideFlash {
    0% {
        background-position: -100% 0;
        opacity: 0;
    }
    20% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.1;
    }
    100% {
        background-position: 200% 0;
        opacity: 0;
    }
}

@keyframes arrowPattern {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.project-card::before, .skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(11, 255, 1, 0.1),
        transparent
    );
    transform: translateX(-10%);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.project-card::after, .skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, 
            transparent 0%,
            rgba(128, 128, 128, 0.2) 20%,
            transparent 40%,
            transparent 60%,
            rgba(128, 128, 128, 0.2) 80%,
            transparent 100%
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0%,
            transparent 10%,
            rgba(128, 128, 128, 0.2) 10%,
            rgba(128, 128, 128, 0.2) 20%
        );
    background-size: 100% 100%, 40px 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover, .skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 5px 15px rgba(11, 255, 1, 0.2),
        0 0 30px rgba(11, 255, 1, 0.1);
}

.project-card:hover::before, .skill-card:hover::before {
    transform: translateX(10%);
    animation: slideFlash 3s ease-out;
}

.project-card:hover::after, .skill-card:hover::after {
    opacity: 1;
    animation: arrowPattern 2s linear infinite;
}

/* Add arrow indicators */
.project-card::before, .skill-card::before {
    content: '>>';
    position: absolute;
    top: 50%;
    left: -50px;
    transform: translateY(-50%);
    color: rgba(128, 128, 128, 0.2);
    font-size: 20px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover::before, .skill-card:hover::before {
    left: 10px;
    opacity: 0.2;
}

.project-card::after, .skill-card::after {
    content: '<<';
    position: absolute;
    top: 50%;
    right: -50px;
    transform: translateY(-50%);
    color: rgba(128, 128, 128, 0.2);
    font-size: 20px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover::after, .skill-card:hover::after {
    right: 10px;
    opacity: 0.2;
}

.skill-card h3 {
    font-size: clamp(25px, 3vw, 33px);
    margin-top: 1%;
    font-weight: 700 !important;
    color: #ffffff;
    transition: all 3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    transform: translateY(0);
}

.skill-card:hover h3 {
    color: var(--green3);
    text-shadow: 
        0 0 5px var(--green3),
        0 0 10px var(--green3),
        0 0 20px var(--green3);
    transform: translateY(-2px);
}

@keyframes textStroke {
    0% {
        -webkit-text-stroke: 0.5px #ffffff;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        -webkit-text-stroke: 0.5px #242424;
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    }
    100% {
        -webkit-text-stroke: 0.5px #ffffff;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
}

@keyframes textGlow {
    0% {
        color: #ffffff;
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.3),
            0 0 10px rgba(255, 255, 255, 0.2);
    }
    50% {
        color: var(--green3);
        text-shadow: 
            0 0 5px var(--green3),
            0 0 10px var(--green3),
            0 0 20px var(--green3);
    }
    100% {
        color: #ffffff;
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.3),
            0 0 10px rgba(255, 255, 255, 0.2);
    }
}

.project-card h3, .skill-card h3 {
    font-weight: 700 ;
    color: #ffffff;
    transition: all 3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    transform: translateY(0);
}

.project-card:hover h3, .skill-card:hover h3 {
    animation: 
        textStroke 3s ease-in-out infinite,
        textGlow 3s ease-in-out infinite;
    transform: translateY(-2px);
} 

.scroll-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 35px;
    height: 35px;
    background: rgba(48, 48, 48, 0.5);
    border: 2px solid rgba(39, 39, 39, 0.74);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 1s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top::before {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 3px solid rgba(255, 255, 255, 0.7);
    border-right: 3px solid rgba(255, 255, 255, 0.7);
    transform: rotate(-45deg);
    margin-top: 4px;
    transition: all 1s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.scroll-to-top:hover {
    background: rgba(15, 161, 15, 0.8);
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    animation: pulse 1s ease;
}

.scroll-to-top:hover::before {
    border-color: white;
}

@keyframes shine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.scroll-to-top:hover {
    background: linear-gradient(
        90deg,
        rgba(0, 190, 0, 0.8),
        rgba(0, 190, 0, 0.9),
        rgba(0, 190, 0, 0.8)
    );
    background-size: 200% 100%;
    animation: shine 3s infinite linear, pulse 1s ease;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    gap: 20px;
}

.header-logo {
    width: 80%;
    height: auto;
}

header h1 {
    font-size: clamp(35px, 5vw, 60px);
    text-align: center;
    margin: 0;
}

nav {
    display: flex;
    gap: clamp(10px, 3vw, 30px);
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    font-size: clamp(14px, 2.5vw, 18px);
    white-space: nowrap;
}

/* Tablet Styles */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    header {
        padding: 30px;
        gap: 25px;
    }

    .header-logo {
        width: 80%;
        max-width: 500px;
    }

    header h1{
        font-size: 45px;
    }

    nav {
        gap: 20px;
    }
}

/* Mobile Styles */
@media screen and (max-width: 767px) {
    header {
        position: relative;
        padding: 10px 20px;
        gap: 15px;
        min-height: 80vh;     
           }

    .header-logo {
        position: absolute;
        top: 15%;
        width: 70%;
        max-width: 280px;
    }

    nav {
        position: absolute;
        top: 70%;
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }

nav a {
    font-size: 11px;
}
}

#projects {
    padding: 40px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    width: 100%;
}

.project-card {
    background: rgba(20, 20, 20, 0.2);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.project-card h3 {
    font-size: clamp(25px, 3vw , 33px);
    margin: 0;
}

.project-card p {
    font-size: clamp(14px, 2vw, 16px);
    margin: 0;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-item {
    font-size: clamp(12px, 1.5vw, 14px);
    padding: 5px 10px;
    background: rgba(50, 50, 50, 0.3);
    border-radius: 5px;
}

.project-link {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(0, 255, 0, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
}

.project-link:hover {
    background: rgba(0, 255, 0, 0.3);
    transform: translateY(-2px);
}

/* Tablet Styles */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .project-card {
        padding: 20px;
    }
}

/* Mobile Styles */
@media screen and (max-width: 767px) {
    #projects {
        padding: 20px 10px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .project-card {
        padding: 15px;
    }

    .tech-stack {
        gap: 8px;
    }

    .tech-item {
        padding: 6px 12px;
    }

    .project-link {
        width: 100%;
        padding: 10px;
    }
}

#skills {
    padding: 40px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    width: 100%;
}

.skill-card {
    background: rgba(20, 20, 20, 0.2);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1px;
    height: 100%;
}



.skill-icon {
    font-size: 35px;
    margin-bottom: 10px;
}

/* Tablet Styles */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .skill-card {
        padding: 20px;
    }
}

/* Mobile Styles */
@media screen and (max-width: 767px) {
    #skills {
        padding: 20px 10px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .skill-card {
        padding: 15px;
    }
}

@keyframes glow {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.2); filter: brightness(1.3) drop-shadow(1 1 10px rgba(255, 255, 255, 0.568)); }
    100% { transform: scale(1); filter: brightness(1); }
}

.code-symbols i {
    transition: all 0.5s ease;
}

.code-symbols i.active {
    animation: glow 1s ease;
}

.code-symbols {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

@keyframes iconGlow {
    0% { 
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
    50% { 
        transform: scale(1.2);
        filter: brightness(1.3) drop-shadow(0 0 15px rgba(0, 255, 0, 0.6));
    }
    100% { 
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 0 rgba(0, 255, 0, 0));
    }
}

/* Header Styles */
header {
    max-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    gap: 2rem;
    margin-bottom: 3%;
}

.header-logo {
    width: 75%;
    height: auto;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out, filter 1s ease-in-out;
    transform-origin: center;
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    will-change: transform, opacity, filter;
}

.header-logo:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.header-logo:not(:hover) {
    transform: scale(1);
    opacity: 0.9;
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    transition: transform 1s ease-in-out, opacity 1s ease-in-out, filter 1s ease-in-out;
}

header h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin: 1rem 0;
    text-align: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

header h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    animation: navbarGlow 3s infinite;
    pointer-events: none;
}

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

@media (max-width: 768px) {
    header {
        padding: 1rem;
        gap: 1rem;
        margin-bottom: 5%;
    }

    header nav {
        gap: 1rem;
    }

    .header-logo {
        width: 75%;
        max-width: 500px;
    }


}

@media (max-width: 480px) {
    header {
        padding: 0.5rem;
        margin-bottom: 5%;
    }

    header nav {
        flex-direction: column;
        align-items: center;
    }

    .header-logo {
        width: 75%;
        max-width: 350px;
    }
}

.code-symbols {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    will-change: transform;
}

.code-symbols i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    will-change: transform, filter;
}

.code-symbols i.active {
    animation: iconGlow 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.highlight {
    display: inline-flex;
    font-size: 10px;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(30, 30, 30, 0.3);
    border-radius: 5px;
    white-space: nowrap;
}

.highlight i {
    font-size: 1.2em;
}

.matrix-container {
    width: 50%;
    border-radius: 10px;
    max-width: 600px;
    padding: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5%;
    min-height: 300px;
    max-height: 500px;
    background-color: rgba(0, 0, 0, 0.075);
    transform-origin: center center;
    will-change: transform;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
   gap: 1%;
   width: 100%;
}

.matrix-cell {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(12px, 1.8vw, 18px);
    opacity: 0.3;
    transition: all 0.5s ease;
    position: relative;
}

.matrix-cell.checker {
    color: #07cd00cc;
}

.matrix-cell:not(.checker) {
    color: #ffffff;
}

.matrix-cell.active {
    opacity: 0.5;
}

.matrix-cell.fade-out {
    opacity: 0;
}

.matrix-cell.fade-in {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .matrix-grid {
        width: 90%;
        gap: 2%;
    }
}

.matrix-container{
        width: 90%;

}

@media (max-width: 600px){
         .matrix-container{

                margin-top: 15% !important;
}
    
}

@media (max-width: 480px) {

    .matrix-container{
        width: 90%;
         margin-top: 15% !important;
}

    .matrix-grid {
        width: 95%;
        gap: 1%;
    }
}

#contact-form {
    width: 100%;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    border-radius: 14px;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
}

#contact-form h2 {
    color: #07b400;
    font-size: clamp(40px, 3vw, 70px)!important;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

.custom-contact-form {
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(15, 15, 15, 0.61);
    padding: 2rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(255, 255, 255, 0.253);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.custom-contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.custom-contact-form input,
.custom-contact-form textarea {
    padding: 0.8rem 1rem;
    text-align: center;
    border-radius: 8px;
    border: 2px solid #e9e9e946;
    background: rgba(0, 0, 0, 0.295);
    color: #ffffffbb;
    font-size: clamp(12px, 3vw, 18px);  
    transition: border 0.5s, background 0.5s;
    font-family: inherit;
    letter-spacing: 2px;
    resize: none;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.205);         
}

.custom-contact-form input::placeholder,
.custom-contact-form textarea::placeholder {
    font-size: clamp(10px, 3vw, 15px); 
}

.custom-contact-form input:hover::placeholder,
.custom-contact-form textarea:hover::placeholder {
    color: #ffffff96;
    transition: color 1s ease;
}

.custom-contact-form input:hover,
.custom-contact-form textarea:hover {
    border: 2px solid #ffffff75;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.26); 
}

.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
    border: 2px solid #06b400b4;
    color: #059c00;
    background: rgba(0, 0, 0, 0.199);
    box-shadow: 2 2px 10px rgba(6, 182, 0, 0.473);
}

.form-submit-btn {
    background:rgba(10, 10, 10, 0.5) ;
    color: #ffffffe3;
    border: 2px solid rgba(255, 255, 255, 0.527);
    padding: 0.8rem 1.3rem;
    border-radius: 10px;
    font-size: clamp(13px, 3vw, 18px);
    font-family: 'Quantico', sans-serif;
    font-weight: 600px;
    cursor: pointer;
    transition: background 0.5s, transform 0.5s;
    margin-left: 32%;
    margin-right: 32%;
    letter-spacing: 3px;
}

.form-submit-btn:hover {
    color: #fff;
    background: #059c00da;
    border: 2px solid rgba(15, 155, 2, 0.575);
    transform: translateZ(-2px) scale(1.05);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.363);
}

@media (max-width: 600px) {
    #contact-form {
        width: 100%;
        padding: 0.7rem 0.7rem 0.7rem 0.7rem;
    }
    .custom-contact-form {
        width: 100%;
        padding: 0.7rem 0.7rem;
        gap: 0.5rem;
    }
}

.custom-contact-form input:focus::placeholder,
.custom-contact-form textarea:focus::placeholder {
    color: #07b400;
    transition: color 1s ease;
}

.project-link {
  display: inline-block;
  background: rgba(0, 0, 0, 0.514);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #ffffffce;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 12px;
  transition: background 0.5s, color 0.5s, box-shadow 0.5s;
}
.project-link:hover {
  background: #0d9700c2;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.281);
}




/* =========================
CARDS of services
========================= */



.scd-31,
.scd-31 *,
.scd-31 *::before,
.scd-31 *::after {
    box-sizing: border-box;
}

.scd-31 {
    width: 100%;
    height: 100vh;
    max-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: var(--bg, #0a0a0a);

    padding: 30px 20px;
}


/* =========================
   INNER
========================= */

.scd-31__inner {
    width: 100%;
    height: 100%;

    max-width: 1200px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =========================
   HEADING
========================= */

.scd-31__heading {
    width: 100%;

    text-align: center;

    flex: 0 0 auto;

    margin-bottom: 5px;
}


.scd-31__eyebrow {
    display: block;

    color: var(--green3, #09e700);

    font-size: 1rem;
    font-weight: 600;

    letter-spacing: 0.22em;

    margin-bottom: 6px;
}


.scd-31__heading h2 {
    margin: 0;

    color: var(--gray2, #fcfcfc);

    font-size: clamp(40px, 3vw, 70px)!important;

    font-weight: 700;

    letter-spacing: 0.05em;

    line-height: 1;
}


/* small green line */

.scd-31__heading h2::after {
    content: "";

    display: block;

    width: 52px;
    height: 3px;

    margin: 12px auto 0;

    border-radius: 20px;

    background: linear-gradient(
        90deg,
        var(--green1, #07b400),
        var(--green4, #0bff01)
    );

    box-shadow:
        0 0 14px rgba(11, 255, 1, 0.25);
}


/* =========================
   STAGE
========================= */

.scd-31__stage {
    position: relative;

    width: 100%;

    flex: 1;

    min-height: 0;

    perspective: 1500px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================
   STACK
========================= */

.scd-31__stack {
    position: relative;

    width: 360px;
    height: 330px;

    transform:
        rotateX(50deg)
        rotateZ(-32deg);

    transform-style: preserve-3d;

    transition:
        transform 0.7s cubic-bezier(.3,.9,.3,1);
}


.scd-31__stage:hover .scd-31__stack {
    transform:
        rotateX(42deg)
        rotateZ(-24deg);
}


/* =========================
   CARDS
========================= */

.scd-31__plane {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 320px;
    height: 220px;

    padding: 24px 24px;

    border-radius: 16px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    transform-style: preserve-3d;

    border:
        1px solid rgba(11, 255, 1, 0.22);

    box-shadow:
        0 28px 55px rgba(0, 0, 0, 0.58),
        0 0 30px rgba(9, 231, 0, 0.05);

    transition:
        transform 0.7s cubic-bezier(.3,.9,.3,1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================
   ICON
========================= */

.scd-31__icon {
    font-size: 1.8rem;

    color: var(--green3, #09e700);

    margin-bottom: 13px;

    text-shadow:
        0 0 16px rgba(9, 231, 0, 0.35);
}


/* =========================
   TITLE
========================= */

.scd-31__tier {
    margin: 0 0 9px;

    color: var(--gray2, #fcfcfc);

    font-size: 1.25rem;

    font-weight: 700;

    letter-spacing: 0.07em;

    line-height: 1.25;

    text-align: center;
}


/* =========================
   TEXT
========================= */

.scd-31__feat {
    margin: 0;

    max-width: 205px;

    color: var(--gray1, #919191);

    font-size: 0.9rem;

    line-height: 1.55;

    text-align: center;
}


/* =========================
   CARD BACKGROUNDS
========================= */

.scd-31__plane--p1 {
    background:
        linear-gradient(
            145deg,
            #151515,
            #0c0c0c
        );

    transform:
        translate(-50%, -50%)
        translateZ(54px);
}


.scd-31__plane--p2 {
    background:
        linear-gradient(
            145deg,
            #121812,
            #0b0f0b
        );

    transform:
        translate(-50%, -50%)
        translateZ(34px);
}


.scd-31__plane--p3 {
    background:
        linear-gradient(
            145deg,
            #102010,
            #091009
        );

    transform:
        translate(-50%, -50%)
        translateZ(14px);
}


/* =========================
   DESKTOP HOVER SEPARATION
========================= */

.scd-31__stage:hover .scd-31__plane--p1 {
    transform:
        translate(-50%, -50%)
        translateZ(54px)
        translate(-220px, -150px) !important;
}

.scd-31__stage:hover .scd-31__plane--p3 {
    transform:
        translate(-50%, -50%)
        translateZ(14px)
        translate(220px, 150px) !important;
}

.scd-31__stage:hover .scd-31__plane--p2 {
    transform:
        translate(-50%, -50%)
        translateZ(34px)
        translate(0, 0);
}




/* =========================
   CARD HOVER
========================= */

.scd-31__plane:hover {
    border-color:
        rgba(11, 255, 1, 0.7);

    box-shadow:
        0 34px 70px rgba(0, 0, 0, 0.7),
        0 0 35px rgba(9, 231, 0, 0.14);
}


/* =========================
   MEDIUM DESKTOP / LAPTOP
========================= */

@media (max-width: 1100px) {

    .scd-31__stack {
        transform:
            scale(0.9)
            rotateX(50deg)
            rotateZ(-32deg);
    }


    .scd-31__stage:hover .scd-31__stack {
        transform:
            scale(0.9)
            rotateX(42deg)
            rotateZ(-24deg);
    }


    .scd-31__stage:hover .scd-31__plane--p1 {
        transform:
            translate(-50%, -50%)
            translateZ(54px)
            translate(-145px, -125px);
    }


    .scd-31__stage:hover .scd-31__plane--p3 {
        transform:
            translate(-50%, -50%)
            translateZ(14px)
            translate(145px, 125px);
    }

}


/* =========================
   TABLET
========================= */

@media (max-width: 768px) {

    .scd-31 {
        padding:
            24px 12px;
    }


    .scd-31__heading {
        margin-bottom: 0;
    }


    .scd-31__heading h2 {
        font-size: 2.2rem;
    }


    .scd-31__stack {
        transform:
            scale(0.72)
            rotateX(50deg)
            rotateZ(-32deg);
    }


    .scd-31__stage:hover .scd-31__stack {
        transform:
            scale(0.72)
            rotateX(43deg)
            rotateZ(-25deg);
    }


    .scd-31__stage:hover .scd-31__plane--p1 {
        transform:
            translate(-50%, -50%)
            translateZ(54px)
            translate(-125px, -105px);
    }


    .scd-31__stage:hover .scd-31__plane--p3 {
        transform:
            translate(-50%, -50%)
            translateZ(14px)
            translate(125px, 105px);
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 520px) {

    .scd-31 {
        height: 100vh;
        max-height: 100vh;

        padding:
            20px 8px;
    }


    .scd-31__eyebrow {
        font-size: 0.62rem;
    }


    .scd-31__heading h2 {
        font-size: 1.9rem;
    }


    .scd-31__heading h2::after {
        margin-top: 9px;
    }


    .scd-31__stack {
        width: 310px;
        height: 290px;

        transform:
            scale(0.63)
            rotateX(49deg)
            rotateZ(-31deg);
    }


    .scd-31__stage:hover .scd-31__stack {
        transform:
            scale(0.63)
            rotateX(43deg)
            rotateZ(-25deg);
    }


    .scd-31__stage:hover .scd-31__plane--p1 {
        transform:
            translate(-50%, -50%)
            translateZ(54px)
            translate(-105px, -90px);
    }


    .scd-31__stage:hover .scd-31__plane--p3 {
        transform:
            translate(-50%, -50%)
            translateZ(14px)
            translate(105px, 90px);
    }

}


/* =========================
   TOUCH DEVICES
========================= */

@media (hover: none) {

    .scd-31__stack {
        transform:
            scale(0.76)
            rotateX(45deg)
            rotateZ(-27deg);
    }

}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    .scd-31__stack,
    .scd-31__plane {
        transition: none !important;
    }

}