:root {
    --primary-color: #0057ff;
    --primary-dark: #0046cc;
    --primary-light: #4d8bff;
    --secondary-color: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-dark: #f5f8ff;
    --accent-color: #00d9ff;
    --shadow: 0 4px 20px rgba(0, 87, 255, 0.1);
    --transition: all 0.3s ease;
    --code-bg: #1e2033;
    --code-text: #e0e0e0;
    --cookie-bg: rgba(255, 255, 255, 0.95);
    --cookie-text: #333333;
    --card-bg: #ffffff;
}

[data-theme="dark"] {
    --primary-color: #4d8bff;
    --primary-dark: #0057ff;
    --primary-light: #80adff;
    --secondary-color: #1a1a2e;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --bg-color: #121212;
    --bg-dark: #1a1a2e;
    --accent-color: #00d9ff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --code-bg: #1a1a2e;
    --code-text: #e0e0e0;
    --cookie-bg: rgba(26, 26, 46, 0.95);
    --cookie-text: #e0e0e0;
    --card-bg: #1e2033;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--primary-color);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.theme-toggle {
    display: flex;
    align-items: center;
}

.theme-toggle i {
    font-size: 16px;
    color: var(--text-color);
}

.theme-toggle .fa-sun {
    margin-right: 8px;
}

.theme-toggle .fa-moon {
    margin-left: 8px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    cursor: pointer;
    transition: 0.4s;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

.toggle-switch input:checked+label {
    background-color: var(--primary-color);
}

.toggle-switch input:checked+label:before {
    transform: translateX(26px);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:not(.cta-button):hover::after {
    width: 100%;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 87, 255, 0.2);
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 87, 255, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

.hero {
    background-color: #121212;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.typing-text {
    font-size: 4.5rem;
    margin-bottom: 40px;
    color: white;
    line-height: 1.2;
}

#typing::after {
    content: "|";
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.cta-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.secondary-button {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: white;
    transition: var(--transition);
}

.secondary-button:hover {
    background-color: var(--primary-light);
    color: white;
    transform: translateY(-2px);
}

.about {
    padding: 100px 0;
    background-color: var(--bg-dark);
    transition: background-color 0.3s ease;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.tech-stack {
    flex: 1;
}

.tech-stack h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tech-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.services {
    padding: 100px 0;
    transition: background-color 0.3s ease;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 87, 255, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.projects {
    padding: 100px 0;
    background-color: var(--bg-dark);
    transition: background-color 0.3s ease;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 87, 255, 0.15);
}

.project-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    background-color: var(--bg-dark);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.centered-button {
    display: flex;
    justify-content: center;
}

.contact {
    padding: 100px 0;
    transition: background-color 0.3s ease;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-color);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.1);
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    width: 100%;
}

.submit-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

footer {
    background-color: var(--code-bg);
    color: white;
    padding: 50px 0 20px;
    transition: background-color 0.3s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 87, 255, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--cookie-bg);
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    color: var(--cookie-text);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-button {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-button.accept {
    background-color: var(--primary-color);
    color: white;
}

.cookie-button.accept:hover {
    background-color: var(--primary-dark);
}

.cookie-button.decline {
    background-color: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
}

.cookie-button.decline:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.success-message {
    text-align: center;
    padding: 30px 0;
}

.success-message i {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-message h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .typing-text {
        font-size: 3.5rem;
    }

    .about-content {
        flex-direction: column;
    }

    .tech-icons {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-content {
        flex-direction: column;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .cookie-text {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .typing-text {
        font-size: 3rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: 0.4s;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .tech-icons {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cta-container {
        flex-direction: column;
        gap: 15px;
    }

    .cta-button,
    .secondary-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .typing-text {
        font-size: 2.5rem;
    }

    .tech-icons {
        grid-template-columns: repeat(2, 1fr);
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-button {
        width: 100%;
    }
}

.bar.active:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.bar.active:nth-child(2) {
    opacity: 0;
}

.bar.active:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}