/* --- RESET & VARIABLES --- */
:root {
    --bg-color: #050505;       /* Deep Black */
    --card-bg: #0a0a0a;        /* Slightly Lighter Black */
    --neon-cyan: #00f3ff;      /* TRON Cyan */
    --text-color: #e0e0e0;     /* Off-white for readability */
    --dim-text: #888;
    --font-main: 'Fira Code', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 4px;
}

/* --- TYPOGRAPHY & UTILS --- */
a { text-decoration: none; color: inherit; }
.highlight { color: var(--neon-cyan); }
.section-title {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    display: inline-block;
    padding-bottom: 5px;
}

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #1a1a1a;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--neon-cyan);
}

.cursor {
    animation: blink 1s infinite;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

/* --- HERO SECTION --- */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--dim-text);
    margin-bottom: 2rem;
}

.domains {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    border: 1px solid var(--neon-cyan);
    padding: 5px 15px;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    box-shadow: 0 0 5px rgba(0, 243, 255, 0.2);
}

.btn-main {
    margin-top: 3rem;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-main:hover {
    background: var(--neon-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* --- PROJECTS (GRID) --- */
.section-container {
    padding: 5rem 10%;
    min-height: 60vh;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid #333;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
    transform: translateY(-5px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card h3 {
    margin-bottom: 0.5rem;
}

.tech-stack {
    color: var(--neon-cyan);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.description {
    font-size: 0.9rem;
    color: var(--dim-text);
}

.card-arrow {
    align-self: flex-end;
    margin-top: 1rem;
    color: var(--neon-cyan);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.project-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* --- CERTIFICATES (SLIDER) --- */
.slider-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 2rem 0;
    /* Create fade effect on sides */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.slider-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: slide 30s linear infinite;
}

.slide {
    /* Fixed container for the image */
    width: 300px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f0f0f;
    border: 1px solid #333;
    padding: 10px;
}

.slide img {
    /* This solves your Portrait vs Landscape issue */
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
    /* Moves halfway because we duplicated the content */
}

/* --- LOG / INTERESTING FINDS --- */
.log-list {
    list-style: none;
    border-left: 1px solid #333;
    padding-left: 2rem;
}

.log-item {
    margin-bottom: 1.5rem;
    position: relative;
}

.log-item::before {
    content: '>';
    position: absolute;
    left: -2.6rem;
    color: var(--neon-cyan);
    background: var(--bg-color);
    padding: 0 5px;
}

.log-date {
    color: var(--dim-text);
    font-size: 0.85rem;
    margin-right: 10px;
}

/* --- FOOTER --- */
.footer-section {
    padding: 4rem 10%;
    text-align: center;
    border-top: 1px solid #1a1a1a;
    background: linear-gradient(to top, #080808, #050505);
}

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

.social-btn {
    border: 1px solid #333;
    padding: 10px 20px;
    transition: all 0.3s;
}

.social-btn:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.copyright {
    color: var(--dim-text);
    font-size: 0.8rem;
}

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

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* Could add a hamburger menu if needed */
    .slider-track { animation-duration: 20s; } /* Faster on mobile */
}