html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Fira Code', monospace;
    background-color: #0a192f;
    color: #ccd6f6;
    position: relative;
}

body, html {
    margin: 0;
    padding: 0;
}

nav a {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ff6ec4;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
}

.certification-card,
.project-card {
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.certification-card img,
.project-card img {
    transition: transform 0.3s ease;
}

.certification-card:hover img,
.project-card:hover img {
    transform: scale(1.1) rotateY(10deg);
}

.certification-card:hover,
.project-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
}

.certification-card .overlay,
.project-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

.certification-card:hover .overlay,
.project-card:hover .overlay {
    opacity: 1;
}

.certification-card .overlay a,
.project-card .overlay a {
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.gradient-text {
    background: linear-gradient(45deg, #ff6ec4, #7873f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.gradient-text:hover {
    transform: rotateX(10deg) rotateY(10deg);
}

.section-divider {
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, #ff6ec4, #7873f5);
    margin: 40px auto;
}
section {
    scroll-margin-top: 80px;
}

#scrollIndicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: #ff6ec4;
    z-index: 1000;
    transition: width 0.25s ease-out;
}

.blink {
    animation: blink 1s steps(2, start) infinite;
}
@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

body.light-mode {
    background-color: #ffffff;
    color: #000000;
}

body.light-mode .background-image {
    opacity: 0.2;
}

body.light-mode header,
body.light-mode footer {
    background: #f8f8f8;
    color: #000000;
}

body.light-mode .gradient-text {
    background: linear-gradient(45deg, #ff6ec4, #7873f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode section {
    color: #000000;
}

body.light-mode .text-gray-400 {
    color: #555555;
}

#theme-toggle {
    position: fixed;
    top: 12%;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 5px;
    padding: 10px;
    color: white;
    cursor: pointer;
    z-index: 50;
}

#theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

body.light-mode #theme-toggle,
body.light-mode #theme-icon {
    color: #000000;
}

body.light-mode #theme-toggle:hover {
    color: #ff6ec4;
}

body.light-mode .overlay {
    background: rgba(255, 255, 255, 0.8);
}

body.light-mode #contactForm {
    background-color: #f9f9f9;
    color: #000000;
    border: 1px solid #ddd;
}

body.light-mode input,
body.light-mode textarea {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ccc;
}

body.light-mode input:focus,
body.light-mode textarea:focus {
    border-color: #ff6ec4;
}

body.light-mode .description-project {
    color: black;
}