@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom colors */
:root {
    --color-primary: #3498db;
    --color-secondary: #2c3e50;
}

/* Custom background images */
.bg-hero-pattern {
    background-image: url('/img/perl-code-bg.svg');
    background-size: cover;
    background-position: center;
}

.bg-code-pattern {
    background-image: url('/img/perl-code-bg-2.svg');
    background-size: cover;
    background-position: center;
}

.bg-database-pattern {
    background-image: url('/img/database-bg.jpg');
    background-size: cover;
    background-position: center;
}

.bg-contact-pattern {
    background-image: url('/img/contact-bg.jpg');
    background-size: cover;
    background-position: center;
}

/* Custom components */
.bg-overlay {
    position: relative;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.9);
    z-index: 0;
}

.bg-overlay > * {
    position: relative;
    z-index: 1;
}

/* Custom utility classes */
.text-primary {
    color: var(--color-primary) !important;
}

.text-secondary {
    color: var(--color-secondary) !important;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

.bg-secondary {
    background-color: var(--color-secondary) !important;
}

.hover\:text-primary:hover {
    color: var(--color-primary) !important;
}

.hover\:bg-primary:hover {
    background-color: var(--color-primary) !important;
}

.focus\:border-primary:focus {
    border-color: var(--color-primary) !important;
}

.focus\:ring-primary:focus {
    --tw-ring-color: var(--color-primary) !important;
}

/* Additional utility classes */
.bg-primary\/90 {
    background-color: rgba(52, 152, 219, 0.9) !important;
}

.bg-primary\/10 {
    background-color: rgba(52, 152, 219, 0.1) !important;
}

.hover\:bg-primary\/90:hover {
    background-color: rgba(52, 152, 219, 0.9) !important;
}

.focus\:ring-primary\/20:focus {
    --tw-ring-color: rgba(52, 152, 219, 0.2) !important;
} 