/* ==========================================================================
   WPDev - Freelance WordPress & Web Developer Template
   Framework: Tailwind CSS (via CDN)
   Theme: Tech, Code, Dark Mode, Minimal
   Author: Temvario
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --color-primary: #38bdf8; /* Sky 400 */
    --color-primary-dark: #0284c7; /* Sky 600 */
    --color-secondary: #8b5cf6; /* Violet 500 */
    --color-wp: #21759b; /* WordPress Blue */
    --color-bg-dark: #0f172a; /* Slate 900 */
    --color-surface: #1e293b; /* Slate 800 */
    --color-surface-light: #334155; /* Slate 700 */
    --color-text: #f8fafc; /* Slate 50 */
    --color-text-muted: #94a3b8; /* Slate 400 */
    --color-border: #334155; /* Slate 700 */
    
    /* Typography */
    --font-heading: 'Fira Code', monospace;
    --font-body: 'Inter', sans-serif;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-code {
    font-family: var(--font-heading);
}

/* Typography Gradient */
.text-gradient {
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Links */
.nav-link {
    position: relative;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
    font-weight: 500;
}
.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Typing Effect Cursor */
.cursor-blink {
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Cards & Hover Effects */
.tech-card {
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}
.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.2);
}

.portfolio-item {
    overflow: hidden;
    position: relative;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    display: block; /* Ensure a tags behave correctly */
}
.portfolio-item img {
    transition: transform 0.6s ease;
}
.portfolio-item:hover img {
    transform: scale(1.05);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}
.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

/* Portfolio Filter Buttons */
.filter-btn {
    transition: all 0.3s ease;
}
.filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-bg-dark);
    border-color: var(--color-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--color-surface-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* FAQ Accordion */
.faq-content {
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
.faq-content.open {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 1.5rem;
}

/* Language Toggle Button */
.lang-btn.active {
    color: var(--color-primary);
    font-weight: bold;
}
