/* Custom CSS Styles for Portfolio - Black & White Theme */

/* Base styling and variables */
:root {
    --bg-dark: #000000; /* Very dark background - now full black */
    --bg-medium-dark: #1a1a1a; /* Slightly lighter dark for cards/sections */
    --bg-light: #ffffff; /* White background for elements that stand out */

    --text-light: #ffffff; /* White text for dark backgrounds */
    --text-dark: #333333;  /* Dark text for light backgrounds (if any elements have light backgrounds) */
    --text-medium: #ffffff; /* Changed to full white for all secondary text */

    --border-dark: #333333; /* Dark border for separation on dark backgrounds */
    --border-light: #cccccc; /* Light border for separation on light backgrounds */

    --primary-highlight: #ffffff; /* White as the primary accent color */
    --success-green: #22c55e; /* Green for success/check icons */
    --hover-highlight: #cccccc; /* Light gray for hover states */

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* NEW CUSTOM CLASSES FOR TAILWIND REPLACEMENT (Adjusted for B&W) */
.bg-primary {
    background-color: var(--primary-highlight);
}

.hover-bg-primary-dark:hover {
    background-color: var(--hover-highlight) !important; /* Use !important to override Tailwind */
}

.text-primary {
    color: var(--primary-highlight) !important; /* Use !important to override Tailwind */
}

.hover-text-primary:hover {
    color: var(--hover-highlight) !important; /* Use !important to override Tailwind */
}

.border-primary {
    border-color: var(--primary-highlight) !important; /* Use !important to override Tailwind */
}
/* END NEW CUSTOM CLASSES */


/* Smooth scrolling and custom scrollbar */
html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark); /* Ensure html background is dark */
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Navigation enhancements */
#navigation {
    backdrop-filter: blur(20px);
    background-color: rgba(0, 0, 0, 0.8); /* Slightly transparent full black */
}

#navigation.scrolled {
    background-color: rgba(0, 0, 0, 0.9); /* Solid black on scroll */
    border-bottom: 1px solid var(--border-dark);
    box-shadow: 0 1px 3px 0 rgba(255, 255, 255, 0.05); /* White shadow for contrast */
}

/* Service cards styling */
.service-card {
    background: var(--bg-medium-dark); /* Dark background for cards */
    border: 1px solid var(--border-dark);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2); /* Darker shadow */
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.service-icon {
    color: var(--primary-highlight); /* White icon */
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light); /* White title */
}

.service-description {
    color: var(--text-medium); /* Now full white for description */
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-medium); /* Now full white for features */
    margin-bottom: 0.5rem;
}

/* Contact form styling */
.contact-form-container {
    background: var(--bg-medium-dark); /* Dark background for form */
    border: 1px solid var(--border-dark);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light); /* White label */
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-dark); /* Darker background for input fields */
    border: 1px solid var(--border-dark);
    border-radius: 0.5rem;
    color: var(--text-light); /* White input text */
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-highlight); /* White border on focus */
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1); /* White shadow on focus */
}

.submit-button {
    width: 100%;
    background-color: var(--primary-highlight); /* White background for button */
    color: var(--bg-dark); /* Dark text on white button */
    font-weight: 500;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--hover-highlight); /* Light gray on hover */
    color: var(--bg-dark); /* Dark text on light gray hover */
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Social links styling */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: var(--bg-dark); /* Dark icon on white social button */
    background-color: var(--primary-highlight); /* White background */
    border-radius: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.1); /* Light shadow */
    background-color: var(--hover-highlight); /* Light gray on hover */
}

/* Animation utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button hover effects */
button, .btn {
    transition: var(--transition);
}

button:hover, .btn:hover {
    transform: translateY(-1px);
}

/* Hero image styling */
.hero-image {
    transition: var(--transition);
}

.hero-image:hover {
    transform: scale(1.05);
}

/* Stats animation */
.stat-number {
    transition: var(--transition);
}

.stat-number:hover {
    color: var(--primary-highlight); /* White on hover */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .service-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success message */
.success-message {
    background-color: #d4edda; /* Light green background */
    border: 1px solid #c3e6cb;
    color: #155724; /* Dark green text */
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

/* Error message */
.error-message {
    background-color: #f8d7da; /* Light red background */
    border: 1px solid #f5c6cb;
    color: #721c24; /* Dark red text */
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
}

.error-message.show {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}