@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

:root {
    --color-graphite:     #2F3133;
    --color-bright-snow:  #FAFAFA;

    --accent-primary:     #ff4d6d;    

    --bg-body:            var(--color-bright-snow);
    --text-primary:       var(--color-graphite);
    --nav-text:           white;
    --nav-hover:          var(--accent-primary);
    --border-light:       rgba(0,0,0,0.09);
}

/*base*/
* {
    box-sizing: border-box;
 margin: 0;
 padding: 0;
}

body {
background-color: var(--bg-body);
color: var(--text-primary);
 font-family: 'Lato', sans-serif;
 transition: background-color 0.8s ease, color 0.8s ease;
 overflow-x: hidden;
}

::selection {
 background: #00dbde;
 color: #000;
}

/* tipografi*/
li, a, button, label, input, textarea {
 font-family: 'Lato', sans-serif;
}

a {
 color: inherit;
 text-decoration: none;
}

/*layout*/
html {
 scroll-behavior: smooth;
}

.container {
 max-width: 1100px;
 margin: 0 auto;
 padding: 0 20px;
}

.section {
 padding: 100px 0;
}

.flex {
 display: flex;
 align-items: center;
 gap: 50px;
 flex-wrap: wrap;
}

/*header nav*/
header {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 40px 10% 10px;
 background: transparent;
 transition: padding 0.3s ease;
}

nav {
 background: #2F3133;
 backdrop-filter: blur(12px);
 -webkit-backdrop-filter: blur(12px);
 padding: 12px 30px;
 border-radius: 50px;
 box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
 border: 1px solid rgba(255, 255, 255, 0.3);
 transition: all 0.5s ease;
}

.nav_links {
 list-style: none;
 display: flex;
}

.nav_links li {
 padding: 0 20px;
}

.nav_links li a {
    font-size: 16px;
    font-weight: 400;
    color: white; 
    transition: color 0.3s ease;
}

.nav_links li a:hover {
    color: aqua;
}

.logo {
width: 60px;
    cursor: pointer;
    transition: filter 0.6s ease;
    filter: brightness(1);
}

.logo:hover {
 filter: brightness(1.3) drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.logo.click-bounce {
    animation: clickBounce 0.6s ease-out;
}

@keyframes clickBounce {
    0%   { transform: rotate(0deg)    scale(1);    }
    30%  { transform: rotate(25deg)  scale(1.15); }
    100% { transform: rotate(0deg)   scale(1);    }
}

/*hero*/
.section.hero-2 {
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: flex-start;
 padding: 120px 0 0 150px;
 text-align: left;
 min-height: 100vh;
 position: relative;
 overflow: hidden;
}

.container.flex-c.home {
 align-items: flex-start;
 margin-top: -20px;
}

.hero-text.outline.home {
 font-size: 80px;
 font-weight: 700;
 width: 70%;
 line-height: 1.1;
}

.hero-sub-text {
 font-size: 50px;
 font-weight: 300;
 line-height: 60px;
 width: 65%;
 margin-top: 20px;
 opacity: 0.9;
}

.cta {
 display: inline-flex;
 transition: transform 0.2s ease;
}

.cta:hover {
 transform: scale(1.1);
}

.cta2 img {
    width: 38px;
    height: 38px;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.cta2:hover img {
    transform: translateY(-4px) scale(1.1);
    opacity: 1;
}

.linkedin-icon {
 width: 40px;
 height: 40px;
 transition: opacity 0.2s ease;
}

.linkedin-icon:hover {
 opacity: 0.8;
}

/*about*/
.about-photo {
 width: 280px;
 height: 280px;
 border-radius: 50%;
 object-fit: cover;
 border: 4px solid #fff;
 box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.about-text h2 {
 font-size: 3rem;
 margin-bottom: 20px;
}

.about-text p {
 font-size: 1.2rem;
 line-height: 1.8;
 max-width: 600px;
 text-align: justify;
}

#about {
    padding-top: 160px !important;   /* was probably 100px before */
}

/*carousel*/
.projects-section {
 padding: 120px 0;
}

.section-title {
 text-align: center;
 font-size: 3rem;
 margin-bottom: 60px;
 color: black;
}

.carousel {
 position: relative;
 max-width: 1000px;
 margin: 0 auto;
 height: 500px;
 border-radius: 20px;
 overflow: hidden;
 box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.carousel-slide {
 position: absolute;
 inset: 0;
 opacity: 0;
 transition: opacity 0.8s ease-in-out;
 pointer-events: none;
}

.carousel-slide.active {
 opacity: 1;
 pointer-events: auto;
}

.carousel-slide img {
 width: 100%;
 height: 500px;
 object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 80px 50px 50px;  
    color: white;
    text-align: left;
}

.carousel-caption h3 {
    font-size: 2.4rem;        
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.carousel-caption p {
    font-size: 1.15rem;     
    line-height: 1.7;
    opacity: 0.95;
    max-width: 700px;
}

/*about caroysel*/
.about-photo-carousel {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    flex-shrink: 0;
    cursor: pointer;          
}

.about-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    border-radius: 50%;
    overflow: hidden;
}

.about-slide.active {
    opacity: 1;
}

.about-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/*contact*/
.contact-section {
    padding: 80px 0 !important; 
}

.contact-title {
 font-size: 4.5rem;
 font-weight: 900;
 color: black;
 margin-bottom: 16px;
}

.contact-lead {
 font-size: 1.4rem;
 margin-bottom: 70px;
 color: #000;
 opacity: 0.85;
}

.name-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 50px;
 margin-bottom: 34px;
}

.input-group {
 display: flex;
 flex-direction: column;
}

.input-group.full {
 grid-column: 1 / -1;
}

.input-group label {
 font-size: 1.15rem;
 font-weight: 500;
 margin: 12px 0 8px;
 opacity: 0.9;
}

.input-group input,
.input-group textarea {
 height: 60px;
 padding: 0 0 12px;
 border: none;
 border-bottom: 2px solid #333;
 background: transparent;
 color: inherit;
 font-size: 1.1rem;
 transition: border-color 0.3s ease;
}

.input-group textarea {
 height: auto;
 min-height: 120px;
 resize: none;
}

.input-group input:focus,
.input-group textarea:focus {
 outline: none;
 border-bottom-color: #00dbde;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
 color: #666;
}

.submit-btn {
 margin-top: 50px;
 padding: 18px 70px;
 background: #000;
 color: white;
 border: none;
 border-radius: 50px;
 font-size: 1.25rem;
 font-weight: 600;
 cursor: pointer;
 transition: all 0.3s ease;
}

.submit-btn:hover {
 background: #00dbde;
 color: #000;
 transform: translateY(-4px);
}

.error-message {
 color: #ff6b6b;
 font-size: 0.9rem;
 margin-top: 8px;
 min-height: 1.2em;
}

/*circle*/
.bg-circle {
 position: fixed;
 top: 50%;
 left: 50%;
 width: 1400px;
 height: 1400px;
border: 1.8px solid var(--border-light); border-radius: 50%;
 transform: translate(-50%, -50%);
 pointer-events: none;
 z-index: -1;
 transition: all 1s ease;
border: 1.8px solid var(--border-light);
}

/*dark mode*/
body.dark {   
--bg-body:            #0f0f0f;        
--text-primary:       #A39D8D;         
--text-muted:         #6b6559;
--nav-text:           #ffffff;           
--nav-hover:          #ff4d6d;          
--border-light:       rgba(163, 157, 141, 0.12);   
}

body.dark .bg-circle {
 border-color: rgba(255, 255, 255, 0.08);
 box-shadow: 0 300px 0 300px #A39D8Dff;
}

body.dark header nav {
background: #A39D8D !important;     
border-color: rgba(255, 255, 255, 0.1);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border: 1px solid rgba(163, 157, 141, 0.18);      
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

body.dark .nav_links li a {
color: white !important;           
text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

body.dark .nav_links li a:hover {
color: #ff4d6d !important;          
text-shadow: 0 0 12px rgba(255, 77, 109, 0.5);
}

body.dark .logo {
filter: brightness(0) invert(1) hue-rotate(180deg);
}

body.dark .section-title,
body.dark .contact-title,
body.dark .contact-lead,
body.dark .about-text h2,
body.dark h3,
body.dark p,
body.dark label {
    color: white !important;
}

body.dark input,
body.dark textarea {
color: #A39D8D;
    border-bottom-color: rgba(163, 157, 141, 0.3);
    background: transparent;
}

body.dark .input-group input:focus,
body.dark .input-group textarea:focus {
    border-bottom-color: #ff4d6d;
    box-shadow: 0 1px 0 #ff4d6d;
}

body.dark .input-group input::placeholder,
body.dark .input-group textarea::placeholder {
    color: #6b6559;
}

body.dark .submit-btn {
    background: #A39D8D;
    color: white;
}

body.dark .submit-btn:hover {
    background: #6b6559;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.35);
    transform: translateY(-5px);
}

body.dark .form-success {
    color: #A39D8D !important;
}

body.dark .carousel-caption {
background: linear-gradient(transparent, rgba(9, 9, 7, 0.95));}

body.dark .hero-text.outline.home,
body.dark .hero-sub-text {
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

body.dark .cta2 img {
    filter: brightness(0) invert(1) !important;
    opacity: 0.9 !important;
}

body.dark .cta2:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255,255,255,0.4));
}

/*rosponsive broken*/
@media (max-width: 768px) {
 .section.hero-2 {
  padding: 180px 20px 0;
  align-items: center;
  text-align: center;
 }

 .hero-text.outline.home,
 .hero-sub-text {
  width: 100%;
 }

 .hero-text.outline.home { font-size: 56px; }
 .hero-sub-text { font-size: 36px; line-height: 46px; }

 .name-grid { grid-template-columns: 1fr; gap: 34px; }
 .contact-title { font-size: 3.2rem; }
 .submit-btn { width: 100%; }

 .flex { flex-direction: column; text-align: center; }
 .about-photo { width: 200px; height: 200px; }
}