/* ============================================
   ADEM PORTFOLIO - STYLE.CSS
   Dark Theme | Minimalist | Professional
   ============================================ */

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

/* ----- CSS Variables ----- */
:root {
    /* Colors - Sky Blue Theme */
    --bg-primary: #e3f2fd;
    --bg-card: #ffffff;
    --bg-card-alt: #bbdefb;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --accent: #d4a017;
    --accent-hover: #b8860b;
    --accent-glow: rgba(212, 160, 23, 0.3);
    --border: #90caf9;
    --border-light: rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: clamp(60px, 10vh, 120px);
    --container-width: 1200px;
    --card-gap: 20px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.15);
    --glow-accent: 0 0 20px var(--accent-glow);
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

::-webkit-scrollbar-thumb {
    background: #90caf9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64b5f6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ----- Utility Classes ----- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid {
    display: grid;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----- Canvas Particles Background ----- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ----- Floating Navigation Pill ----- */
.nav-pill {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 25px;
    transition: var(--transition-normal);
}

.nav-pill:hover {
    box-shadow: var(--glow-accent);
    border-color: var(--accent-glow);
}

.nav-pill a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: var(--transition-fast);
    border-radius: 15px;
}

.nav-pill a:hover {
    color: var(--accent);
}

.nav-pill .divider {
    width: 1px;
    height: 20px;
    background: var(--border);
}

.nav-pill .nav-icon {
    padding: 8px;
}

.nav-pill svg {
    width: 18px;
    height: 18px;
}

/* Back Link */
.back-link {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: var(--accent);
}

.back-link svg {
    width: 16px;
    height: 16px;
}

/* ----- Hero Section ----- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-greeting {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero-name {
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-name .cursor {
    display: inline-block;
    width: 4px;
    height: 0.8em;
    background: var(--accent);
    margin-left: 4px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-tagline {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-tagline.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-tagline .highlight {
    color: var(--accent);
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.social-icons.visible {
    opacity: 1;
    transform: translateY(0);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.social-icon:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--glow-accent);
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-indicator svg {
    width: 20px;
    height: 20px;
    animation: bounce 2s infinite;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* ----- Section Styles ----- */
.section {
    position: relative;
    padding: var(--section-padding) 0;
    z-index: 1;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

/* ----- About Section ----- */
.about-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #d0e8fc 100%);
}

.about-content {
    max-width: 800px;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 24px;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

.about-philosophy {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    margin-top: 32px;
}

.about-philosophy .icon {
    color: var(--accent);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.about-philosophy blockquote {
    font-style: italic;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Projects Section ----- */
.projects-section {
    background: var(--bg-card-alt);
}

.project-category {
    margin-bottom: 60px;
}

.project-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.category-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* Projects Row (Horizontal Scroll) */
.projects-row {
    display: flex;
    gap: var(--card-gap);
    overflow-x: auto;
    padding: 10px 5px 20px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.projects-row::-webkit-scrollbar {
    display: none;
}

/* Project Card */
.project-card {
    flex: 0 0 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), var(--glow-accent);
    border-color: rgba(212, 160, 23, 0.4);
}

.project-thumbnail {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #cce5ff 0%, #e3f2fd 50%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.08);
    filter: brightness(1.15);
}

.project-info {
    padding: 20px;
}

.project-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.project-learnings {
    margin-bottom: 20px;
}

.checkmark-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkmark-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.checkmark-list .check {
    color: var(--accent);
    font-weight: 600;
    flex-shrink: 0;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.project-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ----- Footer ----- */
.footer {
    position: relative;
    padding: 60px 0 40px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    z-index: 1;
}

.footer-content {
    text-align: center;
}

.footer-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.footer-tagline .code {
    color: var(--accent);
    font-weight: 600;
}

.footer .social-icons {
    opacity: 1;
    transform: none;
    margin-bottom: 24px;
}

.footer .social-icon {
    width: 40px;
    height: 40px;
}

.footer .social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: #7a8a9e;
}

/* ----- CV Page ----- */
.cv-page {
    min-height: 100vh;
    padding: 100px 20px 60px;
}

.cv-container {
    max-width: 800px;
    margin: 0 auto;
}

.cv-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.cv-name {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.cv-title {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.cv-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 16px;
}

.cv-location svg {
    width: 16px;
    height: 16px;
}

.cv-section {
    margin-bottom: 40px;
}

.cv-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.cv-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.cv-education-item,
.cv-project-item {
    margin-bottom: 16px;
}

.cv-education-item h4,
.cv-project-item h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cv-education-item p,
.cv-project-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.cv-project-item a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: var(--transition-fast);
}

.cv-project-item a:hover {
    text-decoration-color: var(--accent);
}

.cv-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.cv-skill-group h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cv-skill-group p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cv-languages {
    display: flex;
    gap: 32px;
}

.cv-language-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.cv-language-item strong {
    color: var(--text-primary);
}

/* Download Button */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-fast);
    margin-bottom: 40px;
}

.btn-download:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-download svg {
    width: 18px;
    height: 18px;
}

/* ----- Contact Page ----- */
.contact-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.contact-container {
    max-width: 600px;
    text-align: center;
}

.contact-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
}

.contact-cards {
    display: grid;
    gap: 16px;
    margin-bottom: 48px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: left;
    transition: var(--transition-normal);
}

.contact-card:hover {
    border-color: var(--accent);
    box-shadow: var(--glow-accent);
    transform: translateX(8px);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 160, 23, 0.12);
    border-radius: 10px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
}

.contact-card-info h4 {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.contact-card-info p {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-interests {
    padding: 32px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.contact-interests h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-interests ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-interests li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.contact-interests li::before {
    content: '→';
    color: var(--accent);
}

/* ----- Project Template Page ----- */
.project-page {
    min-height: 100vh;
    padding: 100px 20px 60px;
}

.project-container {
    max-width: 900px;
    margin: 0 auto;
}

.project-header {
    margin-bottom: 40px;
}

.project-category-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(212, 160, 23, 0.15);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    margin-bottom: 16px;
}

.project-page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.project-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.project-link-btn.primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.project-link-btn.primary:hover {
    background: var(--accent-hover);
}

.project-link-btn.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.project-link-btn.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.project-link-btn svg {
    width: 16px;
    height: 16px;
}

.project-hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #d0e8fc 0%, #e3f2fd 100%);
    border-radius: 16px;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
}

.project-content-section {
    margin-bottom: 40px;
}

.project-content-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.project-content-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.project-screenshots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.project-screenshot {
    aspect-ratio: 16 / 10;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.project-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.project-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.project-nav-link:hover {
    color: var(--accent);
}

.project-nav-link svg {
    width: 16px;
    height: 16px;
}

/* ----- Responsive Design ----- */
@media (max-width: 768px) {
    .nav-pill {
        padding: 6px 16px;
    }
    
    .nav-pill a {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }
    
    .back-link {
        top: 20px;
        left: 16px;
    }
    
    .hero-section {
        padding: 60px 16px;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-icon {
        width: 44px;
        height: 44px;
    }
    
    .section-title::after {
        display: none;
    }
    
    .project-card {
        flex: 0 0 260px;
    }
    
    .cv-skills {
        grid-template-columns: 1fr;
    }
    
    .cv-languages {
        flex-direction: column;
        gap: 12px;
    }
    
    .project-screenshots {
        grid-template-columns: 1fr;
    }
    
    .project-nav {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: clamp(2.5rem, 15vw, 4rem);
    }
    
    .project-card {
        flex: 0 0 240px;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-card-info {
        text-align: center;
    }
}

/* ----- Print Styles ----- */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .nav-pill,
    .back-link,
    .btn-download,
    #particles-canvas {
        display: none !important;
    }
    
    .cv-page {
        padding: 40px;
    }
    
    .cv-container {
        max-width: 100%;
    }
    
    .cv-section-title {
        color: #333;
    }
    
    a {
        color: #333;
    }
    
    .cv-project-item a::after {
        content: " (" attr(href) ")";
        font-size: 0.75rem;
        color: #666;
    }
}

/* ----- Accessibility ----- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ----- Staggered Card Animation ----- */
.project-category.visible .project-card:nth-child(1) { transition-delay: 0.1s; }
.project-category.visible .project-card:nth-child(2) { transition-delay: 0.15s; }
.project-category.visible .project-card:nth-child(3) { transition-delay: 0.2s; }
.project-category.visible .project-card:nth-child(4) { transition-delay: 0.25s; }
.project-category.visible .project-card:nth-child(5) { transition-delay: 0.3s; }
.project-category.visible .project-card:nth-child(6) { transition-delay: 0.35s; }

/* ----- Teknofest Card Styles ----- */
.teknofest-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 40%, #01579b 100%);
    position: relative;
    overflow: hidden;
}

.teknofest-thumb::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255,215,0,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(255,255,255,0.08) 0%, transparent 40%);
    animation: teknofestGlow 6s ease-in-out infinite alternate;
}

@keyframes teknofestGlow {
    0% { opacity: 0.5; transform: rotate(0deg); }
    100% { opacity: 1; transform: rotate(5deg); }
}

.teknofest-icon {
    font-size: 2.5rem;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.teknofest-badge {
    z-index: 1;
    padding: 4px 14px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.teknofest-card:hover {
    border-color: rgba(255, 215, 0, 0.4) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 20px rgba(255, 215, 0, 0.2) !important;
}

.teknofest-line {
    background: linear-gradient(90deg, #d4a017, transparent) !important;
}