/* --- DESIGN SYSTEM / VARIABLES --- */
:root {
    --primary-blue: #95C0F8;
    --primary-hover: #7AAEF2;
    --dark-text: #24292f;
    --light-text: #57606a;
    --border-color: #e1e4e8;
    --card-border: #d0d7de;
    --bg-gray: #f6f8fa;
    --bg-highlight: #f0f6fc;
    --white: #ffffff;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
}

/* --- GLOBAL SETTINGS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--dark-text);
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid rgba(149, 192, 248, 0.6);
    outline-offset: 3px;
    border-radius: 10px;
}

/* --- HEADER --- */
.navbar {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 30px;
    width: auto;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links a {
    margin-left: 20px;
    font-size: 14px;
    color: var(--light-text);
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* --- HERO SECTION --- */
.hero {
    text-align: center;
    margin: 60px auto 80px auto;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 30px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    width: auto;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.secondary-btn {
    background-color: var(--dark-text);
    color: var(--white);
    width: 100%;
    margin-bottom: 10px;
}

.secondary-btn:hover {
    background-color: #1b1f23;
}

.outline-btn {
    background-color: transparent;
    border: 1px solid var(--card-border);
    width: 100%;
}

.outline-btn:hover {
    background-color: var(--bg-gray);
}

.disabled-btn {
    background-color: var(--bg-gray);
    color: #8c959f;
    border: 1px solid var(--card-border);
    cursor: not-allowed;
    width: 100%;
}

/* --- PROJECT CARDS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin-bottom: 100px;
    padding: 0 20px;
}

.card {
    background-color: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.app-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

.placeholder-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-gray);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin: 0 auto 20px auto;
    color: #8c959f;
}

.card h3 { font-size: 18px; margin-bottom: 10px; text-align: center; }
.card h2 { font-size: 20px; }

.card p {
    font-size: 14px;
    color: var(--light-text);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 30px;
    flex-grow: 1;
}

.card-actions.end-align { margin-top: auto; }

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
    width: 100%;
    max-width: 1200px;
    margin-top: auto;
}

footer p {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--primary-blue);
    font-size: 14px;
    margin: 0 10px;
}

.footer-links a:hover { text-decoration: underline; }

/* --- SUBPAGES --- */
.page-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    width: 100%;
}

.page-content h1 { font-size: 36px; margin-bottom: 30px; text-align: center; }
.page-content h2 { font-size: 24px; margin: 40px 0 15px 0; }

.page-content p, .page-content li {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 16px;
}

.page-content ul,
.page-content ol {
    padding-left: 1.35rem;
    margin: 10px 0 20px 0;
}

.page-content li {
    overflow-wrap: anywhere;
}

.page-content ul li,
.page-content ol li {
    padding-left: 0.15rem;
}

.contact-box {
    background-color: var(--bg-gray);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 50px 20px;
    text-align: center;
    margin-top: 40px;
}

.email-link {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: 15px;
}

/* --- SPECIAL BLOCKS --- */
.highlight-box {
    background-color: var(--bg-highlight);
    border-left: 4px solid var(--primary-blue);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 30px;
    font-size: 15px;
}

.updated {
    text-align: center;
    color: var(--light-text);
    margin: -20px 0 30px 0;
    font-style: italic;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .projects-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .navbar { flex-direction: column; gap: 15px; padding: 20px 10px; }
    .nav-links a { margin: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}