/* Core Styling Resets */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --border-color: #334155;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Header & Nav */
header {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    margin-right: 1rem;
    margin-top: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

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

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

.btn-sm {
    padding: 0.4rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent) !important;
}

.btn-sm:hover {
    background-color: rgba(56, 189, 248, 0.1);
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.05) 0%, rgba(15, 23, 42, 0) 100%);
}

.badge {
    display: inline-block;
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.tagline {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    max-width: 850px;
}

.sub-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 1.5rem;
}

/* Section Common */
.section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.skill-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.skill-card li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
}

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

.project-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-tags {
    margin-bottom: 1rem;
}

.project-tags span {
    font-size: 0.75rem;
    background-color: rgba(255,255,255,0.05);
    color: var(--text-muted);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    border: 1px solid var(--border-color);
}

.project-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.project-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Contact Box */
.contact-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-box h2 {
    margin-bottom: 1rem;
}

.contact-box p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

/* Responsive Queries */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-container { flex-direction: column; gap: 1rem; }
    nav a { margin: 0 0.75rem; }
}

/* Media Content Creation Accent Styles */
.media-dashboard {
    border-color: #38bdf8 !important;
}

.status-optimized {
    background-color: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.alert-success {
    background-color: rgba(56, 189, 248, 0.05);
    border-left: 4px solid #38bdf8;
    color: #f8fafc;
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Media Content Creation UI Styling */
.media-dashboard {
    border-color: #38bdf8 !important;
    margin-bottom: 2rem;
}

.status-optimized {
    background-color: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.alert-success {
    background-color: rgba(56, 189, 248, 0.05);
    border-left: 4px solid #38bdf8;
    color: #f8fafc;
}

/* Symmetrical Grid Content Alignment Overrides */
.projects-grid .project-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Force the dashboard boxes to stretch completely to the bottom of the card */
.projects-grid .project-card .ai-dashboard-container {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: stretch; /* Forces left and right inner panels to match height */
}

/* Ensure inner panels inside the dashboard share identical vertical heights */
.projects-grid .project-card .dashboard-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%; /* Fills the container completely */
}

/* Let the discrepancy feeds stretch downward evenly */
.projects-grid .project-card .discrepancy-feed {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
