:root {
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --main-color: #0ea5e9;
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    padding-bottom: calc(var(--nav-height) + 10px);
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid #1e293b;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.placeholder-logo {
    font-size: 1.5rem;
    color: var(--main-color);
}

.logo h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.hero {
    min-height: 90dvh;

    padding: 80px 10% 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    position: relative;
}

.content {
    max-width: 600px;
    flex: 1;
}

.content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 10px 0;
    background: linear-gradient(to right, var(--text-primary), var(--main-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.content h2 span {
    color: var(--main-color);
}

.content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--main-color);
    color: var(--bg-color);
    border-color: var(--main-color);
    box-shadow: 0 0 15px var(--main-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    transform: scale(1.05);
}

.btn-secondary {
    background-color: transparent;
    color: var(--main-color);
    border-color: var(--main-color);
}

.btn-secondary:hover {
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--main-color);
    transform: scale(1.05);
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--main-color);
    margin-right: 1rem;
    transition: 0.3s ease;
}

.social-icons a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--main-color);
}

.profile-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circulating-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circulating-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid transparent;
    border-top-color: var(--main-color);
    border-bottom-color: var(--main-color);
    animation: spin 4s linear infinite;
}

.profile-img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 10;
    box-shadow: 0 0 20px var(--main-color);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--main-color);
    opacity: 0;
    animation: pulse 3s linear infinite;
}

.ring-1 {
    animation-delay: 0s;
}

.ring-2 {
    animation-delay: 1s;
}

.ring-3 {
    animation-delay: 2s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.typing-text::after {
    content: "|";
    animation: blink 1s step-end infinite;
    color: var(--main-color);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.about {
    min-height: 100vh;
    background: #162033;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 10%;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
}

.about-text-content, .about-skills-content {
    flex: 1 1 400px;
}

.about-text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text-content h2 span {
    color: var(--main-color);
}

.about-text-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.about-skills-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.skill-box {
    margin-bottom: 1.5rem;
}

.skill-box .title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.skill-bar {
    height: 10px;
    width: 100%;
    border-radius: 6px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.skill-per {
    position: absolute;
    height: 100%;
    border-radius: 6px;
    background: var(--main-color);
    box-shadow: 0 0 10px var(--main-color);
    transition: width 1s ease-in-out;
}

.projects {
    min-height: 100vh;
    background: #1a263d;
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.projects h2 span {
    color: var(--main-color);
}

.projects-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
}

.projects-scroll::-webkit-scrollbar {
    height: 8px;
}

.projects-scroll::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}

.projects-scroll::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 4px;
}

.project-card {
    min-width: 300px;
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    scroll-snap-align: start;
    transition: 0.3s ease;
    text-decoration: none;
    display: block;
    border: 1px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
    border-color: var(--main-color);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
    text-align: center;
}

.project-info h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.contact {
    min-height: 100vh;
    background: #162033;
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.contact h2 span {
    color: var(--main-color);
}

.contact-form {
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-box {
    display: flex;
    gap: 1.5rem;
}

.input-box input,
.contact-form textarea {
    width: 100%;
    padding: 1.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    border: 1px solid transparent;
    transition: 0.3s ease;
}

.input-box input:focus,
.contact-form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

.contact-form textarea {
    resize: none;
}

.contact-form .btn {
    cursor: pointer;
    width: max-content;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .input-box {
        flex-direction: column;
    }
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(15px);
    border-top: 1px solid #334155;
    z-index: 1000;
    padding-bottom: 5px;
}

.bottom-nav ul {
    display: flex;
    height: 100%;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: 0.3s;
    gap: 5px;
    padding: 5px 10px;
}

.bottom-nav ul li a i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.bottom-nav ul li a:hover,
.bottom-nav ul li a.active {
    color: var(--main-color);
}

.bottom-nav ul li a.active i {
    filter: drop-shadow(0 0 5px var(--main-color));
}


@media (max-width: 991px) {
    .hero {
        min-height: auto;
        flex-direction: column-reverse;
        gap: 0.8rem;
        text-align: center;
        padding: 100px 20px 120px 20px;
    }

    .content h1 {
        font-size: 1.8rem;
        margin-top: 10px;
    }

    .content h2 {
        font-size: 1.2rem;
    }
    .content h3 {
        font-size: 1.2rem;
    }

    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .pulse-container {
        width: 150px;
        height: 150px;
        margin-bottom: 10px;
    }

    .circulating-container {
        width: 150px;
        height: 150px;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

}