/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: #1a1a1a;
    margin-bottom: 0.8rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 1rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #004080;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

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

section {
    padding: 60px 0;
    border-bottom: 1px solid #e0e0e0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title:after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #0066cc;
    margin: 15px auto;
}

/* Navigation */
nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 40px; /* Reduced height to be more proportional */
  }
  
  .logo-container {
    display: flex;
  }
  
  .logo {
    height: 35px; /* Set a specific height for the logo */
    width: auto; /* Width will adjust proportionally */
    object-fit: contain;
  }
  
  .logo-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0066cc;
    margin-left: 15px;
    text-decoration: none; /* For the anchor tag */
  }

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

.nav-links li {
    margin-left: 20px;
    margin-right: 10px;
}

.nav-links a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #0066cc;
    text-decoration: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100vh;
  background-image: url('../images/cakrawala2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white; /* Make text light on dark backgrounds */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Optional: adds shadow to make text readable */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay - adjust opacity as needed */
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2; /* Place content above the overlay */
  max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-description{
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #0066cc;
    color: #fff;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background: #004080;
    text-decoration: none;
    color: #fff;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
  flex: 1;
  position: relative;
  width: 100%;
  padding-bottom: 40%;
  overflow: hidden;
}

.about-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
    flex: 1;
}

.skill-bars {
    margin-top: 20px;
}

.skill {
    margin-bottom: 15px;
}

.skill-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.skill-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: #0066cc;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 20px;
}

.project-category {
    color: #0066cc;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.project-title {
    margin: 10px 0;
}

/* Skills & Experiences Section */
.exp-grid {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scroll-behavior: smooth;
    /* Hide scrollbar for Chrome, Safari and Opera */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    position: relative;

    /* Ensure continuous scrolling without visible reset */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  }
  
  /* Container for the scrollable area with shadow edges */
  .exp-container {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
  }
  
  /* Hide scrollbar for Chrome, Safari and Opera */
  .exp-grid::-webkit-scrollbar {
    display: none;
  }
  
  .exp-card {
    overflow: hidden;
    flex: 0 0 auto;
    width: 300px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .exp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }
  
  .exp-year {
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    background: #0066cc;
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 120px;
  }
  
  .exp-info {
    text-align: left;
    border-radius: 10px;
    padding: 20px;
    flex: 1;
  }
  
  .exp-info h3 {
    text-align: left;
    font-size: 1.15rem;
    color: #1a1a1a;
    font-weight: bold;
  }
  
  .exp-info h3:after {
    content: "";
    display: flex;
    height: 3px;
    background: #0066cc;
    margin: 15px auto;
  }
  
  /* Scroll buttons styling */
  .container {
    position: relative;
  }
  
  .scroll-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
  }
  
  .scroll-btn {
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
  }
  
  .scroll-btn:hover {
    background: #0055aa;
  }
  .featured-card {
    flex: 0 0 auto;
    width: 200px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
    /* Prevent layout shift during hover */
    will-change: transform;
}

.featured-card:hover {
    transform: translateY(-10px);
  }

  .featured-info {
    text-align: center;
    border-radius: 10px;
    padding: 20px;
    flex: 1;
  }

  .featured-container {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
  }
  
  .featured-img-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
  }
  
  .featured-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  
  .featured-name {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
  }

  .featured-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 30px;
    padding: 20px 0;
    position: relative;
    /* Hide scrollbars across browsers */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    /* Use transform for mask instead of mask-image for better compatibility */
    -webkit-mask: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
    mask: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}

.featured-grid::-webkit-scrollbar {
    display: none;
}


.featured-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.featured-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

/* Leadership Section */
.leadership-grid {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scroll-behavior: smooth;
    /* Hide scrollbar for Chrome, Safari and Opera */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    position: relative;

    /* Ensure continuous scrolling without visible reset */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  }
  
  /* Hide scrollbar for Chrome, Safari and Opera */
  .leadership-grid::-webkit-scrollbar {
    display: none;
  }
  
  
.exp-img {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.leadership-info {
    text-align: left;
    border-radius: 10px;
    padding: 20px;
    flex: 1;
  }

.leadership-info h3 {
    text-align: left;
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: bold;
  }

.leadership-tag {
    font-size: 1rem;
    text-align: left;
    color: #1a1a1a;
    font-weight: bold;
}

.leadership-tag:after {
    content: "";
    display: flex;
    height: 3px;
    background: #0066cc;
    margin: 15px auto;
}

.leadership-icon {
    font-size: 2.5rem;
    color: #0066cc;
    margin-bottom: 15px;
}

/* Awards Section */
.awards-list {
    margin-top: 30px;
}

.award-item {
    display: flex;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.award-item:hover{
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.award-year {
    background: #0066cc;
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    min-width: 120px;
}

.award-details {
    padding: 20px;
    flex: 1;
}

.award-title {
    margin-bottom: 5px;
}

.award-title:hover{
    color: #0066cc;
}

.award-description{
    color: #1a1a1a;
}

/* Contact Section */
.contact-form {
    flex: 2;
    max-width: 600px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

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

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

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Contact Section Layout */
.contact-wrapper {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin: 40px auto;
    align-items: stretch;
    justify-content: center;
    max-width: 1000px;
  }
  
  /* Social Media Updates Section */
  .social-updates {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .social-updates h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
  }
  
  .update-text {
    margin-bottom: 25px;
    color: #555;
  }
  
  .social-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
  }
  
  .social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  
  .social-link:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
  }
  
  .social-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
  }

  .social-img {
    height: 250px;
    width: 250px; /* Added to make it a perfect circle */
    background-size: cover;
    background-position: center;
    border-radius: 50%; /* This creates the circle effect */
    overflow: hidden; /* Ensures the image stays within the circle */
    margin: 0 auto; /* Centers the circle if needed */
    
    /* Optional: Add a border */
    border: 3px solid #fff; /* White border */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  }
  

/* Footer */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 50px 0 20px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #0066cc;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav a {
    color: #fff;
    margin: 0 15px;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0066cc;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
}

.back-to-top:hover {
    background: #004080;
}

.load-more {
    margin-top: 50px;
    text-align: center;
}

.hidden {
    display: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    .about-image, .about-text {
        flex: auto;
        width: 100%;
    }
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
}


@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        display: none;
    }
    .nav-links.show {
        display: flex;
    }
    .nav-links li {
        margin: 10px 0;
        margin-left: 0;
    }
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 23px;
    }
    .projects-grid, .leadership-grid, .exp-grid {
        grid-template-columns: 1fr;
    }
    .award-item {
        flex-direction: column;
    }
    .award-year {
        min-width: 100%;
        padding: 10px;
    }
    .hero {
        padding: 100px 0;
    }
    .hero h1 {
        font-size: 2.2rem;
    }

    .contact-wrapper {
        flex-direction: column;
    }
    
    .social-updates {
    max-width: 100%;
    }
    
    .social-icons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    }
}

/* Animation */
.fade-in {
opacity: 0;
transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.fade-in.appear {
opacity: 1;
}
