/* ===== GENERAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    cursor: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #080808;
    color: #fff;
    overflow-x: hidden;
}

.container {
    padding: 10px 10%;
}

/* ===== ENHANCED SPLASH SCREEN ===== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 1s ease;
}

.matrix-terminal {
    width: 90%;
    max-width: 700px;
    background: rgba(0, 10, 0, 0.8);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    border: 1px solid #ff5f56;
    position: relative;
}

.terminal-header {
    background: rgba(0, 20, 0, 0.9);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ff5f56;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-btn.red { background: #ff5f56; }
.terminal-btn.yellow { background: #ffbd2e; }
.terminal-btn.green { background: #27c93f; }

.terminal-title {
    color: #ff5f56;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-left: 15px;
    text-shadow: 0 0 5px #ff5f56;
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    color: #ff5f56;
    text-shadow: 0 0 5px #ff5f56;
    position: relative;
    min-height: 250px;
}

.terminal-line {
    margin-bottom: 10px;
    opacity: 0;
    animation: terminalTyping 0.5s forwards;
    position: relative;
    z-index: 2;
}

.terminal-line::before {
    content: ">";
    margin-right: 10px;
    color: #ff5f56;
}

.terminal-line:nth-child(1) { animation-delay: 0.5s; }
.terminal-line:nth-child(2) { animation-delay: 1s; }
.terminal-line:nth-child(3) { animation-delay: 1.5s; }
.terminal-line:nth-child(4) { animation-delay: 2s; }

@keyframes terminalTyping {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 20, 0, 0.7);
    border-radius: 4px;
    margin-top: 30px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff5f56, #ff9b8b);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    position: absolute;
    right: 5px;
    top: -20px;
    color: #ff5f56;
    font-size: 0.8rem;
}

.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    opacity: 0.3;
}

.binary-rain::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 90%, rgba(0, 255, 0, 0.1) 90%);
    background-size: 100% 10px;
    animation: rain 0.5s linear infinite;
}

@keyframes rain {
    0% { background-position: 0 0; }
    100% { background-position: 0 10px; }
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #ff004f;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-follower {
    width: 10px;
    height: 10px;
    background-color: #ff004f;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 998;
    transition: all 0.3s ease;  
    mix-blend-mode: difference;
}

/* ===== HEADER ===== */
#header {
    width: 100%;
    height: 100vh;
    background-image: url(assets/image1.png);
    background-size: cover;
    background-position: center;
    position: relative;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 0;
    position: relative;
    z-index: 2;
}

.logo {
    width: 100px;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0%;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

.header-text {
    margin-top: 20%;
    font-size: 30px;
    position: relative;
    z-index: 2;
}

.header-text h1 {
    font-size: 60px;
    margin-top: 20px;
}

.header-text h1 span {
    color: #ff004f;
}

.header-text p {
    margin-top: 30px;
    font-size: 20px;
    font-weight: lighter;
}

/* Typing Effect */
.typing-effect {
    border-right: 2px solid #ff004f;
    font-size: 40px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: caret 1s steps(1) infinite;
}

@keyframes caret {
    50% {
        border-color: transparent;
    }
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    color: #ababab;
    font-size: 25px;
    transition: color 0.5s, transform 0.5s;
}

.social-icons a:hover {
    color: #ff004f;
    transform: translateY(-5px);
}

/* ===== ABOUT SECTION ===== */
#about {
    padding: 80px 0;
    color: #ababab;
    position: relative;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 15px;
    transition: transform 0.5s;
    box-shadow: 0 0 20px rgba(255, 0, 79, 0.2);
}

.about-col-1 img:hover {
    transform: scale(1.03);
}

.about-col-2 {
    flex-basis: 60%;
}

.sub-title {
    font-size: 50px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
    border-bottom: 1px solid #262626;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding-bottom: 8px;
    color: #ababab;
    transition: color 0.3s;
}

.tab-links:hover {
    color: #fff;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -1px;
    transition: 0.5s;
}

.tab-links.active-link {
    color: #fff;
}

.tab-links.active-link::after {
    width: 75%;
}

.tab-contents ul li {
    list-style: none;
    margin: 15px 0;
    line-height: 1.6;
}

.tab-contents ul li span {
    color: #ff004f;
    font-size: 16px;
    font-weight: 600;
}

.tab-contents ul li .percentage {
    color: #ff004f;
    margin-left: 15px;
    font-size: 16px;
}

.tab-contents {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-contents.active-tab {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SERVICES SECTION ===== */
#services {
    padding: 30px 0;
    position: relative;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.services-list div {
    background: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: all 0.5s ease;
    border-left: 3px solid #ff004f;
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 30px;
    color: #ff004f;
}

.services-list div h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.services-list div a {
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
    position: relative;
}

.services-list div a::after {
    content: '';
    width: 0;
    height: 1px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -2px;
    transition: width 0.5s;
}

.services-list div a:hover::after {
    width: 100%;
}

.services-list div:hover {
    background: #1e1e1e;
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 0, 79, 0.1);
}

/* ===== PORTFOLIO SECTION ===== */
#portfolio {
    padding: 50px 0;
    position: relative;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid #262626;
    transition: all 0.5s ease;
}

.work:hover {
    box-shadow: 0 0 20px rgba(255, 0, 79, 0.3);
    transform: translateY(-5px);
}

.work img {
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0%;
    background: linear-gradient(rgba(0,0,0,0.6), #ff004f);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

.layer h3 {
    font-weight: 500;
    margin-bottom: 20px;
    color: #fff;
}

.layer a {
    margin-top: 20px;
    color: #ff004f;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    transition: all 0.3s;
}

.layer a:hover {
    transform: scale(1.1);
    background: #ff004f;
    color: #fff;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

/* ===== RESUME SECTION ===== */
#resume {
    padding: 50px 0;
    text-align: center;
    position: relative;
}

.btn {
    display: inline-block;
    margin: 50px auto;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: all 0.5s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 79, 0.4), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: #ff004f;
    box-shadow: 0 10px 20px rgba(255, 0, 79, 0.3);
}

/* ===== CONTACT SECTION ===== */
#contact {
    padding: 50px 0;
    position: relative;
}

.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-left p {
    margin-top: 30px;
    display: flex;
    align-items: center;
}

.contact-left p i {
    color: #ff004f;
    margin-right: 15px;
    font-size: 25px;
}

.social-icons {
    margin-top: 30px;
    display: flex;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: all 0.5s;
}

.social-icons a:hover {
    color: #ff004f;
    transform: translateY(-5px);
}

.contact-right form {
    width: 100%;
}

form input, form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

form input:focus, form textarea:focus {
    border-left-color: #ff004f;
    box-shadow: 0 0 10px rgba(255, 0, 79, 0.1);
}

form .btn2 {
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
    background: #ff004f;
    border: none;
    border-radius: 6px;
    color: white;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn2:hover::before {
    left: 100%;
}

.btn2:hover {
    background: #e60045;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 79, 0.2);
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
    font-size: 14px;
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animation.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== THREE.JS BACKGROUND ===== */
#threejs-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

/* ===== MEDIA QUERIES ===== */
@media only screen and (max-width: 768px) {
    .container {
        padding: 10px 5%;
    }

    .header-text {
        margin-top: 30%;
        font-size: 20px;
    }

    .header-text h1 {
        font-size: 40px;
    }

    #menu-bars {
        display: block;
        font-size: 25px;
        cursor: pointer;
        z-index: 100;
    }

    #menu-close {
        display: none;
        position: fixed;
        top: 25px;
        right: 25px;
        font-size: 25px;
        cursor: pointer;
        z-index: 101;
    }

    nav ul {
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 100;
        transition: right 0.5s;
    }

    nav ul.show-menu {
        right: 0;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    .sub-title {
        font-size: 40px;
    }

    .about-col-1, .about-col-2 {
        flex-basis: 100%;
    }

    .about-col-1 {
        margin-bottom: 30px;
    }

    .tab-titles {
        flex-direction: column;
        gap: 10px;
    }

    .tab-links {
        margin-right: 0;
    }

    .contact-left, .contact-right {
        flex-basis: 100%;
        margin-bottom: 30px;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .work-list {
        grid-template-columns: 1fr;
    }

    .github-container {
        grid-template-columns: 1fr;
    }
}

@media only screen and (min-width: 769px) {
    #menu-bars, #menu-close {
        display: none !important;
    }

    nav ul {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        padding-top: 0 !important;
    }
}

/* ===== GITHUB FEED SECTION ===== */
#github-feed {
    padding: 80px 0;
    position: relative;
}

.github-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 30px;
}

.github-stats {
    background: #262626;
    padding: 30px;
    border-radius: 10px;
    border-left: 3px solid #ff004f;
}

.github-activity {
    background: #262626;
    padding: 30px;
    border-radius: 10px;
    border-left: 3px solid #ff004f;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 0, 79, 0.2);
}

.stat-card i {
    font-size: 30px;
    color: #ff004f;
    margin-bottom: 10px;
}

.stat-card span {
    display: block;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 14px;
    color: #ababab;
}

.activity-feed {
    margin-top: 20px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #1e1e1e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.activity-icon i {
    color: #ff004f;
}

.activity-details {
    flex-grow: 1;
}

.activity-type {
    font-weight: 500;
    margin-bottom: 5px;
}

.activity-repo {
    color: #ff004f;
    font-weight: 500;
}

.activity-date {
    font-size: 12px;
    color: #ababab;
    margin-top: 5px;
}

@media only screen and (max-width: 768px) {
    .github-container {
        grid-template-columns: 1fr;
    }
}
