
/* Homepage Styles */
.homepage-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-nav {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links a {
    color: rgba(0,0,0,.87);
    text-decoration: none;
    font-size: 13px;
}

.nav-links a:hover {
    text-decoration: underline;
}

.apps-menu {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

.apps-menu:hover {
    background-color: rgba(60,64,67,.08);
}

.signin-btn {
    background: #1a73e8;
    border: 1px solid transparent;
    font-family: Google Sans,Roboto,RobotoDraft,Helvetica,Arial,sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: .25px;
    line-height: 16px;
    margin-left: 10px;
    margin-right: 8px;
    min-width: 76px;
    padding: 9px 23px;
    text-align: center;
    cursor: pointer;
    color: #fff;
    border-radius: 4px;
}

.signin-btn:hover {
    background: #1557b0;
    box-shadow: 0 1px 2px 0 rgba(66,133,244,.3), 0 1px 3px 1px rgba(66,133,244,.15);
}

.homepage-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    margin-top: -56px;
}

.logo-container {
    text-align: center;
    margin-bottom: 25px;
}

.davanico-logo {
    font-size: 90px;
    font-weight: 500; /* ubah dari 400 ke 500 */
    font-family: 'Roboto', sans-serif; /* tambahkan ini */
    user-select: none;
    letter-spacing: 0; /* tambahkan ini juga */
}

.davanico-logo span {
    display: inline-block;
    margin-right: 6px; /* untuk merapatkan antar huruf */
}

.davanico-logo span:last-child {
    margin-right: 0; /* huruf terakhir tanpa jarak */
}


/* Google color scheme for Davanico */
/* Warna huruf ala Google */
.letter-d { color: #4285f4; }  /* Biru */
.letter-a1 { color: #ea4335; } /* Merah */
.letter-v { color: #fbbc05; }  /* Kuning */
.letter-a2 { color: #4285f4; } /* Biru */
.letter-n { color: #34a853; }  /* Hijau */
.letter-i { color: #ea4335; }  /* Merah */
.letter-c { color: #4285f4; }  /* Biru */


.search-section {
    width: 100%;
    max-width: 584px;
    margin-bottom: 30px;
}

.search-box-container {
    background-color: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 14px;
    width: 100%;
    position: relative;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.16);
}

.search-box-container:hover {
    border-color: rgba(223,225,229,0);
    box-shadow: 0 2px 8px 0 rgba(0,0,0,.24);
}

.search-box-container:focus-within {
    border-color: rgba(223,225,229,0);
    box-shadow: 0 2px 8px 0 rgba(0,0,0,.24);
}

.search-icon-left {
    margin-right: 12px;
    flex-shrink: 0;
}

#searchInput {
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
    color: rgba(0,0,0,.87);
    word-wrap: break-word;
    outline: none;
    display: flex;
    flex: 100%;
    font-size: 16px;
    line-height: 34px;
    height: 34px;
}

.search-icons-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.mic-icon, .camera-icon {
    cursor: pointer;
    padding: 4px;
    border-radius: 2px;
}

.mic-icon:hover, .camera-icon:hover {
    background-color: rgba(0,0,0,.08);
}

.buttons-section {
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
    justify-content: center;
}

.google-search-btn, .lucky-btn {
    background-color: #f8f9fa;
    border: 1px solid #f8f9fa;
    border-radius: 4px;
    color: #3c4043;
    font-family: arial,sans-serif;
    font-size: 14px;
    margin: 11px 4px;
    padding: 0 20px;
    line-height: 27px;
    height: 36px;
    min-width: 54px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.google-search-btn:hover, .lucky-btn:hover {
    box-shadow: 0 1px 1px rgba(0,0,0,.1);
    background-color: #f8f9fa;
    border: 1px solid #dadce0;
    color: #202124;
}

/* === RESET & GLOBAL STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 14px;
  color: #202124;
  background: #fff;
}

/* === FOOTER === */
.homepage-footer {
  background-color: #f2f2f2;
  border-top: 1px solid #e4e4e4;
  width: 100%;
  margin-top: 40px;
}

.footer-content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.footer-country {
  padding: 15px;
  border-bottom: 1px solid #dadce0;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.54);
}

.footer-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}

.footer-left,
.footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 15px;
}

.footer-links a {
  color: rgba(0, 0, 0, 0.54);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* === RESPONSIVE (MOBILE) === */
@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    justify-content: center;
    padding: 10px 0;
  }
}



/* Search Results Page */
.search-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.search-header {
    padding: 6px;
    background: #fff;
    border-bottom: 1px solid #ebebeb;
}

.search-top {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 60px;
}

.search-logo {
    margin-right: 25px;
}

.search-logo a {
    text-decoration: none;
}

.small-logo {
    font-size: 20px;
    font-weight: 400;
}

.header-search {
    flex: 1;
    max-width: 584px;
}

.header-search-box {
    background-color: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 14px;
    width: 100%;
    position: relative;
}

.header-search-box:hover {
    border-color: rgba(223,225,229,0);
    box-shadow: 0 2px 8px 0 rgba(0,0,0,.24);
}

.header-search-box:focus-within {
    border-color: rgba(223,225,229,0);
    box-shadow: 0 2px 8px 0 rgba(0,0,0,.24);
}

.header-search input {
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
    color: rgba(0,0,0,.87);
    word-wrap: break-word;
    outline: none;
    display: flex;
    flex: 100%;
    font-size: 16px;
    line-height: 34px;
    height: 34px;
}

.search-tabs {
    padding: 0 20px;
    overflow-x: auto;
    white-space: nowrap;
}

.tabs-container {
    display: flex;
    align-items: center;
    min-height: 48px;
}

.tab {
    color: #5f6368;
    text-decoration: none;
    padding: 12px 12px 12px 0;
    margin-right: 33px;
    font-size: 14px;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.tab.active {
    color: #1a73e8;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 12px;
    height: 3px;
    background: #1a73e8;
    border-radius: 2px;
}

.tab:hover {
    color: #1a73e8;
}

.tab svg {
    margin-right: 6px;
}

.search-content {
    flex: 1;
    padding: 0 20px 20px;
    max-width: 652px;
}

.search-info {
    color: #70757a;
    font-size: 14px;
    margin: 12px 0;
}

.search-results {
    margin-top: 16px;
}

.result-item {
    margin-bottom: 28px;
}

.result-url {
    font-size: 14px;
    line-height: 20px;
    color: #202124;
    margin-bottom: 3px;
}

.result-title {
    font-size: 20px;
    line-height: 26px;
    color: #1a0dab;
    text-decoration: none;
    font-weight: normal;
    margin-bottom: 3px;
    display: block;
}

.result-title:hover {
    text-decoration: underline;
}

.result-description {
    font-size: 14px;
    line-height: 22px;
    color: #4d5156;
    max-width: 600px;
}

/* Images Tab */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.image-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.image-item:hover {
    transform: scale(1.02);
}

.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.image-info {
    padding: 8px;
    background: #fff;
}

.image-title {
    font-size: 14px;
    color: #202124;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-source {
    font-size: 12px;
    color: #70757a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .davanico-logo {
        font-size: 60px;
    }
    
    .search-top {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
        gap: 15px;
    }
    
    .search-logo {
        margin-right: 0;
    }
    
    .header-search {
        width: 100%;
        max-width: none;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-left, .footer-right {
        justify-content: center;
    }
    
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}


/* === Lightbox Overlay === */
#lightbox {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 16px;
}

#lightbox.show {
  display: flex;
}

/* === Gambar Preview === */
.lightbox-img-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
  user-select: none;
}

#lightbox-img.show {
  opacity: 1;
}

/* === Info di bawah gambar === */
#lightbox-info {
  margin-top: 12px;
  text-align: center;
  color: #eee;
  font-size: 14px;
}

/* === Tombol Navigasi & Close === */
.lightbox-nav,
.lightbox-close {
  position: fixed;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  transition: all 0.2s ease;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  background: #f0f0f0;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-nav.prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover {
  background: #f44336;
  color: #fff;
}

/* === Responsif Mobile === */
@media (max-width: 768px) {
  .lightbox-img-wrapper {
    max-width: 95vw;
    max-height: 75vh;
  }

  #lightbox-info {
    font-size: 12px;
  }

  .lightbox-nav,
  .lightbox-close {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}


/* === MY GALLERY (Google Style Grid) === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.gallery-info {
  padding: 8px;
  background: #fff;
}

.gallery-title {
  font-size: 14px;
  color: #202124;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-category {
  font-size: 12px;
  color: #70757a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .gallery-item img {
    height: 120px;
  }
}



/* About Me Section Styles */
.about-me-section {
    max-width: 800px;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
}

.about-profile {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e4e8;
}

.profile-image {
    flex-shrink: 0;
}

.profile-details h2 {
    font-size: 32px;
    color: #1a73e8;
    margin-bottom: 8px;
    font-weight: 400;
}

.profile-details h3 {
    font-size: 18px;
    color: #5f6368;
    margin-bottom: 12px;
    font-weight: 400;
}

.profile-details p {
    font-size: 16px;
    line-height: 1.6;
    color: #202124;
}

.skills-overview {
    margin-bottom: 30px;
}

.skills-overview h3 {
    font-size: 20px;
    color: #202124;
    margin-bottom: 15px;
    font-weight: 500;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: #f1f3f4;
    color: #5f6368;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    border: 1px solid #e1e4e8;
}

.contact-info h3 {
    font-size: 20px;
    color: #202124;
    margin-bottom: 15px;
    font-weight: 500;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #1a0dab;
}

.contact-item:hover {
    text-decoration: underline;
}

/* Project Page Styles */
.project-page {
    background: #fff;
    min-height: 100vh;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid #e1e4e8;
    background: #fff;
}

.back-link a {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
}

.back-link a:hover {
    text-decoration: underline;
}

.project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
}

.project-hero {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.project-image {
    flex-shrink: 0;
}

.project-info {
    flex: 1;
}

.project-info h1 {
    font-size: 36px;
    color: #202124;
    margin-bottom: 8px;
    font-weight: 400;
}

.project-info h2 {
    font-size: 20px;
    color: #5f6368;
    margin-bottom: 20px;
    font-weight: 400;
}

.project-description {
    font-size: 16px;
    line-height: 1.6;
    color: #202124;
    margin-bottom: 25px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

.detail-section {
    margin-bottom: 50px;
}

.detail-section h3 {
    font-size: 24px;
    color: #202124;
    margin-bottom: 20px;
    font-weight: 500;
}

.detail-section p {
    font-size: 16px;
    line-height: 1.6;
    color: #5f6368;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 50%;
}

.feature-content h4 {
    font-size: 18px;
    color: #202124;
    margin-bottom: 8px;
    font-weight: 500;
}

.feature-content p {
    font-size: 14px;
    line-height: 1.5;
    color: #5f6368;
    margin: 0;
}

.tech-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.tech-item h4 {
    font-size: 18px;
    color: #202124;
    margin-bottom: 12px;
    font-weight: 500;
}

.tech-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #5f6368;
    margin: 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: center;
}

.result-stat {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #5f6368;
    font-weight: 500;
}

@media (max-width: 768px) {
    .about-profile {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .project-hero {
        flex-direction: column;
        gap: 30px;
    }
    
    .project-image {
        align-self: center;
    }
    
    .project-container {
        padding: 20px 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .davanico-logo {
        font-size: 48px;
    }
    
    .buttons-section {
        flex-direction: column;
        align-items: center;
    }
    
    .google-search-btn, .lucky-btn {
        width: 200px;
    }
    
    .project-info h1 {
        font-size: 28px;
    }
    
    .project-info h2 {
        font-size: 16px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}
