/* Core Styling / Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    position: sticky;
    top: 0;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    color: var(--accent);
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
    font-weight: 500;
}

nav a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.greeting {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin: 0.5rem 0;
}

.hero h2 {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero p {
    max-width: 600px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: var(--accent);
    color: var(--bg-dark);
}

.btn.primary:hover {
    background-color: var(--accent-hover);
}

.btn.secondary {
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn.secondary:hover {
    background-color: rgba(56, 189, 248, 0.1);
}

/* General Sections Layout */
section {
    padding: 5rem 10%;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--accent);
}

.skill-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.skill-card li::before {
    content: "▹";
    color: var(--accent);
    margin-right: 8px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card.incoming {
    opacity: 0.6;
    border: 1px dashed var(--text-secondary);
    background-color: transparent;
}

.project-tag {
    font-size: 0.8rem;
    color: var(--accent);
    font-family: monospace;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.project-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.project-link.disabled {
    color: var(--text-secondary);
    font-style: italic;
}

/* Footer Section */
footer {
    background-color: #0b111e;
    text-align: center;
    padding: 3rem 10%;
    margin-top: 5rem;
    border-top: 1px solid #1e293b;
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
}

/* Responsive Rules */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }
    nav a {
        margin-left: 1rem;
    }
    section {
        padding: 4rem 5%;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero h2 {
        font-size: 1.5rem;
    }
}