/* Base Styles & Typography */
:root {
    --primary-color: #000000;
    --text-color: #333333;
    --bg-color: #fcfcfc;
    --light-bg: #f5f5f7;
    --accent-color: #0071e3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(#d1d1d1 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(252, 252, 252, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Sections & Containers */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 10%;
}

.container {
    max-width: 1100px;
    width: 100%;
}

.bg-glass { 
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}
.bg-dark { 
    background-color: var(--primary-color); 
    color: white; 
    background-image: none; 
}

/* Typography */
h1 {
    font-size: 5.5rem;
    font-weight: 700;
    letter-spacing: -2.5px;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.1;
}

h2 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -1.5px;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.bg-dark h2 { color: white; }

p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.bg-dark p { color: #aaa; }

/* Buttons & Links */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* New Inline Text Link Styling */
.text-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.text-link:hover {
    color: #005bb5;
    transform: translateX(5px);
}

/* About Grid & Accomplishments */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.fancy-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.fancy-bullets li {
    position: relative;
    padding-left: 2rem;
    font-size: 1.15rem;
    color: #555;
    line-height: 1.5;
}

.fancy-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 113, 227, 0.5);
}

.fancy-bullets strong {
    color: var(--primary-color);
    font-weight: 700;
}

.accomplishments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.stat-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

/* Grids for Skills and Projects */
.skills-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.skill-card, .project-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.project-card h3, .skill-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

/* Contact Links Section */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 500px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: background 0.3s ease, transform 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(10px);
}

.contact-label {
    font-weight: 600;
    color: #aaa;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.contact-value {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
}

/* --- APPLE-STYLE SCROLL ANIMATIONS --- */
.scroll-anim {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-anim.show {
    opacity: 1;
    transform: translateY(0);
}