/* Custom Properties for Theme Colors */
:root {
    --primary-color: #c05c43;
    --primary-rgb: 192, 92, 67;
    --secondary-color: #1f2a32;
    --accent-color: #f4c361;
    --accent-rgb: 244, 195, 97;
    --light-bg: #f7f1ec;
    --dark-bg: #e9e0d5;
    --text-color: #1f2a32;
    --text-light: #4b4f58;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(15, 118, 110, 0.22);
}

/* Additional hover effects and animations */
.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 118, 110, 0.06);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-overlay {
    z-index: 2;
}

/* Button hover animation */
.cta-btn::before,
.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cta-btn:hover::before,
.submit-btn:hover::before {
    opacity: 0.1;
}

/* Smooth scroll offset for fixed header */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Icon Styling */
.fas, .fab {
    margin-right: 8px;
    font-size: 1em;
}

h2 .fas, h2 .fab {
    color: var(--primary-color);
    margin-right: 12px;
}

h3 .fas, h3 .fab {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 0.9em;
}

h4 .fas, h4 .fab {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 0.9em;
}

.nav-menu .fas, .nav-menu .fab {
    margin-right: 6px;
}

.social-link .fab {
    font-size: 1.1em;
    margin-right: 8px;
}

.footer .fas {
    color: #e74c3c;
    margin-right: 6px;
}

/* Focus states for accessibility */
.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.nav-menu a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading animation for images */
.portfolio-item img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item img.loaded {
    opacity: 1;
}

.portfolio-item img:not(.loaded) {
    opacity: 0.6;
    filter: blur(1px);
}
