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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #111;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 2rem;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
}

.nav-brand h3 {
    color: #aaa;
    font-weight: 600;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #aaa;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #aaa;
    margin: 3px 0;
    transition: 0.3s;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 1rem;
    font-weight: 400;
}

#hero-description {
    text-align: justify;
}
.hero-text p {
    color: #aaa;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-button {
    background: #333;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #555;
    transform: translateY(-2px);
}

.hero-text {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s ease-out 0.5s forwards;
}

.hero-image {
    display: flex;
    justify-content: center;
    min-width: 350px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1s ease-out 0.8s forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.profile-img {
    width: 400px;
    height: 400px;
    background: #222;
    border-radius: 20px;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: all 0.3s ease;
}

.profile-img:hover {
    background: #fff;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(1.2);
}

.profile-img.clicked {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(255, 255, 255, 0.3);
}

.profile-img.clicked img {
    transform: scale(1.1);

}

.star {
    position: absolute;
    color: #ff0000;
    font-size: 20px;
    text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 30px #ff0000;
    animation: orbit 5s linear infinite;
    transform-origin: 50% 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-img:hover .star {
    opacity: 1;
}

.star1 { top: 50%; left: 50%; --radius: 170px; transform: translate(-50%, -50%) translate(170px, 0); animation-delay: 0s; }
.star2 { top: 50%; left: 50%; --radius: 180px; transform: translate(-50%, -50%) translate(180px, 0); animation-delay: 0.83s; }
.star3 { top: 50%; left: 50%; --radius: 175px; transform: translate(-50%, -50%) translate(175px, 0); animation-delay: 1.67s; }
.star4 { top: 50%; left: 50%; --radius: 165px; transform: translate(-50%, -50%) translate(165px, 0); animation-delay: 2.5s; }
.star5 { top: 50%; left: 50%; --radius: 185px; transform: translate(-50%, -50%) translate(185px, 0); animation-delay: 3.33s; }
.star6 { top: 50%; left: 50%; --radius: 175px; transform: translate(-50%, -50%) translate(175px, 0); animation-delay: 4.17s; }

@keyframes orbit {
    0% { transform: translate(-50%, -50%) translate(var(--radius, 175px), 0); }
    25% { transform: translate(-50%, -50%) translate(0, var(--radius, 175px)); }
    50% { transform: translate(-50%, -50%) translate(calc(var(--radius, 175px) * -1), 0); }
    75% { transform: translate(-50%, -50%) translate(0, calc(var(--radius, 175px) * -1)); }
    100% { transform: translate(-50%, -50%) translate(var(--radius, 175px), 0); }
}

.stats {
    padding: 4rem 0;
    background: #0f0f0f;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #aaa;
    font-size: 1.1rem;
}

.skills {
    padding: 3rem 0;
}

.section-title {
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #fff;
}

.skill-filters, .contact-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #222;
    color: #aaa;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover {
    background: #333;
    color: #fff;
}

.filter-btn.active {
    background: #444;
    color: #fff;
}

.skills-container, .message-container {
    min-height: 200px;
}

.skills-grid, .contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    transition: all 0.3s ease;
}

.skill-card[data-skill="html5"] i { color: #e34f26; }
.skill-card[data-skill="html5"] span { color: #e34f26; }
.skill-card[data-skill="css3"] i { color: #1572b6; }
.skill-card[data-skill="css3"] span { color: #1572b6; }
.skill-card[data-skill="javascript"] i { color: #f7df1e; }
.skill-card[data-skill="javascript"] span { color: #f7df1e; }
.skill-card[data-skill="php"] i { color: #777bb4; }
.skill-card[data-skill="php"] span { color: #777bb4; }
.skill-card[data-skill="mysql"] i { color: #4479a1; }
.skill-card[data-skill="mysql"] span { color: #4479a1; }
.skill-card[data-skill="python"] i { color: #3776ab; }
.skill-card[data-skill="python"] span { color: #3776ab; }
.skill-card[data-skill="java"] i { color: #de6122; }
.skill-card[data-skill="java"] span { color: #de6122; }
.skill-card[data-skill="github"] i { color: #fff; }
.skill-card[data-skill="github"] span { color: #fff; }
.skill-card[data-skill="vscode"] i { color: #007acc; }
.skill-card[data-skill="vscode"] span { color: #007acc; }
.skill-card[data-skill="terminal"] i { color: #919090; }
.skill-card[data-skill="terminal"] span { color: #919090; }

.skill-card.hidden {
    display: none;
}

.skill-card:hover {
    transform: translateY(-2px);
    background: #333;
}

.skill-card i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.skill-card span {
    font-weight: 400;
    white-space: nowrap;
}

.skill-card {
    background: #222;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 160px;
    opacity: 0;
    transform: translateX(50px);
}

.skill-card.animate {
    opacity: 1;
    transform: translateX(0);
}


.contact-card.hidden {
    display: none;
}

.contact-card:hover {
    transform: translateY(-2px);
    background: #333;
}

.contact-card i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-card span {
    font-weight: 400;
    white-space: nowrap;
}

.contact-card {
    background: #222;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 160px;
    opacity: 0;
    transform: translateX(50px);
}

.contact-card a {
    display: flex;
    align-items: center;
    gap: 0.8rem; 
    color: inherit; 
    text-decoration: none;
    width: 100%;
    height: 100%;
    cursor: pointer;
}


.contact-card.animate {
    opacity: 1;
    transform: translateX(0);
}

#home .brands {
    margin-top: 1rem;
}

.brand-slider {
    max-width: 100%;
    overflow-x: auto;
}

.brands {
    background: #111;
    overflow: hidden;
}

.brands .section-title {
    font-size: 0.8rem;
}

.brands p {
    color: #aaa;
    font-size: 0.9rem;
}

.brand-slider {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.brand-slider::-webkit-scrollbar {
    display: none;
}

.brand-track {
    display: flex;
    animation: scroll 20s linear infinite;
    width: calc(120px * 16);
    animation-play-state: running;
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
}

.brand-track:hover {
    animation-play-state: running;
}

.brand-track:active {
    cursor: grabbing;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 0.8rem;
    transition: all 0.3s ease;
}

.brand-item i {
    font-size: 2.5rem;
    color: #aaa;
    transition: color 0.3s ease;
}

.brand-item:hover i {
    color: inherit;
}

.brand-item[data-brand="facebook"]:hover i { color: #1877f2; }
.brand-item[data-brand="instagram"]:hover i { color: #ff6afd; }
.brand-item[data-brand="github"]:hover i { color: #fff; }
.brand-item[data-brand="tiktok"]:hover i { color: #ffffff; }
.brand-item[data-brand="discord"]:hover i { color: #1d1dff; }
.brand-item[data-brand="spotify"]:hover i { color: #1db954; }

.brand-item span {
    display: none;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.projects {
    padding: 4rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #222;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.project-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-card:nth-child(odd).animate {
    animation: slideInLeft 0.8s ease-out forwards;
}

.project-card:nth-child(even).animate {
    animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px) translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px) translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

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

.project-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: #333;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.project-placeholder.clicked {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.project-placeholder.clicked img {
    transform: scale(1.1);
}

.project-card:hover .project-placeholder {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: #333;
    color: #aaa;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.project-info p {
    color: #aaa;
    line-height: 1.6;
}

.contact {
    padding: 3rem 0;
    background: #0f0f0f;
}

.contact .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.message {
    padding: 4rem 0;
    background: #111;
}

.contact-form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-form-section .section-title {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    width: 100%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.contact-form.animate {
    opacity: 1;
    transform: translateY(0);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #555;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.submit-btn {
    background: #333;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.submit-btn:hover {
    background: #555;
    transform: translateY(-2px);
}

section {
    scroll-margin-top: 100px;
}

.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #333;
}

.footer p {
    color: #666;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #111;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-image {
        min-width: auto;
        order: -1;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
        font-size: 4rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}
