:root {
    --primary: #930000;
    --dark: #121212;
    --gray: #1e1e1e;
    --light-gray: #2d2d2d;
    --text: #e0e0e0;
    --accent: #e60004;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

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

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.btn {
    padding: 0.7rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

section {
    padding: 100px 5%;
    min-height: 100vh;
}

#home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, white, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero-text p {
    max-width: 600px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-group {
    display: flex;
    gap: 1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.hero-img {
    position: relative;
    width: 350px;
    height: 350px;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
}

.icons-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

.icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(0, 123, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.icon:nth-child(2) {
    top: 20%;
    right: 10%;
}

.icon:nth-child(3) {
    bottom: 20%;
    right: 10%;
}

.icon:nth-child(4) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.icon:nth-child(5) {
    bottom: 20%;
    left: 10%;
}

.icon:nth-child(6) {
    top: 20%;
    left: 10%;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--primary);
    display: block;
    margin: 10px auto;
    border-radius: 2px;
}

#about {
    display: flex;
    gap: 4rem;
    align-items: center;
    flex-wrap: wrap;
}

.about-img {
    /* flex: 1; */
    min-width: 300px;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.info-box {
    background: var(--gray);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-bar {
    background: var(--light-gray);
    border-radius: 50px;
    overflow: hidden;
    height: 30px;
}

.skill-fill {
    height: 100%;
    border-radius: 50px;
    transition: width 2s ease;
    position: relative;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

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

.project-card {
    background: var(--gray);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s;
}

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

.project-img {
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.project-info {
    padding: 1.5rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.tag {
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.contact-content {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--light-gray);
    border: none;
    border-radius: 8px;
    color: white;
}

textarea {
    height: 150px;
    resize: vertical;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.3rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    #home {
        flex-direction: column;
        text-align: center;
    }
}