* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #0c0c0c;
    color: #ffffff;
    overflow-x: hidden;
}

::selection {
    background: #ffffff;
    color: #000000;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(12,12,12,1) 0%, rgba(12,12,12,0) 100%);
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    color: #777;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav a:hover, .nav a.active {
    color: #fff;
}

/* Fixed Elements */
.social-links {
    position: fixed;
    left: 60px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.social-links a {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.scroll-indicator {
    position: fixed;
    right: 60px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 100;
}

.scroll-indicator span {
    writing-mode: vertical-rl;
    font-size: 9px;
    letter-spacing: 4px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.scroll-indicator .line {
    width: 1px;
    height: 30px;
    background-color: #444;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 150px;
}

/* Hero Section */
.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1.5s ease;
}

.small-text {
    font-size: 11px;
    letter-spacing: 6px;
    color: #777;
    text-transform: uppercase;
    font-weight: 500;
}

.main-title {
    font-size: 13vw;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin: 10px 0;
    color: #fff;
}

.bottom-text {
    margin-top: 5px;
}

/* About Section */
.about {
    background-color: #111;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1100px;
    width: 100%;
    align-items: center;
}

.about-image {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.about-image:hover {
    filter: grayscale(0%);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.about-text p {
    color: #888;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat span {
    font-size: 11px;
    color: #777;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Skills Section */
.skills {
    flex-direction: column;
}

.skills-container {
    max-width: 1100px;
    width: 100%;
    text-align: center;
}

.skills-container h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.skill-card {
    background: #151515;
    padding: 40px 20px;
    border-radius: 5px;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: default;
}

.skill-card:hover {
    transform: translateY(-10px);
    background: #1a1a1a;
}

.skill-card i {
    font-size: 40px;
    color: #555;
    margin-bottom: 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

.skill-card:hover i {
    color: #fff;
}

.skill-card h3 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Network Section */
.network {
    flex-direction: column;
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    width: 100%;
}

.network-card {
    background: #151515;
    padding: 40px 30px;
    border-radius: 5px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, background 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.network-card:hover {
    transform: translateY(-10px);
    background: #1a1a1a;
}

.network-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 2px solid #333;
    transition: border-color 0.3s ease;
}

.network-card:hover .network-avatar {
    border-color: #fff;
}

.network-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.network-card:hover .network-avatar img {
    filter: grayscale(0%);
}

.network-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.network-card p {
    color: #777;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.network-link {
    font-size: 12px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.network-link:hover {
    color: #888;
}

.carousel-wrapper {
    position: relative;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #0c0c0c, transparent);
}

.carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #0c0c0c, transparent);
}

.friends-carousel {
    overflow-x: auto;
    padding-bottom: 40px;
    padding-top: 20px;
    max-width: 1000px;
    width: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto; /* Required for instant JS loop jumps */
}

.friends-carousel::-webkit-scrollbar {
    display: none;
}

.marquee-content {
    display: flex;
    width: max-content;
}

.marquee-group {
    display: flex;
    gap: 30px;
    padding-right: 30px; /* Seamless join */
}

.friend-card {
    min-width: 200px;
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease;
}

.friend-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: #333;
    background: #111;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
}

/* Blog Section */
.blog {
    flex-direction: column;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.blog-card {
    background: #151515;
    padding: 40px;
    border-radius: 5px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, background 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    background: #1a1a1a;
}

.blog-date {
    font-size: 11px;
    color: #777;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.blog-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card p {
    color: #888;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.read-more {
    font-size: 12px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card:hover .read-more {
    gap: 10px;
}

/* Portfolio Section */
.portfolio {
    flex-direction: column;
    background-color: #111;
}

.portfolio-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    width: 100%;
    max-width: 900px;
}

.portfolio-item {
    flex: 1;
    aspect-ratio: 4/5;
    overflow: hidden;
    filter: grayscale(100%);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.5;
    cursor: pointer;
}

.portfolio-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
    z-index: 5;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item.center {
    aspect-ratio: 3/4;
    transform: scale(1.1);
    opacity: 1;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.portfolio-item.center:hover {
    transform: scale(1.15);
}

.portfolio-info {
    text-align: center;
}

.portfolio-info h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.portfolio-info p {
    font-size: 10px;
    color: #666;
    letter-spacing: 3px;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 500;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.project-card {
    background: #0c0c0c;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.project-card:hover .project-img {
    filter: grayscale(0%);
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.project-content p {
    color: #888;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tag {
    font-size: 10px;
    padding: 5px 12px;
    background: #1a1a1a;
    color: #aaa;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-link {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #888;
}

.btn {
    display: inline-block;
    padding: 18px 45px;
    background: #111;
    color: #fff;
    border: 1px solid #333;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.4s ease;
    cursor: pointer;
    text-transform: uppercase;
}

.btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Contact Section */
.contact {
    background-color: #111;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1100px;
    width: 100%;
    align-items: center;
}

.contact-info h2, .contact-form h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.contact-info > p {
    color: #888;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 60px;
    font-weight: 300;
    max-width: 90%;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 35px;
    text-align: center;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-item h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.detail-item p {
    color: #777;
    font-size: 13px;
    font-weight: 300;
}

.contact-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form {
    background: #151515;
    padding: 50px;
    border-radius: 2px;
}

.input-group {
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 12px 0;
    color: #fff;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-bottom-color: #fff;
}

.input-group input::placeholder {
    color: #555;
    font-weight: 300;
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
    background: transparent;
    border: 1px solid #333;
}

.contact-form .btn:hover {
    background: #fff;
    color: #000;
}

/* Footer */
.footer {
    text-align: center;
    padding: 60px 20px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    background-color: transparent;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 50px;
    }
    .section {
        padding: 100px 100px;
    }
}

@media (max-width: 800px) {
    .header {
        padding: 30px;
    }
    .social-links, .scroll-indicator {
        display: none;
    }
    .section {
        padding: 100px 30px;
    }
    .main-title {
        font-size: 18vw;
    }
    .portfolio-carousel {
        flex-direction: column;
        gap: 30px;
    }
    .portfolio-item, .portfolio-item.center {
        width: 100%;
        max-width: 400px;
        aspect-ratio: auto;
        height: 300px;
        transform: scale(1);
    }
    .portfolio-item.center:hover {
        transform: scale(1.02);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-info {
        max-width: 100%;
    }
    .contact-info > p {
        max-width: 100%;
    }
}
