/* --- Root Variables & Base Styles --- */
:root {
    --primary: #111111;    /* Rich Charcoal Black */
    --accent: #d97706;     /* Deep Amber/Gold */
    --light: #F4F4F5;      /* Zinc Light Grey */
    --text: #27272a;       /* Dark Grey Text */
    --muted: #a1a1aa;      /* Muted Light Grey */
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
}

/* --- Video Grid Layouts --- */
.portfolio-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Vertical TikTok Grid */
.tiktok-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}

.tiktok-item {
    width: 100%;
    max-width: 325px; /* Standard TikTok embed width */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

/* Horizontal YouTube Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

@media (max-width: 768px) {
    .tiktok-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Navigation --- */
nav {
    background: var(--white);
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* --- Hero Section --- */
.dan-hero {
    background-color: var(--primary);
    color: var(--white);
    padding: 100px 5%;
    text-align: center;
}

.dan-badge {
    border: 1px solid var(--white);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    background-color: #d97706;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dan-hero h1 {
    font-size: 56px;
    margin-bottom: 30px;
    line-height: 1.1;
    font-weight: 800;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
}

.dan-hero p {
    font-size: 24px;
    max-width: 850px;
    margin: 0 auto 40px auto;
    color: #d1d5db; /* Light grey for better readability on black */
    line-height: 1.5;
}

.dan-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

/* --- Separate Portfolio Page Styles --- */
#portfolio-content {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-item {
    grid-column: 1 / -1; /* Makes the first video full width */
    margin-bottom: 2rem;
}

.video-info {
    padding: 1.5rem 0;
}

.video-info h3 {
    font-size: 2rem;
    color: var(--primary);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* --- Buttons & Links --- */
.dan-btn {
    background-color: var(--white);
    color: var(--primary);
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
    display: inline-block;
}

.dan-btn:hover {
    background-color: #e5e7eb;
    transform: translateY(-3px);
}

.dan-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 20px;
    transition: opacity 0.3s;
}

.dan-linkedin:hover {
    opacity: 0.7;
    color: var(--white); /* Keep white on hover */
}

.fab.fa-linkedin {
    font-size: 32px; /* Large Logo */
}

/* --- Main Sections --- */
section {
    padding: 6rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary);
    font-size: 2.25rem;
    font-weight: 700;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-size: 1.5rem;
}

/* --- Clients Section --- */
.clients-section {
    background-color: var(--primary); /* Keep dark theme */
    padding: 60px 5% 100px 5%;
    text-align: center;
    border-top: 1px solid #222222;
}

.clients-section h2 {
    color: var(--white);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
    opacity: 0.6;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.client-logo {
    max-width: 450px;
    max-height: 150px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.client-logo:hover {
    opacity: 1;
}

/* --- Experience Timeline --- */
.timeline {
    max-width: 850px;
    margin: 0 auto;
}

.job {
    margin-bottom: 4rem;
    position: relative;
    padding-left: 2.5rem;
    border-left: 2px solid #e5e7eb;
}

.job h3 {
    font-size: 1.75rem;
    color: var(--primary);
}

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

.job ul {
    list-style-type: none;
    margin-top: 1.25rem;
}

.job li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.job li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* --- Footer --- */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 5rem 5%;
    text-align: center;
}

footer p {
    color: var(--muted);
    margin-bottom: 2rem;
}

footer a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 700;
}

/* --- Responsive Layout --- */
@media (max-width: 768px) {
    .dan-hero h1 { font-size: 38px; }
    .dan-hero p { font-size: 20px; }
    .dan-cta-group { flex-direction: column; gap: 25px; }
    .nav-links { display: none; }
    section { padding: 4rem 5%; }
    .logo-grid { gap: 40px; }
}