/* =========================================
   REGU R – OFFSHORE HSE PROFESSIONAL PORTFOLIO V2
   Theme: Industrial Marine & Technical Safety
   Fonts: Outfit (Headings), Inter (Body)
   ========================================= */

:root {
    /* Colors */
    --bg-deep: #050811;
    /* Subsea Dark */
    --bg-surface: #0a0f1d;
    /* Marine Navy */
    --bg-card: #111827;
    /* Dark Slate */

    --brand-orange: #FF5722;
    /* Safety Orange */
    --brand-orange-dim: rgba(255, 87, 34, 0.15);

    --brand-blue: #00E5FF;
    /* High-Vis Cyan */
    --brand-blue-dim: rgba(0, 229, 255, 0.15);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-light: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(255, 87, 34, 0.4);

    /* Utilities */
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --grid-gap: 2rem;
}

/* === RESET === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* === BACKGROUND LINES === */
.bg-lines {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: space-evenly;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.bg-lines .line {
    width: 1px;
    height: 100vh;
    background: linear-gradient(to bottom, transparent, var(--border-light) 10%, var(--border-light) 90%, transparent);
}

/* === UTILITIES & LAYOUT === */
.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.text-orange {
    color: var(--brand-orange);
}

.mt {
    margin-top: var(--grid-gap);
}

.mt-4 {
    margin-top: 1.5rem;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-dark {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-badge {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-blue);
    background: var(--brand-blue-dim);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.section-heading {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 3rem;
    letter-spacing: -1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: var(--brand-orange);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 87, 34, 0.3);
}

.btn-primary:hover {
    background: #E64A19;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

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

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 16px 0;
    background: rgba(5, 8, 17, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

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

.logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo span {
    color: var(--brand-orange);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    border-radius: 100px !important;
    margin-left: 10px;
}

.nav-btn:hover {
    background: #fff !important;
    color: var(--bg-deep) !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 101;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 120px 0 60px;
}

.hero-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-indicator {
    width: 10px;
    height: 10px;
    background: var(--brand-orange);
    border-radius: 50%;
    position: relative;
}

.live-indicator::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--brand-orange);
    opacity: 0;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual Composition */
.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.vcard {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.vcard::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}

/* Main Profile Card */
.vcard-main {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
}

.profile-pic-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-placeholder {
    display: none;
    color: var(--text-muted);
}

.vcard-info h3 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.vcard-info p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Stat Cards */
.vcard-stat {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-orange .stat-icon {
    background: var(--brand-orange-dim);
    color: var(--brand-orange);
}

.stat-blue .stat-icon {
    background: var(--brand-blue-dim);
    color: var(--brand-blue);
}

.stat-text h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Credentials Card */
.vcard-wide {
    grid-column: span 2;
    padding: 20px;
}

.cred-header {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.cred-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cred-tags span {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* === PROFILE SECTION === */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.about-text .lead {
    font-size: 1.25rem;
    color: #fff;
    font-family: var(--font-head);
    font-weight: 400;
    line-height: 1.5;
}

.edu-card {
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.edu-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--brand-blue);
}

.edu-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--brand-blue-dim);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.edu-card h4 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.edu-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* === EXPERIENCE TIMELINE === */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    transition: var(--transition);
}

.timeline-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid var(--border-light);
    padding-right: 20px;
}

.timeline-date {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--brand-orange);
}

.timeline-company {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.timeline-location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline-role {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.timeline-content ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.timeline-content li {
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.timeline-content li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--brand-blue);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.achievement {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ach-label {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: 4px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Early Career Block */
.timeline-early {
    grid-template-columns: 240px 1fr;
    background: transparent;
    border: 1px dashed var(--border-light);
}

.timeline-early:hover {
    border-style: solid;
    border-color: var(--border-focus);
    transform: none;
    box-shadow: none;
}

.timeline-early .timeline-meta {
    border: none;
}

.early-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--text-muted);
}

.early-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.early-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.early-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.early-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-light);
}

.early-card h4 {
    font-family: var(--font-head);
    font-size: 1rem;
    color: #fff;
    margin-bottom: 2px;
}

.early-card .company {
    font-size: 0.85rem;
    color: var(--brand-orange);
    margin-bottom: 6px;
    font-weight: 500;
}

.early-card .desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === EXPERTISE & PROJECTS (SPLIT) === */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sk-tag {
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.sk-tag:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    background: var(--brand-orange-dim);
}

.sub-heading {
    font-family: var(--font-head);
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: #fff;
}

.training-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tr-item {
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.tr-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--brand-blue);
    border-radius: 50%;
    margin-right: 12px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.proj-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.proj-card:hover {
    border-color: var(--brand-blue);
    background: rgba(0, 229, 255, 0.02);
    transform: translateX(5px);
}

.proj-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

.proj-info h4 {
    font-family: var(--font-head);
    font-size: 1rem;
    color: #fff;
    margin-bottom: 2px;
}

.proj-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === CONTACT === */
.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
}

.contact-box h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    color: #fff;
}

.contact-box p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: left;
}

.contact-item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
}

a.contact-item:hover {
    border-color: var(--brand-orange);
    background: var(--brand-orange-dim);
    transform: translateY(-4px);
}

.ci-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

a.contact-item:hover .ci-icon {
    background: var(--brand-orange);
    color: #fff;
}

.ci-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ci-text span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.ci-text strong {
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: #fff;
    word-break: break-all;
}

/* === FOOTER === */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
}

.footer .section-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.f-logo {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 800;
}

.f-logo span {
    color: var(--brand-orange);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === ANIMATIONS === */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-label {
        margin: 0 auto 24px;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .about-grid,
    .split-section {
        grid-template-columns: 1fr;
    }

    .timeline-item,
    .timeline-early {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timeline-meta {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding-right: 0;
        padding-bottom: 20px;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        background: var(--bg-surface);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        z-index: 100;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-btn {
        display: none;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .visual-grid {
        grid-template-columns: 1fr;
    }

    .vcard-main,
    .vcard-wide {
        grid-column: 1;
    }

    .early-grid,
    .training-list {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 40px 20px;
    }

    .timeline-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .timeline-item {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .vcard-main {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .sk-tag {
        width: 100%;
        text-align: center;
    }
}