/* Design System Variables */
:root {
    --bg-color: #0A0A0A;
    --accent-color: #B91C2B;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-height: 80px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.secondary-text {
    color: var(--text-secondary);
}

/* Button Styles (Pill Shape) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-pill {
    border-radius: 9999px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #FFFFFF;
    border: 2px solid var(--accent-color);
}

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

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    height: 60px;
    background-color: var(--bg-color); /* Solid dark */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-secondary-btn {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.navbar.scrolled .nav-secondary-btn {
    display: inline-flex;
    opacity: 1;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.hire-me {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* Section Layout */
section, footer {
    padding: 6rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: #000000;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 0;
}

.hero-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through to background if necessary */
    z-index: 10;
}

.hero-text {
    position: absolute;
    bottom: 10%;
    left: 8%; /* Leave room for social sidebar */
    max-width: 600px;
    pointer-events: auto; /* Re-enable clicks for buttons */
}

.hero-greeting {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.hero-role {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.bio {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.media-widget {
    position: absolute;
    bottom: 10%;
    right: 8%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 10;
    pointer-events: auto; /* Re-enable clicks for the button */
}
.video-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-size: 1.2rem;
}

.video-toggle-btn:hover {
    transform: scale(1.1);
    background-color: #9b1723;
}

.media-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.media-info span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-top: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.scroll-indicator a:hover {
    color: var(--text-primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* ------------------------------------- */
/* About & Skills Section */
/* ------------------------------------- */

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.skill-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skill-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-bar-container {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 999px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: 0.3s;
}

/* Animate the bars when the section is visible */
.fade-in-section.is-visible .skill-bar {
    width: var(--skill-width);
}

/* ------------------------------------- */
/* Process Section */
/* ------------------------------------- */
.process-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.process-step:last-child {
    flex: 0 1 auto; /* Last step doesn't need to stretch as much without a connector */
}

.sticky-note {
    background-color: rgba(255, 255, 255, 0.03); /* dark card */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 4px solid var(--accent-color); /* To look like a taped/accented note */
    color: var(--text-primary);
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 250px;
    min-height: 260px;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    border-radius: 0.5rem; /* slight radius */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sticky-note h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.sticky-note p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Subtle rotations for the sticky notes */
.note-1 { transform: rotate(-3deg); }
.note-2 { transform: rotate(2deg); }
.note-3 { transform: rotate(-2deg); }
.note-4 { transform: rotate(3deg); }

/* Hover effect */
.sticky-note:hover {
    transform: rotate(0) scale(1.05);
    transition: transform 0.3s ease;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.process-connector-line {
    flex: 1; /* Allow connector to shrink/grow */
    min-width: 20px;
    max-width: 60px;
    height: 2px;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
    position: relative;
    margin: 0 5px;
}

.process-connector-line::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    /* Slightly smaller text/padding on tablets so they still fit horizontally */
    .sticky-note {
        padding: 1.5rem 1rem;
        min-height: 220px;
    }
    .sticky-note h3 {
        font-size: 1.1rem;
    }
    .sticky-note p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .process-container {
        flex-direction: column;
        gap: 2rem;
    }
    .process-step {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    .process-step:last-child {
        flex: 1;
    }
    .sticky-note {
        width: 250px;
        min-height: 200px;
    }
    .process-connector-line {
        width: 2px;
        height: 40px;
        min-width: 2px;
        max-width: 2px;
        border-bottom: none;
        border-right: 2px dashed rgba(255, 255, 255, 0.3);
        margin: 10px 0;
    }
    .process-connector-line::after {
        right: -3px;
        top: auto;
        bottom: -4px;
    }
}

/* ------------------------------------- */
/* Projects Section */
/* ------------------------------------- */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.03); /* dark card */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 3rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-number {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent-color);
    opacity: 0.8;
    line-height: 1;
}

.project-content {
    flex: 1;
}

.project-content h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tag {
    background-color: rgba(185, 28, 43, 0.15); /* light crimson bg */
    color: #ff6b7b; /* lighter crimson for text */
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(185, 28, 43, 0.3);
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.project-actions .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .project-card {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .project-number {
        font-size: 3rem;
    }
}

/* ------------------------------------- */
/* Connect Section */
/* ------------------------------------- */
#social-callout {
    min-height: auto;
    padding: 8rem 2rem;
}

.connect-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .connect-links {
        flex-direction: column;
        align-items: center;
    }
    .connect-links .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ------------------------------------- */
/* Work Experience Section */
/* ------------------------------------- */
.custom-shape-divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.custom-shape-divider-top .shape-fill {
    fill: var(--bg-color); /* The black color from previous section */
}

.exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.exp-card {
    background-color: #ffffff;
    color: #1a1a1a;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.exp-card h3 {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.exp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.exp-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.exp-card p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
}

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

.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.custom-shape-divider-bottom .shape-fill {
    fill: var(--bg-color); /* The black color from next section */
}

/* ------------------------------------- */
/* Leadership Timeline Section */
/* ------------------------------------- */
#leadership {
    padding-top: 6rem;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.1);
}

.timeline-entry {
    position: relative;
    width: 100%;
    padding-left: 4rem;
    margin-bottom: 4rem;
}

.timeline-dot {
    position: absolute;
    top: 30px; /* Aligned with title */
    left: 13px; /* centered on the 20px line */
    width: 16px;
    height: 16px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(185, 28, 43, 0.8);
    z-index: 10;
}

.timeline-content {
    background-color: rgba(255, 255, 255, 0.03); /* Dark card style */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.timeline-content h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.timeline-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Timeline is fully responsive natively now */

/* ------------------------------------- */
/* Contact & Footer Section */
/* ------------------------------------- */
.contact-form {
    background-color: rgba(255, 255, 255, 0.05); /* slightly light card */
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: left;
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .input-group {
    flex: 1;
}

.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group input,
.input-group textarea {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    padding: 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.checkbox-group input {
    margin-top: 0.3rem;
    accent-color: var(--accent-color);
}

.checkbox-group label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.contact-submit-btn {
    border-color: #fff; 
    color: #fff; 
    width: 100%; 
    font-size: 1.1rem; 
    margin-top: 1rem; 
    background-color: rgba(255,255,255,0.1);
}

.contact-submit-btn:hover {
    background-color: #fff;
    color: var(--accent-color);
}

.contact-secondary {
    margin-top: 3rem;
    padding-bottom: 2rem;
}

/* Footer Wrapper */
.footer-top {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-tag {
    font-weight: 700;
    color: var(--text-primary) !important;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.back-to-top {
    margin-left: 2rem;
    color: var(--text-primary) !important;
    font-weight: 600;
}

.footer-marquee {
    width: 100%;
    overflow: hidden;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.footer-marquee h1 {
    font-size: 10vw; /* Scales massively to screen width */
    line-height: 0.8;
    margin: 0;
    color: rgba(255, 255, 255, 0.03); /* subtle watermark effect */
    white-space: nowrap;
    font-weight: 900;
    letter-spacing: -2px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .back-to-top {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}
