@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
  --primaryTextColor: #232e35;
  --secondaryTextColor: #656d72;

  --borderColors: #fa74be;
  --LineColor: #999; 
  
  --primaryBackgroundColor: #fff;
  --secondaryBackgroundColors: #fbfbfb;
  --thirdBackgroundColor: #f3f3fe;

  --primaryIconColor: #f174bd;
  --primaryIconColorHover: #5d51e8;

  --sectionPadding: 6rem 0 ;

  --itemborderRadius: 0.7rem;  
}

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

body {
    font-family: "Roboto", sans-serif;
}

h1,h2,h3,h4,h5,h6, strong {
    color: var(--primaryTextColor) ;
}

p {
    font-size: 1rem;
    line-height: 1.9rem;
}

p, span, label, input, textarea, li {
    color: var(--secondaryTextColor);
}

a {
    text-decoration: none;
}

.main-container {
    width: 1200px;
    margin: 0 auto;
}

@media screen and (max-width: 1200px) {
    .main-container {
        width: 90%;
    }    
}

.btn {
    padding: 1rem 2rem;
    background: white;
    border: 1.5px solid var(--borderColors);
    cursor: pointer;
    transition: .2s ease-in-out;
    border-radius: 5px;
}

.btn:hover {
    box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}

/* Mode Malam */
.dark-mode {
    background-color: #000000;
    color: #ffffff;
}

/* Warna elemen lainnya saat mode malam aktif */
.dark-mode h1,  
.dark-mode h2, 
.dark-mode h3, 
.dark-mode h4, 
.dark-mode h5, 
.dark-mode h6, 
.dark-mode strong {
    color: #6e94da;
}

.dark-mode p, 
.dark-mode span, 
.dark-mode label, 
.dark-mode input, 
.dark-mode textarea, 
.dark-mode li {
    color: #a1bff3;
}

.dark-mode .service,
.dark-mode .portofolio,
.dark-mode .contact-item-icon {
    background-color: #000000;
    color: #f5eeee;
}

.dark-mode .btn {
    background: #444;
    color: #fff;
}

.dark-mode .btn:hover {
    box-shadow: rgba(255, 255, 255, 0.1) 0px 3px 5px;
}


.dark-mode .logo {
    background: #fdfcfc;
 
}

    
/* Gaya Tombol Mode */
#toggle-mode {
    cursor: pointer;
    background-color: var(--primaryIconColor);
    color: white;
    padding: 15px 10px;
    border: none;
    border-radius: 5px;
}

#toggle-mode:hover {
    background-color: var(--primaryIconColorHover);
}

#toggle-mode, #resume-btn {
    display: inline-block;
    margin: 10px;
}


.section-title {
    margin: 1rem 0 4rem;
    font-size: 2rem;
}

.pre-title {
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    color: var(--secondaryTextColor);
    position: relative;
    padding-left: 40px;
    width: fit-content;
    font-weight: 400;
    font-size: 0.9rem;
}

.pre-title::before {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--LineColor);
    position: absolute;
    display: block;
    left: 0;
    top: 50%;
}

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

.nav {
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 2rem;
}

.logo a {
    color: var(--primaryTextColor);
}

nav ul li {
    display: flex;
    align-items: center;
}

nav ul li a {
    color: var(--primaryTextColor);
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: #000;
    margin: 7px;
    transition: all 0.3s;
    z-index: 99;
}

.burger {
    display: none;
    z-index: 99;
    position: fixed;
    top: 33px;
    right: 35px;
}

#hero {
    height: 750px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    border-radius: 50%;
}

.hero-name {
    font-size: 3rem;
    font-weight: 700;
    margin: 0.5rem 0 1rem;
}

.hero-name span {
    color: var(--primaryIconColor);
}

.hero-right img { 
    width: 275px; 
    height: 275px; 
    border-radius: 50%; 
    object-fit: cover; 
    display: block;
    margin: auto;
    border: 3.5px solid var(--borderColors);
}

.hero-right {
    display: flex;
    justify-content: center;
}

#Services {
    background-color: var(--secondaryBackgroundColors);
    padding: var(--sectionPadding);
}

.Services .pre-title {
    margin: 0 auto;
}

.Services-title {
    text-align: center;
}

.service {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--primaryBackgroundColor);
    border-radius: var(--itemborderRadius);
}

.service h4 {
    margin: 1.5rem 0;
    font-weight: 500;
    font-size: 1.05rem;
}

.service-icon {
    background: var(--thirdBackgroundColor);
    width: fit-content;
    margin: 0 auto;
    padding: 1rem 1.3rem;
    border-radius: 0.5rem;
}

.service-icon svg {
    fill: var(--primaryIconColor);
}

#portofolios {
    padding: var(--sectionPadding);
}

.portofolio {
    border-radius: var(--itemborderRadius);
    overflow: hidden;
    border: 1px solid var(--borderColors);
    padding: 0.5rem 0.5rem;   
}

.portofolio-cover {
    height: 250px; 
}

.portofolio-cover img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: var(--itemborderRadius);
}

.portofolio-info {
    padding: 2rem 1.5rem;
}

.portofolio-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.portofolio h4 {
    font-weight: 500;
    font-size: 1.05rem;
}

.portofolio-title a svg:hover {
    fill: var(--primaryIconColor);
}

.portofolio-title a svg {
    transition: 0.2s ease-in-out;
}

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

.portofolio-tags div {
    font-size: .9rem;
    border: 1px solid var(--borderColors);
    padding: .4rem 1rem;
    color: var(--secondaryTextColor);
}

#skills {
    padding: var(--sectionPadding);
    background: var(--secondaryBackgroundColors);
}

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

.education {
    display: flex;
    gap: 2rem;
}

.education .line {
    padding: 0 0.7rem;
}

.education .line div {
    width: 2px;
    height: 100%;
    background: var(--borderColors);
    position: relative;
}

.education-info p {
    margin: 0.6rem 0 1.4rem;
}

.education-years {
    margin-bottom: 3rem;
}

.education .line div::before {
    content: "";
    width: 15px;
    height: 15px;
    background: var(--borderColors);
    border-radius: 50%;
    position: absolute;
    left: -6px;
}

.skills-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 1.5rem;
}

.skills-right ul {
    line-height: 2rem;
    padding: 0 1.5rem;
}

#contact {
    padding: var(--sectionPadding);
}

.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.contact-form div {
    margin-bottom: 1.4rem;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1.3rem;
    font-family: "roboto", sans-serif;
    background: var(--secondaryBackgroundColors);
    border: 1px solid var(--borderColors);
    border-radius: 3px;
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9d9fa1;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border: 1px solid #7d7d7d;
}

.btn-submit {
    width: 100%;
    padding: 0.75rem 1.3rem;
    background-color: var(--primaryIconColor);
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.btn-submit:hover {
    background: var(--primaryIconColorHover);
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-item-icon {
    background: var(--thirdBackgroundColor);
    width: 53px;
    height: 53px;
    border-radius: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-item-icon svg {
    fill: var(--primaryIconColor);
}

.contact-item-detail h4 {
    margin-bottom: 0.6rem;

}

footer {
    padding: 4rem 0;
    background: var(--secondaryBackgroundColors);
    text-align: center;
}

.footer-icons {
    margin-bottom: 1rem;
}

.footer-icons a {
    margin: 0 0.5rem;
}

.footer-icons svg {
    fill: #3e3f40;
}

.footer-icons a:hover svg {
    fill: #000;
}