* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Transition base styles */
body, section {
    transition: background-color 0.5s ease, color 0.3s ease;
}

.texttitle,
#home .text,
#home .name,
#home .job,
.about-text,
.service-card h3,
.service-card p,
.project-card h3,
.project-card p,
.menu li a,
.description-colum {
    transition: color 0.3s ease;
}

.service-card,
.project-card,
.btn,
.social-icon,
.description-colum {
    transition: all 0.3s ease;
}

.transition * {
    transition: none !important;
}

section {
    height: 100vh;
    width: 100%;
    padding: 100px 20px;
    position: relative;
    background: #f0fdfa;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.navbar {
    width: 90%;
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin: 0 20px;
}

.menu li a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 18px;
}

.menu li a:hover {
    color: #1de2d1;
}

#home .content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.logo {
    position: absolute;
    left: 20%;
    bottom:45%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 20px;
}

#home .text {
    font-size: 27px;
    color: #2c3e50;
}

#home .name {
    font-size: 75px;
    color: #2c3e50;
}

#home .job {
    font-size: 40px;
    color: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#home .media {
    position: absolute;
    right: 20px;
    bottom: -50px;
    display: flex;
    flex-direction: column;
}

#home .media a {
    margin: 8px 0;
    font-size: 40px;
    color: #2c3e50;
    font-weight: 500;
    opacity: 0.7;
    transition: all 0.3s ease;
}

#home .media a:hover {
    opacity: 1;
}

.typing-container {
    display: absolute;
}

.typing-text {
    color: #1de2d1;
    animation: typing 3s steps(30) infinite;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #1de2d1;
}

.description {
    width: 60%;
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 20px;
}

.description-colum {
    font-size: 20px;
    padding: 15px;
    border-radius: 15px;
    background: linear-gradient(135deg, #2afade45 10%, #2afade45 10%);
    width: 48%;
    transition: transform 0.3s ease;
}

.description-colum:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 5;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    color: #000000;
    background: linear-gradient(135deg, #2afadf 10%, #68aaa2 100%);
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

#services {
    padding-top: 120px;
}

.texttitle {
    font-size: 40px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    color: #1de2d1;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
}

.service-card p {
    display: flex;
    justify-content: center;
}

.tech-stack {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-stack i {
    font-size: 2rem;
    color: #1de2d1;
}

#contact .content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#contact .job {
    font-size: 40px;
    color: #2c3e50;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

#contact .buttons{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.text1 {
    color: #1de2d1;
    margin-left: 15px;
    white-space: nowrap;
    overflow: hidden;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2c3e50;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon i {
    font-size: 28px;
    color: #fff;
}

.social-icon:hover {
    background: #1de2d1;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(29, 226, 209, 0.3);
}

#projects {
    padding-top: 120px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.project-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.project-card i {
    display: flex;
    justify-content: center;
    font-size: 2.5rem;
    color: #1de2d1;
    margin-bottom: 1rem;
}

.project-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.project-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
}

.demo-link, .code-link {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.demo-link {
    background: #1de2d1;
    color: #2c3e50;
}

.code-link {
    border: 2px solid #1de2d1;
    color: #2c3e50;
}

.demo-link:hover, .code-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(29, 226, 209, 0.3);
}

#about {
    padding-top: 120px;
    padding-bottom: 120px;
}

#about .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.download {
    padding-top: 40px;
    display: flex;
    justify-content: center;
}

.about-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text {
    font-size: 20px;
    max-height: 350px;
    overflow: hidden;
    color: #2c3e50;
    text-align: center;
}

.about-text .textss {
    color: #1de2d1;
    animation: cubic-bezier(0.39, 0.575, 0.565, 1);
}

#contact .content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding-top: 100px;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #2c3e50;
    color: #f0fdfa;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.dark-mode-toggle i {
    font-size: 24px;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
}

body.dark-mode section {
    background: #121212;
}

body.dark-mode .texttitle,
body.dark-mode #home .text,
body.dark-mode #home .name,
body.dark-mode #home .job,
body.dark-mode .about-text,
body.dark-mode .service-card h3,
body.dark-mode .service-card p,
body.dark-mode .project-card h3,
body.dark-mode .project-card p {
    color: #f0fdfa;
}

body.dark-mode .menu li a {
    color: #f0fdfa;
}

body.dark-mode .menu li a:hover {
    color: #1de2d1;
}

body.dark-mode .service-card,
body.dark-mode .project-card {
    background: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

body.dark-mode .description-colum {
    background: linear-gradient(135deg, #1de2d145 10%, #1de2d145 10%);
    color: #f0fdfa;
}

body.dark-mode .btn {
    color: #f0fdfa;
    background: linear-gradient(135deg, #1de2d1 10%, #1a8a7e 100%);
}

body.dark-mode .social-icon {
    background: #f0fdfa;
}

body.dark-mode .social-icon i {
    color: #2c3e50;
}

body.dark-mode .dark-mode-toggle {
    background: #f0fdfa;
    color: #2c3e50;
}

@keyframes typing {
    0% { width: 0; }
    100% { width: 100%; }
}

@media (max-width: 768px) {
    .buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
    }

    #home .name {
        font-size: 50px;
    }

    #home .job {
        font-size: 30px;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }

    .menu {
        display: none;
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }

    .social-icon i {
        font-size: 24px;
    }

    .dark-mode-toggle {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    #home .name {
        font-size: 40px;
    }

    #home .job {
        font-size: 24px;
    }

    .description {
        flex-direction: column;
    }
}
html {
    scroll-behavior: smooth;
}

* {
    will-change: background-color, color;
    backface-visibility: hidden;
}