:root {
    --bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --accent: #38bdf8;
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Photo Styling */
.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    margin-bottom: 1.5rem;
    object-fit: cover;
}

/* Project Specific Styles */
.status {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.lock-text {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
    display: block;
    margin-top: 1rem;
}

.project-card.featured {
    border: 1px solid var(--accent);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
}

/* Original UI components... */
nav {
    display: flex;
    justify-content: space-between;
    padding: 2rem 10%;
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo { font-weight: 800; font-size: 1.5rem; }
.logo span { color: var(--accent); }
nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 2rem; }
nav ul li a { text-decoration: none; color: var(--text-main); font-weight: 500; transition: 0.3s; }
nav ul li a:hover { color: var(--accent); }

header {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 5% 10%;
}

.highlight { color: var(--accent); }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1rem; line-height: 1.1; }
.tagline { font-size: 1.5rem; color: var(--text-dim); margin-bottom: 1.5rem; }
.desc { max-width: 600px; margin-bottom: 2rem; }

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-right: 1rem;
    transition: 0.3s;
    display: inline-block;
}

.primary { background: var(--accent); color: var(--bg); }
.primary:hover { opacity: 0.8; }
.secondary { border: 1px solid var(--text-dim); color: var(--text-main); }

#projects { padding: 5rem 10%; }
.section-title { margin-bottom: 3rem; font-size: 2.5rem; }

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

.project-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.project-card:hover { transform: translateY(-10px); border-color: var(--accent); }

/* Gallery Preview Link inside Card */
.gallery-preview {
    margin-top: 1rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

/* Modal Background */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95); /* Dark background */
    backdrop-filter: blur(8px);
}

.modal-content img, .modal-content video {
    max-height: 70vh; /* Keeps content within viewable area */
    object-fit: contain;
    background: #000;
}

.modal-content {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 90%;
    max-width: 800px;
}

.mySlides { display: none; text-align: center; }
.mySlides img { border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }
.caption { margin-top: 15px; color: var(--text-dim); font-size: 0.9rem; }

/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Prev/Next Buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    text-decoration: none;
}
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }

.tags { margin: 1.5rem 0; }
.tags span {
    font-size: 0.75rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    margin: 0 5px 5px 0;
    display: inline-block;
}

.project-link { color: var(--accent); text-decoration: none; font-weight: bold; }

#journey {
    padding: 6rem 10%;
    background: #020617; /* Deep dark contrast */
}

.story-content {
    max-width: 850px;
    margin: 0 auto;
}

.story-text p {
    font-size: 1.15rem;
    color: var(--text-dim);
    margin-bottom: 1.8rem;
    line-height: 1.8;
}

.story-text strong {
    color: var(--accent);
    font-weight: 600;
}

.story-link {
    color: var(--text-main);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
    transition: 0.3s;
}

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

#entrepreneurship {
    padding: 5rem 10%;
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

#entrepreneurship .story-text p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

#entrepreneurship strong {
    color: var(--accent);
    font-weight: 600;
}

/* Optional: Add a subtle badge for freelance status */
.freelance-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

footer {
    padding: 5rem 10% 2rem;
    text-align: center;
    background: #020617;
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 3rem auto 2rem;
    width: 50%;
}

.credits {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
}

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

.attribution a {
    color: var(--accent);
    text-decoration: none;
    transition: 0.3s;
}

.attribution a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Ensure mobile responsiveness */
@media (max-width: 600px) {
    .footer-divider {
        width: 100%;
    }
}

#tools {
    padding: 4rem 0;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
}

.slider {
    margin: auto;
    width: 100%;
    position: relative;
    display: grid;
    place-items: center;
}

.slide-track {
    display: flex;
    width: calc(250px * 18); /* 250px * total slides (including duplicates) */
    animation: scroll 40s linear infinite;
}

.slide-track:hover {
    animation-play-state: paused; /* Stops on hover so people can see */
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 9)); } /* Move by half the track */
}

.slide {
    height: 120px;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s;
}

.slide img {
    width: 50px;
    margin-bottom: 10px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.slide span {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 600;
}

#presentations {
    padding: 4rem 10%;
}

.presentation-box {
    background: #0f172a;
    border-left: 4px solid #f6ad55; /* Firebase Orange */
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.pres-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f6ad55;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.presentation-box h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.presentation-box p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.pres-btn {
    display: inline-block;
    color: #f1f5f9;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid #f6ad55;
    padding-bottom: 2px;
    transition: 0.3s;
}

.pres-btn:hover {
    color: #f6ad55;
}
.socials { margin: 2rem 0; }
.socials a { margin: 0 1rem; color: var(--accent); text-decoration: none; }
.copyright { font-size: 0.8rem; color: var(--text-dim); }