:root {
    --bg-color: #0b0b0b;
    --surface-color: #161616;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #64ffda;
    /* Teal-ish accent often used in dark tech portfolios */
    --accent-hover: #4cd6b3;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --spacing-container: 1200px;
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor */
}

html {
    scroll-behavior: smooth;
}

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

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-primary);
    transition: opacity 0.3s ease;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-secondary);
    transition: width 0.2s, height 0.2s, background-color 0.2s, opacity 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
    cursor: none;
}

.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 11, 11, 0.85);
    /* Semi-transparent */
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

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

.nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 60px;
}

.greeting {
    display: block;
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    transition: var(--transition-fast);
    display: inline-block;
    background: transparent;
    cursor: none;
    text-align: center;
}

.primary-btn {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.primary-btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

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

.secondary-btn:hover {
    border-color: var(--text-primary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 4px;
    background: var(--text-secondary);
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 24px;
        opacity: 0;
    }
}

/* Sections */
.section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

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

.lead {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.qualifications {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
}

.qual-list {
    list-style: none;
    margin-top: 1rem;
}

.qual-list li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.qual-list strong {
    color: var(--text-primary);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    display: block;
    group: hover;
}

.project-image {
    background-color: var(--surface-color);
    background-image: linear-gradient(45deg, #1a1a1a 25%, transparent 25%, transparent 75%, #1a1a1a 75%, #1a1a1a),
        linear-gradient(45deg, #1a1a1a 25%, transparent 25%, transparent 75%, #1a1a1a 75%, #1a1a1a);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
}

.project-card:hover .project-image {
    transform: translateY(-5px);
}

.img-placeholder {
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.project-info {
    margin-top: 1.5rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.link-arrow {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    display: inline-block;
    transition: var(--transition-fast);
}

.project-card:hover .link-arrow {
    transform: translateX(5px);
}


.tech-stack span {
    display: inline-block;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}


/* Articles */
.articles-list {
    max-width: 800px;
}

.article-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.5rem 0;
    border-bottom: 1px solid #222;
    transition: var(--transition-fast);
}

.article-item:hover {
    transform: translateX(10px);
}

.article-date {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-size: 0.9rem;
    width: 120px;
}

.article-content {
    flex: 1;
}

.article-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.article-content h3 a:hover {
    color: var(--accent-color);
}

.article-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.read-more {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-fast);
}

.article-item:hover .read-more {
    opacity: 1;
    transform: translateX(0);
}

/* Footer */
.footer {
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid #222;
    background: #050505;
}

.footer-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.social-links {
    margin: 2rem 0;
}

.social-links a {
    margin: 0 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

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

.copyright {
    font-size: 0.8rem;
    color: #444;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple hide for now, would need JS toggle */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 3rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .article-item {
        flex-direction: column;
    }

    .article-date {
        margin-bottom: 0.5rem;
    }
}