html, body {
    font-family: 'PT Sans', sans-serif;
    background-color: #0d1117;
    color: #adb5bd;
}
.font-headline {
    font-family: 'Space Grotesk', sans-serif;
}

.dark-theme-bg {
    background-color: #0d1117;
    background-image:
            radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

.gradient-text {
    background: linear-gradient(to right, #22d3ee, #a5f3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-image-section {
    position: relative;
    background-size: cover;
    background-position: center;
}
.bg-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.9);
}

.service-card {
    background-color: rgba(33, 37, 41, 0.5);
    border: 1px solid #343a40;
    transition: all 0.3s ease-in-out;
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: #0dcaf0;
    background-color: #212529;
}

.portfolio-item .portfolio-overlay {
    background-color: rgba(0,0,0,0.7);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-item img {
    transition: transform 0.5s ease-in-out;
}
.portfolio-item:hover img {
    transform: scale(1.1);
}

.footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
.footer-link:hover {
    color: #0dcaf0;
}

/* Header Letter Animation - Elegant Version */
#header-text-container .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(1em);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.scrolled #header-text-container .letter {
    opacity: 1;
    transform: translateY(0);
}

/* Logo Hover Wobble Animation */
#header-brand .gradient-text {
    display: inline-block;
}

@keyframes wobble {
    25% { transform: rotate(5deg); }
    50% { transform: rotate(-5deg); }
    75% { transform: rotate(2deg); }
    100% { transform: rotate(0); }
}

#header-brand:hover .gradient-text {
    animation: wobble 0.5s ease-in-out;
}

#hero-title:focus {
    outline: none;
    box-shadow: none; /* For Bootstrap compatibility */
}