/**
 * Main Stylesheet - Portfolio dev00
 *
 * @package Portfolio_dev00
 * @since 1.0.0
 */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #1e1e1e;
    --background: #ffffff;
    --foreground: #1a1a1a;
    --muted-foreground: #666666;
    --border: #e5e5e5;
    --purple: #8b5cf6;
    --blue: #3b82f6;
}

* {
    outline-color: rgba(99, 102, 241, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling for anchor links */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-muted-foreground { color: var(--muted-foreground) !important; }
.bg-muted { background-color: #f5f5f5 !important; }
.text-foreground { color: var(--foreground) !important; }
.bg-foreground { background-color: var(--foreground) !important; }
.border-border { border-color: var(--border) !important; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-up.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.slide-in-left.visible {
    animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right.visible {
    animation: slideInRight 0.6s ease-out forwards;
}

.scale-in.visible {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Scroll Animation Observer */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

/* Links */
a {
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    opacity: 0.9;
}

/* Buttons */
button, .button {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Cards */
.card {
    transition: all 0.3s ease;
}

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

/* WordPress specific styles */
.prose {
    color: var(--foreground);
    line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: var(--foreground);
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
}

.prose a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.prose a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.prose img {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.prose code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.prose pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* Comments */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.comment-author {
    font-weight: 600;
    color: var(--primary);
}

.comment-meta {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

/* Form styles */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="time"],
textarea,
select {
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Logo styles */
.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.custom-logo-wrapper {
    display: flex;
    align-items: center;
    max-height: 64px;
    max-width: 200px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.custom-logo-wrapper a {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.custom-logo-wrapper img,
.custom-logo-wrapper a img {
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
    display: block;
    vertical-align: middle;
}

.logo-icon {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
}

.logo-text {
    flex-shrink: 0;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

/* Navigation */
nav {
    transition: all 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .prose {
        font-size: 1rem;
    }
    
    .custom-logo-wrapper {
        max-width: 150px;
    }
    
    .custom-logo-wrapper img {
        max-height: 48px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    nav,
    footer,
    .no-print {
        display: none;
    }
}
