:root {
    --primary-dark: #000000;
    --secondary-dark: #0a0a0a;
    --accent-dark: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-accent: #999999;
    --border-color: #333333;
    --accent-red: #8B0000;
    --accent-red-hover: #A00000;
    --accent-red-light: #B00000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

::-webkit-scrollbar {
    display: none;
}

.main-wrapper {
    width: 100%;
    min-height: 100%;
    background: var(--primary-dark);
    overflow: auto;
    padding-top: 50px;
}

.navbar {
    background: #000000;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.navbar-left {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-primary);
    font-family: 'Uncial Antiqua', cursive;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(139, 0, 0, 0.4), 0 0 20px rgba(139, 0, 0, 0.2);
    font-style: normal;
    position: relative;
    text-decoration: none;
    transition: color 0.2s ease;
}

.navbar-left:hover {
    color: var(--accent-red);
}

.navbar-center {
    font-size: 13px;
    color: var(--text-accent);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'JetBrains Mono', monospace;
    transition: opacity 0.3s ease;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

.navbar-right {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar-right:hover {
    color: var(--accent-red);
}

.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 80px 40px 80px;
    text-align: left;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/encryption.jpg') center/cover;
    filter: grayscale(100%) brightness(0.5);
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
    letter-spacing: -2px;
    color: var(--accent-red);
}

.hero-description {
    font-size: 18px;
    margin-bottom: 45px;
    max-width: 550px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 400;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    background: var(--accent-red);
    color: #ffffff;
    border: 1px solid var(--accent-red);
    padding: 16px 36px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-red-hover);
    transition: all 0.2s ease;
    z-index: 0;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    border-color: var(--accent-red-hover);
}

.btn:active {
    background: var(--accent-red-hover);
}

.btn span {
    position: relative;
    z-index: 1;
}

.about {
    background: #000000;
    padding: 0;
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: 500px;
}

.about-text-container {
    flex: 1;
    background: var(--secondary-dark);
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-color);
}

.about-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
}

.about-text {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 400;
    font-family: 'Space Grotesk', sans-serif;
}

.about-image {
    flex: 1;
    min-height: 500px;
    background: url('../img/code.jpg') center/cover;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
}

.projects {
    background: #000000;
    padding: 40px 40px;
}

.projects-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
}


.projects-list {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-item {
    background: var(--secondary-dark);
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    filter: brightness(0.7);
}

.project-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    filter: brightness(1);
}

.project-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    background: #000000;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/encrypt.jpg') center/cover;
    filter: grayscale(100%) brightness(0.3);
    transition: all 0.2s ease;
}

.project-item:hover .project-image::after {
    filter: grayscale(100%) brightness(0.8);
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.85));
    z-index: 1;
}

.project-content {
    padding: 30px;
    background: var(--secondary-dark);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-header {
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}

.project-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.project-role {
    font-size: 12px;
    color: var(--text-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Space Grotesk', sans-serif;
}

.project-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 25px;
    flex: 1;
    font-family: 'Space Grotesk', sans-serif;
    text-align: center;
    width: 100%;
}

.project-btn {
    background: var(--accent-red);
    color: #ffffff;
    border: 1px solid var(--accent-red);
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    align-self: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    font-family: 'Raleway', sans-serif;
    text-transform: none;
    text-decoration: none;
    display: inline-block;
}

.project-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-red-hover);
    transition: all 0.2s ease;
    z-index: 0;
}

.project-btn:hover::before {
    left: 0;
}

.project-btn:hover {
    border-color: var(--accent-red-hover);
}

.project-btn:active {
    background: var(--accent-red-hover);
}

.project-btn span {
    position: relative;
    z-index: 1;
}



.footer {
    background: #000000;
    padding: 60px 40px 40px 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h4 {
    font-size: 19px;
    margin-bottom: 18px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
    font-family: 'Space Grotesk', sans-serif;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li {
    margin-bottom: 12px;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.2s ease;
    display: inline-block;
    border-bottom: 1px solid transparent;
}

.social-links a:hover {
    color: var(--accent-red);
    border-bottom-color: var(--accent-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid var(--border-color);
    color: var(--text-accent);
    font-size: 12px;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        justify-content: center;
    }

    .navbar-left {
        font-size: 18px;
    }

    .navbar-center {
        display: none;
    }

    .navbar-right {
        display: none;
    }

    .hero {
        padding: 60px 30px;
        min-height: 500px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        width: 100%;
        flex-direction: column;
    }

    .btn {
        width: 100%;
        padding: 14px 28px;
        font-size: 13px;
    }

    .about {
        flex-direction: column;
    }

    .about-text-container {
        padding: 50px 30px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .about-title {
        font-size: 36px;
    }

    .about-image {
        min-height: 350px;
        width: 100%;
    }


    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .projects {
        padding: 40px 20px;
    }


    .projects-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .projects-list {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 100%;
    }

    .project-item:hover {
        transform: translateY(-3px);
    }

    .project-image {
        height: 200px;
    }

    .project-content {
        padding: 25px;
        align-items: center;
        text-align: center;
    }

    .project-title {
        font-size: 22px;
    }

    .project-role {
        font-size: 11px;
    }

    .project-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .project-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 12px;
        margin: 0 auto;
        display: block;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }

    .about-text-container {
        padding: 70px 50px;
    }

    .projects-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .project-image {
        height: 220px;
    }

    .project-content {
        padding: 25px;
    }

    .project-title {
        font-size: 22px;
    }

    .project-description {
        font-size: 14px;
    }
}
