/* Custom stylesheet for LatihanProjek website */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #18bc9c;
    --accent-color: #f39c12;
    --light-bg: #f4f7f6;
    --dark-bg: #343a40;
    --text-light: #ffffff;
    --text-dark: #212529;
}

/* Base typography and layout */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--primary-color);
    background-color: #ffffff !important;
    min-height: 100vh;
    line-height: 1.7;
}

/* restore default body pseudo-element behavior */
body::before {
    display: none;
}

/* alternate sections with subtle gradients */
section.bg-white {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
}

section.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e2e8f0 100%);
}
a, a:hover, a:focus {
    text-decoration: none;
    transition: color 0.2s;
}

a {
    color: var(--secondary-color);
}

a:hover {
    color: var(--accent-color);
}

h1,h2,h3,h4,h5,h6 {
    font-weight: 700;
}

/* Navbar enhancements */
.navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar .navbar-brand {
    color: var(--secondary-color) !important;
}

.navbar .nav-link {
    color: var(--primary-color) !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--secondary-color) !important;
}

/* Hero section with gradient overlay */
.hero-section {
    position: relative;
    height: 85vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(28,58,88,0.65) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 1rem 2rem;
}

.hero-content h1 {
    font-size: calc(2.5rem + 1.5vw);
}

/* Section headings */
.section-title {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* Alternating section backgrounds */
section.bg-white {
    background-color: #ffffff;
}

section.bg-light {
    background-color: #f8f9fa;
}

/* Card customizations */
.card-custom {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-custom .card-footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

/* Footer refinements */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 0 30px;
}

footer a {
    color: #adb5bd;
}

footer a:hover {
    color: var(--secondary-color);
}

/* Utility helpers */
.btn-rounded {
    border-radius: 50px;
}

.mt-6 {
    margin-top: 3.5rem !important;
}

.py-6 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}

/* Smooth appearance for images */
img {
    transition: transform 0.3s;
}

img:hover {
    transform: scale(1.02);
}
