:root {
    --bg-color: #050505;
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --gradient-1: #2563eb;
    --gradient-2: #7c3aed;
    --font-main: 'Outfit', sans-serif;
    --nav-height: 80px;
}

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

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



/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #9CA3AF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--nav-height);
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 5, 0.8);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

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

.social-links a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Layout */
main {
    padding-top: var(--nav-height);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
}

/* Hero Section */
#hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    animation: fadeUp 1s ease-out;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: fadeIn 1.5s ease-out;
}

.greeting {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

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

/* Code Block Visual */
.code-block-wrapper {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
    overflow: hidden;
    /* Ensure content doesn't overflow the rounded corners */
}

.code-block-wrapper:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #eab308;
}

.green {
    background: #22c55e;
}

pre {
    color: #ced4da;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn.primary {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn.primary:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

/* Projects Section */
.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card + .project-card {
    margin-top: 2rem;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.project-info {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.badge {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    margin-bottom: 0.5rem;
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features-list li i {
    color: var(--accent);
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 0.75rem;
}

.project-visual {
    flex: 1;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.project-visual img {
    max-width: 90%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover .project-visual img {
    transform: scale(1.02);
}

.btn.small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.snaplists-preview {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    width: 100%;
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: white;
}

.snaplists-preview i {
    font-size: 4rem;
    color: #22c55e;
}

.snaplists-preview span {
    font-size: 1.5rem;
    font-weight: 700;
}

/* SVG Foreground Elements */
.foreground {
    fill: var(--text-primary);
}

.snaplists-logo {
    max-width: 90%;
    max-height: 100%;
    width: auto;
    height: auto;
    transition: transform 0.5s ease;
}

.project-card:hover .snaplists-logo {
    transform: scale(1.02);
}

#projects {
    padding-bottom: 2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 1.5rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-visual,
    .project-card {
        width: 100%;
        max-width: 92vw;
        margin-left: auto;
        margin-right: auto;
    }

    #hero {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        flex-direction: column-reverse;
    }

    .project-info {
        padding: 1.25rem;
    }

    .project-visual {
        min-height: 220px;
        padding: 1.25rem;
    }

    .code-block-wrapper {
        transform: none;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 1rem;
        text-align: left;
    }

    pre {
        font-size: 0.8rem;
        /* Slightly smaller font for mobile */
        white-space: pre;
        /* Force text to stay on one line */
        overflow-x: auto;
        /* Allow horizontal scrolling */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
    }
}
