* {
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin;
  scrollbar-color: #ffffff20 transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: #ffffff20;
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #ffffff40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000000;
    border-bottom: 1px solid #ffffff20;
    z-index: 100000;
}

nav {
    max-width: 1200px;
    height: 64px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s;
}

.logo:hover {
    color: #ffffff60;
}

.search-container {
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem;
    background: #ffffff10;
    border: 1px solid #ffffff20;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.search-input::placeholder {
    color: #ffffff40;
}

.search-input:hover {
    background: #ffffff20;
    border-color: #ffffff40;
}

.search-input:focus {
    background: #ffffff20;
    border-color: #ffffff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: #ffffff80;
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.menu-toggle span {
    position: absolute;
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 8px;
}

.menu-toggle span:nth-child(2) {
    top: 14px;
}

.menu-toggle span:nth-child(3) {
    top: 20px;
}

.menu-toggle.active span:nth-child(1) {
    top: 14px;
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    top: 14px;
    transform: rotate(-45deg);
}

main {
    margin-top: 80px;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero {
    max-width: 100%;
    margin: 0;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    text-align: left;
    position: relative;
    background: 
        linear-gradient(#00000040, #00000040),
        url('https://i.ytimg.com/vi/_Qqgwnierl0/maxresdefault.jpg?sqp=-oaymwEmCIAKENAF8quKqQMa8AEB-AH-CYAC0AWKAgwIABABGGUgQihCMA8=&rs=AOn4CLDL_pNN702UixGa8plT9mVHBsYnCg') center/cover;
    backdrop-filter: blur(2px);
    padding: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(4px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    margin-top: auto;
}

.hero-content h1 {
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: #ffffff60;
}

.hero-stats {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 1.5rem;
    align-self: flex-end;
    background: #00000020;
    padding: 1rem 1.5rem;
    border: 1px solid #ffffff20;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.stat-label {
    font-size: 0.75rem;
    color: #ffffff80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-top: 0.25rem;
}

.portfolio {
    background: #000000;
    max-width: 100%;
    padding: 4rem 0;
}

.portfolio h2 {
    padding: 0 2rem;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
}

.portfolio-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.carousel-btn {
    background: transparent;
    border: 1px solid #ffffff00;
    color: #ffffff;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.carousel-btn:hover {
    color: #ffffff80;
    border: 1px solid #ffffff20;
}

.portfolio-wrapper {
    flex: 1;
    width: 100%;
    max-width: 1200px;
}

.portfolio-track {
    display: block;
}

.portfolio-item {
    background: #ffffff10;
    border: 1px solid #ffffff20;
    padding: 1.5rem;
    width: 100%;
    min-height: 260px;
    transition: all 0.3s;
    cursor: pointer;
    display: none;
    opacity: 0;
}

@keyframes fadeInSlideRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInSlideLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.portfolio-item.active {
    display: block;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border: 1px solid #ffffff40;
}

.portfolio-image {
    width: 100%;
    height: 200px;
    background: #ffffff10;
    margin-bottom: 1rem;
}

.portfolio-item p {
    color: #ffffff60;
}

.portfolio h2,
.blog h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 2rem auto;
}

.more-btn {
    font-size: 1rem;
    font-weight: lighter;
    color: #ffffff60;
    cursor: pointer;
    white-space: nowrap;
}

.more-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #ffffff60;
    transition: width 0.3s;
}

.more-btn:hover::after {
    width: 100%;
}

.blog-grid {
    display: grid;
    gap: 2rem;
}

.blog-item {
    border: 1px solid #ffffff00;
    border-bottom: 1px solid #ffffff20;
    padding-bottom: 2rem;
    transition: opacity 0.3s;
    cursor: pointer;
    padding: 16px;
    transition: all 0.3s;
}

.blog-item:last-child {
    border-bottom: none;
    border-bottom: 1px solid #ffffff00;
}

.blog-item:hover {
    border-color: #ffffff40;
    background-color: #ffffff10;
}

.blog-item:last-child:hover {
    border-bottom: 1px solid #ffffff40;
}

.blog-item time {
    color: #ffffff60;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.blog-item p {
    color: #ffffff80;
}

.blog-item-tag {
    display: inline-block;
    background: #ffffff20;
    color: #ffffff80;
    padding: 2px 8px;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 8px;
}

.contact-card {
    width: 100%;
    background: #000000;
    border: 1px solid #ffffff20;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-card span {
    width: 100%;
    text-align: right;
}

.contact-card img {
    display: block;
}

.contact-card:hover {
    background: #ffffff10;
    border-color: #ffffff40;
}

footer {
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #ffffff20;
}

@media (max-width: 860px) {
    nav {
        padding: 1rem;
    }

    nav > .search-container {
        display: none;
    }

    .search-container {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        flex-direction: column;
        background: #000000;
        width: 100%;
        border-bottom: 1px solid #ffffff20;
        padding: 2rem;
        gap: 1.5rem;
        transition: top 0.3s;
    }

    .nav-menu.active {
        top: 64px;
    }

    .menu-toggle {
        display: flex;
        order: 2;
    }

    .logo {
        order: 1;
    }

    section {
        padding: 3rem 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        min-height: 35vh;
    }

    .hero-stats {
        gap: 1rem;
        padding: 0.75rem 1rem;
    }

    .stat-item {
        min-width: 50px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .portfolio-item {
        position: relative;
        padding: 0;
    }

    .portfolio-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        z-index: 0;
    }

    .portfolio-image::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to top,
            #000000cc 0%,
            #00000080 40%,
            #00000000 70%
        );
        z-index: 1;
    }

    .portfolio-item h3,
    .portfolio-item p {
        position: absolute;
        left: 0;
        right: 0;
        padding: 0 1.5rem;
        z-index: 2;
        margin: 0;
    }

    .portfolio-item h3 {
        bottom: 3.2rem;
    }

    .portfolio-item p {
        bottom: 1.4rem;
        color: #ffffff80;
    }
}

@media (max-width: 720px) {
    .hero-stats {
        display: none;
    }

    .contact-card img {
        width: 28px !important;
    }

    .contact-card span {
        font-size: 0.8rem;
    }
}

@media (max-width: 560px) {
    nav {
        padding: 0.75rem;
    }

    .nav-menu {
        padding: 1.5rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    section {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .portfolio h2 {
        padding: 0 16px !important;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .blog-grid {
        gap: 8px;
    }

    .blog-item {
        padding: 0.5rem;
    }

    .blog-item h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .blog-item time {
        font-size: 0.6rem;
        margin-bottom: 0.2rem !important;
    }

    .blog-item p {
        font-size: 0.8rem;
    }

    .blog-item-tag {
        font-size: 0.6rem;
        margin-top: 0;
    }

    .portfolio-carousel {
        gap: 0.4rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .portfolio-item {
        min-width: 220px;
    }

    .portfolio-item h3 {
        font-size: 1rem;
        padding: 0 0.8rem !important;
    }

    .portfolio-item p {
        font-size: 0.8rem;
        padding: 0 0.8rem !important;
    }

    .portfolio-image {
        height: 100%;
    }

    .hero {
        min-height: 30vh;
        padding: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .contact-info {
        flex-direction: column;
    }
}