@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #00aaff;
    --secondary-color: #ff00ff;
    --gold-color: #ffd700;
    --background-color: #0a0a1a;
    --glass-bg: rgba(10, 10, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #e0e0e0;
    --header-height: 70px;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    background-image: url('../img/ngang.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    -webkit-user-select: none;  /* Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* Internet Explorer/Edge */
    user-select: none;          /* Standard */
    -webkit-touch-callout: none; /* iOS Safari */
}

h1, h2, h3, .logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#particles-js {
    display: none;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--header-height);
    background: rgba(10, 10, 30, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: padding 0.3s;
}

.logo {
    font-size: 1.8em;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
}

.logo span {
    background: linear-gradient(45deg, var(--gold-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease-out;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary-color);
}

#menu-icon {
    font-size: 2em;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

.container {
    padding: 120px 10%;
    text-align: center;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 60px;
    color: var(--text-color);
    text-shadow: 0 0 15px var(--primary-color);
}
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--secondary-color);
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: var(--header-height);
}

.hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 4.5em; 
    margin: 20px 0;
    color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 20px var(--gold-color), 0 0 35px var(--gold-color);
    text-transform: none;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.5em;
    color: var(--text-color);
}

#typed-text {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.avatar-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--gold-color);
    box-shadow: 0 0 25px var(--gold-color), inset 0 0 15px rgba(255, 215, 0, 0.5);
}

.avatar-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--gold-color);
    border-radius: 50%;
    animation: rotate 8s linear infinite;
}

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

#about .about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    line-height: 1.8;
    font-size: 1.1em;
}

.about-subtitle {
    font-size: 1.8em;
    color: var(--primary-color);
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    text-shadow: 0 0 10px var(--primary-color);
}

#about .skills-grid {
    margin-bottom: 50px;
}

#about .social-links {
    text-align: center;
}


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

.skill-card {
    padding: 30px;
    text-align: center;
}

.skill-card i {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color);
}

.skill-card h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #fff;
}

.skill-item {
    text-align: left;
    margin-bottom: 15px;
}

.skill-item span {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color), var(--gold-color));
    border-radius: 5px;
    box-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 0; 
}

.aos-animate .skill-level {
    width: var(--skill-width); 
}

[data-aos="zoom-in"].aos-animate .skill-level {
    width: 50%; 
}
[data-aos="zoom-in"].aos-animate .skill-item:nth-child(1) .skill-level { width: 50%; }
[data-aos="zoom-in"].aos-animate .skill-item:nth-child(2) .skill-level { width: 90%; }
[data-aos="zoom-in"].aos-animate .skill-item:nth-child(3) .skill-level { width: 60%; }
[data-aos="zoom-in"].aos-animate .skill-item:nth-child(4) .skill-level { width: 40%; }


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

.project-card {
    overflow: hidden;
    padding: 0;
    position: relative;
}

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

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

.project-info {
    padding: 20px;
}

.project-info h3 {
    color: var(--gold-color);
}

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--gold-color);
    color: var(--gold-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.btn:hover {
    background: var(--gold-color);
    color: var(--background-color);
    box-shadow: 0 0 15px var(--gold-color);
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    font-size: 2.5em;
    color: var(--text-color);
    margin: 0 20px;
    transition: color 0.3s, transform 0.3s, text-shadow 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
    text-shadow: 0 0 15px var(--primary-color);
}

footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 10, 30, 0.5);
}

footer .fa-heart {
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .container {
        padding: 100px 8%;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5em;
    }
    .hero-content p {
        font-size: 1.3em;
    }
    h2 {
        font-size: 2.2em;
    }
    .container {
        padding: 100px 5%;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 5%;
        background: var(--background-color);
        border-top: 1px solid var(--glass-border);
        display: none;
        flex-direction: column;
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        display: block;
        margin: 1.5rem 0;
        font-size: 1.2rem;
        text-align: center;
    }

    .navbar a::after {
        display: none;
    }
    
    .hero {
        padding-top: var(--header-height);
    }
    
    .hero-content h1 {
        font-size: 2.8em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    .avatar-container {
        width: 150px;
        height: 150px;
    }
    h2 {
        font-size: 2em;
    }
    .glass-card {
        padding: 30px;
    }
    .social-links a {
        font-size: 2.2em;
        margin: 0 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5em;
    }
    header nav a {
        font-size: 0.9em;
    }
    .hero-content h1 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .avatar-container {
        width: 120px;
        height: 120px;
    }
    .container {
        padding: 80px 5%;
    }
    h2 {
        font-size: 1.8em;
        margin-bottom: 40px;
    }
    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .social-links a {
        font-size: 2em;
        margin: 0 10px;
    }
    footer {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    body {
        background-image: url('../img/doc.jpg');
    }
}
