:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --accent-color: #00ff9d;
    --accent-hover: #00cc7d;
    --secondary-bg: #141414;
    --card-bg: #1c1c1c;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.2);
    --card-shadow-hover: 0 15px 40px rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.floating-nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(28, 28, 28, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 35px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.floating-nav ul {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.floating-nav li {
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #888;
    transition: color 0.3s ease;
    position: relative;
}

.floating-nav li:hover {
    color: #fff;
}

.floating-nav li.active {
    color: var(--accent-color);
    font-weight: 700;
}

.nav-link-external {
    color: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link-external i {
    font-size: 0.75rem;
    color: #666;
    transition: color 0.3s ease;
}

.nav-link-external:hover i {
    color: var(--accent-color);
}

.content-container {
    height: 100vh;
    width: 100vw;
    position: relative;
}

.page-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(0.95) translateY(20px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 60px;
}

#projects.page-section {
    justify-content: flex-start;
    padding-top: 90px;
    padding-bottom: 20px;
    overflow-y: auto;
}

.page-section.active {
    opacity: 1 !important;
    pointer-events: all !important;
    transform: scale(1) translateY(0);
    z-index: 10;
}

.page-section::-webkit-scrollbar {
    width: 8px;
}

.page-section::-webkit-scrollbar-track {
    background: transparent;
}

.page-section::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.role-text {
    display: block;
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-text h2 {
    font-size: 1.6rem;
    color: #999;
    margin-bottom: 25px;
    font-weight: 400;
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    max-width: 550px;
    color: #ccc;
}

.cta-group {
    display: flex;
    gap: 15px;
}

.cta-button {
    padding: 14px 30px;
    background-color: var(--accent-color);
    color: #000;
    font-weight: 700;
    border-radius: 6px;
    border: 2px solid var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
}

.cta-button.outline {
    background-color: transparent;
    color: var(--accent-color);
}

.cta-button.outline:hover {
    background-color: rgba(0, 255, 157, 0.1);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
    font-weight: 700;
}

.section-title span {
    color: var(--accent-color);
}

#projects .section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}


.about-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(15, 15, 15, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.15rem;
    color: #f5f5f5;
    line-height: 1.7;
    letter-spacing: 0.1px;
    font-weight: 400;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.text-link {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-color);
    transition: all 0.2s;
}

.text-link:hover {
    border-bottom-style: solid;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 10px 0;
}

.project-card {
    background-color: var(--card-bg);
    padding: 18px;
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.project-card:not([onclick]):hover {
    transform: translateY(-2px);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.project-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.project-card h3 {
    font-size: 1.1rem;
    color: #fff;
}

.external-link-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    color: #666;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.project-card:hover .external-link-icon {
    color: #fff;
}

.project-desc {
    font-size: 0.85rem;
    color: #bbb;
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
}

.project-stats {
    list-style: none;
    margin-bottom: 12px;
    padding-top: 12px;
    border-top: 1px solid #333;
}

.project-stats li {
    font-size: 0.75rem;
    color: #bbb;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-stats i {
    color: var(--accent-color);
    font-size: 0.6rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.tag {
    background-color: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    color: #ccc;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--card-shadow);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.card h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card h3 i {
    color: var(--accent-color);
}

.contact-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-links-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: var(--card-bg);
    border: none;
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: var(--card-shadow);
}

.contact-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.contact-box i,
.contact-box svg {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.contact-box svg {
    fill: var(--accent-color);
}

.fixed-footer {
    position: fixed;
    bottom: 25px;
    left: 30px;
    z-index: 100;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    pointer-events: none;
}

.fixed-footer span {
    opacity: 0.8;
    color: #fff;
}

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    animation: arrow 1.5s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 6px;
    }
    100% {
        opacity: 0;
        top: 20px;
    }
}

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

@media (max-width: 968px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px 0;
    }

    .project-card {
        min-height: auto;
        padding: 15px;
    }

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

    #projects .section-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .floating-nav {
        bottom: 15px;
        top: auto;
        width: 95%;
        justify-content: center;
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .floating-nav ul {
        justify-content: space-between;
        width: 100%;
        gap: 0;
    }

    .scroll-indicator {
        display: none;
    }

    .fixed-footer {
        display: none;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .page-section {
        padding: 15px 0 70px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .page-section.active {
        transform: none !important;
    }

    #projects.page-section {
        padding-top: 15px;
        padding-bottom: 80px;
        overflow-y: auto;
        overflow-x: hidden;
        height: 100vh !important;
        transform: none !important;
        -webkit-overflow-scrolling: touch;
    }

    #projects.page-section .container {
        height: auto;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    #projects.page-section {
        padding-top: 60px;
        justify-content: flex-start;
    }

    #projects .section-title {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }

    .projects-grid {
        gap: 10px;
        padding: 0;
    }

    .project-card {
        padding: 10px;
        border-radius: 8px;
    }

    .project-header {
        gap: 6px;
        margin-bottom: 8px;
    }

    .project-icon {
        font-size: 0.95rem;
    }

    .project-card h3 {
        font-size: 0.9rem;
    }

    .external-link-icon {
        top: 10px;
        right: 10px;
        font-size: 0.7rem;
    }

    .project-desc {
        font-size: 0.75rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .project-stats {
        margin-bottom: 8px;
        padding-top: 8px;
    }

    .project-stats li {
        font-size: 0.7rem;
        margin-bottom: 5px;
    }

    .tag {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .about-content {
        padding: 20px;
    }

    .about-content p {
        font-size: 1rem;
    }

    .contact-box {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}