/* Base Styles & CSS Reset */
:root {
    /* Light Theme */
    --primary-color: #4a6cf7;
    --secondary-color: #6b7cff;
    --accent-color: #ff6b6b;
    --text-color: #2d2e32;
    --text-light: #767676;
    --bg-color: #ffffff;
    --bg-secondary: #f9fafb;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --gradient-primary: linear-gradient(45deg, #4a6cf7, #6b7cff);
    --gradient-secondary: linear-gradient(45deg, #ff6b6b, #ff9f43);
    
    /* Animation Speeds */
    --transition-fast: 0.3s;
    --transition-normal: 0.5s;
    --transition-slow: 0.8s;
    
    /* Sizes & Spaces */
    --header-height: 80px;
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --section-padding: 100px 0;
}

/* Dark Theme (will be toggled via JS) */
[data-theme="dark"] {
    --primary-color: #4a6cf7;
    --secondary-color: #6b7cff;
    --accent-color: #ff6b6b;
    --text-color: #f9fafb;
    --text-light: #a0a0a0;
    --bg-color: #121212;
    --bg-secondary: #1e1e1e;
    --card-bg: #252525;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
}

section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.underline {
    height: 4px;
    width: 60px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 5px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 108, 247, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

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

.btn-outline:hover {
    background: var(--bg-secondary);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition-normal);
    background-color: transparent;
}

header.scrolled {
    background-color: var(--bg-color);
    box-shadow: 0 5px 20px var(--shadow-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-fast);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all var(--transition-fast);
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform var(--transition-fast);
}

.theme-toggle:hover {
    transform: rotate(30deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    padding-top: var(--header-height);
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h4 {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hero-text h1 {
    margin-bottom: 15px;
}

.hero-text h3 {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

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

.hero-image img {
    max-width: 400px;
    border-radius: 50px;
    box-shadow: 0 20px 40px var(--shadow-color);
}

.img-placeholder {
    width: 350px;
    height: 350px;
    background-color: var(--bg-secondary);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 40px var(--shadow-color);
    border: 2px dashed var(--border-color);
}
.img-profil {
    scale:75%;
    border: 10px solid #4a6cf7;
}

.img-about {
    scale:100%;
    border: 2.5% solid #4a6cf7;
}

.img-placeholder img {
    border-radius: 30px;
    box-shadow: 0 20px 40px var(--shadow-color);
    background-color: white;
}


.img-placeholder i {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.img-placeholder p {
    color: var(--text-light);
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--bg-color);
    clip-path: polygon(0 0, 100% 100%, 100% 100%, 0% 100%);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 20px;
    position: relative;
    margin: 0 auto;
}

.wheel {
    background-color: var(--text-light);
    width: 4px;
    height: 10px;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel 1.5s infinite;
}

@keyframes wheel {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* About Section */
.about {
    background-color: var(--bg-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image .img-placeholder {
    position: relative;
    z-index: 2;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 30px;
    background: var(--gradient-primary);
    top: 20px;
    left: 20px;
    z-index: 1;
}

.about-text {
    flex: 1.2;
}

.about-text h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.info-item span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Skills Section */
.skills {
    background-color: var(--bg-secondary);
    position: relative;
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.skills-category h3 {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.skills-category h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 5px;
}

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

.skill-item {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px 0 0 5px;
}

.skill-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-level {
    height: 6px;
    width: 100%;
    background-color: var(--bg-secondary);
    border-radius: 5px;
    margin: 10px 0 15px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1)
    );
    animation: progress-animation 2s linear infinite;
}

@keyframes progress-animation {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.skill-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    opacity: 0.03;
    z-index: -1;
}

.shape-1 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--primary-color);
    top: 10%;
    left: 10%;
    animation: float 15s ease-in-out infinite alternate;
}

.shape-2 {
    width: 100px;
    height: 100px;
    background-color: var(--accent-color);
    top: 20%;
    right: 10%;
    transform: rotate(45deg);
    animation: float 20s ease-in-out infinite alternate-reverse;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background-color: var(--secondary-color);
    bottom: 15%;
    left: 15%;
    border-radius: 10px;
    animation: float 18s ease-in-out infinite alternate;
}

.shape-4 {
    width: 120px;
    height: 120px;
    background-color: var(--primary-color);
    bottom: 10%;
    right: 20%;
    border-radius: 20px;
    transform: rotate(30deg);
    animation: float 25s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(20px) rotate(-5deg);
    }
}

/* Projects Section */
.projects {
    background-color: var(--bg-color);
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all var(--transition-fast);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

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

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.project-img .img-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    font-size: 0.8rem;
    padding: 5px 10px;
    background-color: var(--bg-secondary);
    border-radius: 15px;
    color: var(--primary-color);
}

.project-links {
    display: flex;
    gap: 10px;
}

.projects-more {
    text-align: center;
}

/* Contact Section */
.contact {
    background-color: var(--bg-secondary);
    position: relative;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    transition: all var(--transition-fast);
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-item .details h4 {
    margin-bottom: 5px;
}

.contact-item .details p {
    margin-bottom: 0;
    color: var(--text-color);
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all var(--transition-fast);
    box-shadow: 0 3px 10px var(--shadow-color);
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.contact-form {
    flex: 1.2;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2);
}

.contact-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--bg-color);
    clip-path: polygon(0 100%, 100% 0, 100% 100%, 0% 100%);
}

/* Footer */
footer {
    background-color: var(--bg-color);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.3);
    opacity: 0;
    visibility: hidden;
}

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

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(74, 108, 247, 0.5);
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    html {
        font-size: 15px;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text h3 {
        margin: 0 auto 20px;
    }

    .about-info {
        max-width: 500px;
        margin: 30px auto;
    }

    .contact-content {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left var(--transition-normal);
        box-shadow: 0 10px 20px var(--shadow-color);
    }

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

    .hamburger {
        display: block;
    }

    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .contact-form {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 14px;
    }

    :root {
        --section-padding: 60px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero {
        min-height: 600px;
    }

    .hero-image .img-placeholder {
        width: 280px;
        height: 280px;
    }

    .about-image .img-placeholder {
        width: 280px;
        height: 280px;
    }

    .about-image::before {
        width: 280px;
        height: 280px;
    }

    .skills-content {
        gap: 40px;
    }

    .project-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 6px 15px;
        font-size: 0.85rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-up {
    animation: slideUp 1s ease-in-out;
}

.slide-down {
    animation: slideDown 1s ease-in-out;
}

.slide-left {
    animation: slideLeft 1s ease-in-out;
}

.slide-right {
    animation: slideRight 1s ease-in-out;
}

.zoom-in {
    animation: zoomIn 1s ease-in-out;
}

.zoom-out {
    animation: zoomOut 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

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

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1.2);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

