:root {
    --bg: #0a0a0c;
    --surface: #121215;
    --primary: #6366f1; /* Electric Indigo */
    --accent: #bef264;  /* Cyber Lime */
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #27272a;
    --glow: rgba(99, 102, 241, 0.15);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure images don't exceed their containers and keep natural aspect ratio */
img { max-width: 100%; height: auto; display: block; }

* { box-sizing: border-box; margin: 0; padding: 0; cursor: crosshair; }

body {
    background-color: var(--bg);
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }

/* Navigation */
nav {
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000; padding: 1rem 0;
}

.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Fira Code', monospace; font-weight: 700; color: var(--primary); text-decoration: none; font-size: 1.2rem; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-family: 'Fira Code', monospace; font-size: 0.85rem; }
.nav-links a.active, .nav-links a:hover { color: var(--primary); }

/* Components */
.card { background: var(--surface); border: 1px solid var(--border); padding: 2.5rem; margin-bottom: 2rem; transition: var(--transition); }
.card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 10px 30px var(--glow); }

.section-title { font-family: 'Fira Code', monospace; font-size: 0.9rem; color: var(--primary); margin: 3rem 0 1.5rem; text-transform: uppercase; letter-spacing: 1px; }

.btn {
    display: inline-block; padding: 10px 20px; font-family: 'Fira Code', monospace; font-size: 0.8rem;
    text-decoration: none; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: var(--transition);
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translate(-2px, -2px); box-shadow: 4px 4px 0px var(--glow); }

.tech-tag {
    font-family: 'Fira Code', monospace; font-size: 0.7rem; color: var(--accent);
    background: rgba(190, 242, 100, 0.1); padding: 3px 8px; margin-right: 5px; border: 1px solid rgba(190, 242, 100, 0.2);
}

.date-tag { font-family: 'Fira Code'; font-size: 0.8rem; color: var(--primary); margin-bottom: 0.5rem; display: block; }

ul { padding-left: 1.2rem; color: var(--text-muted); font-size: 0.95rem; }
li { margin-bottom: 0.75rem; }

/* Contact Footer */
.contact-footer { padding: 6rem 0 3rem; border-top: 1px solid var(--border); margin-top: 4rem; text-align: center; }
.contact-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
footer { padding: 2rem 0; font-family: 'Fira Code', monospace; font-size: 0.75rem; color: var(--text-muted); text-align: center; border-top: 1px solid var(--border); }


/* ==========================================================================
   NEW INTEGRATIONS: SYNCED PROFILE IDENTITY CARD & MATRICES
   ========================================================================== */

/* Inner Card-Split Identity Layout */
.profile-card-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.profile-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Fluid Terminal Design for Profile Frame */
.avatar-terminal-frame {
    position: relative;
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1 / 1; /* Locks Profile Picture Box into a Perfect Square */
    border: 1px solid var(--border);
    background: var(--bg);
    padding: 24px 8px 8px 8px;
    box-sizing: border-box;
}

.terminal-dots {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
}

.terminal-dots .dot {
    width: 5px;
    height: 5px;
    background: var(--border);
    border-radius: 50%;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--border);
    transition: var(--transition);
}

/* Hover Configurations mapping to Identity Matrix Group */
.card:hover .profile-img {
    border-color: var(--primary);
}

.card:hover .terminal-dots .dot:nth-child(1) { background: #ef4444; }
.card:hover .terminal-dots .dot:nth-child(2) { background: #eab308; }
.card:hover .terminal-dots .dot:nth-child(3) { background: #22c55e; }

@media (max-width: 768px) {
    .profile-card-layout {
        grid-template-columns: 1fr;
    }
    .profile-image-container {
        order: -1;
        margin-bottom: 1rem;
        justify-content: flex-start;
    }
}

/* Symmetrical Grid Matrix */
.photo-matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .photo-matrix-grid {
        grid-template-columns: 1fr;
    }
}

.photo-card-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

/* Strict Mathematical Aspect Ratio Clamping across Zoom/Resizes */
.uniform-photo-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    background: #000;
    border-bottom: 1px solid var(--border);
}

.uniform-photo-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Keeps real resolution aspect ratios perfectly proportioned inside shapes */
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.photo-carousel-card {
    min-width: 0;
}

.photo-carousel-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    border-bottom: 1px solid var(--border);
}

.photo-carousel-viewport {
    width: 100%;
    overflow: hidden;
}

.photo-carousel-track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}

.photo-carousel-slide {
    min-width: 100%;
    aspect-ratio: 4 / 3;
}

.photo-carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.92;
}

.photo-carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--border);
    background: rgba(10, 10, 12, 0.72);
    color: var(--text);
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.photo-carousel-button:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(18, 18, 21, 0.92);
}

.photo-carousel-prev {
    left: 0.75rem;
}

.photo-carousel-next {
    right: 0.75rem;
}

.photo-carousel-card:hover .photo-carousel-slide img {
    opacity: 1;
}

.photo-card-details {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.photo-tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    color: var(--accent);
    border: 1px solid rgba(190, 242, 100, 0.2);
    padding: 1px 5px;
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.photo-card-details h4 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.photo-card-details p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Unified Card System Animation Hooks */
.photo-card-wrapper:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px var(--glow);
}

.photo-card-wrapper:hover .uniform-photo-frame img {
    transform: scale(1.02);
    opacity: 1;
}

.photo-carousel-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px var(--glow);
}

/* Anti-Download/Anti-Drag Directives */
.uniform-photo-frame img, .profile-img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}