/* ==========================================================================
   Premium Minimalist Devfolio Theme
   ========================================================================== */
:root {
    /* Pure AMOLED Black & High Contrast */
    --bg-main: #000000;
    --bg-surface: #0a0a0a;
    --bg-surface-hover: #141414;
    --border-color: #1f1f1f;
    --border-hover: #333333;
    
    /* Typography Colors */
    --text-main: #ffffff;
    --text-muted: #888888;
    --text-dark: #000000;
    
    /* Accents */
    --accent-primary: #00B7FF;
    --accent-glow: rgba(0, 183, 255, 0.15);
    
    /* Typography setup */
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Easings for ultra-smooth animations */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor everywhere */
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.mono-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.accent-color {
    color: var(--accent-primary);
}

.highlight {
    color: var(--text-main);
    font-weight: 600;
}

.text-glow {
    color: var(--text-main);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.section {
    padding: 120px 5vw;
    max-width: 1400px;
    margin: 0 auto;
}

/* ==========================================================================
   Ambient Effects (Noise & Glow)
   ========================================================================== */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    filter: blur(40px);
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-main);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s var(--ease-out-expo), 
                height 0.2s var(--ease-out-expo), 
                background-color 0.2s, 
                border-color 0.2s;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5vw;
    z-index: 100;
    mix-blend-mode: difference; /* Ensures visibility on all backgrounds */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: lowercase;
    position: relative;
    padding: 0.5rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--text-main);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5vw;
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    margin-bottom: 2rem;
    background: var(--bg-surface);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 1rem;
    transition: transform 0.3s var(--ease-out-expo), background-color 0.3s;
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--text-dark);
}

.btn-primary:hover {
    transform: scale(1.05);
    background-color: #e0e0e0;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Bento Grid (About & Skills)
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.bento-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    transition: border-color 0.4s ease, background-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    border-color: var(--border-hover);
    background-color: var(--bg-surface-hover);
}

.span-2 {
    grid-column: span 2;
}

.span-1 {
    grid-column: span 1;
}

.bento-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bento-title i {
    color: var(--text-muted);
}

.bento-text {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Pawjects specific card */
.pawjects-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(145deg, var(--bg-surface), #0f1520);
}

.pawjects-content .paw-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.pawjects-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.bento-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.bento-link:hover {
    border-color: var(--accent-primary);
}

/* Tags Container */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    transition: border-color 0.3s, color 0.3s;
}

.bento-card:hover .tag {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

/* Interests */
.interest-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.interest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s var(--ease-out-expo);
}

.interest-item i {
    font-size: 1.8rem;
}

.interest-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

.interest-item:hover {
    color: var(--text-main);
    transform: translateY(-5px);
}

/* ==========================================================================
   Selected Work Section
   ========================================================================== */
.section-header {
    margin-bottom: 4rem;
}

.huge-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-top: 1rem;
}

.projects-list {
    display: flex;
    flex-direction: column;
}

.project-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: padding 0.4s var(--ease-out-expo);
}

.project-row:first-child {
    border-top: 1px solid var(--border-color);
}

.project-row:hover {
    padding: 3.5rem 0;
}

.project-info {
    max-width: 600px;
}

.project-info h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.project-row:hover .project-info h3 {
    color: var(--accent-primary);
}

.project-info p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 1rem;
}

.project-tags span {
    background: var(--bg-surface);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Circle Button */
.btn-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-main);
    transition: background-color 0.3s, transform 0.3s var(--ease-out-expo), border-color 0.3s;
}

.project-row:hover .btn-circle {
    background-color: var(--text-main);
    color: var(--text-dark);
    border-color: var(--text-main);
    transform: rotate(-45deg); /* Arrow points up-right on hover */
}

.status-badge {
    padding: 0.8rem 1.5rem;
    border: 1px dashed var(--border-color);
    border-radius: 100px;
    color: var(--text-muted);
}

/* ==========================================================================
   Contact CTA Section
   ========================================================================== */
.contact-section {
    text-align: center;
    padding: 150px 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, transparent, rgba(0, 183, 255, 0.03));
}

.massive-text {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 2rem;
}

.contact-desc {
    max-width: 600px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.social-links {
    margin-top: 4rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--text-main);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 2rem 5vw;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-cats i {
    color: var(--accent-primary);
    margin-left: 0.5rem;
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-down {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-down.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .span-2 { grid-column: span 2; }
    .span-1 { grid-column: span 1; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Kept minimal for mobile */
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .span-2, .span-1 { grid-column: span 1; }
    
    .project-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .project-row:hover {
        padding: 3rem 0; /* disable expansion on mobile */
    }
    
    .btn-circle {
        width: 50px; height: 50px; font-size: 1.2rem;
    }
    
    /* Disable custom cursor and glow on touch devices */
    .cursor-dot, .cursor-ring, .ambient-glow {
        display: none;
    }
    * { cursor: auto; }
}
