/* Reset dan Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: white;
}

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

.nav-menu li {
    margin-left: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1.05rem;
}

.nav-menu a:hover {
    color: #b21f1f;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1a2a6c, #b21f1f);
    transition: width 0.3s ease;
}

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

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

.bar {
    width: 25px;
    height: 3px;
    margin: 4px 0;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(26, 42, 108, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 700;
}

.highlight {
    color: #1a2a6c;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background: rgba(26, 42, 108, 0.2);
    z-index: -1;
    animation: highlightEffect 2s infinite alternate;
}

@keyframes highlightEffect {
    0% {
        transform: scaleY(0.5);
    }
    100% {
        transform: scaleY(1);
    }
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #34495e;
    font-weight: 500;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #7f8c8d;
    max-width: 600px;
    line-height: 1.7;
    text-align: justify;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4e54c8, #8f94fb);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(78, 84, 200, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-circle::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

.profile-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(78, 84, 200, 0.3);
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #1a2a6c, #b21f1f);
    padding: 5px; /* Memberi ruang untuk border gradien */
}

.profile-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: white; /* Latar belakang putih untuk gambar */
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1a2a6c, #b21f1f);
    border-radius: 2px;
}

/* Enhanced animations */
.skill-card:hover,
.experience-card:hover,
.stat-item:hover {
    transform: translateY(-10px) scale(1.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Gradient backgrounds for cards */
.skill-card .icon,
.experience-card .icon {
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    box-shadow: 0 5px 15px rgba(78, 84, 200, 0.3);
}

/* Enhanced button styles */
.btn-primary {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: white;
    box-shadow: 0 5px 15px rgba(26, 42, 108, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d1a4d, #8a1919);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 42, 108, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #1a2a6c;
    border: 2px solid #1a2a6c;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 42, 108, 0.3);
}

/* About Section */
.about {
    background: rgba(230, 240, 255, 0.9); /* More blue tint */
}

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

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: justify;
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skills Section */
.skills {
    background: rgba(230, 240, 255, 0.9); /* More blue tint */
}

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

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
    border: 1px solid #eee;
}

.skill-card:nth-child(1) {
    animation-delay: 0.2s;
}

.skill-card:nth-child(2) {
    animation-delay: 0.4s;
}

.skill-card:nth-child(3) {
    animation-delay: 0.6s;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #1a2a6c;
}

.skill-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.skill-card p {
    color: #666;
    line-height: 1.6;
}

/* Enhanced Skills Section for Technical and Soft Skills */
.skills-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1a2a6c, #b21f1f);
    border-radius: 2px;
}

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

.skill-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #1a2a6c;
}

.skill-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.skill-item p {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    text-align: justify;
}

.skill-item p:last-child {
    margin-bottom: 0;
}

/* Education Section */
.education {
    background: rgba(230, 240, 255, 0.9); /* More blue tint */
}

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

.education-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.education-card:nth-child(1) {
    animation-delay: 0.2s;
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #1a2a6c;
}

.education-card .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.education-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.education-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1a2a6c;
    font-weight: 500;
}

.education-card h5 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #666;
    font-weight: 400;
}

.education-card p {
    color: #666;
    line-height: 1.6;
}

/* Experience Section */
.experience {
    background: rgba(230, 240, 255, 0.9); /* More blue tint */
}

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

.experience-vertical {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.experience-card:nth-child(1) {
    animation-delay: 0.2s;
}

.experience-card:nth-child(2) {
    animation-delay: 0.4s;
}

.experience-card:nth-child(3) {
    animation-delay: 0.6s;
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #b21f1f;
}

.experience-card .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #b21f1f, #1a2a6c);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.experience-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.experience-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #b21f1f;
    font-weight: 500;
}

.experience-card h5 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #666;
    font-weight: 400;
}

.experience-card p {
    color: #666;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 0.5rem;
}

.experience-card p:last-child {
    margin-bottom: 0;
}

/* Custom list styling for job descriptions */
.job-description-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.job-description-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    text-align: left;
}

.job-description-list li:before {
    content: "•";
    color: #1a2a6c;
    font-weight: bold;
    margin-right: 10px;
    margin-top: 2px; /* Adjust to align with text */
    flex-shrink: 0; /* Prevent bullet from shrinking */
}

.job-description-list li:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact {
    background: rgba(230, 240, 255, 0.9); /* More blue tint */
}

.contact-content-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.contact-item i {
    font-size: 1.5rem;
    color: #1a2a6c;
    margin-right: 1rem;
    min-width: 24px;
}

.contact-text h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-text p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #555;
}

.contact-info i {
    margin-right: 1rem;
    color: #1a2a6c;
    width: 25px;
}


/* Footer */
footer {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.contact-footer {
    margin-left: 1rem;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
}

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

.social-links-contact {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.social-links-contact a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-links-contact a:hover {
    transform: translateY(-7px) rotate(10deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-links a:hover {
    transform: translateY(-7px) rotate(10deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(78, 84, 200, 0.2);
    border-top: 5px solid #4e54c8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-top: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .profile-circle {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    footer .container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .skills-grid,
    .education-experience-grid {
        gap: 1.5rem;
    }

    .experience-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .profile-circle {
        width: 200px;
        height: 200px;
    }

    .skills-grid,
    .education-experience-grid {
        grid-template-columns: 1fr;
    }

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

    .about-content {
        gap: 2rem;
    }

    .contact-content-new,
    .contact-content {
        gap: 2rem;
    }

    .contact-content-new {
        grid-template-columns: 1fr; /* Satu kolom di layar kecil */
    }

    .contact-form {
        padding: 1.5rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-menu li {
        margin: 1rem 0;
    }
}

@media (max-width: 425px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .profile-circle {
        width: 180px;
        height: 180px;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 20px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-text p {
        padding: 1rem;
    }
}